blinkcard / blinkcard-in-browser

21 stars 11 forks source link

Not receiving callback after first side scan #22

Open pushpalroy opened 1 year ago

pushpalroy commented 1 year ago

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 commented 1 year ago

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