How to Install OpenCV Python on Raspberry Pi | Video Streaming with OV5647 on OpenCV

Опубликовано: 29 Сентябрь 2024
на канале: Embedded Programmer
1,185
18

In this tutorial we are going to install OpenCV-Python on Raspberry Pi. After successful installation, a video streaming project is going to be implemented with OV5647 Camera module with RGB & Grayscale format.

Commands for installing OpenCV-Python :

STEP 1 : Check for Python 3 using terminal:

python3 --version


STEP 2 : Enter the command below into terminal:

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


STEP 3 : Enter the next command:

pip3 install opencv-python


STEP 4 : Open Python3 and check for cv2 in the Terminal ( (just type below commands and press enter in sequence ):

python3
import cv2
cv2.__version__

  / embedded._.programmer  
https://github.com/embedded-programmer

#raspberrypiopencv#opencvpython3#installopencvpython