Giter Club home page Giter Club logo

Comments (4)

micjahn avatar micjahn commented on July 20, 2024

Please provide a sample image. Datamatrix is supported.

from zxing.net.

jameslgarrett avatar jameslgarrett commented on July 20, 2024

Here you go.
imag0358
imag0357

from zxing.net.

jameslgarrett avatar jameslgarrett commented on July 20, 2024

Actually I believe I've figured it out. The datmatrix here is inverted. If I use Neo Reader (as an example) it scans fine. If I use ZXing it doesn't work. However, if I invert the dot in Photoshop it works just fine. Re-invert it again (back to original) and leave the zoom, phone distance, etc the same it doesn't work.

Is there any way to tell ZXing we don't care about the color inversion? I see with the barcode scanner app in the android app store you can invert the color in the settings, but I'm worried the users of my app may not realize this setting exists or know when to use it. I'd prefer to do like Neo Reader and detect it on the fly.

from zxing.net.

micjahn avatar micjahn commented on July 20, 2024

ZXing.Net supports inverted barcodes. That's not an issue. But you have to enable it before scanning.

The main problem of your images is the orientation. The Datamatrix decoder has some issues if the code is
rotated. That's related to the roots of the project. The java version was developed primarly for mobile phones where you get a constant stream of images, the user holds the phone near to the code and the orientation is nearly horizontal.
What can you do? If possible, crop the image to the portion where the barcode is normally located. If possible the Datamatrix code should be near the center of the image. Set the option TryInverted and AutoRotate. Prevent scanning by an angle of 45 degrees.
Or much better provide a pull request which enhances the datamatrix decoder.
29231947-dbbe75c0-7eae-11e7-9da2-2f2f4d0e9dd1_turn_90_cropped
29231948-dbbe71f6-7eae-11e7-9609-e24877e4b789_turn_45_cropped

from zxing.net.

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.