Skip to content

Instantly share code, notes, and snippets.

@atinfinity
Last active January 6, 2023 19:07
Show Gist options
  • Save atinfinity/7629f1817a3b419f959edd885c132671 to your computer and use it in GitHub Desktop.
Save atinfinity/7629f1817a3b419f959edd885c132671 to your computer and use it in GitHub Desktop.
raspios-opencv4.7.0

environment

  • Raspberry Pi 4 Model B/8GB
  • 2022-09-22-raspios-buster-armhf.img.xz

setup

sudo apt update
sudo apt upgrade
sudo apt install libatlas-base-dev
python3 -m pip install --upgrade pip
$ python3
Python 3.7.3 (default, Oct 31 2022, 14:04:00) 
[GCC 8.3.0] on linux
pip3 install --user opencv-python==4.7.0.68

check

$ python3
Python 3.7.3 (default, Oct 31 2022, 14:04:00) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> print(cv2.__version__)
4.7.0

environment

  • Raspberry Pi 4 Model B/8GB
  • 2022-09-22-raspios-bullseye-arm64.img.xz

setup

sudo apt update
sudo apt upgrade
python3 -m pip install --upgrade pip
$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110] on linux
pip3 install --user opencv-python==4.7.0.68

check

$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> print(cv2.__version__)
4.7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment