Giter Site home page Giter Site logo

cl-qrencode's People

Contributors

ferada avatar jnjcc avatar okflo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cl-qrencode's Issues

Alnum mode is broken?

Hello!
(cl-qrencode-test::encode-alnum "qwe") produces

Argument X is not a NUMBER: NIL
[Condition of type SIMPLE-TYPE-ERROR]

Backtrace:
  0: (SB-KERNEL:TWO-ARG-* NIL 45)
  1: (CL-QRENCODE::PAIR->DECIMAL (NIL NIL NIL) 2)
      Locals:
        NUM = 2
        VALUES = (NIL NIL NIL)
  2: (CL-QRENCODE::ALNUM->BSTREAM (113 119 101))
  3: (CL-QRENCODE::SEGMENT->BSTREAM (:ALNUM 113 119 101) 1)

Non-scannable codes

I'm encoding the following string "ca85ce19c091fdcffae37b9c9cb0207b2b2c82df867e8a489a3dbe43796aa7896130de17ec68af131d8a6ebfb7324f8e904fe9598614a1772be418e1d5660c0dqwevfd" with defaults.

QR

Neither my phone nor this service: https://zxing.org/w/decode.jspx can recognize/detect this generated qr code.

I tested this string using an online service:
QR
This code perfectly scans

I understand setting can differ but anyway.

Q about a possible bug

Hi!

evaluate-feature-2 came up in a profile run as a function to be optimized; and while looking at it it occurred to me that it might be buggy.

It contains

(when (or (= bcount 0) (= bcount 4))
  (incf penalty n2))

but bcount isn't reset to 0 afterwards; I guess this is missing here, right?

If so you don't need to bother with a fix - I'm about to change it, I just wanted to know what it should do exactly ;)

Thanks for your help!

Wrong encoding for URL / bytes.

(cl-qrencode:encode-png "herpderp")

results in a QR code that is being decoded to

herpl�rp

(with zbarimg, an Android phone app and e.g. https://zxing.org/w/decode.jspx).

With the same settings, e.g. using qrencode -8 -l M "herpderp" -o qrcode-correct.png the data is decoded correctly, giving the resulting raw bytes

40 86 86 57 27 06 46 57   27 00 ec 11 ec 11 ec 11

whereas the wrong sequence is

40 86 86 57 27 06 c8 57   27 00 ec 11 ec 11 ec 11

With a bit of tracing I now think this is after the bit stream generation, so possibly in the EC coding functions.

(N.b. this is using an AFAIK fixed version of the padding, c.f. #5.)

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.