Skip to content

πŸ’­ Use runAsync every time it finishes executing Β #2520

@tomerh2001

Description

@tomerh2001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions