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
0answers
15 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 ...
2
votes
0answers
42 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
1answer
28 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,...
0
votes
0answers
12 views

Frames from picamera.capture have different length of pixels

I am trying to both stream a video with a websocket and to detect wether something is moving in the camera video. I have finished successfully the websocket part of my project, and right now I want to ...
0
votes
1answer
36 views

Help with Port Forwarding for College Project

Hello Guys im doing a group college project for my final year it involves a CCTV type project using the raspberry pi camera and a website with a php login system to the website, I have a Pan Tilt hat ...
3
votes
1answer
48 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....
2
votes
2answers
21 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.
1
vote
1answer
30 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, ...
2
votes
0answers
91 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}'...
1
vote
0answers
34 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 ...
0
votes
0answers
25 views

Is Raspberry Pi Using the Same Coding and Encoding in Live Video Streaming as in Ubuntu and on other Machines?

Recently, I have been tagged to work with the Raspberry Pi 4, and with the action camera that I have plugged to work with it as a webcam. However, the Live Video that is streamed through Raspberry Pi ...
0
votes
0answers
34 views

OV5647 Camera: 60fps preview has bad quality

I have a camera module from arducam with an OV5647 CMOS CCD sensor on it (NOIR). This camera is connected via CSI interface to a Raspberry Pi 3A+. I would like to have a camera preview with HD (720p) ...
1
vote
0answers
19 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 ...
0
votes
0answers
55 views

picamera.exe.PiCameraIOError: Failed to write 291840 bytes from buffer to output <picamera.stream.BufferIO object at 0x62f70c60>

Using the PiCamera Advanced Recipies in the link I am trying to capture the image to a numpy array. My code basic lines of code are. final_image = np.empty((height , width , 3), dtype=np.uint8) ...
1
vote
0answers
33 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. ...
0
votes
1answer
31 views

Raspberry pi failing to take still

I am developing my remote camera robot with flask on raspberry pi zero w. Where is mjpg-streamer used for video stream and picamera python lib used to take high resolution stills. And I having very ...
2
votes
1answer
54 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 ...
0
votes
0answers
54 views

Raspberry Pi Camera V2 resolution reduced

I am testing my Raspi Cam V2 on raspi model 4B running buster, I was able to get 1080p videos at 30fps and it supported the below formats $ ffmpeg -f v4l2 -list_formats all -i /dev/video0 [...
1
vote
0answers
165 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 ...
0
votes
1answer
23 views

Getting empty images from picamera module but not raspistill

I wrote a python script to interface with the camera module (I have camera version 2.1). At first I tried with picamera, which has worked in the past. According to pip I have version 1.13 installed. ...
0
votes
0answers
39 views

Low Framerate in video recording using picamera

I am trying to record HD video using Picamera and writing it using OpenCV. But I am unable to get the desired frame rate (10 fps). I recorded the video of 1 minute but the video that was saved was ...
0
votes
0answers
51 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, ...
0
votes
0answers
28 views

How to record and save an ongoing stream from picamera?

I am currently doing this project of streaming a live video into a localhost and then capturing an image after button click using a picamera. Here is my code: For streaming: import io import ...
1
vote
0answers
138 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 ...
0
votes
0answers
20 views

My Rpi can't connect again using Putty and VNC

I'm totally noobie in this area. I'm learning to use my RPi 3 model B. So at first I used it with my PC using tutorials in the web through Putty (SSH) and VNC viewer and everything worked fine. Then I ...
0
votes
0answers
37 views

Awful Color Saturation in Datlight using pi-camera

I decided to finally post this after no avail and several videos that are unusable. I made a python script to record and convert video from a raspberry pi running in the nosecone of my rocket. However ...
1
vote
0answers
75 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 (...
0
votes
0answers
26 views

Pi Camera v2 Capture Photo without warm-up

I want to a project that capture some photos at a time. After taking photos i will send theese pictures to a windows platform to encoding. I saw so many examples about taking photos but i every code ...
0
votes
0answers
15 views

I have a problem with a camera from a robot using a raspberry

Recently I started a project (for school) and it's a recon robot and it has 2 cameras, one on a robotic arm and the other on the top of the body. My problem is, I want the top camera to spin freely ...
0
votes
0answers
20 views

Capture snapshots from network stream

I am using the "Recording to a network stream" recipe to (https://picamera.readthedocs.io/en/release-1.13/recipes1.html#recording-to-a-network-stream) stream video from raspberry pi. I have modified ...
1
vote
1answer
42 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() ...
0
votes
3answers
141 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 ...
0
votes
0answers
86 views

How can I release all camera instances of a RPi in Python?

I'm trying to make a camera application with my Raspberry Pi that should launch on RPi startup. The program itself works fine. My problem is I'm getting the error picamera.exc.PiCameraMMALError: ...
1
vote
0answers
35 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 ...
2
votes
1answer
471 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 ...
0
votes
0answers
334 views

Incorrect buffer length error

I'm trying to do an object detection script and save the results into a csv with tensorflow and opencv. camera = PiCamera() camera.resolution = (IM_WIDTH,IM_HEIGHT) camera.framerate = 10 ...
2
votes
1answer
385 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\...
1
vote
0answers
163 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 ...
0
votes
0answers
116 views

iPhone camera module connection type

I am trying to see if there is any possible way to adapt these salvaged iPhone camera modules to be usuable on any Raspberry pi computer? If anyone is familiar with these and has had any success with ...
1
vote
1answer
26 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
0answers
105 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 ...
3
votes
1answer
227 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 ...
0
votes
2answers
312 views

Ending a camera video stream in Python / threading

I’m very new to Python and have been struggling with the code for a wildlife camera project on the Pi. I’ve managed to get the PIR sensor and automatic camera capture working, but I’d like to have a ...
0
votes
0answers
23 views

NoIR camera - Photo and and video frame size looks different

I'm trying to create a feature matching script using NoIR camera. What I'm doing is take a picture using and compare it with the real time video feed. Everything works fine but the the live video ...
1
vote
0answers
24 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://imgur.com/a/QK5VL22 ...
0
votes
0answers
15 views

Split video using picamera and gps

I'm using a picamera to record video when the gps signal read a speed of 0 km/h, so every recording has a different length that i can't know in advance. How can i split the videos every 30 seconds?
0
votes
0answers
223 views

picamera web streaming and image capture

I am a total python novice so please bear with me... I have combined a couple of the picamera advanced recipes to try and web-stream and take pictures simultaneously. everything works correctly, ...
1
vote
0answers
70 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 ...
1
vote
1answer
42 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 ...
0
votes
0answers
65 views

Binding PiCamera stream to GstWidget

Well, today I began to program in Python and I'm doing a graphical app with PyGtk in Anjuta. My first objective is to get the stream of the PiCamera in a window. But I'm getting problems to manage the ...