Jump to content

OpenCV: Difference between revisions

12 bytes added ,  11 May 2020
Line 29: Line 29:
* Setup a build environment
* Setup a build environment
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
conda create -n opencvbuild python=3.6
conda create -n opencvbuild python=3.7
conda activate opencvbuild
conda activate opencvbuild
conda install -c conda-forge pyqt=4
conda install -c conda-forge pyqt
</syntaxhighlight>
</syntaxhighlight>


Line 39: Line 39:
cd opencv-python
cd opencv-python
export ENABLE_CONTRIB=1
export ENABLE_CONTRIB=1
export CMAKE_ARGS=-DOPENCV_ENABLE_NONFREE=ON
export CMAKE_ARGS="-DOPENCV_ENABLE_NONFREE=ON -DWITH_QT=5"
python setup.py bdist_wheel
python setup.py bdist_wheel
</syntaxhighlight>
</syntaxhighlight>