Socket
Book a DemoInstallSign in
Socket

qrscanner

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qrscanner

0.4.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

QR scanner

Ruby Gem which wraps ZXing QR decoder library (C++) and ImageMagick

Usage

Example:

First, gem install 'qrscanner'. This also provides you with a command-line tool ("qrscanner") for testing.

require 'qrscanner'

QrScanner.decode '/path/to/hellworld.png' => "Hello, world"

The parameter accepts any image format that ImageMagick supports, which should include PDF for scanned documents as well as PNG/JPG/TIFF/etc.

Returns nil if it can't find a qr code or other error. It currently prints the error to STDERR.

Dependencies

  • Python (for ZXing build script)
  • ImageMagick: libMagick++, libMagickWand, libMagickCore
  • gcc, g++, libstd++
  • Operating system with a PREFIX of "/usr".

This last one means it really only works on Linux eg. Ubuntu, and not OSX or BSD, because the ZXing CPP build script has hard coded paths for include files etc. :-(

Contact the author

Andrew Snow andrew@modulus.org Andys^ on irc.freenode.net

FAQs

Package last updated on 13 Sep 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.