Coder Social home page Coder Social logo

Comments (2)

unixdj avatar unixdj commented on August 16, 2024

2: It does include the quiet zone, but finder patterns may overlap. So if ----x-xxx-x---- occurs in the middle of the code, it counts as two patterns.

3: Each.

Disregarding finder patterns extending into the quiet zone defeats the purpose. Each code starting with 18 penalties of 40 points for finder patterns is not an issue, just like it's not an issue that each pattern has 4 black boxes, 4 white 5-pixel runs, 4 black 7-pixel runs and 2 white 8-pixel runs.

from libqrencode.

whitslack avatar whitslack commented on August 16, 2024

So if ----x-xxx-x---- occurs in the middle of the code, it counts as two patterns.

@unixdj: If libqrencode actually counted it that way, then that would be fine, and what you're saying about all codes starting out with the same number of demerits for the standard-mandated patterns would indeed imply that it does not matter whether the quiet zone is treated as though it contained light modules. However, the problem specifically in libqrencode is that it doesn't demerit ----x-xxx-x---- twice, so it is failing to properly demerit a run of four light modules that occurs adjacent to a genuine finder pattern. Effectively "not noticing" when a run of four light modules occurs in the interior of the code, adjacent to a finder pattern, means libqrencode can sometimes select a suboptimal mask.

from libqrencode.

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.