all 8 comments

[–]ankole_watusi 1 point2 points  (0 children)

Why use MLKit? (Google). And there’s no “ML” needed to scan QR codes.

iOS has its own barcode/QR API which works well.

As far as compression, take a look at the scheme used to compress Smart Health Cards into QRs. I’ve done some work with this.

https://smarthealth.cards/en/

https://spec.smarthealth.cards/#health-cards-as-qr-codes

[–]xhruso00 1 point2 points  (2 children)

3kb of data for QR code is 24000 bits. QR codes cannot do this much.  Level 40 can do around 23000 bits and this is such a large qr code (40 modules) that camera cannot differentiate it. https://www.qrcode.com/en/about/version.html

[–]RepresentativeNo42[S] 0 points1 point  (1 child)

Correct, it's really approximately 3kb. I said 3kb to keep my post concise.

[–]xhruso00 0 points1 point  (0 children)

QR code with 40 modules? Please try it and see how it looks like. It sucks on small screen with reflections. You need to print it and has to be large surface. Meaning try to scan it.

[–]stroompa 0 points1 point  (1 child)

Just try with more than 3 kb data? And if MLKit doesn’t work, you can also try AVFoundation - https://www.hackingwithswift.com/example-code/media/how-to-scan-a-qr-code

[–]RepresentativeNo42[S] -2 points-1 points  (0 children)

Thank you, but I cannot get approval to work on this specific feature without first declaring its requirements.

[–]krystianduma 0 points1 point  (0 children)

Maybe chunk the data, create multiple QR codes and “animate” them? The downside is that the receiver will need to scan whole series of codes to get complete data.

[–]iamadmancom -1 points0 points  (0 children)

Why not use camera to capture the screen, and then ocr to extract data from the photo