- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
When i call "detector.setPreferableTarget(cv2.dnn.DNN_TARGET_MYRIAD)" on my python script, i see the below error,
Code:
protoPath = os.path.sep.join([args["detector"], "deploy.prototxt"])
modelPath = os.path.sep.join([args["detector"],
"res10_300x300_ssd_iter_140000.caffemodel"])
detector = cv2.dnn.readNetFromCaffe(protoPath, modelPath)
detector.setPreferableTarget(cv2.dnn.DNN_TARGET_MYRIAD)
Runtime error:
Traceback (most recent call last):
File "extract_embeddings.py", line 112, in <module>
vec = embedder.forward()
cv2.error: OpenCV(4.1.0-openvino) /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/dnn/src/op_inf_engine.cpp:747: error: (-215:Assertion failed) Failed to initialize Inference Engine backend: Can not init USB device: NC_ERROR in function 'initPlugin'
Any help?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have even followed this instruction for openvino installation,
https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_linux.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good Afternoon.
Currently I try to run my application (Facial Recognition) on Ubuntu 18.04 + OpenVino_2019.1.144 + OpenCV. When I executed my script I'm geting this error.
E: [ncAPI] [ 803652] ncDeviceOpen:672 Failed to find suitable device, rc: X_LINK_DEVICE_NOT_FOUND
Traceback (most recent call last):
File "recognize_video.py", line 108, in <module>
vec = embedder.forward()
cv2.error: OpenCV(4.1.0-openvino) /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/dnn/src/op_inf_engine.cpp:747: error: (-215:Assertion failed) Failed to initialize Inference Engine backend: Can not init USB device: NC_ERROR in function 'initPlugin'
FATAL: exception not rethrown
Reading in other forums, I followed these instructions but it doesn't solve my problem:
Any suggestion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Garcia, Alberto
Based on the error it looks like the program cannot find an NCS device, are you using an NCS stick? If so, make sure you have verified your installation with the verification scripts. This way you can rule out there is an issue with the installation and the device.
If you continue to have issues, please share any details that could help us reproduce (i.e. using NCS/NCS2, python version, powered usb hub, etc.).
Regards,
Luis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. Make sure you have stick detected:
$ lsusb ... Bus 001 Device 007: ID 03e7:2150 ...
Vendor ID is 03e7 and device ID must be something like 2150 or 2485.
2. Then verify permissions, use Bus and Device numbers from previous step:
$ ls -l /dev/bus/usb/001/007 crw-rw---- 1 root users 189, 6 Jan 21 13:06 /dev/bus/usb/001/007 $ id uid=1000(...) gid=1000(...) groups=1000(...),27(sudo),29(audio),44(video),100(users),...
Group must be users and your current user must be in this group.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page