-
Notifications
You must be signed in to change notification settings - Fork 309
can someone help with installing cv2. #79
Comments
Duplicate of #67 |
got opencv and conda working correctly. I documented my procedure here and will add more in the future. This is what I came up with: cmake -DCMAKE_BUILD_TYPE=Release \
-DBUILD_opencv_python2=OFF \
-DBUILD_opencv_python3=ON \
-DPYTHON3_EXECUTABLE=`which python3` \
-DPYTHON3_INCLUDE_DIR=~/miniforge3/envs/python38/include/python3.8 \
-DPYTHON3_PACKAGES_PATH=~/miniforge3/envs/python38/lib/python3.8 \
-DPYTHON3_NUMPY_INCLUDE_DIR=~/miniforge3/envs/python38/lib/python3.8/site-packages/numpy/core \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DOPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
-DOPENCV_ENABLE_NONFREE=ON \
../opencv |
@bjajoh 'cmake -DCMAKE_BUILD_TYPE=Release ' where implement this ?? i mean how to do this. should we create a cmakelist.txt file in build_opencv directory ? or what |
@vivek-ram The last line shows the location. When following my guide, there should be a source folder with OpenCV in your home directory. Furthermore, make sure to install CMake. I installed it from source. git clone https://github.com/Kitware/CMake.git
./bootstrap && make && sudo make install Here is the full guide: https://github.com/bjajoh/cv2-tf-scipy-for-arm-mac/blob/main/README.md |
@bjajoh i copied and pasted the cmake thing but i an error. |
Interesting, I documented everything after I finally managed to get everything working, so there is the risk that I missed a small detail. Is there a more detailed error message? Did you clone both repositories correctly in your home folder? So "opencv_contrib" and "opencv"? |
@bjajoh yeah i did. |
It is hard to say what is wrong without any specific error. Maybe check the output of that cmake command and try to see if anything there seems wrong. |
@bjajoh nothing seems wrong bro. cmake -DCMAKE_BUILD_TYPE=Release this is what i used. i followed your steps and i copied this in terminal it was good. next when i run make j7 getting that error 2 |
I faced the same problem. Solved by using this article's way. |
You can now install using conda |
@isuruf wow thanks bro finally solved. |
Yeah, that's awesome! But it could still be an issue if you want to compile the dnn stuff of opencv 4 together with the accelerated Tensorflow. Conda only works out if you're not using the DNN Features of opencv. |
@bjajoh, help is welcome at https://github.com/conda-forge/opencv-feedstock |
hi i am using conda environment i need to installcv2 is there any why i can install cv2 ??
The text was updated successfully, but these errors were encountered: