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

preview_player
Показать описание
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__

#raspberrypiopencv#opencvpython3#installopencvpython
Рекомендации по теме
Комментарии
Автор

I apply a Python code linked directly to the camera to process the images by converting them to Binary and then specifying the edges in the same way and clarifying them by adding open cv. The code is run, but no camera window appears for me to apply the code.

Rj_v
Автор

Unable to locate package opencv-python?

bbbbbmmm
Автор

hi my problem is : unable to locate repository libjasper-dev ! i try sudo add-apt-repository but say "command not found"

lks