Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5091

Camera board • Camera is not able to click the images

$
0
0
I am currently running the python script on Raspberry Pi 4 Model B Rev 1.2 and i have enabled the camera legacy in raspi configuration
and the python script is:

from time import sleep
from datetime import datetime
import subprocess


dir = "define the folder path"

while True:
fileName = "img_" + datetime.now().strftime("%d/%m/%Y, %H:%M:%S")


# Capture image
cmd = "libcamera-jpeg -t 1000 --shutter 2000 --gain 8 --width 3280 --height 2464 --output=" + dir + fileName + ".jpg" #here i have changed the time from 100 milliseconds to 50 milliseconds
subprocess.call(cmd, shell=True)

sleep(5)

It gives me this error when i run this command. I have tried changing the configuration manually by setting camera_auto_detect=0, dt_overlay=imx219 but it doesn't work


libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[1:03:58.645404322] [3422] INFO Camera camera_manager.cpp:293 libcamera v0.0.1+21-7c855784
[1:03:58.685747581] [3435] WARN RPI raspberrypi.cpp:1297 Mismatch between Unicam and CamHelper for embedded data usage!
[1:03:58.686932470] [3435] INFO RPI raspberrypi.cpp:1414 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media1 and ISP device /dev/media3
[1:03:58.687676488] [3422] INFO Camera camera.cpp:1026 configuring streams: (0) 1640x1232-YUV420
[1:03:58.688116118] [3435] INFO RPI raspberrypi.cpp:800 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected unicam format: 1640x1232-pBAA
[1:03:59.040533729] [3422] INFO Camera camera.cpp:1026 configuring streams: (0) 3280x2464-YUV420 (1) 3280x2464-SBGGR10_CSI2P
[1:03:59.042896988] [3435] INFO RPI raspberrypi.cpp:800 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 3280x2464-SBGGR10_1X10 - Selected unicam format: 3280x2464-pBAA
[1:03:59.070139007] [3435] ERROR V4L2 v4l2_videodevice.cpp:1241 /dev/video0[13:cap]: Unable to request 1 buffers: Cannot allocate memory
ERROR: *** failed to allocate capture buffers ***
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[1:04:04.624724948] [3442] INFO Camera camera_manager.cpp:293 libcamera v0.0.1+21-7c855784
[1:04:04.670549133] [3455] WARN RPI raspberrypi.cpp:1297 Mismatch between Unicam and CamHelper for embedded data usage!
[1:04:04.671757744] [3455] INFO RPI raspberrypi.cpp:1414 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media1 and ISP device /dev/media3
[1:04:04.672612763] [3442] INFO Camera camera.cpp:1026 configuring streams: (0) 1640x1232-YUV420
[1:04:04.673136337] [3455] INFO RPI raspberrypi.cpp:800 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected unicam format: 1640x1232-pBAA
[1:04:05.026492299] [3442] INFO Camera camera.cpp:1026 configuring streams: (0) 3280x2464-YUV420 (1) 3280x2464-SBGGR10_CSI2P
[1:04:05.027324373] [3455] INFO RPI raspberrypi.cpp:800 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 3280x2464-SBGGR10_1X10 - Selected unicam format: 3280x2464-pBAA
[1:04:05.048483133] [3455] ERROR V4L2 v4l2_videodevice.cpp:1241 /dev/video0[13:cap]: Unable to request 1 buffers: Cannot allocate memory
ERROR: *** failed to allocate capture buffers ***

could someone please help?

Statistics: Posted by learner1234 — Sun Mar 03, 2024 2:20 pm



Viewing all articles
Browse latest Browse all 5091

Trending Articles