Skip to main content

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.

123 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
145 views

Recording raw RGB video format using picamera2

I am trying to record raw RGB video format using picamera2 and Raspberry Pi-4b, for the sake of imagining in the context of biological research. Basically, trying to avoid any compression, etc. during ...
Amir_k's user avatar
  • 21
2 votes
3 answers
4k views

Pi camera issue

I'm using raspi 3b and I'm not getting the camera option in the preferences menu, I have tried updating the os also.
ppm's user avatar
  • 21
2 votes
0 answers
512 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
590 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
80 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
74 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
282 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
486 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
252 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
170 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
2 votes
0 answers
430 views

PiCamera python : buff/cache memory keeps increasing

I need to take a picture in each second in an infinite loop. I've wrote 2 different python scripts: one with camera.capture() and another with camera.capture_continuous() In both cases, I see the ...
jsec83's user avatar
  • 21
1 vote
0 answers
109 views

Using a camera and getting a big block of errors I don't understand

So far I've just been following tutorials to set up the camera to do more complex things later, but I always get this block of errors (below). I've tried googling the errors and haven't found anything ...
Derian Magness's user avatar
1 vote
0 answers
37 views

Solution to Picam(s) poor auto exposure with Motion?

i've got pi-cams: v1, v1 IR, v2 NoIR, v2 IMX219-D160 wide, and none of them can dynamically adjust it's auto-exposure/brightness by itself, when used as CCTV by Motion. they somewhat try but outputs ...
secretAgent's user avatar
1 vote
1 answer
418 views

PiCamera2 images with boxes and labels overlay with vis_util

I'm trying to get integrate tensorflow and picamera2 to do some basic object detection. The logic works out fine (I think), but I'm struggling to draw the boxes/labels deduced on top of the image. ...
MergeMonster's user avatar
1 vote
0 answers
30 views

Download the streaming video in server

In order to stream video over the LAN, I used a Raspberry Pi Zero W. I used this MJPEG server code to stream the video over the LAN. [mpjpeg streaming program] 1 Currently, I want to download and save ...
Sureshkumar's user avatar
1 vote
0 answers
410 views

Picamera2.stop() Behavior - do controls persist?

With Pycamera2 you can set controls e.g. autofocus. There doesn't seem to be a get_controls() function to verify what is set. Do the controls perist after using Picamera2.stop()?
user947737's user avatar
1 vote
0 answers
910 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, ...
Nathan Montanez's user avatar
1 vote
2 answers
2k 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 ...
user20659597's user avatar
1 vote
0 answers
575 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 ...
44 chuang's user avatar
  • 143
1 vote
0 answers
177 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 ...
44 chuang's user avatar
  • 143
1 vote
0 answers
149 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 ...
Dana's user avatar
  • 119
1 vote
0 answers
747 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 ...
Bach Tran's user avatar
1 vote
0 answers
1k 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 ...
Atharva Naik's user avatar
1 vote
0 answers
1k 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 ...
abdullah zakhilwal's user avatar
1 vote
0 answers
211 views

Picamera on Ubuntu 18.04 64-bit

Is there any way to get picamera to work on Ubuntu 18.04 64-bit. I have tried: Compiling a non-official version of userland for 64-bit and it compiled, but the camera does not work I have tried using ...
Klemen's user avatar
  • 11
1 vote
0 answers
19 views

Picamera image variation: What parameter should I adjust?

I am capturing images using the picamera v2 noir and avering the pixel values to see what variation of intensities I have during the video. The problem is that, even when the image is still and I am ...
Raquel Alves's user avatar
1 vote
0 answers
257 views

How can I speed up capturing stills with camera module v2 and picamera?

Using some very simple code with no bells and whistles I capture shots of a specimen in between rotations of a motor camera = PiCamera(sensor_mode=2) camera.exposure_mode = 'sports' camera.resolution =...
Alexander Soare's user avatar
1 vote
0 answers
618 views

HQ camera locks when using python library

The new HQ camera module is amazing and works really well using raspistill for long exposures. Using the picamera python library the camera locks with exposures above 10s (the maximum for the V2 ...
Zemogle's user avatar
  • 111
1 vote
0 answers
30 views

Data logger with SenseHat and timelapse Pi Camera code not running

I am trying to use a SenseHat and Pi camera to do some data logging. What I want my program to do is when run, it should collect sensor data and take a photo every 10 seconds. The issue that happens ...
miketheman's user avatar
1 vote
0 answers
765 views

ERROR on oled + 0.96 display: different mode has already been set!

I made two programs separately, but when I tried to put them toguether, the following issue came up: Traceback (most recent call last): File "/home/pi/CalculadoraDefinitiva/botaoLed.py", line 159, ...
John Maine's user avatar
1 vote
0 answers
155 views

Does the camera automatic settings use CPU or GPU

I have simple questions: I am using a program (pikrellcam) that has a number of automatic cameras settings, e.g. white balance, exposure, etc; and I am wondering if this puts a strain on the CPU or ...
Carl-Fredrik von Essen's user avatar
1 vote
0 answers
383 views

Why does native resolution capture with picamera raise 'Incorrect Buffer Length' for Arducam 8MP with IMX219 sensor?

I am trying to capture() full resolution images using picamera.array but it fails raising a PiCameraValueError: Incorrect buffer length for resolution 3280x2464. camera.MAX_RESOLUTION gives ...
Matthias Arras's user avatar
1 vote
0 answers
59 views

How to lock the gain in picamera.campture_sequence command?

I am using picamera library in python to capture a sequence of pictures. The picamera is connected to a microscope and the microscope moves to different vertical positions and picamera capture images ...
RAS's user avatar
  • 169
1 vote
0 answers
834 views

Keep losing connection while streaming video from Raspberry Pi Zero W camera using Motion or Picamera Python

I have set up my new Raspberry Pi Zero WH with the new Raspbian Buster (recommmended software), avaiable on raspberrypi.org. I have tried the following to real-time stream video over WiFi using SSH ...
O Connor's user avatar
  • 107
1 vote
0 answers
677 views

picamera incorrect buffer length

I am currently using a pi camera module to stream video using flask and at some point, it randomly crashes. I found a similar question over here and they say that clearing the stream helped them sort ...
Terchila Marian's user avatar
1 vote
0 answers
374 views

Raspberry camera v1.2 results in kernel panic

Update I have found the following issues that might relate to this problem: Framerates below 1 are not supported (https://github.com/raspberrypi/userland/issues/575) Frequent sequential call hang (...
ForceMagic's user avatar
1 vote
0 answers
172 views

Schedule Video Recording

The code below records video for 24 hours straight which is too much. I wanna schedule the record like from 9.00am to 3.00pm only 6 hours of video. Being a novice and newbie I don't really know how to ...
Jason Steve's user avatar
1 vote
0 answers
644 views

pi camera V2.1 digital zoom

The Rpi camera V2.1 is 8-megapixel that mean it's maximum resolution is 3266 x 2450. I would like to record a video in 720P resolution using this camera. My question is.. maximum how much I can do ...
Prayuktibid's user avatar
1 vote
0 answers
248 views

How to read rPi camera hardware information that which type of camera sensor( imx219 or OV5647) is being used in camera module?

I want to read the camera hardware spec to ensure which type of camera sensor (like imx219 or OV5647 etc) is being used in the rPi camera module for camera module v1 and v2. Is there any method to ...
Prayuktibid's user avatar
1 vote
0 answers
74 views

RPi Camera starts going white

I bought a RPi Camera V2 from amazon yesterday and when I tested it today it started going white and then flashing colors like a disco party (rave starts 8 seconds in): https://i.sstatic.net/oHN10....
Lord Heffe's user avatar
1 vote
0 answers
293 views

Pi freezes when running a script

I'm trying to set up a trap camera using a brand new Pi Zero W with Raspbian Buster but it freezes when I run the python scirpt. originally the code was a bit complicated with multithreading, email ...
Miky's user avatar
  • 163
1 vote
0 answers
171 views

picamera error the second time I run camera.capture(output,'yuv')

I'm getting an error the second time I run camera.capture(output,'yuv'), what am I doing wrong? my code: from time import sleep from picamera import PiCamera from picamera.array import PiYUVArray ...
Miky's user avatar
  • 163
1 vote
0 answers
29 views

Is raspberry able to retrieve/store some n time prior a trigger with multiple cameras?

I came across a project idea which I think would demand a lot from a raspberry pi and arduino hardware capabilities. From my understanding, a master raspberry could be used to trigger n slaves through ...
J. Bringas's user avatar
1 vote
0 answers
346 views

PiCamera vs VideoCapture

So I have a project that requires Computer Vision (video stream). But when I want to try my Pi Camera (not USB), there's two method that I can use. They are PiCamera.capture_continuous and cv2....
Smankusors's user avatar
1 vote
0 answers
490 views

How do I access pixel values from a raspberry pi camera?

I am writing an AI program in Python on a raspberry pi, where I need to access raw individual pixel values from a raspberry pi camera. I really don't want to save the picture, I want to process the ...
E. G. F.'s user avatar
1 vote
1 answer
150 views

Can you use the PiCamera library with a camera that is isn’t the PiCamera like the picture?

!camera that I want to use(https://i.sstatic.net/GUJ2q.jpg) I’m having some issues getting this camera to work, getting told that I need to check the SUNNY chip that as far as I know is only on the ...
Sam Stephens's user avatar
1 vote
0 answers
47 views

How do you transmit image data and input data from Pi to PC?

I am currently working on a university Raspberry Pi RC Car Project that deals with image collection along with key user input data. What i cannot seem to understand from various tutorials online is to ...
Zahid Ahmed's user avatar
1 vote
0 answers
57 views

Raspberry Pi Camera live output presentation

I am trying to setup a Raspberry Pi with Raspberry Pi Camera to output to the image local HDMI monitor. I can get that with raspivid -t 0. However what I want to do is format that live video image to ...
Craig's user avatar
  • 11
1 vote
0 answers
735 views

Explain how to correctly warmup the camera

I get that we need to let the camera warming up to set AWB and other automatic stuffs, but, how and when ? I see people using time.sleep(1) or time.sleep(2), and regarding to discussions, this seems ...
Motiss's user avatar
  • 11