HQ Camera Raw Sensor Format with Picamera2 not working for 1332x990 #1268
waikeat2397
started this conversation in
General
Replies: 1 comment
-
The safest thing is to specify exactly the size and bit depth of the camera mode that you want. So maybe like this:
(If you don't specify everything, it may default to preferring a higher bit depth.) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
am playing with HQ Camera sensor formats. By referring to below snippets, we can know that HQ camera support 4 raw sensor mode.
picam2.sensor_modes
[13:37:46.911021383] [39] WARN V4L2 v4l2_pixelformat.cpp:346 Unsupported V4L2 pixel format RPBP [13:37:46.911651514] [39] INFO Camera camera.cpp:1205 configuring streams: (0) 640x480-XBGR8888 (1) 1332x990-BGGR_PISP_COMP1 [13:37:46.911866663] [45] INFO RPI pisp.cpp:1483 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/imx477@1a - Selected sensor format: 1332x990-SBGGR10_1X10 - Selected CFE format: 1332x990-PC1B [13:37:46.916501136] [39] WARN V4L2 v4l2_pixelformat.cpp:346 Unsupported V4L2 pixel format RPBP [13:37:46.917152693] [39] INFO Camera camera.cpp:1205 configuring streams: (0) 640x480-XBGR8888 (1) 2028x1080-BGGR_PISP_COMP1 [13:37:46.917305416] [45] INFO RPI pisp.cpp:1483 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/imx477@1a - Selected sensor format: 2028x1080-SBGGR12_1X12 - Selected CFE format: 2028x1080-PC1B [13:37:46.922629205] [39] WARN V4L2 v4l2_pixelformat.cpp:346 Unsupported V4L2 pixel format RPBP [13:37:46.923365744] [39] INFO Camera camera.cpp:1205 configuring streams: (0) 640x480-XBGR8888 (1) 2028x1520-BGGR_PISP_COMP1 [13:37:46.923579578] [45] INFO RPI pisp.cpp:1483 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected CFE format: 2028x1520-PC1B [13:37:46.929727758] [39] WARN V4L2 v4l2_pixelformat.cpp:346 Unsupported V4L2 pixel format RPBP [13:37:46.930373074] [39] INFO Camera camera.cpp:1205 configuring streams: (0) 640x480-XBGR8888 (1) 4056x3040-BGGR_PISP_COMP1 [13:37:46.930570538] [45] INFO RPI pisp.cpp:1483 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/imx477@1a - Selected sensor format: 4056x3040-SBGGR12_1X12 - Selected CFE format: 4056x3040-PC1B [{'format': SRGGB10_CSI2P, 'unpacked': 'SRGGB10', 'bit_depth': 10, 'size': (1332, 990), 'fps': 120.05, 'crop_limits': (696, 528, 2664, 1980), 'exposure_limits': (31, 667234896, 20000)}, {'format': SRGGB12_CSI2P, 'unpacked': 'SRGGB12', 'bit_depth': 12, 'size': (2028, 1080), 'fps': 50.03, 'crop_limits': (0, 440, 4056, 2160), 'exposure_limits': (60, 674181621, 20000)}, {'format': SRGGB12_CSI2P, 'unpacked': 'SRGGB12', 'bit_depth': 12, 'size': (2028, 1520), 'fps': 40.01, 'crop_limits': (0, 0, 4056, 3040), 'exposure_limits': (60, 674181621, 20000)}, {'format': SRGGB12_CSI2P, 'unpacked': 'SRGGB12', 'bit_depth': 12, 'size': (4056, 3040), 'fps': 10.0, 'crop_limits': (0, 0, 4056, 3040), 'exposure_limits': (114, 694422939, 20000)}]
I am trying to set raw sensor format to the lowest resolution. But end out it auto select second highest sensor format.
config = picam2.create_still_configuration(main={"size": (1332, 990), "format": "BGR888"}, raw={"size": (1332, 990)}) picam2.configure(config)
13:38:46.190592160] [39] WARN V4L2 v4l2_pixelformat.cpp:346 Unsupported V4L2 pixel format RPBP [13:38:46.191247772] [39] INFO Camera camera.cpp:1205 configuring streams: (0) 1332x990-BGR888 (1) 2028x1520-BGGR_PISP_COMP1 [13:38:46.191523847] [45] INFO RPI pisp.cpp:1483 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected CFE format: 2028x1520-PC1B
Anybody ran into the same problem as me? I tried with raspberry pi camera module v3, and its working.
FYI, I am using Raspberry Pi Model 4, HQ Camera, 2024-11-19-raspios-bookworm, libcamera v0.5.0, picamera2 0.3.27
Beta Was this translation helpful? Give feedback.
All reactions