Documentation ¶
Overview ¶
Package ncs is a Go language wrapper for the Intel® Movidius™ Neural Compute Stick (NCS)
For more information go to: https://developer.movidius.com/
You must have the Intel Movidius NCS hardware in order to use this package.
Index ¶
Constants ¶
const ( // StatusOK when the device is OK. StatusOK = 0 // StatusBusy means device is busy, retry later. StatusBusy = -1 // StatusError communicating with the device. StatusError = -2 // StatusOutOfMemory means device out of memory. StatusOutOfMemory = -3 // StatusDeviceNotFound means no device at the given index or name. StatusDeviceNotFound = -4 // StatusInvalidParameters when at least one of the given parameters is wrong. StatusInvalidParameters = -5 // StatusTimeout in the communication with the device. StatusTimeout = -6 // StatusCmdNotFound means the file to boot Myriad was not found. StatusCmdNotFound = -7 // StatusNoData means no data to return, call LoadTensor first. StatusNoData = -8 // StatusGone means the graph or device has been closed during the operation. StatusGone = -9 // StatusUnsupportedGraphFile means the graph file version is not supported. StatusUnsupportedGraphFile = -10 // StatusMyriadError when an error has been reported by the device, use MVNC_DEBUG_INFO. StatusMyriadError = -11 )
Variables ¶
This section is empty.
Functions ¶
func OpenDevice ¶
OpenDevice initializes an NCS device and returns a Stick.
For more information: https://movidius.github.io/ncsdk/c_api/mvncOpenDevice.html
Types ¶
type Graph ¶
Graph
func (*Graph) DeallocateGraph ¶
DeallocateGraph deallocates and frees resources for a Graph.
For more information: https://movidius.github.io/ncsdk/c_api/mvncDeallocateGraph.html
func (*Graph) GetResult ¶
GetResult retrieves the result of an inference that was previously initiated using the LoadTensor() method.
For more information: https://movidius.github.io/ncsdk/c_api/mvncGetResult.html
func (*Graph) LoadTensor ¶
LoadTensor starts inference on the NCS by providing input to the neural network.
For more information: https://movidius.github.io/ncsdk/c_api/mvncLoadTensor.html
type Status ¶
type Status int
Status is the device status
func GetDeviceName ¶
GetDeviceName gets the name of the NCS stick located at index.
For more information: https://movidius.github.io/ncsdk/c_api/mvncGetDeviceName.html
type Stick ¶
Stick
func (*Stick) AllocateGraph ¶
AllocateGraph allocates a graph for use on an NCS device, and returns a Graph.
For more information: https://movidius.github.io/ncsdk/c_api/mvncAllocateGraph.html
func (*Stick) CloseDevice ¶
CloseDevice closes a previously opened NCS device.
For more information: https://movidius.github.io/ncsdk/c_api/mvncCloseDevice.html
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
caffe
How to use: You must have OpenCV/GoCV installed to use this example.
|
How to use: You must have OpenCV/GoCV installed to use this example. |
caffe-video
How to use: This example opens a connection to a Movidius Neural Computer Stick (NCS) then uses OpenCV to open a camera, and start displaying the current classification of whatever the camera sees.
|
How to use: This example opens a connection to a Movidius Neural Computer Stick (NCS) then uses OpenCV to open a camera, and start displaying the current classification of whatever the camera sees. |