Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ishida__Ken
Beginner
55 Views

Python sample code can not finish on Windows OS.

Python sample code can not finish on Windows OS. But it can finish on Ubuntu16.04.

sample code as follows:

cap = cv2.VideoCapture(0)

net = cv2.dnn.readNet('lrmodel/MobileNetSSD/MobileNetSSD_deploy.xml', 'lrmodel/MobileNetSSD/MobileNetSSD_deploy.bin')

net.setPreferableTarget(cv2.dnn.DNN_TARGET_MYRIAD)

try

   while True:

:

cv2.namedWindow('USB Camera', cv2.WINDOW_AUTOSIZE)

cv2.imshow('USB Camera', cv2.resize(color_image, (width, height)))

 

key = cv2.waitKey(1)

if key & 0xFF == ord('q'):

break

0 Kudos
1 Reply
Shubha_R_Intel
Employee
55 Views

Dear Ishida, Ken,

Please study the Python Samples which come with OpenVino, located here:

inference_engine\samples\python_samples

Also please make sure you run setupvars.bat (or *.sh) under bin first.

Thanks,

Shubha

 

Reply