Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6503 Discussions

Python sample code can not finish on Windows OS.

Ishida__Ken
Beginner
467 Views

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
467 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

 

0 Kudos
Reply