-
Notifications
You must be signed in to change notification settings - Fork 31
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
Question / Feature Request: Is there a way to detect when the processImage() (background task) method has finished executing? #106
Comments
There is currently no way to see if a frame is still being processed, but it can be added in a future release. This error triggers if the video is still playing, as it checks for its Another one is to wait for the |
Thanks for the reply @ivancuric.
Does it? Because once it's resolved, it seems as if there are still some background tasks executed by Blink ID, hence why the question was asked in the first place. See screenshot 1 which illustrates a browser log containing the output of |
It should: https://github.com/BlinkID/blinkid-in-browser/blob/master/src/MicroblinkSDK/VideoRecognizer.ts#L712-L728. Thanks for the feedback, I'll try to see what's going on. Is there any chance you could provide a minimal reproduction sample on a repository? |
Problem Statement:
After successfully capturing the the user's documents in our application, we dispose of all the video resources, destroy the component from the DOM, and redirect to a 'confirmation' screen which displays a preview of what Blink ID has captured. We display a retry button at the bottom of that confirmation screen which, once clicked, will navigate back and re-initialize the component which is responsible for creating a new
VideoRecognizer
.Our problem is that if the retry button is clicked whilst the
processImage()
background task is executing, then we receive an error when attempting to initialize a newVideoRecognizer
, which causes our application to break.Question / Feature Request
Is there a way to 'wait' until the async
processImage()
task has finished executing such that we can control when the user is allowed to hit retry?Additional Information
Version
"@microblink/blinkid-in-browser-sdk": "^5.18.0"
Error when trying to recreate a new VideoRecognizer, immediately after capturing a document:
The text was updated successfully, but these errors were encountered: