5,323
edits
Line 29: | Line 29: | ||
* Setup a build environment | * Setup a build environment | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
conda create -n opencvbuild python=3. | conda create -n opencvbuild python=3.7 | ||
conda activate opencvbuild | conda activate opencvbuild | ||
conda install -c conda-forge pyqt | 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> |