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
0 votes
0 answers
19 views

How send SIGUSR1 from Python to libcamera-still? [closed]

I would like to trigger a set of RasberryPi and cameras to take a set of still images at the same moment for human photogrammetry. I will trigger the Pi's with a physical button press monitored by my ...
0 votes
1 answer
29 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 ...
0 votes
1 answer
23 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: ...
  • 1
0 votes
0 answers
57 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
78 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
31 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
49 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 ...
  • 101
0 votes
0 answers
49 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
27 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
42 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 ...
  • 121
0 votes
1 answer
245 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 ...
  • 1
0 votes
1 answer
58 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 ...
  • 528
0 votes
0 answers
42 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
25 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
29 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
33 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
181 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
94 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
398 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
19 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
880 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 ...
  • 272
0 votes
0 answers
56 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 ...
  • 109
0 votes
0 answers
53 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
24 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
4k 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
43 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
3k 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
0 answers
64 views

Raspberry pi 5mp camera screw size

I know the holes on the pi cam is 2mm in diameter, but I just want to know what's a good size screw to mount the pi cam because I'm afraid I might crack the pi cam board. Is m2 too loose or is m2.5 ...
0 votes
2 answers
1k 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
104 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
412 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
105 views

Wifi/Bluetooth camera with Raspberry pi

I made a drone with Raspberry pi using Wifi module. I have a broken android phone, I want to add it's camera in the drone. How to do it ?
  • 1
0 votes
0 answers
18 views

Ivport-v2 not detecting camera on restart

I followed the guide to setting up ivport-v2 on my RPi and running sudo python2 test_ivport.py fine, if I also run sudo reboot it still works. When I run vcgencmd get_camera I get supported=1 ...
0 votes
0 answers
49 views

Need help overlaying an application window over camera screen

I made a python code where it will launch the pi camera and I can use buttons to record a video for 30 seconds or take pictures. In this python code, I mixed in another python script where I can ...
0 votes
0 answers
426 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
40 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 ...
0 votes
0 answers
643 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 ...
  • 1
0 votes
0 answers
29 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
195 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 ...
0 votes
0 answers
64 views

Stream Video From RPi Camera and Audio From USB Microphone toghether?

I have a system set up where I use a software called Motion that streams video from a Raspberry Pi camera over HTTP on port 8080. I got a USB microphone and am wondering how I can stream video and ...
1 vote
1 answer
130 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
45 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
120 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 ...
  • 528
1 vote
1 answer
165 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....
1 vote
1 answer
85 views

Raspistill takes long time to run

I am trying to get my camera run on my raspberry pi 4. I can get an image, but the raspistill command takes about 6 seconds on average to acquire one image. Is it normal? $ time raspistill -o bar.jpg ...
  • 219
1 vote
0 answers
763 views

Does Raspberry Pi 64-bit (aarch64) OS support Pi Camera module?

Does Debian Buster 64-bit (aarch64) have support for Pi Camera library? I have recently installed a 64-bit Debian Buster OS on my Raspberry Pi 4B, I switched from a 32-bit (armv7l) OS version, because ...
-1 votes
1 answer
1k views

Turn old phone camera into raspberry pi camera

I don't really have the chance to get a raspberry pi camera. But I have tons of old phones and tons of phone cameras. Is there any way I can turn them into a camera that works with raspberry pi ?
-1 votes
1 answer
42 views

PC Board Camera connector [closed]

I'm trying to find a connector like the one that is used on the raspberry pi 3b+ for the pi camera but I don't have a part number and the Raspberry Pi people don't seem to know where I can get one ...
0 votes
1 answer
243 views

How to reduce PiCamera capture time without reducing resolution

I'm currently writing a python script which needs to capture an image. I'm currently using PiCamera.capture() to accomplish this, but it takes too long to capture images. The project requires as high ...
  • 385
-1 votes
1 answer
15 views

camera program gives error when run in /etc/profile but the program runs fine

This is the error I get : picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources import numpy as np import os from picamera import PiCamera from time import sleep from gpiozero ...