Questions tagged [picamera]

For questions involving the python picamera module used with cameras that into the CSI jack on the board. For questions about use of the camera hardware itself, use the 'raspicam' tag.

Filter by
Sorted by
Tagged with
1 vote
1 answer
112 views

Raspi camera module V3 with Octopi

Recently purchased raspberry pi camera module 3 NOIR. My plan was to use it for octopi (octoprint), however, i tried my best but couldn’t make it work, and followed many of pages on net but no result (...
1 vote
0 answers
79 views

Raspberry Pi Camera Error: Unicam Has Timed Out

I have been trying to get my Raspberry Pi camera to work for a while now. Probably every two weeks or so I would fire up the Raspberry Pi to convince myself that something changed but whatever I try, ...
1 vote
1 answer
48 views

Can I somehow feed the camera's live image into my GUI?

I'm new to the python world and I have an RPI project where I would like to display the camera's (Arducam 16mpx) realtime image into my GUI application. I saw multiple projects web streaming with ...
1 vote
1 answer
26 views

What is the magnification of the stock lens used in Rpicam V2?

I'm trying to get the overall optical magnification of my digital microscope and wondered if the lens built in the Rpicam v2 has any magnification. Does anyone know this specification? Thanks!
0 votes
0 answers
43 views

Error while getting Full-Bayer-Layer data using Libcamera-raw

I'm trying to get full bayer layer data of Pi-Camera V2 (NoIR). I just followed the official doc. libcamera-raw -t 2000 --segment 1 -o test%05d.raw Above command produces .raw files with each size of ...
  • 101
1 vote
2 answers
61 views

Python script will not write out file when scheduled (cron or bash.rc)

I have a python script to record a .mp4 file with picamera2 which executes and save correctly when run through the editor (thonny) and through the terminal. However, when I schedule it through crontab ...
0 votes
0 answers
12 views

PiRGB returns array consisting of zeros

I have V2 camera and run the following code. I want to record a laser beam. One particular sequence of settings (that I need) doesn't work, though: self._camera = PiCamera(sensor_mode=2) # ...
0 votes
0 answers
13 views

Is it possible to have multiple outputs on picamera

I'm trying to get two outputs from my picamera, one for streaming, the other one for recording. Using two camera.start_recording() doesn't work as it gives me a 'PiCameraAlreadyRecording' exception. ...
1 vote
0 answers
153 views

Raspberry Pi and OpenCV. The cv2.error while capture the image through camera lens

https://stackoverflow.com/questions/43572387/error-215-size-width0-size-height0-occurred-when-attempting-to-display-a I have the similar issue with this discussion, after I read it still don't have ...
  • 133
1 vote
0 answers
62 views

(Raspberry Pi 4 and Python) Raspberry Camera mode raise picamera.exc.PiCameraMMALError and picamera.exc.PiCameraError

System: Raspberry Pi 4 model B, use external USB Logitech camera I'm follow the youtube tutorial but get picamera.exc.PiCameraMMALError andpicamera.exc.PiCameraError Relate discussion on other site ...
  • 133
0 votes
0 answers
19 views

How can I modify the color grading (midtone) of the image captured using the RPI camera module?

Is it possible to configure the color grading (adjust the midtone) of the image captured using Raspberry Pi camera module version 1.3 and the Picamera2 library?
  • 1
1 vote
0 answers
64 views

Adding LUTs and film grain overlays to raspicam

learning python and such by coding and building a camera using the High Quality Camera. Being able to code physical inputs to control the various camera functions was a major win for me, so I don’t ...
  • 119
1 vote
1 answer
303 views

Does the official RaspPi CameraV2 work on RaspPi B rev2? I'm having trouble

I have a new official Raspberry Pi Camera V2 and am trying to use it on a Raspberry Pi B revision 2 board running the Sept 24, 2022 version of the Raspberry Pi OS Bullseye. I have carefully connected ...
1 vote
1 answer
73 views

Exposure time in PiCamera not working

I am trying to take a long exposure image (30 sec+) in python using a RPi HQ camera (https://raspberry.piaustralia.com.au/products/raspberry-pi-hq-camera and the PiCamera module). This is my code: ...
  • 11
0 votes
0 answers
136 views

unknown control 'rotate'

i have recently purchased raspberry pi camera Rev 1.3 and I'm trying to rotate it to 90 deg then its not able to rotate its just rotating it to 0 deg or 180 deg below are the command that I have used ...
0 votes
0 answers
359 views

Problem setting up Rpi Camera

So, I'm a beginner trying to use the Rpi's camera. I've plugged the camera in the correct way, but when I run the command $ libcamera-jpeg -o pic.jpg It returned this ERROR RPI raspberrypi.cpp:1812 ...
0 votes
0 answers
37 views

poorer quality and jagged lines issue when rotating camera

I am capturing video from my raspberry pi camera using v4l2rtspserver, but I need the image to be rotated 90 degrees. Rotating it makes the image appear to have less resolution and there is an ...
  • 101
0 votes
0 answers
141 views

Converting raw Bayer images from HQ camera with dcraw throws error: Cannot decode file

Hardware Raspberry Pi 4 Model B (4 GB RAM) Raspberry Pi HQ Camera (12 MP, Sony IMX477R) Software raspiraw dcraw I want to capture raw images with RPI HQ camera to achieve greater fps at full ...
0 votes
0 answers
171 views

Can I use the PI Camera Stream in Python on a PC and use OPENCV?

So I got a Raspberry Pi with the Pi camera and I would like to use the camera with OpenCV in Python. The problem is, I know I can do this easily on the Pi itself but I highly doubt the Pi will be able ...
0 votes
0 answers
31 views

Losing frames in capture_continuous()

I am working on a project where I process frames of a video in real-time. I am taking each frame, processing and storing a single value for each frame. I am recording at 100 fps for 10 seconds, so I ...
2 votes
0 answers
48 views

HQ camera hanging after gpu_mem is increased

I just recently got a Raspberry Pi HQ camera and wanted to operate it using a python script. I initially tried to take full resolution pictures using the default gpu_mem=128, but the program crashed ...
  • 131
1 vote
1 answer
498 views

How to add libcamera to pyenv

I am running a pyenv with 3.10.5 for a RPi 4 b. RPi OS version if important: pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" ... The pyenv was simply ...
  • 11
1 vote
1 answer
64 views

RPi High Quality Camera degraded image quality and "spots" covering sensor cover surface; can it be fixed?

My Raspberry Pi High Quality Camera was excellent last year when I wrote this answer including these images but I tried it again a year later and something has gone very wrong with the front surface ...
  • 562
0 votes
0 answers
59 views

Why does my self-written camera in picamera output only 27 bytes in the specified .h264 file?

Using the documentation for picamera, I am trying to write my own video capturing pipeline on a Raspberry Pi Zero W. The reason for this is that i want to insert a processing step in the pipeline ...
0 votes
0 answers
28 views

Audio and Video Recoding over RPi Zero suggestions

I want to record both audio and video to my local using rpi zero. I've been struggling with this for a long time and at the end of the day there are 2 different problems that I can't solve for 2 ...
0 votes
0 answers
56 views

Will the arducam 16mp autofocus camera work on a raspberry pi 2?

I will be getting this camera, the arducam autofocus camera, https://www.arducam.com/product/imx519-autofocus-camera-module-for-raspberry-pi-arducam-b0371/ and a raspberry pi 2 for my first project. I ...
0 votes
0 answers
57 views

Controlling Hardware with Object Detection on a Raspberry Pi

I'm working on a project that would utilize a raspberry pi and object detection to control hardware, and I'm not sure what the best way to go about it is. The basic premise is, a raspberry pi with a ...
0 votes
0 answers
378 views

Raspberry Pi camera footage stream slow, missing segments

I'm trying to make a Raspberry Pi 4b (8gb RAM) based, motion sensing remote camera using the basic recipe included in the picamera.py documentation. A client script running on the Pi initializes a ...
0 votes
0 answers
185 views

Sending a stream of images from RPI pi camera to my PC for image recognition (yolov5)

I am using a RPI Pi camera for my image recognition project. For my project, I need to send a stream of images of a library from RPI pi camera to a PC, and perform image recognition on the PC to ...
0 votes
0 answers
668 views

Problem using OpenCV and Raspberry PI camera V2

I had been using the following code for the past two months with no problem whatsoever, however, just yesterday I have been getting errors using the code which I will detail as follows. The code in ...
0 votes
0 answers
32 views

How to create symbolic link for pi-camera module?

I have a RPi4 with a USB camers and pi-camera module but the /dev/video[id] changes on reboot. I want to create a symbolic link for pi camera module and USB camera. But the udev rules: https://...
  • 109
0 votes
3 answers
3k views

How to tell if the Pi Camera is connected?

Simple question, but searching did not return an answer. I have a Pi4 and a Pi Camera. This camera is not USB and does not appear in lsusb output when it is working. # lsusb Bus 002 Device 001: ID ...
  • 292
0 votes
0 answers
64 views

Raspberry Pi camera coding questions

I've been coding a little portable Pi camera using a Raspberry Pi Zero, the HQ camera module, and a WaveShare 1.44-inch screen. I've succeeded in programming a button to take a photo, and a button to ...
  • 119
0 votes
0 answers
87 views

Can I run two python script using the same pi camera in raspberry pi?

I am currently working on a project where I need to have a live stream video and a motion detection that when a motion is detected, records a 10 second video. I have put each functionality in ...
0 votes
0 answers
30 views

Intermittent problem with HQ camera

I am using PiCameraX to gather Bayer level images repeatedly using an HQ Camera. Every so often it fails in the following way, and I'm struggling to see what is wrong. The camera is working fine ...
  • 101
0 votes
1 answer
7k views

Libqtgui4 is not available (Has no installation candidate)

I am trying to run this command: $ sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test python3-pyqt5 But I receive these errors: Package libqtgui4 is not available, but is referred to by another ...
1 vote
1 answer
49 views

I want to take images with a framerate of 30 fps during 30 minutes using thonny (python)

I have the Raspberry pi camera v 2.1 and I want to take photos for 30 minutes at a speed of 30 fps or less, but I want to be able to vary it. So far I have achieved it with "picamera" and ...
1 vote
1 answer
6k views

Camera only working with deprecated legacy option

I have a camera module connected to my Pi 3B+. I have downloaded the very latest raspberry Pi OS (called bullseye) which does not support the old. legacy camera stack. You don't even have to enable ...
  • 123
0 votes
2 answers
2k views

WARN:0 global /tmp/pip-wheel-2c57.../opencv/.../cap_v4l.cpp (890) open VIDEOIO(V4L2:/dev/video0): can't open camera by index

When switching from the legacy camera stack under Raspberry Pi OS with debian 10 to the new libcamera camera stack (in Raspberry Pi OS with debian 11 it is standard), I cannot use OpenCV any longer. ...
  • 351
1 vote
1 answer
147 views

Raspberry Pi HQ camera exposure time jumps at 1 second

I am trying to build a timelapsing program in python, which analyzes the picture and determins the exposure, based on which it corrects it's shutter speed using a polynomial regression. But I got ...
0 votes
0 answers
591 views

How to find out what process is using Raspberry Pi camera?

Some background: Hi. I've recently been experimenting with the Raspberry Pi Camera through node.js and other languages. But, even with none of those scripts running, Pikrellcam (a live security camera ...
0 votes
0 answers
510 views

Raspberry Pi4 Camera supported=0

I have a Raspberry Pi 4 Model B and I am trying to connect the board with Raspberry Pi camera module. I made sure that the camera is connect correctly to the insertion slot. And the camera is enabled ...
0 votes
0 answers
44 views

Why can I not use my picam v2?

pi@raspberrypi:~ $ raspistill -o test.jpg gives me the error below. I am trying to set up the camera with octoprint. mmal: mmal_vc_component_enable: failed to enable component: ENOSPC mmal: camera ...
1 vote
1 answer
944 views

picamera: Incorrect buffer length error when resizing in picamera.capture

I am trying to use picamera to record and save a high resolution video, and capture low resolution images for processing using openCV. import picamera import picamera.array import cv2 import numpy as ...
  • 11
0 votes
0 answers
33 views

Beginner want's to add button function to a night vision PiCamera

I want to add button functions to my night vision PiCamera. I have a custom script that outputs the screen to spilt screen because I want to make night vision goggles with it. ` from picamera import ...
0 votes
1 answer
338 views

Motioneyeos not booting on my Raspberry pi 3B

Stuck at this message “Formatting data partition” while trying to boot MotioneyeOS from a Raspberry pi 3B. I’ve flashed a 32GB microSD with the motioneyeos image file using Etcher. Is the problem with ...
1 vote
1 answer
211 views

What spectrum of light can the NOIR camera detect/read?

Trying to establish what the NOIR camera can detect. We are more interested in the IR range of light that is possible. Specifically, we are using the NOIR in a dark environment (shutting out light) ...
2 votes
0 answers
49 views

HQ Camera: Save as BMP file not working consistently

I've been working on a project using the HQ camera where I want to take a small bitmap image (100x100), do some analysis on the bmp file, and using that information determine whether that exposure ...
  • 21
2 votes
1 answer
150 views

How to expose for longer than 1/3 of a second with PiCamera HQ using picamera?

I've used the script below to make some under/over exposures in low light levels using the PiCamera HQ and the picamera module. In order to get long exposure times I've found that the camera object ...
  • 562
1 vote
1 answer
275 views

Thonny IDE different directory then terminal when running python file [closed]

I have a discord bot python file I am running and editing in Thonny IDE I get an error where it cannot find the specified directory, when I run the code for pi camera: camera.capture('./files/meeka....