Forum: Ruby qrtools 1.0.1 Released

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Aaron P. (Guest)
on 2009-02-24 18:38
(Received via mailing list)
qrtools version 1.0.1 has been released!

* <http://qrtools.rubyforge.org/>

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

Changes:

### 1.0.1 / 2009-02-24

* 1 Bugfix

  * I forgot a gem dependency!

## 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:

  * port install opencv qrencode
  * gem install qrtools

* <http://qrtools.rubyforge.org/>
This topic is locked and can not be replied to.