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

Graphics, sound and multimedia • Re: Cropped Video Output (Arducam Quad-Cam 5120x800) picamera2

$
0
0
Hi,
Thank you for your follow-up!

Regarding Option 3 and Picamera2:
Yes, you can still use Picamera2 for raw video streaming! To maximize capture speed with minimal overhead, we recommend using the QtGlPreview (or NullPreview) alongside unencoded sensor output. Here’s a simple configuration example:

Code:

from picamera2 import Picamera2picam2 = Picamera2()config = picam2.create_video_configuration(    raw={"size": picam2.sensor_resolution},  # Capture raw at full sensor resolution    encode="main"  # Disable encoder by setting this to `None` or omit if using NullPreview)picam2.configure(config)picam2.start()while True:    frame = picam2.capture_array("raw")  # Directly access raw Bayer data    # Process or stream the raw frame here
This bypasses the encoder and retrieves raw Bayer data directly.

Existing Resources:
Check the official Picamera2 Raw Streaming Demo for a template.

Statistics: Posted by Arducam_Support — Fri Feb 14, 2025 6:29 am



Viewing all articles
Browse latest Browse all 8082

Trending Articles