openCV with openVINO..?

asked 2019-01-10 05:58:25 -0600

dilli24 gravatar image

hello there... am using openVINO with raspbian and NCS and its working fine..but i cannot able to use opencv withit...

it shows error:

cv2.error: OpenCV(4.0.0) /home/pi/opencv/modules/dnn/src/dnn.cpp:2538: error: (-2:Unspecified error) Build OpenCV with Inference Engine to enable loading models from Model Optimizer. in function 'readFromModelOptimizer'

will you tell me..how to build opencv with inference engine.

Thanking you

edit retag flag offensive close merge delete

Comments

1

Where is link that you downloaded from? I am using raspberry pi 3B+.

supra56 gravatar imagesupra56 ( 2019-01-10 07:36:10 -0600 )edit
1
dkurt gravatar imagedkurt ( 2019-01-10 08:01:43 -0600 )edit
1

@dilli24, that means you try to use OpenCV which is not from OpenVINO. Check output from print(cv.__file__).

dkurt gravatar imagedkurt ( 2019-01-10 08:33:59 -0600 )edit

@supra56 i also using pi 3b+...i used the intel official raspbian link only..but i cannot use the last demo that using opencv script..

dilli24 gravatar imagedilli24 ( 2019-01-10 23:56:20 -0600 )edit

@dilli24, What the output of print(cv.__file__)? It should be something like /path/to/inference_engine_vpu_arm/python/python3.5/cv2.cpython-35m-arm-linux-gnueabihf.so. BTW there is only python3 bindings. Do you use python3 to run a script?

dkurt gravatar imagedkurt ( 2019-01-11 00:05:13 -0600 )edit

@dkurt home/pi/.virtualenvs/cv/lib/python3.5/site-packages/cv2.so this is my output...i installed opencv separately...how can i build opencv with inference engine..? yes i run script inside my virtualenv and using python3..?

thanking you...

dilli24 gravatar imagedilli24 ( 2019-01-11 00:16:44 -0600 )edit

@dkurt will you tell...how to set that path for opencv..?

dilli24 gravatar imagedilli24 ( 2019-01-11 00:24:00 -0600 )edit

how can i build opencv with inference engineDo you really need to build OpenCV with IE support? You can use one from OpenVINO package. If you want to rebuild it - read a guide: https://github.com/opencv/opencv/wiki... .

dkurt gravatar imagedkurt ( 2019-01-11 00:27:48 -0600 )edit

@dilli24,

but i cannot use the last demo that using opencv script

OpenCV is a part of OpenVINO toolkit so you can use prebuilt OpenCV libraries from it. There is no need to recompile it.

dkurt gravatar imagedkurt ( 2019-01-11 00:29:37 -0600 )edit

@dkurt thank you i will try.. and are you using opencv with IE support..is it working for u...?

dilli24 gravatar imagedilli24 ( 2019-01-11 00:32:20 -0600 )edit