Giter Site home page Giter Site logo

Scanning is too sensitive about cszbar HOT 7 CLOSED

tjwoon avatar tjwoon commented on July 20, 2024
Scanning is too sensitive

from cszbar.

Comments (7)

nrcrabbe avatar nrcrabbe commented on July 20, 2024 3

@dcousens

Lines 147, 148 of android/ZBarScannerActivity.java

scanner.setConfig(0, Config.X_DENSITY, 3);
scanner.setConfig(0, Config.Y_DENSITY, 3);

Change the values 3 to 1. Fixes the false scans and I haven't had any negative issues after the change. Would be great to have these either changed to 1 (if there are no unintended consequences), or at least have it parameterised.

Cheers

from cszbar.

jjbridges avatar jjbridges commented on July 20, 2024

That's "the man" sending you subliminal messages. :)

from cszbar.

tjwoon avatar tjwoon commented on July 20, 2024

This is interesting 😆
Will have to check if the upstream ZBar project has a known issue on this.
Thanks!

from cszbar.

nickgerman avatar nickgerman commented on July 20, 2024

@tjwoon I am noticing this as well on newer devices, not so much older ones. I wonder if its to do with the X_DENSITY and Y_DENSITY. Just lowered the density to 1 and am now getting less barcodes in the wild, my guess would be the higher megapixel cameras are causing this to be sensitive.

from cszbar.

binoculars88 avatar binoculars88 commented on July 20, 2024

@nickgerman thanks for this. Was getting some false scans too. This fix seems to work.

from cszbar.

dcousens avatar dcousens commented on July 20, 2024

@binoculars88 / @nickgerman can you elaborate on how you resolved this?
Is it something we could add as a parameter?

from cszbar.

dcousens avatar dcousens commented on July 20, 2024

Thanks @nrcrabbe

from cszbar.

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.