Giter Site home page Giter Site logo

Comments (2)

rmtmckenzie avatar rmtmckenzie commented on August 18, 2024

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.

MggMuggins avatar MggMuggins commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.