Skip to content

Instantly share code, notes, and snippets.

@hsinhoyeh
Created October 31, 2023 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hsinhoyeh/bcf2b4504e14b7ee8951efcfca7c04d6 to your computer and use it in GitHub Desktop.
Save hsinhoyeh/bcf2b4504e14b7ee8951efcfca7c04d6 to your computer and use it in GitHub Desktop.
opencv python with headless
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