Community
cancel
Showing results for 
Search instead for 
Did you mean: 
raj__dilli
Beginner
835 Views

opencv with openvino

hii..

  am using openVINO in raspberry pi with ncs and also in windows 10..but i cant able to use the opencv that comes with toolkit..will anyone say ho w to use the opencv with openvino...

 

thank you,

 

0 Kudos
11 Replies
Dmitry_K_Intel3
Employee
835 Views

@raj, dilli, Please clarify the problem. You cannot use OpenCV in Raspbian or in Widnows?

raj__dilli
Beginner
835 Views

actually in both...it shows build opencv with inference engine.and i dont know how to do that..

but i can use opencv separetly in raspbian..i cannot able to use it with the openVINO models..

thanking you.......

Hyodo__Katsuya
Innovator
835 Views

@raj, dilli OpenCV is automatically installed without building. Windows is not tried because it is troublesome. - Procedure for introducing OpenVINO and OpenCV 4.0.1-openvino to RaspberryPi (Raspbian Stretch) https://github.com/PINTO0309/OpenVINO-YoloV3#2-work-with-raspberrypi-raspbian-stretch - Below is a sample that uses the OpenCV DNN module to run the OpenVINO model. https://github.com/PINTO0309/MobileNet-SSD-RealSense/blob/master/SingleStickSSDwithUSBCamera_OpenVIN...
raj__dilli
Beginner
835 Views

@Hyodo, katsuya  thank you fro your reply.. i will try those and tell you back.

Kochar__Amrit
Beginner
835 Views

@Hyodo, I am facing a peculiar problem. While installing the VINO toolkit, on the window where we choose the modules we want to install, I don't see the OpenCV option itself. All other options are present and ticked. I have attached a screenshot of the options I get when I try to modify my installation to give you a better view of the problem. I had the same modules on the list when I installed it. Please help. Urgent!
Hyodo__Katsuya
Innovator
835 Views

@Kochar, Amrit

Please try, R5. (not R5.0.1)

Screenshot 2019-02-21 16:22:49.png

Chen__Cheng
Beginner
835 Views

Hi, 

Sorry to post here. But, After I install OpenVino, OpenCV is shipped, yes this is correct. 

However, I only found OpenCV with python 3.5 and 2.7 API. I want to use python3.6 but not possible.

Under /opt/intel/openvino_2019.1.094/python/

There are five folders with name python3.x. 

files like cv2.cpython-35m-x86_64-linux-gnu.so only exist in python3.5 and python 2.7 folder. But not in others such as python3.6....

I also tried uninstall and install for a few times, changing system default python to python3.6... but they all does not work... Could someone help at this point?

Also, is it possible to do conda install or pip install for getting opencv-openvino???

 

Shubha_R_Intel
Employee
835 Views

Dear Chen, Cheng,

Hmmm. This is strange. Yes, OpenVino works with Python 3.65 and in fact it's recommended to use with Python 3.6.5.  Please avoid Conda installations, at least where OpenVino is concerned. OpenVino can certainly co-exist with Conda on the same machine, but OpenVino relies on a traditional Python installation.

I have a feeling that something got messed up in your installation. Please uninstall all instances of Python and OpenVino on your machine, then follow these steps carefully :

https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_linux.html

Hope it helps.

Thanks for using OpenVino,

Shubha

 

 

Shubha_R_Intel
Employee
835 Views

Dear Chen, Cheng,

Please see my detailed response in the below forum post. There is nothing inherently wrong with using a Conda installation of Python with OpenVino - OpenVino theoretically should not care, as long as you get your PATH setup correctly. Our official installation instructions do not mention Conda but I can't see why a Conda Python installation would be problematic for OpenVino. The only issue is, your life may be harder - all of the MO and other Python tools use requirements.txt to install prerequisites.  Apparently you can do something similar with Conda according to this Stack Overflow question. It's not impossible but it will be more inconvenient, if you use Conda.

https://software.intel.com/en-us/forums/computer-vision/topic/802287

Thanks,

Shubha

Maksim_S_Intel
Employee
835 Views

Currently we build OpenCV only for default python versions on Linux (python2, python3 packages in the system repository). Theoretically you can try to copy OpenCV python binary from python3.5 folder to python3.6 and rename it, but this method is not guaranteed to work.

Khalid__Nazish
Beginner
835 Views

Hyodo, Katsuya wrote:

@raj, dilli 

Sir can you kindlly guide me how to attach opencv with inference engine for raspberry pi

 

OpenCV is automatically installed without building.
Windows is not tried because it is troublesome.

- Procedure for introducing OpenVINO and OpenCV 4.0.1-openvino to RaspberryPi (Raspbian Stretch)
https://github.com/PINTO0309/OpenVINO-YoloV3#2-work-with-raspberrypi-ras...

- Below is a sample that uses the OpenCV DNN module to run the OpenVINO model.
https://github.com/PINTO0309/MobileNet-SSD-RealSense/blob/master/SingleS...

Reply