Comments (2)
Hmm. That's not an easy problem as the Mobile Vision library only returns a string. See this: googlesamples/android-vision#156. Not only that, it seems to return the string "Unknown encoding" rather than throwing an error about it which is why you're seeing different bytes coming out of whatever you're doing. Not ideal... I'll make an issue to put something in that throws an error if it finds that string.
At some point I may update to use the firebase ml vision library instead of this one, but it seems to also use a string so that won't help.
You may be able to find a different library to do this, or implement something yourself (I believe the ZXing library supports binary data but not 100% sure).
What I'd recommend though is base64-encoding (or some other base-encoding) your data before making it into the datamatrix. That will increase your barcode code size by a factor of 4/3 (for base64) but should work with no problems - you'll just have to base64-decode it on the other side.
from flutter_qr_mobile_vision.
That seems like a really nasty case of assuming a use-case for something where that really shouldn't happen. Sorta dumb on the part of the authors.
Anyway, I'm going to use hex as alphanumeric for now, I appreciate the note. I'm going to restructure to make that unnecessary.
Another little thing I noticed: Throwing an exception in the QrCodeCallback just ends the call without any indication at all. (Specifically I'm generating an NPE, and nothing is being done to indicate that I'm getting an exception)
Great library! Exactly what I need. Sorry for not replying sooner, RL caught up with me :/
from flutter_qr_mobile_vision.
Related Issues (20)
- iOS bitcode: ITMS-90562: Invalid Bundle HOT 4
- [Feature Request] Reading and scanning inverted Datamatrix code HOT 3
- android.hardware.camera.autofocus issue HOT 1
- How to to get barcode type and zoom function?
- Apple crash - com.apple.root.default-qos HOT 2
- Pod install fails when supporting devices below iOS 11. HOT 2
- [CR] native_device_orientation has a newer version (Flutter 3.0 w. support) HOT 1
- Reading Binary Data
- CameraX ML KIT giving error " java.lang.IllegalStateException: Image is already closed HOT 1
- How to enable Camera Autofocus When scanning pdf417 format HOT 1
- Scanning is not working on Android while upgrading to 4.0.1 HOT 15
- 🐛 [PERMISSION DENY] App crashes when denying notifications permission on Android SDK 33 HOT 2
- Cannot scan code with an Exception, same error in SAMSUNG S22U and Emulator API 31 HOT 4
- Cannot update or install pods due to recent MLKit dependency update HOT 2
- [Fearture request] Unable to modify _defaultOffscreenBuilder and _defaultNotStartedBuilder HOT 1
- iPhone 14 Pro focal length issue - can't scan small barcodes HOT 5
- camera freezes on IOS when flash is turned on or when toggleFlash() is called. HOT 2
- Restrict duplicate barcode scanning HOT 5
- Camera Resolution is reduced after closed the app
- NullPointerException when destroying activity (onDetachedFromEngine) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_qr_mobile_vision.