MobileNet-SSD-RealSense icon indicating copy to clipboard operation
MobileNet-SSD-RealSense copied to clipboard

Cannot run code on RPi 4: Inference Engine Build Error

Open taashikapoor opened this issue 5 years ago • 0 comments

[Required] Your device (RaspberryPi3, LaptopPC, or other device name): RaspberryPi4

[Required] Your device's CPU architecture (armv7l, x86_64, or other architecture name): aarch64

[Required] Your OS (Raspbian, Ubuntu1604, or other os name): Ubuntu 18.04 LTS

[Required] Details of the work you did before the problem occurred:
I have followed all the steps in your guide and I keep arriving at the same error. I have also tried to manually install opencv myself but still cant seem to figure out why the code doesnt work. I can run sample object detection codes on single images but not videos. This is the error i get when I try to run SingleStickSSDwithRealSense_OpenVINO_NCS2.py


[Required] Error message:
Traceback (most recent call last): File "SingleStickSSDwithRealSense_OpenVINO_NCS2.py", line 33, in net = cv2.dnn.readNet('lrmodel/MobileNetSSD/MobileNetSSD_deploy.xml', 'lrmodel/MobileNetSSD/MobileNetSSD_deploy.bin') cv2.error: OpenCV(4.3.0) /home/ubuntu/opencv/modules/dnn/src/dnn.cpp:3541: error: (-2:Unspecified error) Build OpenCV with Inference Engine to enable loading models from Model Optimizer. in function 'readFromModelOptimizer'


[Required] Overview of problems and questions:
At first the script would not be able to import cv2 at all but after manually installing OpenCV 4.3.0 I was able to import cv2 and run the dnn sample code. I am very new to this so I would appreciate all the help I can get.


taashikapoor avatar Oct 12 '20 19:10 taashikapoor