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

Increase time frame between gestures #3

Open
AdityaJain1030 opened this issue Sep 26, 2021 · 2 comments
Open

Increase time frame between gestures #3

AdityaJain1030 opened this issue Sep 26, 2021 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@AdityaJain1030
Copy link

Add a grace period between gestures recognized for some gestures like track skipping. This would prevent lag spikes that accidentally read the same gesture twice, skipping multiple tracks at once. Ill try having a crack at it if I had tommorrow

@ArhumJain ArhumJain added bug Something isn't working enhancement New feature or request labels Sep 26, 2021
@ArhumJain
Copy link
Owner

Added a longer delay between skipping tracks

@AdityaJain1030
Copy link
Author

This issue still persists, can this issue be reopened? I assume this is caused by non-async handling of code. If the camera records 4 frames of a gesture, and it lags after the first one, the other 3 also still get processed occasionally. The best way to handle this in my opinion would be to make the track gestures handled asynchronously, and then debounced. This way, the lag spikes are mostly gone, and even if mediapipe records multiple of the track skip gesture consecutively, the api call only runs once every 1 second

@ArhumJain ArhumJain reopened this Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants