/Edu-AMR-Public

Edu-AMR General Public Access Files and Documents

Primary LanguageCMake

Edu-AMR-Public

Edu-AMR General Public Access Files and Documents

OpenCV Install Directions

Source: https://raspberrypi-guide.github.io/programming/install-opencv

Install prerequisites

$ sudo apt-get update

$ sudo apt-get install build-essential cmake pkg-config libjpeg-dev libtiff5-dev libjasper-dev libpng-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libfontconfig1-dev libcairo2-dev libgdk-pixbuf2.0-dev libpango1.0-dev libgtk2.0-dev libgtk-3-dev libatlas-base-dev gfortran libhdf5-dev libhdf5-serial-dev libhdf5-103 python3-pyqt5 python3-dev -y

Testing

$ python3

Python 3.8.10 (default, May 26 2023, 14:05:08) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> import cv2
>>> cv2.__version__
'4.2.0'