Question
I have a document detection model I want to run but it's slow, I don't want to hard-lock to running it once every second (with runAtTargetFps(1, ...)) but rather want it to execute sequentially in a different thread.
I.E. the next call to my callback should be immediately after the previous call has finished, independent of the FPS or what frame it is
What I tried
I know I can technically wrap some logic into runAsync that'll check if the previous call has finished - or use a recursive call in a one-off thing
But institutively this utility seems (to me at least) useful when dealing with frame processing, so maybe a sister function to runAsync and runAtTargetFps could be introduced?
VisionCamera Version
8.0.2
Additional information
Question
I have a document detection model I want to run but it's slow, I don't want to hard-lock to running it once every second (with
runAtTargetFps(1, ...)) but rather want it to execute sequentially in a different thread.I.E. the next call to my callback should be immediately after the previous call has finished, independent of the FPS or what frame it is
What I tried
I know I can technically wrap some logic into
runAsyncthat'll check if the previous call has finished - or use a recursive call in a one-off thingBut institutively this utility seems (to me at least) useful when dealing with frame processing, so maybe a sister function to
runAsyncandrunAtTargetFpscould be introduced?VisionCamera Version
8.0.2
Additional information