Hi folks,
I'm doing a project with an HQ camera, RPi 4, Trixie, Picamera2 and Open CV. I'm grabbing frames with picam2.capture_array, having set the Main stream to XRGB8888. This gives me a resolution of 640x480. I'd like to up the resolution(probably in my picam2.configure line), if possible, but don't know how to list the available resolutions, when using XRGB8888. Here's a code fragment, in case it clarifies anything:
Thanks
I'm doing a project with an HQ camera, RPi 4, Trixie, Picamera2 and Open CV. I'm grabbing frames with picam2.capture_array, having set the Main stream to XRGB8888. This gives me a resolution of 640x480. I'd like to up the resolution(probably in my picam2.configure line), if possible, but don't know how to list the available resolutions, when using XRGB8888. Here's a code fragment, in case it clarifies anything:
Code:
# Initialize Picamera2 and configure the camerapicam2 = Picamera2()picam2.configure(picam2.create_preview_configuration(transform=Transform(hflip=True), main={"format": 'XRGB8888'}))picam2.start()# Take pictureImageBlended = picam2.capture_array("main")# Get size of picam2.capture_array()camera_height, camera_width = ImageBlended.shape[:2]print("camera_width: ", camera_width, " camera_height: ", camera_height)Statistics: Posted by ddwwcc — Sun Dec 14, 2025 11:55 am