blinkid-ios icon indicating copy to clipboard operation
blinkid-ios copied to clipboard

Unable to scan USDL barcode with iPhone 14 Pro Max

Open ckang777 opened this issue 2 years ago • 13 comments

  • Xcode version: Version 14.0.1 (14A400)
  • BlinkID SDK version: ios 5.17.0 via blinkid-cordova
  • iOS Version: 16.0.2
  • What are you trying to scan: US DL Barcode

Using an iPhone 14 Pro Max scanned the front successfully however, the back fails or if it does scan, barcode has empty results with the resultCode being 2 (Uncertain). Also, tried with the Vision app (1.19) from the App Store and same result.

ckang777 avatar Oct 31 '22 19:10 ckang777

IMG_0003

ckang777 avatar Oct 31 '22 20:10 ckang777

Hi @ckang777

We are aware of the issue and are currently investigating what might be causing the issues with the barcode extraction on the 14 Pro devices.

Just to double-check, the issue in only happening with the 14 Pro device? Have you tried using any other iPhone to see if you could reproduce the issue?

mparadina avatar Nov 02 '22 08:11 mparadina

Hello @mparadina Thanks for the reply. Yes, we've tried with both iPhone 14 Pro and iPhone 14 Pro Max and was able to replicate the issue. Also tried with iPhone 13 Pro and iPhone 7 Plus and was not able to reproduce the issue.

ckang777 avatar Nov 02 '22 18:11 ckang777

Hi @ckang777

Following up on this thread.

After doing some additional testing on our end, we’ve figured out that the main reason why the barcode is not getting extracted is due to 14 Pro’s camera not being able to auto-focus properly on the barcode. This will be fixed in the upcoming release.

Until then, the workaround is to, if you’re using our UI, set the camera preset to ‘4K’ resolution in case the scanning device is the iPhone 14 Pro (Max).

Example:

let settings: MBBlinkIdOverlaySettings = MBBlinkIdOverlaySettings()
     settings.cameraSettings.cameraPreset = .preset4K

Please test this out and let me know if it helped.

mparadina avatar Nov 04 '22 09:11 mparadina

@mparadina Thank you for the response. Can you give me an example code how I can achieve this using the blinkId-cordova plugin? Thank you.

ckang777 avatar Nov 05 '22 18:11 ckang777

Which upcoming release can this be expected in?

edwardsmel avatar Nov 17 '22 20:11 edwardsmel

Hi @edwardsmel and @ckang777

The release with the fix for native iOS is available, you can find it under the 5.20.1 release.

Regarding the Cordova plugin, the official release with the fix will come out at the beginning of December. I will make a follow-up here once the release is out.

mparadina avatar Nov 21 '22 08:11 mparadina

@mparadina Any updates on the blinkid-cordova with this fix? Thank you.

ckang777 avatar Dec 14 '22 17:12 ckang777

@ckang777 the release for Cordova has been delayed, and the release will come out by the end of January. Once I get more information about a more precise date, I will make a follow-up here.

mparadina avatar Dec 19 '22 11:12 mparadina

@mparadina any idea when this will be released for the Flutter plugin? It doesn't look like that setting is available in the recognizer we use so I think we'll need the update.

christinachimi avatar Jan 09 '23 16:01 christinachimi

Hi @christinachimi

Unfortunately, the release has been further delayed. However, until you wait for the official release, I am sharing the workaround the same as the one provided for native iOS.

For Flutter, in the BlinkID framework, you need to locate the MBBlinkIdOverlaySettingsSerialization.m and under line 31, add the following line: sett.cameraSettings.cameraPreset = MBCameraPreset4K;

Let me know if this helps.

mparadina avatar Jan 17 '23 13:01 mparadina

@mparadina it looks like this is set now, right, as of Flutter release https://github.com/BlinkID/blinkid-flutter/releases/tag/v6.1.0? I'm just checking since this is still open.

christinachimi avatar Apr 20 '23 13:04 christinachimi

Hi @christinachimi

You are correct, a new version of the SDK has been released (for Flutter, the newest version is 6.1.2), and it contains the camera and auto-focus fix for the iPhone 14 Pro and Pro Max devices.

Feel free to test it out to see if it resolves the issue on your end!

mparadina avatar Apr 20 '23 14:04 mparadina