Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud

Install openCV

batmanbatak
Novice
2,951 Views

HI, I need openCV to compile my program in devcloud is there a way to do this maybe submit request?

 

Regards

Daniel

0 Kudos
9 Replies
AayushiR_Intel
Moderator
2,918 Views

Hi,

 

Thanks for posting in Intel communities.

 

1. To create an environment:

 

conda create -n <env name> python=3.9

 

 

2.  Activate the new environment:

 

 conda activate <env_name>

 

 

3. Install  opencv

 

 pip3 install --user opencv-python

 

AayushiR_Intel_0-1665660088582.png

AayushiR_Intel_2-1665660187986.png

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issues.

 

Thanks,

Aayushi

 

0 Kudos
batmanbatak
Novice
2,890 Views

Hi Aayushi

I got an error everytime I try to create conda envinronment and pip install command I got error message:

python: bad interpreter: No such file or directory

batmanbatak_2-1665680377763.png

 

Please help me with this issue

 

0 Kudos
AayushiR_Intel
Moderator
2,831 Views

Hi,


We are able to install openCV using pip3 without any issues. If you are using pip it will show bad interpreter error.


Could you please confirm whether you are using pip3 or pip for the installation.


Thanks,

Aayushi


0 Kudos
batmanbatak
Novice
2,787 Views

I'm able to install opencv-python package using pip3 approach

However, what I need is OpenCV for C++ (https://www.geeksforgeeks.org/how-to-install-opencv-in-c-on-linux/)

because I need to compile my host code for my openCL FPGA

Makefile screenshot is as follow:

batmanbatak_0-1666183041564.png

 

Regards

Daniel

 

0 Kudos
AayushiR_Intel
Moderator
2,775 Views

Hi,


Sorry for the inconvenience, User's don't have admin/sudo privileges in Intel DevCloud to install custom packages. Intel DevCloud® is a shared environment which comes with pre-installed validated Intel® oneAPI software and complimentary packages. As a policy we don't install custom (open source or 3rd party licensed) software to the environment and recommend that you explore available and equivalent oneAPI SW tools or components.


Thanks,

Aayushi


0 Kudos
batmanbatak
Novice
2,771 Views

is openCV library for C++ is installed in oneAPI instance in devcloud?

0 Kudos
AayushiR_Intel
Moderator
2,704 Views

Hi,

 

OpenCV does not fall under the scope of oneAPI DevCloud. As such we will not install it.

oneAPI DevCloud users have the opportunity to build it from source.

There are various get started guides available online.

Please follow the below commands :

$ git clone https://github.com/opencv/opencv.git
$ cd opencv
$ mkdir build
$ cd build
$ cmake -D INSTALL_PYTHON_EXAMPLES=ON -D INSTALL_C_EXAMPLES=ON ..
$ make -j$(nproc)

 

For more information please refer OpenCV official pages: https://docs.opencv.org/4.x/d7/d9f/tutorial_linux_install.html

 

Thanks,

Aayushi

 

0 Kudos
AayushiR_Intel
Moderator
2,653 Views

Hi,


We have not heard back from you. Could you please give us an update? Is your issue resolved?


Thanks,

Aayushi


0 Kudos
AayushiR_Intel
Moderator
2,612 Views

Hi,


We assume that your issue is resolved.


If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks,

Aayushi


0 Kudos
Reply