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

Camera board • Re: Efficient resolution for OpenCV Blob Detection at full field of vision

$
0
0
To find out what camera modes are available, what framerates you can achieve and whether they give you the full field of view, type:

Code:

rpicam-hello --list-cameras
For the imx708 this gives me:

Code:

Available cameras-----------------0 : imx708 [4608x2592 10-bit RGGB] (/base/soc/i2c0mux/i2c@1/imx708@1a)    Modes: 'SRGGB10_CSI2P' : 1536x864 [120.13 fps - (768, 432)/3072x1728 crop]                             2304x1296 [56.03 fps - (0, 0)/4608x2592 crop]                             4608x2592 [14.35 fps - (0, 0)/4608x2592 crop]
Each camera mode gives the resolution you will get from the sensor (your final output image may be resized), the maximum framerate it can achieve, and for full FoV look for a crop starting with (0,0). In your case, you probably want the 2304x1296 mode.

I assume you're using Python, in which case you should start the camera roughly like this:

Code:

from picamera2 import Picamera2picam2 = Picamera2()sensor = {'output_size': (2304, 1296)}main = {'size': (640, 480)}controls = {'FrameRate': 25}config = picam2.create_preview_configuration(main, sensor=sensor, controls=controls)picam2.configure(config)picam2.start(show_preview=True)
but note that the imx708 natively produces a 16:9 aspect ratio, so a 4:3 output image (like VGA) will be slightly pillar-boxed. To see absolutely everything, you'd have to set the output image size to something like 640x360. I've also made the example demonstrate how to ask for a precise framerate (if that's what you want).

As to your other question, I'd see how you get on with 4GB first. I'd have thought it should be plenty.

Statistics: Posted by therealdavidp — Thu Sep 04, 2025 7:56 am



Viewing all articles
Browse latest Browse all 8597

Trending Articles