Raspberry Pi get started with opencv | how to use opencv with a Raspberry Pi

preview_player
Показать описание
In this video, you will learn to use the opencv library with the following scirpts :
- open a picture
- resize a picture and save it
- open the camera connected to the raspberry pi

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

This and the previous video on the playlist are the only things I've found online that properly explains how to set up and use a picamera 2 with opencv on a 64 bit Pi! Thanks so much!

BenCrawley-yuuv
Автор

Hello, I have tried this tutorial with orange pi 3b and ubuntu xfce and it worked for me, thank you.

RMNVILLA
Автор

I got a trouble. When I use nano and python for VideoCapture I received a error like this "cv2.error: OpenCV(4.5.1) error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow' ". So how can I fix this? Thank you

TungPe
Автор

Hello, I followed your video and performed "raspi-config" to enable the legacy camera stack. I have the same hardware configuration as you, with the only difference being that my camera is ov5647. So, I added an additional setting "dtoverlay=ov5647" in /boot/config.txt.

However, when I run "camera.py, " I encounter an error.
[ WARN:0] global (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Failed to allocate required memory.
[ WARN:0] global (914) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created


I need your request . Thank you.

jackcomtw