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

Not receiving callback after first side scan #22

Open
pushpalroy opened this issue May 16, 2023 · 1 comment
Open

Not receiving callback after first side scan #22

pushpalroy opened this issue May 16, 2023 · 1 comment

Comments

@pushpalroy
Copy link

I'm using the callback:

const callbacks = {
    onQuadDetection: (quad) => drawQuad(quad),
    onDetectionFailed: () => updateScanFeedback("Detection failed", true),
    onFirstSideResult: () => {
        console.log("First side complete")
        alert("Flip the document")
    }
  };

const recognizerRunner = await BlinkCardSDK.createRecognizerRunner(
    sdk,
    [blinkCardRecognizer],
    false,
    callbacks
  );

But I'm not getting any callback for onFirstSideResult.
I'm getting the results directly after scanning the first side.

@AngTim
Copy link

AngTim commented May 16, 2023

Hello Roy,

Thank you for the inquiry. Can you please share the full implementation on your end, or did you implement our BlinkCard example as is in the GitHub repository https://github.com/blinkcard/blinkcard-in-browser/blob/master/examples/blinkcard-camera/javascript/app.js?

Also, the scan could finish on the first side if the recognizer is not expecting a second side of the credit card document, and it would be valuable if you could share the sample document you are trying to scan so we could gain more insight into the issue.

Kind regards,
Angelo

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

No branches or pull requests

2 participants