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
4
votes
1answer
437 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 ...
4
votes
1answer
498 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 ...
3
votes
1answer
27 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 ...
3
votes
1answer
534 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 ...
3
votes
1answer
124 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 ...
3
votes
1answer
100 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....
3
votes
1answer
106 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 ...
2
votes
3answers
82 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 ...
2
votes
1answer
1k 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\...
2
votes
1answer
87 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 ...
2
votes
2answers
3k 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 ?
2
votes
1answer
383 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 ...
2
votes
1answer
41 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 -...
2
votes
1answer
80 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 ...
2
votes
1answer
696 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,...
2
votes
3answers
289 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.
2
votes
1answer
931 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 ...
2
votes
2answers
5k 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....
2
votes
0answers
55 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 ...
2
votes
0answers
358 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}'...
2
votes
0answers
81 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 ...
1
vote
3answers
286 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 ...
1
vote
1answer
27 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 ...
1
vote
3answers
276 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 ...
1
vote
1answer
62 views

Taking pictures while streaming with motion

my Raspi uses the original raspicam and motion to stream security footage to my nas. This works great so far. I now want to additionally take a picture every 1 hour and save it somewhere. Obviously I ...
1
vote
1answer
69 views

Video Distortion using PiCamera 2.0, but raspistill is fine

I'm new to using the Picamera, but I cannot play a video without distortion. The top of the image and any activity is redish/pink in color. I can take a picture with no problem. I'm using VLC to view, ...
1
vote
1answer
85 views

Need troubleshoot fix my Raspberri Pi camera

So my MotionEye setup works fine, but after like 24 hours everyday, when I go connect the IP address it won't connect for some reason... And I can see that the Raspberry Pi3 and the Camera is working, ...
1
vote
1answer
61 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() ...
1
vote
1answer
102 views

Turning off auto settings in picamera to remove persistent white spot in photos

I'm using the Arducam 5 Megapixel camera (meant for Raspberry Pi) because it has the capability for changing the lenses, and using the picamera module to run it (in Python 3). I'm taking pictures that ...
1
vote
1answer
56 views

Avconv streaming to URL - need help

I'm trying to learn as I go but haven't managed to come up with the answer to my issue here. I'm trying to stream to a URL using the 'pi-camera-connect' package and the 'avconv' package. The video on ...
1
vote
1answer
122 views

How to trigger a capture using Picamera when a particular event occurs (for eg, whenever a specific object appears in front of the camera)

I want to trigger an image capture every time a tyre of a set of moving vehicles appears just in front of the picamera. Is there any way to get this done automatically every time a tyre appears in ...
1
vote
1answer
269 views

Send camera video via 3.5mm TV output to video transmitter (5.8GHz)

I have got a Raspberry pi 3 b+, a simple camera connected to it, and a pair of video transmitter and receiver. What I want to do is to send the video signal (the video recorded by the camera) to the 3....
1
vote
1answer
57 views

Altitude will only work one time then spits 25000m? Camera also pausing every second

I'm working on a code for a High Altitude Weather Balloon and I wanted the camera to start recording after a certain Altitude. The first output of information is correct but then it spits out wrong ...
1
vote
1answer
65 views

Should motion detection use images or still frames?

Some Context For a project I'm working on, I'm creating a security camera that detects motion. When the camera has detected motion, it checks again to see if that motion was caused by a human. This ...
1
vote
1answer
368 views

raspistill timelapse stops producing output

So I'm trying to run a timelapse for 24-36 (or until storage space is full) but raspistill seems to stop producing output after anywhere from 50-300 stills. raspistill -t 129600000 -tl 5000 -o tlapse%...
1
vote
1answer
588 views

Scanning a QR code using a raspberry pi zero or a Pi3 via a command line script

I need to scan a QR code via the command line when a script is run. My current setup is an epaper display with integrated 4 buttons. So far I have each button programmed to run a script to change ...
1
vote
1answer
111 views

A way to connect M RaspiCams to N raspberry Pi Compute modules, where M>>N?

I am planning to set up camera rig, which will require 10+ cameras (preferred 20+ or "as many as possible" in spatial arrangement around the observed area. The setup will be academic, experimental, ...
1
vote
1answer
482 views

Octo print with Pi Cam works fine, added webcam but can't find the Pi cam any more

I've been using my raspberry pi cam module wonderfully for a while and it's attached to the corner of my print bed so I can monitor the first few layers and general build. I want to add a webcam to do ...
1
vote
1answer
1k views

Picamera capture to array is slow

In python module picamera, does anyone noticed that camera.capture(array, 'rgb') is quite slow?? If you try to measure this time is about 540ms... example code (the "real code" is irrelevant): from ...
1
vote
0answers
24 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 =...
1
vote
0answers
22 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 ...
1
vote
0answers
316 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, ...
1
vote
0answers
81 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. ...
1
vote
0answers
60 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 ...
1
vote
0answers
144 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 ...
1
vote
0answers
23 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 ...
1
vote
0answers
44 views

Pi 4 video recording/encoding/writing super laggy after few seconds?

I've got the 4GB ver of the Pi 4. Trying to using it with Motion-Project and a NoIR Camera Module V2. Problem is the moment recording starts, it's fine for about 1-3 seconds, then becomes super laggy. ...
1
vote
0answers
334 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 ...
1
vote
0answers
337 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 ...
1
vote
0answers
207 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 (...