Skip to content

koyachi/ruby-barcodescanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

= barcodescanner

== Description

Retrieve barcode value from barcode image file

== New in this version

* Build cleanly on OSX/Macports
* Returns a key-value hash rather than concatenated output

== Installation

=== Archive Installation

Checkout code from the repository first, and then:

	rake install
	rake test

== Features/Problems

=== Require Libraries

ImageMagick, zbar(http://zbar.sourceforge.net/)

==== install zbar

if you install zbar to non-x machine, 

	./configure --prefix=/opt/local --disable-video --without-gtk --without-qt

and make, make install.

Omit --prefix=/opt/local if you're building on non-OSX/Macports

== Synopsis

	require 'rubygems'
	require 'barcodescanner'
	
	# take from test
  expected = 
    [{:type=>"EAN-13", :data=>"1920222007009"},
     {:type=>"ISBN-10", :data=>"4087204251"}]
  result = BarcodeScanner.process_image_file("test.png")
  assert_equal(expected, result)

=== "cannot open shared object file: No such file or directory "

	echo "/usr/local/lib" >> /etc/ld.so.conf
	/sbin/ldconfig

== Copyright

Author::    koyachi <[email protected]>
Modified by:: Vishnu Gopal <[email protected]>
Copyright:: Copyright (c) 2008 koyachi
License::   

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published