Skip to content

Basic wrapper around a zbar barcode-scanning library

License

Notifications You must be signed in to change notification settings

ZombieHarvester/zbar-elixir

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zbar

Scan one or more barcodes from a JPEG image.

The API for this library is very simple:

iex> File.read!("QR_REF1.jpg") |> Zbar.scan()
%Zbar.Symbol{
  data: "REF1",
  points: [{40, 40}, {40, 250}, {250, 250}, {250, 40}],
  quality: 1,
  type: "QR-Code"
}

More detailed API documentation can be found at https://hexdocs.pm/zbar.

Installation

This package is available in Hex and can be installed by adding :zbar to your list of dependencies in mix.exs:

def deps do
  [{:zbar, "~> 0.1.0"}]
end

You will also need to have zbar and libjpeg installed in order to compile the required native code. On OSX with Homebrew, this is as simple as:

$ brew install zbar libjpeg

About

Basic wrapper around a zbar barcode-scanning library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 49.0%
  • C 47.9%
  • Makefile 3.1%