blinkcard / blinkcard-in-browser

21 stars 11 forks source link

not detecting card on a dark background #27

Open pavikrishna opened 1 month ago

pavikrishna commented 1 month ago

The card reader screenshot functionality did not work on a brown table background and put an incorrect card number into the fields. When we moved it on top of a white napkin, it worked.

How should it work?: It should work well on a dark background, or, warn people not to use a dark background when the results are going to be wrong.

microblink version being used: "@microblink/blinkcard-in-browser-sdk": "^2.9.0",

AngTim commented 1 month ago

Hello Pavi,

Thank you for the report on the issue with BlinkCard SDK and document detection with different backgrounds. Correct. The SDK and camera stream will work better on clear/white surfaces that show contrast with the scanned document so our detector can clearly outline the edges of the document and extract meaningful information.

In the scenario explained above, the average scanning experience will be poor, with no apparent difference between the background and the document when using a darker shade or a similar color.

You can use the following guidelines for optimal UX with the BlinkCard SDK: BlinkCard_Card Scanning Tips.pdf

Feel free to reach out if you have any additional questions or issues.

Kind regards, Angelo Web Support Specialist Microblink LTD

pavikrishna commented 1 month ago

Thank you for getting back to me, is there any way currently we can indicate to users when a background dose not meet detection guidelines?