Qrtools 1.0.0 Released


#1

qrtools version 1.0.0 has been released!

QRTools is a library for decoding and encoding QR Codes. It relies on
libdecodeqr for decoding.

Changes:

1.0.0 / 2009-02-11

  • 1 major enhancement

    • Birthday!

FEATURES/PROBLEMS:

  • Running the tests will take a picture of you.
  • Currently awesome.

SYNOPSIS:

Encode a QR code

require ‘qrtools’
require ‘tempfile’

filename = File.join(Dir::tmpdir, ‘test.png’)
File.open(filename, ‘wb’) { |fh|
fh.write
QRTools::QRCode.encode(‘http://tenderlovemaking.com/’).to_png
}

Decode A QR code from a file

img = QRTools::Image.load(filename)
decoder = QRTools::QRCode.decode(img)
puts decoder.body

Decode a photo from the webcam

QRTools::UI::Camera.new(0) do |camera|
puts QRTools::QRCode.decode(camera.capture).body
end

REQUIREMENTS:

  • opencv
  • qrencode

INSTALL:

On OS X: