Quantcast
Viewing all articles
Browse latest Browse all 5425

Python • Re: picamera2 – most efficient way to continually capture?

Hi, if you want fast frame captures then I'd avoid "create_still_configuration". That's geared towards still image capture, therefore defaults to the highest resolution (which makes things slow), and also cuts down on the amount of memory so as not to run out (which can cause frame drops).

I'd go with "create_video_configuration" or "create_preview_configuration". Those will use more buffers, and you should tailor the size of both streams to you requirements. Displaying a low resolution version of the stream makes sense. I would only copy the higher resolution buffer out when OpenCV wants to use it, as copying a buffer is in itself relatively expensive.

Statistics: Posted by therealdavidp — Tue Jan 09, 2024 10:54 am



Viewing all articles
Browse latest Browse all 5425

Trending Articles