- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page