Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional force sleep time between thread runs #157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anselanza
Copy link

@anselanza anselanza commented Jun 8, 2018

#In some cases where high framerate tracking is not required (e.g. the "main work" is being done on the application's other threads, and you just need a check for faces every half second or so), then with threaded face tracking, it can be very useful to sleep the thread for a few milliseconds in its loop, to effectively make it run at a lower framerate than the main application.

This pull request incorporates an optional int forceWaitTime into the setup function for the threaded face tracker, without breaking the more usual use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant