PYTHON OPENCV
pip install opencv-python
pip install opencv-contrib-python
atau
conda install opencv
TeSTING:
import cv2
print cv2.__version__
atau
python3 -c "import cv2"
ATAU CARA LAIN:
apt-get install -y libsm6 libxext6 libxrender-dev
pip3 install opencv-python
python3 -c "import cv2"
pip install PACKAGE_NAME
where PACKAGE_NAME can be
opencv-python (only contains main modules)
opencv-contrib-python (contains both main and contrib modules)
opencv-python-headless (same as opencv-python but without GUI functionality)
opencv-contrib-python-headless (same as opencv-contrib-python but without GUI functionality)
Tidak ada komentar:
Posting Komentar