- Notifications
You must be signed in to change notification settings - Fork1
Libcamera with OpenCV in Raspberry Pi 32 bit Bullseye
License
Qengineering/Libcamera-OpenCV-RPi-Bullseye-32OS
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
In the new Debian 11, Bullseye, you can only capture live video with a streaming framework, like GStreamer or FFmpeg. This is an example of libcamera working on a Raspberry Pi with an 32-bits OS.
To run the application, you have to:
- A Raspberry Pi 4.
- GStreamer 1.18.4 installed.Install GStreamer
- OpenCV installed.Install OpenCV 4.5
- Code::Blocks installed. (
$ sudo apt-get install codeblocks
) - A working Raspicam
To extract and run the app in Code::Blocks
$ mkdirMyDir
$ cdMyDir
$ wgethttps://github.com/Qengineering/Libcamera-OpenCV-RPi-Bullseye-32OS/archive/refs/heads/main.zip
$ unzip -j master.zip
Remove master.zip, LICENSE and README.md as they are no longer needed.
$ rm master.zip
$ rm LICENSE
$ rm README.md
YourMyDir folder must now look like this:
GStreamer_RPi_32_Bullseye.cpb
main.cpp
To run the application load the project file GStreamer_RPi_32_Bullseye.cbp in Code::Blocks.
Next, follow the instructions atHands-On.
On thispage you can see how to make thewebcam work.
The Raspicam supports many sizes and frame rates, as you can seehere.
You can switch between the different options by altering the parameters in the pipeline.
As long it's a valid combination, it will work. For instance:
//pipeline parameters int capture_width = 640 ; int capture_height = 480 ; int display_width = 640 ; int display_height = 480 ; int framerate = 90 ;
About
Libcamera with OpenCV in Raspberry Pi 32 bit Bullseye
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.