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

Camera board • Re: C++ app using libcamera for motion detection

$
0
0
Is it possible that the frame data is getting overwritten half way through by the next frame? I assumed that libcamera would wait until the requestComplete callback returned before calling it again with a new frame, but maybe that is not the case.
I also tried implementing the event loop code from libcamera's "simple-cam" example application, as it states that:
one should avoid any heavy processing here. The processing of the request shall be re-directed to the application's thread instead, so as not to block the CameraManager's thread for large amount of time.
In that case it would surely be even more likely that the frame buffer is overwritten whilst my application is in the middle of reading it.
And yet, I do not want to copy that data to another memory location as that would certainly slow down processing of each frame (especially if I have to copy it back to GPU memory to process it in OpenCV.

Statistics: Posted by xtal256 — Wed Nov 05, 2025 12:41 am



Viewing all articles
Browse latest Browse all 8041

Trending Articles