I have created the graph file for NCSDK API and I am trying to deploy the graph file to the device. Initially I got an error which was related to python library and I fixed it. But executing the prediction code does nothing. The cursor keeps blinking for some time and stops. I am not sure whether the stick is executing my prediction and how long it might take. It has been more than 2 hours. I also post my code here for reference.
import mvnc.mvncapi as mvnc
devices = mvnc.EnumerateDevices()
if len( devices ) == 0:
print( 'No devices found' )
device = mvnc.Device( devices )
with open( 'mnist_inference.graph', mode='rb' ) as f:
blob = f.read()
graph = device.AllocateGraph( blob )
path = 'Defect.PNG'
img = cv2.imread(path, cv2.COLOR_BGR2RGB)
img = cv2.resize(img, (100, 25))
img = img.astype(numpy.float32)
output, userobj = graph.GetResult()
print('\n------- predictions --------')