Quantcast
Viewing all articles
Browse latest Browse all 4909

Camera board • Difficulty getting a picture from Raspberry Pi High Quality Camera

Hi all. I've connected a 'Raspberry Pi 2018 HQ Camera V1.0' to a Raspberry Pi Model 3B. I need the camera to be a little further from the Raspberry Pi so the connection is as follows.

Camera -> Ribbon Cable -> Raspberry Pi Camera HDMI Cable Extension (UC-392) -> HDMI cable -> Raspberry Pi Camera HDMI Cable Extension (UC-392) -> Ribbon Cable -> Raspberry Pi

I tried running

Code:

rpicam-hello
On the command terminal, and then the following text displays on the terminal.

[0:01:44.938491581] [2040] INFO Camera camera_manager.cpp:325 libcamera v0.3.2+27-7330f29b
[0:01:44.981899717] [2043] WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:01:44.984115342] [2043] INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media4 and ISP device /dev/media1
[0:01:44.984194805] [2043] INFO RPI pipeline_base.cpp:1126 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
Made X/EGL preview window
Mode selection for 2028Image may be NSFW.
Clik here to view.
:1520:
12:P
SRGGB10_CSI2P,1332x990/0 - Score: 3456.22
SRGGB12_CSI2P,2028x1080/0 - Score: 1083.84
SRGGB12_CSI2P,2028x1520/0 - Score: 0
SRGGB12_CSI2P,4056x3040/0 - Score: 887
[0:01:47.627323834] [2040] INFO Camera camera.cpp:1197 configuring streams: (0) 2028x1520-YUV420 (1) 2028x1520-SBGGR12_CSI2P
[0:01:47.627838703] [2043] INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC

This is followed by a window opening up to show the camera feed. This feed is completely black, as shown below.

Image may be NSFW.
Clik here to view.
Image


I even tried running a python script using the Thonny IDE.

Code:

from picamera2 import Picamera2, Previewimport timepicam2 = Picamera2()camera_config = picam2.create_preview_configuration()picam2.configure(camera_config)#.start_preview(Preview.QTGL)picam2.start()time.sleep(2)picam2.capture_file("test.jpg")
I get the same information I listed above, along with a saved image which is completely black. What could be the reason for this?

Statistics: Posted by chamathkv — Thu Oct 31, 2024 4:12 pm



Viewing all articles
Browse latest Browse all 4909

Trending Articles