Created
October 31, 2023 06:00
-
-
Save hsinhoyeh/bcf2b4504e14b7ee8951efcfca7c04d6 to your computer and use it in GitHub Desktop.
opencv python with headless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
# do not instal gtk related package | |
apt-get install git cmake gcc g++ python3-dev python3-numpy libpng-dev libjpeg-dev libopenexr-dev libtiff-dev libwebp-dev | |
git clone https://github.com/opencv/opencv.git | |
cd opencv && mkdie build && cd build && cmake -D PYTHON3_PACKAGES_PATH=/usr/lib/python3/dist-packages ../ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment