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
6 views

Using Camera Module V3 NoIR as Night-vision Camera

I have recently purchased a Rasberry Pi Camera module V3 NoIR wide lens to monitor the night-time activity of my pet. I have tried to capture video using libcamera and Picamera2 in dark(near-pitch ...
shom's user avatar
  • 1
0 votes
0 answers
8 views

OpenCV - PiCamera or cv2.VideoCapture(0)

Quick question, I am starting to work on some Computer Vision programs using my Raspberry Pi 3. I thought when using the PiCamera you needed to use the specific PiCamera commands however I have simply ...
Bill Harvey's user avatar
0 votes
0 answers
32 views

Pi Camera V2 not working

When I type the command "vcgencmd get_camera," I get the following output: supported=0 detected=0, libcamera interfaces=0 And when I type the command "libcamera-still -o test.jpg," ...
Kevin's user avatar
  • 1
1 vote
2 answers
102 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
  • 11
0 votes
2 answers
339 views

Unable to build libcamera-apps

im not able to build libcamera-apps on my system. Hardware: Pi 4 B OS: Debian GNU/Linux 11 (bullseye) I fowllowed all the steps in this Docu: https://www.raspberrypi.com/documentation/computers/...
Schlörn's user avatar
1 vote
0 answers
20 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
72 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
0 votes
1 answer
231 views

Camera Module 3 / PiCamera not working on Ubuntu Raspberry Pi

I have a Raspberry pi 4B with Ubuntu, and I’m trying to use my camera module 3 with python (I’ve tested the code with Raspberry Pi OS, so I know it’s right) using PiCamera and in a virtual environment ...
Flamethrower's user avatar
0 votes
0 answers
88 views

Raspberry Pi Camera v2 not detected for Octopi on Raspberry Pi 3

I've searched all over the internet for a solution to my problem, but it seems like every route comes up short for me. Again, I am using a Raspberry Pi 3 with a Pi Cam v2, and using PuTTy as my SSH. ...
user156889's user avatar
0 votes
1 answer
58 views

Qt error running a simple Python program to check connection between RPi 4B and camera module 3. (see the description)

I wish to deploy this RPi along with the attached camera module to a factory floor and then analyze the video stream. Hence, I have a headless RPi which I plan to use for this purpose. Code: import ...
Skywalker's user avatar
  • 111
0 votes
0 answers
42 views

Raspberry Pi 4B - VLC player - Pir Sensor - Camera

I'm starting to know Python, so you can say I'm a newby. For Halloween I'm working with a Python script for a Scare. The idea is to show a nice picture (a paused video) on a tv screen and when motion ...
Wessie's user avatar
  • 1
0 votes
0 answers
139 views

Rapsberry Pi Camera v3 issues

I want to make a Rpi4 8GB livestream 2 camera feeds over 4G (SIM7600X module). One camera is a generic action cam and the other one is a PiCamera v3, which I have issues with. I'm running Raspbian ...
ch1kbr3_ 2307's user avatar
0 votes
2 answers
1k views

python3-picamera package not found

running rpi4B. I performed update and upgrade. Then I attempted: sudo apt install python3-picamera2. result: cannot find package python3-picamera2. Appreciate any help.
DHH's user avatar
  • 1
0 votes
0 answers
21 views

How can i use picamera module 3 on google collab? i am using raspberry pi 4 b

I tried running it by inserting the camera capture code snippet in collab , but it is not detecting the pi camera
Rishabh's user avatar
0 votes
0 answers
80 views

Freenove Camera not able to interface with Raspberry pi 4 + Ubuntu 20.04 LTS

I am trying to work on a project where I want to use ROS. However, I found that for using ROS Noetic, I will need to install Ubuntu 20.04 on my Raspberry pi 4. Now, I bought a camera module (Freenove ...
Inderjeet's user avatar
0 votes
1 answer
464 views

Picamera2 raw capture limited to 15 FPS

I have a Pi 4 with the High Quality Camera. I'm trying to capture raw frames with Picamera2 using the camera's 2028x1520 2x2 binning mode. I'm using camera.sensor_modes[2], which says it has a maximum ...
LostXOR's user avatar
  • 111
0 votes
1 answer
104 views

How to handle shots with Picamera2?

I'm looking for code to handle shots with Picamera2. I want: Take photo with the camera Show plan on screen for x seconds Save photo as jpeg image. I try the code below but can't find how to adjust ...
Mon Pelaud's user avatar
0 votes
2 answers
781 views

How to stream from Pi Camera to YOLO model?

I am new to Raspberry Pi and I want to do real-time object detection using YOLOv8 tentatively (will change if the fps is too low). I realize that by using the code below, it can't detect Pi Cam as the ...
Eddy Miner's user avatar
0 votes
0 answers
92 views

Raspberry Pi HQ Camera: Capture NEF or DNG?

I'm making a raw capture tool for raspberry pi and the official HQ camera. I can't seem to get RAW DNG or TIFF images, whatever I do. Here's my current code: from picamera import PiCamera print('...
N3RDIUM's user avatar
  • 113
0 votes
0 answers
80 views

Need help with Raspberry Pi camera - mmal error

Hello Raspberry Pi community, I'm reaching out for assistance with a recurring error related to the Raspberry Pi camera module. so it showing this error: ###############################################...
ms pi's user avatar
  • 1
0 votes
0 answers
23 views

Raspberry pi 6mm wide angle lens internal optics order

While playing around with the 6mm HQ camera lens I inadvertenly exposed the internal optics by unscrewing something at the back of the lens. Because I didn't know what I was doing, the optics fell ...
gabriel51's user avatar
0 votes
0 answers
116 views

Libcamera-still got fixed blurry image problem after increasing cma , but Picamera2 still giving blurry image

I'm using this raspberry pi zero 512mb ram. I've successfully connected the arducam 64mp camera and it's capturing 4kx3k resolution fine , after I changed the cma from 265m to 400m the libcamera-still ...
Swarnarup Bhunia's user avatar
0 votes
0 answers
463 views

Raspberry Pi Camera: Picamera2: Cannot configure camera in the middle of a stream

I'm making a remote config PiCamera for astrophotography, using the official Camera Module 3. When the user configures the camera, my application sends a request in JSON format over an HTTP socket. ...
N3RDIUM's user avatar
  • 113
2 votes
1 answer
96 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
1 vote
0 answers
24 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
1 answer
664 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
2 votes
0 answers
289 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
0 votes
0 answers
96 views

How to rotate the picamera feed while using opencv for facial recognition?

I have setup my rpi with the pi camera following the guide on Toms Hardware and everything is working as expected. I am going to be using the smart pi touch case for my project, which only allows the ...
MFF's user avatar
  • 9
1 vote
0 answers
235 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
0 votes
1 answer
131 views

Pi camera video stream to a PC (not through a web page) which has low latence

I need to send a video stream from my pi camera on a Raspberry pi to a computer on the same network. The video transmission should preferably have a low latency and a good image resolution. After the ...
user153543's user avatar
2 votes
0 answers
373 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
1 vote
1 answer
796 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
0 answers
734 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
1k 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
1 answer
40 views

What is the magnification of the stock lens used in Rpicam V2?

I'm trying to get the overall optical magnification of my digital microscope and wondered if the lens built in the Rpicam v2 has any magnification. Does anyone know this specification? Thanks!
Gaell Gelacio's user avatar
0 votes
0 answers
107 views

Error while getting Full-Bayer-Layer data using Libcamera-raw

I'm trying to get full bayer layer data of Pi-Camera V2 (NoIR). I just followed the official doc. libcamera-raw -t 2000 --segment 1 -o test%05d.raw Above command produces .raw files with each size of ...
Garid's user avatar
  • 101
1 vote
2 answers
194 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
0 votes
0 answers
15 views

PiRGB returns array consisting of zeros

I have V2 camera and run the following code. I want to record a laser beam. One particular sequence of settings (that I need) doesn't work, though: self._camera = PiCamera(sensor_mode=2) # ...
LionCereals's user avatar
1 vote
0 answers
405 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
  • 133
1 vote
0 answers
151 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
  • 133
0 votes
0 answers
35 views

How can I modify the color grading (midtone) of the image captured using the RPI camera module?

Is it possible to configure the color grading (adjust the midtone) of the image captured using Raspberry Pi camera module version 1.3 and the Picamera2 library?
rpangs's user avatar
  • 1
1 vote
0 answers
104 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
1 answer
800 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
1 answer
289 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: ...
Jake's user avatar
  • 9
0 votes
0 answers
421 views

unknown control 'rotate'

I have recently purchased a Raspberry Pi Camera Rev 1.3, and I'm trying to rotate it to 90 degrees, then its not able to rotate. Its just rotating it to 0 degrees or 180 degrees below is the command ...
Siddh Mistry's user avatar
1 vote
0 answers
633 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
0 votes
0 answers
44 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 ...
PlayerWet's user avatar
  • 101
0 votes
0 answers
308 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 ...
Florian Ludewig's user avatar
0 votes
0 answers
419 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 ...
Clement S's user avatar
2 votes
0 answers
66 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

1
2 3 4 5