Git Product home page Git Product logo

goquirc's Introduction

goquirc

This is a simple wrapper around Quirc.

http://godoc.org/github.com/kdar/goquirc

Install

  1. go get -d github.com/kdar/goquirc
  2. go generate and go install

Notes

This package isn't meant to be exhaustive, but I'll try to add something if requested and time permitting.

Detection rate

The tests in this package do not pass. Quirc cannot detect a lot of QR codes that I tested. As far as detection goes, I rate the following from best to worse:

  1. ZBar
  2. Quirc
  3. libdecodeqr used in qrcode

ZBar is by far the best. It could decode everything I threw at it. The problem is I couldn't get it to compile under Windows 64 MinGW in a timely manner, so I moved on.

Quirc works for the purposes I needed it for, and the API is super simple.

libdecodeqr could barely decode even the basic things. I'm not too sure why it has so much trouble, even with flat out crisp, generated QR codes.

Request

Anyone know of any good QR decoding libraries that can decode at a high success rate and are in C/Go?

goquirc's People

Contributors

kdar avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

goquirc's Issues

Error on install

Ran go generate,
then tried to run go install

go install

github.com/kdar/goquirc

./libquirc.a(identify.o): In function perspective_map': identify.c:(.text+0x69e): undefined reference to rint'
identify.c:(.text+0x6ba): undefined reference to `rint'
collect2: error: ld returned 1 exit status

Doesn't compile on OSX 10.12

# github.com/kdar/goquirc
Undefined symbols for architecture x86_64:
  "_quirc_begin", referenced from:
      __cgo_29fe778c48cd_Cfunc_quirc_begin in goquirc.cgo2.o
     (maybe you meant: __cgo_29fe778c48cd_Cfunc_quirc_begin)
  "_quirc_count", referenced from:
      __cgo_29fe778c48cd_Cfunc_quirc_count in goquirc.cgo2.o
     (maybe you meant: __cgo_29fe778c48cd_Cfunc_quirc_count)
  "_quirc_decode", referenced from:
      __cgo_29fe778c48cd_Cfunc_quirc_decode in goquirc.cgo2.o
     (maybe you meant: __cgo_29fe778c48cd_Cfunc_quirc_decode)
  "_quirc_destroy", referenced from:
      __cgo_29fe778c48cd_Cfunc_quirc_destroy in goquirc.cgo2.o
     (maybe you meant: __cgo_29fe778c48cd_Cfunc_quirc_destroy)
  "_quirc_end", referenced from:
      __cgo_29fe778c48cd_Cfunc_quirc_end in goquirc.cgo2.o
     (maybe you meant: __cgo_29fe778c48cd_Cfunc_quirc_end)
  "_quirc_extract", referenced from:
      __cgo_29fe778c48cd_Cfunc_quirc_extract in goquirc.cgo2.o
     (maybe you meant: __cgo_29fe778c48cd_Cfunc_quirc_extract)
  "_quirc_new", referenced from:
      __cgo_29fe778c48cd_Cfunc_quirc_new in goquirc.cgo2.o
     (maybe you meant: __cgo_29fe778c48cd_Cfunc_quirc_new)
  "_quirc_resize", referenced from:
      __cgo_29fe778c48cd_Cfunc_quirc_resize in goquirc.cgo2.o
     (maybe you meant: __cgo_29fe778c48cd_Cfunc_quirc_resize)
  "_quirc_strerror", referenced from:
      __cgo_29fe778c48cd_Cfunc_quirc_strerror in goquirc.cgo2.o
     (maybe you meant: __cgo_29fe778c48cd_Cfunc_quirc_strerror)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

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.