How to use Pi Camera with raspberry pi 4 and how to install open cv in raspberry pi

preview_player
Показать описание
In this video i have used pi camera
now if you want to install the required libraries use the following commands.
open terminal in raspberry pi and type the following commands.
1. sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-100
2. sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test
3. sudo apt-get install libatlas-base-dev
4. sudo apt-get install libjasper-dev

7. sudo pip3 install opencv-contrib-python

/////code///
Now open the IDE and fast the following code.
mport cv2

video= cv2.VideoCapture(0)
while True:

break
Рекомендации по теме
Комментарии
Автор

Is there some way to connect multiple cameras to the rasperry?

murilobrum
welcome to shbcf.ru