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
5 votes
1 answer
12k views

picamera and Ubuntu 20.04 arm64?

Does picamera work on Ubuntu 20.04 arm64? I am on pi4 4gb. Added start_x=1 to /boot/firmware/usercfg.txt and rebooted. Checked for updates. pip3 install picamera - ok. When import picamera is ...
lead-free's user avatar
5 votes
2 answers
966 views

Camera access in docker container is generating errors / locking

I am trying to build some machine vision software inside docker containers, it has worked previously, but now both devices are not able to access the camera. It seems to be a configuration/update ...
Niels Jakob Buch's user avatar
4 votes
1 answer
1k views

How to directly render pi camera output to display using C++

Right now, I'm building an application and one of the sub goals is to display the camera to the screen with a good resolution and frame rate. I'm also trying to keep the cpu usage as low as possible ...
Zium's user avatar
  • 61
4 votes
1 answer
1k views

Fast pictures with PiCam and Java

I was already searching through forums and this stack exchange but I couldn't find anything that helps. So here is my problem. I have written a program in Java that analyzes pictures and outputs ...
Clex's user avatar
  • 43
3 votes
1 answer
266 views

Speckle noise from Raspberry Pi NoIR camera V2

I'm getting unusual amounts of speckle noise from my RPI camera. Note the black speckles on the image: and see a 2 second video showing the same noise here. The camera is connected with a 2 meters ...
12.yakir's user avatar
  • 133
3 votes
1 answer
5k views

How do I stream video from raspberry pi cam to my android phone app in order to access it from anywhere?

I'm a little bit new to the raspberry pi. Currently, I have a raspberry pi camera recording live video. I want to transfer this stream to an android app I developed. I really don't know where to start,...
Ajay's user avatar
  • 51
3 votes
1 answer
2k views

USB Camera vs Pi Camera

I'm using USB camera for object detection. I can't find code for them because the common blogs or articles are about object detection using pi camera only. Is object detection possible with a USB ...
Arren Bul-an's user avatar
3 votes
1 answer
825 views

Wide angle lens for Raspberry Pi v2 camera

I am looking for adding a wide angle lens to the Raspberry Pi v2 camera. Googling helped me locate a 3D printed lens holder and lens that I can attach to the v2 camera. Now I have the M12 lens and the ...
55597's user avatar
  • 235
3 votes
1 answer
13k 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 ...
Kokodoko's user avatar
  • 151
3 votes
1 answer
1k views

Knocked off an SMD from Raspberry Pi Camera Rev 1.3, but camera still works. Is the SMD needed for continued operation?

I accidentally knocked off and lost an SMD labelled "C9" from the Raspberry Pi Camera. The Camera still works, and I am unable to spot any differences. What is the role of the capacitor, and ...
Aayush Panda's user avatar
3 votes
1 answer
213 views

PiCamera Video Corruption

I'm trying to save video from my picam and it ends up like this: import picamera # set up camera camera = picamera.PiCamera(); camera.resolution = (640, 480); camera.framerate = 24; # record camera....
Ian Chu's user avatar
  • 151
3 votes
3 answers
13k views

Opencv VideoCapture much faster than PiCamera

I am trying to process frames from my V2 RPI Camera at high framerates and am stuck with the picamera module. The VideoCapture class from OpenCV seems to be much faster than using PiCamera....
Camill Trüeb's user avatar
3 votes
1 answer
198 views

Accessing GPU memory content

I'm currently working with advanced picamera parameters. A new functionnality to come is the "lens shading correction", a RGGB array that modify the image generated by the camera in order to ...
Technico.top's user avatar
  • 1,406
2 votes
2 answers
13k views

Shutter speed and exposure time of picamera

Is it possible to control the exposure time and shutter speed of raspberry pi camera. If yes, how ?
user211628's user avatar
2 votes
4 answers
5k views

Pi Camera (F) disable Night Vision on Day and use as normal camera

I have a Raspberry Pi Camera (F), Supports Night Vision, Adjustable-Focus and I wanted to use that to make a timelapse of some plants in python. python code for taking a snapshot: camera = PiCamera(...
Jack O'Neill's user avatar
2 votes
3 answers
706 views

Is there a jpg viewer for a pi zero w running buster lite

My pi camera is attached to a pi zero w running buster. The pi zero normally runs headless. But while I'm developing my code, I've got a keyboard and monitor attached. Is there a way to preview jpg ...
MACE's user avatar
  • 311
2 votes
1 answer
183 views

Non Native Raspberry Pi Camera

I am trying to set up this camera to my raspberry pi 4. The fact about this camera is that, according to the seller it's different than the normal v2 cameras that we typically install on raspberry pi ...
RAS's user avatar
  • 169
2 votes
1 answer
2k views

Getting errors in pip install picamera

Running setup.py clean for picamera Failed to build picamera Installing collected packages: picamera Running setup.py install for picamera ... error ERROR: Complete output from command 'C:\a\...
Konduru Srikanth's user avatar
2 votes
1 answer
1k views

Why can't I access camera through my remote desktop?

I am currently running ubuntu 18.04 and I have a picamera connected to my rpi. When I use the main display and connect the rpi to my screen via HDMI, I can access the camera using the opencv library ...
JKEL's user avatar
  • 21
2 votes
1 answer
574 views

Picamera: set shutter_speed with RAW acquisition

I'm using a RPi zero W with a camera V2 to acquire RAW images (I used this). However, I would like to set the shutter speed; I used this to do that, but that doesn't work: import time import picamera ...
Eggman's user avatar
  • 45
2 votes
1 answer
216 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 ...
uhoh's user avatar
  • 562
2 votes
1 answer
88 views

PiCamera stream differences

I'm trying to create a h264 stream from my Pi 3 and display it on an Android application. After several attempts I found quite a simple solution: raspivid -n -ih -t 0 -w 640 -h 480 -fps 25 -b 2000000 -...
weirdgyn's user avatar
  • 122
2 votes
1 answer
436 views

where can I get the driver of imx219

I'm building kernel(xilinx) and rootfs(debain10) for Avnet96v2 board which has connetted a imx219 via mipi adapter, where can I get newest official driver for the camera, if it is existing. By the ...
coolicelee's user avatar
2 votes
3 answers
1k views

How to stream RaspiCam video on webpage on Django server running on other PC?

Hey I wanted to stream rpi cam live footage to a webpage hosted on django server running onther Pc.Any suggestions on how to do it.Thanks.
Atharva Patil's user avatar
2 votes
1 answer
94 views

Camera flash with Picamera2

Is it possible to have Picamera2 trigger a flash when taking a picture? In an older version of my project I used a v2 camera module. I got flash working by creating a device overlay to define the ...
Tom Harrington's user avatar
2 votes
0 answers
282 views

What is ~delay after picamera2.capture_file code until sensor data is captured on Pi Camera Module 3?

I am using Python picamera2 to capture a max res still image from a new Pi Camera Module 3. I create a picamera2 instance (I'll call picam2), configure it ahead (including manual fixed focus) and ...
Tree Sesame's user avatar
2 votes
0 answers
371 views

RPi Camera V2 not detected with Raspberry Pi4 running Ubuntu 20.05 LTS

I am running into a problem in which I am unable to have my Pi detect my new RPi Camera V2. I am running on Ubuntu 20.04 LTS (focal) since I am working on a robotics project that requires ROS2(foxy). ...
boogie_muffins's user avatar
2 votes
0 answers
65 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 ...
PMM's user avatar
  • 131
2 votes
0 answers
67 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 ...
sfraser's user avatar
  • 21
2 votes
0 answers
248 views

Rpi Camera in ubuntu server 20.04 raspistill working, but python picamera and c++ raspicam not

I have been able to get the rpi camera v2 working on ubuntu server 20.04 (64bit) by using raspistill. However I am having trouble getting it to work with the python package picamera and the c++ ...
Bart van Ingen's user avatar
2 votes
0 answers
431 views

Raspberry Pi stops running cron job after a few hours

My raspberry pi 4 is set to run a python script every hour that turns on some philips hue lights and takes a picture with the camera module. It worked perfectly for 26 days, then it stopped running. ...
John's user avatar
  • 21
2 votes
0 answers
223 views

Sending an image from Pi Camera continuously to a display

I want to send 6 images per minute from the Pi Camera continuously to any display. Like for say I have the camera that is at my house but I want to send the images to my work computer. The end goal ...
kassidylynnk's user avatar
2 votes
0 answers
1k views

picamera: capture a frame while continuous capture in background

I'm capturing a timelapse with the picamera module for python: def capture_thread_task(self): filename = os.path.join(self.SAVEPATH, self.safe_camname + '_{timestamp:%Y%m%d-%H%M%S}-{counter:03d}'...
Gui13's user avatar
  • 103
2 votes
0 answers
165 views

PICamera white balance difference between preview and capture

Below is a screen shot of the preview and the captured image of the same scene taken from a single PICamera at the same time. As you can see the one on the left (the capture) is noticeably bluer than ...
bashBedlam's user avatar
1 vote
3 answers
15k 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 ...
Criggie's user avatar
  • 312
1 vote
3 answers
4k views

Powering Raspberry Pi 3 with 5v/3A Buck converter

I am using Raspberry Pi 3 with Raspbian OS. I will be powering my Pi 3 board from a output of 24V battery. So I will be using a 5V/3A buck converter. I will be connecting my GPS, Pi camera and 4G ...
Thoht's user avatar
  • 356
1 vote
3 answers
550 views

Help need with python script for PiCamera

I am working with the Raspberry Pi camera and need some help regarding the python script. I need to capture a set of 5 images continuously every 5 minutes interval until I want it to stop. This set of ...
Bemche's user avatar
  • 19
1 vote
1 answer
652 views

Raspberry pi camera module 3 works only on libcamera

I recently bought a Raspberry Pi 3b+ and Camera module v3. After days of troubleshooting, I got the camera to spit out images on the libcamera CLI. But, I can't create a picamera.PiCamera object in ...
N3RDIUM's user avatar
  • 113
1 vote
1 answer
2k 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 ...
Boooke's user avatar
  • 11
1 vote
1 answer
202 views

How can I specify the format of a picture as a MIME-type?

I use a simple code that saves pictures from the picamera as a jpeg. But i want to save the pictures as a MIME-type, which should be possible according to the API, specifically as a .tiff-format. Can ...
Vani's user avatar
  • 11
1 vote
1 answer
237 views

How to run piCamera script in rc local?

I have created a simple python script for the pi camera which works when run as is. the file is located in ~/Destop/python cameratest.py import picamera import time camera = picamera.Picamera() ...
CLopes1987's user avatar
1 vote
3 answers
350 views

Making a IoT Motion Sensor w/ Security Camera

I'm trying to find the easiest and most efficient way to create one. I have the below already, is there anything else that I would need? Where can I find some code for me to copy. I don't necessarily ...
LtMuffin's user avatar
  • 211
1 vote
1 answer
792 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 (...
Habil Hadi's user avatar
1 vote
2 answers
192 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 ...
roconnor's user avatar
1 vote
1 answer
796 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 ...
Tree Sesame's user avatar
1 vote
2 answers
459 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 ...
uhoh's user avatar
  • 562
1 vote
1 answer
11k 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 ...
Youssef Hani's user avatar
1 vote
1 answer
77 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 ...
Erika Saenz de Santa Maria's user avatar
1 vote
1 answer
1k 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 ...
Joseph's user avatar
  • 11
1 vote
1 answer
620 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 ...
Lezly Cross's user avatar

1
2 3 4 5