# \#raspberrypi

**URL:** https://forum.opencv.org/tag/raspberrypi/152.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [Laser pattern rangefinding using a diffraction grating](https://forum.opencv.org/t/laser-pattern-rangefinding-using-a-diffraction-grating/24564)

<div class="topic-metadata">

**Author:** [@salukikev](https://forum.opencv.org/u/salukikev)\
**Replies:** 10\
**Last updated:** [June 7, 2026, 9:28pm UTC](https://forum.opencv.org/t/laser-pattern-rangefinding-using-a-diffraction-grating/24564 "2026-06-07T21:28:47Z")

</div>

Hi all! I’m experimenting with a RPI5-1gb and green laser diffraction grating (nearly coaxial with Pi camera module 3). The goal is to reference the projected pattern, and calculate range and angles based upon the sca…

---

## [OpenCV Raspicam Ubuntu 24 Server](https://forum.opencv.org/t/opencv-raspicam-ubuntu-24-server/24560)

<div class="topic-metadata">

**Author:** [@05032-Mendicant-Bias](https://forum.opencv.org/u/05032-Mendicant-Bias)\
**Replies:** 2\
**Last updated:** [June 5, 2026, 5:28pm UTC](https://forum.opencv.org/t/opencv-raspicam-ubuntu-24-server/24560 "2026-06-05T17:28:06Z")

</div>

I’m trying to run a streaming webserver on raspberry Pi I’m encountering difficulties running the Raspicam on Ubuntu 24.04.4 LTS Server I got the raspicam working by compiling libcamera from source, then using MJPG …

---

## [RaspberryPi 4 with Trixie X Wayland question](https://forum.opencv.org/t/raspberrypi-4-with-trixie-x-wayland-question/24258)

<div class="topic-metadata">

**Author:** [@jogl](https://forum.opencv.org/u/jogl)\
**Replies:** 1\
**Last updated:** [December 16, 2025, 4:11pm UTC](https://forum.opencv.org/t/raspberrypi-4-with-trixie-x-wayland-question/24258 "2025-12-16T16:11:01Z")

</div>

I am setting up a RaspberryPi4 with 4 Mb RAM to run OpenCV. It will be running on an isolated safe LAN headless. I am using Vinagre VNC client on a number of computers to access a number of other headless RPi’s. The n…

---

## [VideoCapture is open, but unable to read frames (Raspberry pi)](https://forum.opencv.org/t/videocapture-is-open-but-unable-to-read-frames-raspberry-pi/23909)

<div class="topic-metadata">

**Author:** [@MagnusKG](https://forum.opencv.org/u/MagnusKG)\
**Replies:** 3\
**Last updated:** [August 31, 2025, 5:51pm UTC](https://forum.opencv.org/t/videocapture-is-open-but-unable-to-read-frames-raspberry-pi/23909 "2025-08-31T17:51:41Z")

</div>

Working on a Raspberry Pi 4B Raspberry Pi OS Raspberry Pi camera module 3 Camera works fine using commandline rpicam-vid I Have not enabled legacy camera in raspi-config since that is no longer an option Video capture…

---

## [RPi Camera, options cannot be set](https://forum.opencv.org/t/rpi-camera-options-cannot-be-set/23188)

<div class="topic-metadata">

**Author:** [@hgs](https://forum.opencv.org/u/hgs)\
**Replies:** 1\
**Last updated:** [July 18, 2025, 1:03pm UTC](https://forum.opencv.org/t/rpi-camera-options-cannot-be-set/23188 "2025-07-18T13:03:01Z")

</div>

I’ve noticed strange behavior with LCCV and OpenCV and the Raspberry Pi’s HQ Camera or GS Camera. I’m having problems manually setting ExposureTime, Gain, and Shutter. I use C++. About two months ago, everything worked…

---

## [Videowriter web camera logitech(1920x1080) with raspberry pi](https://forum.opencv.org/t/videowriter-web-camera-logitech-1920x1080-with-raspberry-pi/21948)

<div class="topic-metadata">

**Author:** [@nur92](https://forum.opencv.org/u/nur92)\
**Replies:** 1\
**Last updated:** [June 4, 2025, 8:02am UTC](https://forum.opencv.org/t/videowriter-web-camera-logitech-1920x1080-with-raspberry-pi/21948 "2025-06-04T08:02:06Z")

</div>

Hello, I have project related to capture a video and save the captured video with videowriter. I’m capturing a video with 1920x1080 quality with 30fps. I got problem as the captured video played fast. Is there a way to f…

---

## [Add text or image without desktop environment (RPi and Picamera2)](https://forum.opencv.org/t/add-text-or-image-without-desktop-environment-rpi-and-picamera2/21103)

<div class="topic-metadata">

**Author:** [@GG2GG](https://forum.opencv.org/u/GG2GG)\
**Replies:** 2\
**Last updated:** [May 28, 2025, 9:35am UTC](https://forum.opencv.org/t/add-text-or-image-without-desktop-environment-rpi-and-picamera2/21103 "2025-05-28T09:35:57Z")

</div>

Hi all, I’m new here and newbie. I’m working on Raspberry with attached camera and Picamera2. The RPi is running Bookworm Lite without desktop. I got a 640\*480 preview on a 800\*480 DSI LCD display connected to RP1, so th…

---

## [Choosing the Right Imaging Camera Module for Embedded Vision Projects](https://forum.opencv.org/t/choosing-the-right-imaging-camera-module-for-embedded-vision-projects/20546)

<div class="topic-metadata">

**Author:** [@romana\_diana](https://forum.opencv.org/u/romana_diana)\
**Replies:** 1\
**Last updated:** [March 17, 2025, 4:35pm UTC](https://forum.opencv.org/t/choosing-the-right-imaging-camera-module-for-embedded-vision-projects/20546 "2025-03-17T16:35:23Z")

</div>

I was going through some documentation on Imaging’s camera modules, and I got a bit confused about selecting the right MIPI CSI-2 interface for my application. I’m working on an embedded vision project with my team, and …

---

## [Opencv uncalibrated stereo is not robust](https://forum.opencv.org/t/opencv-uncalibrated-stereo-is-not-robust/20486)

<div class="topic-metadata">

**Author:** [@IvanB](https://forum.opencv.org/u/IvanB)\
**Replies:** 0\
**Last updated:** [March 10, 2025, 7:52pm UTC](https://forum.opencv.org/t/opencv-uncalibrated-stereo-is-not-robust/20486 "2025-03-10T19:52:42Z")

</div>

I am building stereo vision based on this playlist https://www.youtube.com/playlist?list=PL2zRqk16wsdoCCLpou-dGo7QQNks1Ppzo and few scripts from github. Setup is 2 raspberry pi cameras located 15-20cm from each other (a…

---

## [Debian Bookworm - cv2 import - osgeo::proj::io::ParsingException](https://forum.opencv.org/t/debian-bookworm-cv2-import-osgeo-parsingexception/20302)

<div class="topic-metadata">

**Author:** [@WatchObservatory](https://forum.opencv.org/u/WatchObservatory)\
**Replies:** 7\
**Last updated:** [February 24, 2025, 12:41pm UTC](https://forum.opencv.org/t/debian-bookworm-cv2-import-osgeo-parsingexception/20302 "2025-02-24T12:41:17Z")

</div>

Hello, I had installed OpenCV on an RPI4 with Bookworm to use optical flow, and during the same boot session, it worked fine (using calcOpticalFlowFarneback). The O/S advised of updates available, so I proceeded with t…

---

## [Why it gives me a black image and libpng warning: iCCP](https://forum.opencv.org/t/why-it-gives-me-a-black-image-and-libpng-warning-iccp/20239)

<div class="topic-metadata">

**Author:** [@Ricky\_W](https://forum.opencv.org/u/Ricky_W)\
**Replies:** 1\
**Last updated:** [February 16, 2025, 8:34pm UTC](https://forum.opencv.org/t/why-it-gives-me-a-black-image-and-libpng-warning-iccp/20239 "2025-02-16T20:34:29Z")

</div>

This is my code: from picamera2 import Picamera2 import cv2 import numpy as np import time import math import argparse import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) PWM\_pin = 32 #Define pin, frequency and dut…

---

## [Rpi5 camera doesn't work](https://forum.opencv.org/t/rpi5-camera-doesnt-work/17303)

<div class="topic-metadata">

**Author:** [@1parkerj1](https://forum.opencv.org/u/1parkerj1)\
**Replies:** 7\
**Last updated:** [February 2, 2025, 5:35pm UTC](https://forum.opencv.org/t/rpi5-camera-doesnt-work/17303 "2025-02-02T17:35:41Z")

</div>

I want to use my raspberry pi 5 for pose estimation. The past week I have been using my rpi4 with a webcam and the pose estimation as worked pretty well. However, I wanted to migrate to the rpi5 for better compute power…

---

## [Failing to install on raspberry pi with 32 bit OS](https://forum.opencv.org/t/failing-to-install-on-raspberry-pi-with-32-bit-os/19681)

<div class="topic-metadata">

**Author:** [@Katschka](https://forum.opencv.org/u/Katschka)\
**Replies:** 1\
**Last updated:** [January 17, 2025, 4:16pm UTC](https://forum.opencv.org/t/failing-to-install-on-raspberry-pi-with-32-bit-os/19681 "2025-01-17T16:16:29Z")

</div>

EDIT: I have tried the 64 bit bookworm and it worked with the basic pip install. So the remaining question would be: why does the install fail on the 32 bit version of bookworm? Original Question and stuff allready tri…

---

## [Screw head detection](https://forum.opencv.org/t/screw-head-detection/19313)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.opencv.org/u/Tim1)\
**Replies:** 0\
**Last updated:** [November 17, 2024, 4:50pm UTC](https://forum.opencv.org/t/screw-head-detection/19313 "2024-11-17T16:50:15Z")

</div>

Hi testing a screw detection code with OpenCV and anRasberry Pi 4 with the HQ Camera V1. Which Methode to detect the color and the screwhead is the best? Do I should use Video and video detection or is it better to use a…

---

## [I can't open the camera module in the raspberry pi using OpenCV](https://forum.opencv.org/t/i-cant-open-the-camera-module-in-the-raspberry-pi-using-opencv/18936)

<div class="topic-metadata">

**Author:** [@Balaji\_wcm](https://forum.opencv.org/u/Balaji_wcm)\
**Replies:** 1\
**Last updated:** [October 10, 2024, 11:52am UTC](https://forum.opencv.org/t/i-cant-open-the-camera-module-in-the-raspberry-pi-using-opencv/18936 "2024-10-10T11:52:21Z")

</div>

Hello Guys, Currently I am using raspberry pi I want to open the camera in the raspberry pi using OpenCV. I tried different method it didn’t open Can anyone suggest anyways to open the Rpi Camera. Thank you,

---

## [Help Installing OpenCV on Linux (im bad)](https://forum.opencv.org/t/help-installing-opencv-on-linux-im-bad/11724)

<div class="topic-metadata">

**Author:** [@Andymator](https://forum.opencv.org/u/Andymator)\
**Replies:** 1\
**Last updated:** [October 9, 2024, 9:10pm UTC](https://forum.opencv.org/t/help-installing-opencv-on-linux-im-bad/11724 "2024-10-09T21:10:40Z")

</div>

Hi I am emberrassed to make this post but here it goes. I have used RPis and python for a few years, but never really understood the difference between different python versions, the difference between pip and pip3 or …

---

## [USB 2.0 Camera Raspberry Pi Opencv paused instead of null state](https://forum.opencv.org/t/usb-2-0-camera-raspberry-pi-opencv-paused-instead-of-null-state/18898)

<div class="topic-metadata">

**Author:** [@Softwarnet](https://forum.opencv.org/u/Softwarnet)\
**Replies:** 0\
**Last updated:** [October 6, 2024, 1:56pm UTC](https://forum.opencv.org/t/usb-2-0-camera-raspberry-pi-opencv-paused-instead-of-null-state/18898 "2024-10-06T13:56:21Z")

</div>

Raspberry Pi zero w2 arm 64 - Debian Bookworm Other cameras work OK - but I have one camera that fails. GStreamer - CRITICAL \*\*: Trying to dispose of element pipeline0, but it is paused instead of the null state. You…

---

## [Minimum Requirement Of OpenCV for Facial Recognition Using Python](https://forum.opencv.org/t/minimum-requirement-of-opencv-for-facial-recognition-using-python/18687)

<div class="topic-metadata">

**Author:** [@Jeneel\_Dumasia](https://forum.opencv.org/u/Jeneel_Dumasia)\
**Replies:** 1\
**Last updated:** [September 8, 2024, 12:24pm UTC](https://forum.opencv.org/t/minimum-requirement-of-opencv-for-facial-recognition-using-python/18687 "2024-09-08T12:24:32Z")

</div>

I want to use a raspberry pi4 for my project but i am confused between whether to go for the 2gb ram version or the 4gb ram or even higher?if there is anyone having worked on similar project , your input would be much v…

---

## [Upon creating an exe file, camera is not turning on](https://forum.opencv.org/t/upon-creating-an-exe-file-camera-is-not-turning-on/18670)

<div class="topic-metadata">

**Author:** [@Ansar](https://forum.opencv.org/u/Ansar)\
**Replies:** 0\
**Last updated:** [September 4, 2024, 2:59pm UTC](https://forum.opencv.org/t/upon-creating-an-exe-file-camera-is-not-turning-on/18670 "2024-09-04T14:59:35Z")

</div>

I have run a code which is capturing a sequence of images. At first I used " camera\_index = 0 # 1 for integrated camera, 0 for USB camera cap = cv2.VideoCapture(camera\_index)" this lines for capturing, but for the requ…

---

## [Videocapture read() method returns empty ret](https://forum.opencv.org/t/videocapture-read-method-returns-empty-ret/7500)

<div class="topic-metadata">

**Author:** [@shirish\_Basant\_Rai](https://forum.opencv.org/u/shirish_Basant_Rai)\
**Replies:** 5\
**Last updated:** [August 17, 2024, 9:56pm UTC](https://forum.opencv.org/t/videocapture-read-method-returns-empty-ret/7500 "2024-08-17T21:56:48Z")

</div>

I am using a PI 4 with 64 bit os bullseye. python 3.7.7 opencv-python 4.5.5.62 I am able to access pi cam from libcamera, i am also able to read a mp4 video using opencv; however when running opencv videoca…

---

## [Inconsistent Frame Interval with 60fps VideoCapture using CSI Camera on NVIDIA Jetson Orin Nano](https://forum.opencv.org/t/inconsistent-frame-interval-with-60fps-videocapture-using-csi-camera-on-nvidia-jetson-orin-nano/18486)

<div class="topic-metadata">

**Author:** [@dahlia](https://forum.opencv.org/u/dahlia)\
**Replies:** 6\
**Last updated:** [August 16, 2024, 7:36pm UTC](https://forum.opencv.org/t/inconsistent-frame-interval-with-60fps-videocapture-using-csi-camera-on-nvidia-jetson-orin-nano/18486 "2024-08-16T19:36:36Z")

</div>

Hello everyone, I am currently working on a project where I am using an NVIDIA Jetson Orin Nano with a Raspberry Pi 2 camera module connected via CSI interface. I have configured the camera to capture video at 1280x720 …

---

## [Cannot install Open-CV](https://forum.opencv.org/t/cannot-install-open-cv/12516)

<div class="topic-metadata">

**Author:** [@vader7071](https://forum.opencv.org/u/vader7071)\
**Replies:** 8\
**Last updated:** [August 11, 2024, 2:53pm UTC](https://forum.opencv.org/t/cannot-install-open-cv/12516 "2024-08-11T14:53:04Z")

</div>

I am using Python on my Raspberry Pi 4B running Bullseye. \*\*\*\*\*@raspberrypi:~ $ cat /etc/os-release PRETTY\_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION\_ID="11" VERSION="11 (bullseye)" VERSIO…

---

## [OpenCV YUV420 to RGB](https://forum.opencv.org/t/opencv-yuv420-to-rgb/18373)

<div class="topic-metadata">

**Author:** [@Zalosath](https://forum.opencv.org/u/Zalosath)\
**Replies:** 1\
**Last updated:** [July 29, 2024, 7:23pm UTC](https://forum.opencv.org/t/opencv-yuv420-to-rgb/18373 "2024-07-29T19:23:10Z")

</div>

Hi, I’m trying to figure out how to convert a YUV420 image to an RGB image, but it’s not working: buffer = self.model.picam2.capture\_buffer("lores") self.logger.debug(f"Captured frame: {buffer}") self.logger.debug(f"Ca…

---

## [Yolov3-Tiny Error with OpenCV version 4.6.0 related to readNet](https://forum.opencv.org/t/yolov3-tiny-error-with-opencv-version-4-6-0-related-to-readnet/18177)

<div class="topic-metadata">

**Author:** [@Neel\_Dahake](https://forum.opencv.org/u/Neel_Dahake)\
**Replies:** 0\
**Last updated:** [July 5, 2024, 6:38pm UTC](https://forum.opencv.org/t/yolov3-tiny-error-with-opencv-version-4-6-0-related-to-readnet/18177 "2024-07-05T18:38:43Z")

</div>

HI, Im currently working on an object detection project, I have a custom trained yolov3-tiny model that I want to put onto my raspberry pi 5 and detect the custom object. Im using opencv version 4.6.0 and when I run thi…

---

## [Build error: Missing pkg-config, in Code::Blocks IDE on Raspberry Pi](https://forum.opencv.org/t/build-error-missing-pkg-config-in-code-blocks-ide-on-raspberry-pi/17800)

<div class="topic-metadata">

**Author:** [@ChrisWhitehurst](https://forum.opencv.org/u/ChrisWhitehurst)\
**Replies:** 4\
**Last updated:** [June 2, 2024, 5:19pm UTC](https://forum.opencv.org/t/build-error-missing-pkg-config-in-code-blocks-ide-on-raspberry-pi/17800 "2024-06-02T17:19:14Z")

</div>

Open CV has been installed on my Raspberry Pi 4. A check confirms that the latest version of Libopencv-dev is installed (4.6.0+dfsg-12). I am using the Code::Blocks IDE to devlop in C++. It is configured the u…

---

## [Why does Raspberry Pi freeze at 99% build?](https://forum.opencv.org/t/why-does-raspberry-pi-freeze-at-99-build/2207)

<div class="topic-metadata">

**Author:** [@jstr0437](https://forum.opencv.org/u/jstr0437)\
**Replies:** 12\
**Last updated:** [May 25, 2024, 7:57pm UTC](https://forum.opencv.org/t/why-does-raspberry-pi-freeze-at-99-build/2207 "2024-05-25T19:57:28Z")

</div>

I am following this tutorial: OpenCV: Installation in Linux Following the Build Core Modules route at the top. All the steps before cmake --build . appear to work fine. Build takes \> 6 hours, and when the console says…

---

## [Problem with gstreamer on Raspberry Pi 4](https://forum.opencv.org/t/problem-with-gstreamer-on-raspberry-pi-4/17278)

<div class="topic-metadata">

**Author:** [@Baladier](https://forum.opencv.org/u/Baladier)\
**Replies:** 4\
**Last updated:** [April 13, 2024, 4:02pm UTC](https://forum.opencv.org/t/problem-with-gstreamer-on-raspberry-pi-4/17278 "2024-04-13T16:02:20Z")

</div>

Hello, I’m working on a project for my mechatronics engineering coursewhere I need to detect circles in real time using a Raspberry Pi 4 Model B with a Raspberry Pi Rev 1.3 camera. I have configured the entire environmen…

---

## [Green Screen Issue on Nvidia Jetson Nano and Raspberry Pi V2.1 Camera](https://forum.opencv.org/t/green-screen-issue-on-nvidia-jetson-nano-and-raspberry-pi-v2-1-camera/9516)

<div class="topic-metadata">

**Author:** [@M\_7](https://forum.opencv.org/u/M_7)\
**Replies:** 1\
**Last updated:** [April 5, 2024, 9:52am UTC](https://forum.opencv.org/t/green-screen-issue-on-nvidia-jetson-nano-and-raspberry-pi-v2-1-camera/9516 "2024-04-05T09:52:32Z")

</div>

Hi, I am using Nvidia Jetson Nano and Raspberry Pi V2.1 Camera for color detection via Python and OpenCV. However, the codes that worked on my computer do not work on Jetson Nano and I keep getting errors. The camera is …

---

## [Interface picamera2 with java](https://forum.opencv.org/t/interface-picamera2-with-java/16867)

<div class="topic-metadata">

**Author:** [@Hemanth\_R](https://forum.opencv.org/u/Hemanth_R)\
**Replies:** 1\
**Last updated:** [March 19, 2024, 8:32am UTC](https://forum.opencv.org/t/interface-picamera2-with-java/16867 "2024-03-19T08:32:13Z")

</div>

I was trying to use the pi camera module 3 with java interface. I could see that the video capture doesn’t work with pi camera module 3 . Is there a way that I can do it. I see that there are some work around with python…

---

## [I am trying to run OpenCV on RasberriPi but it's not working](https://forum.opencv.org/t/i-am-trying-to-run-opencv-on-rasberripi-but-its-not-working/11799)

<div class="topic-metadata">

**Author:** [@Koulas](https://forum.opencv.org/u/Koulas)\
**Replies:** 13\
**Last updated:** [March 13, 2024, 2:05pm UTC](https://forum.opencv.org/t/i-am-trying-to-run-opencv-on-rasberripi-but-its-not-working/11799 "2024-03-13T14:05:44Z")

</div>

\[ WARN:0\] global …/modules/videoio/src/cap\_gstreamer.cpp (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Could not open device ‘/dev/video0’ for reading and wr…

[Next page](https://forum.opencv.org/tag/raspberrypi/152.md?match_all_tags=true&page=1&tags%5B%5D=raspberrypi)
