# ex_bardecode
Unofficial Elixir NIF for [Softek Barcode Reader Toolkit](http://www.bardecode.com/en1/app/linux/).
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `bardecode` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:ex_bardecode, "~> 0.6.0"}
]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/ex_bardecode](https://hexdocs.pm/ex_bardecode).
## Example
```elixir
Bardecode.read_barcode(
"barcode.jpg",
%{license: "license key", type: [:pdf417, :code128]}
)
```
## Resources
* Softek Barcode Toolkit documentation included in [the download](http://www.bardecode.com/en1/app/linux/)
* [Erlang Native Implemented Functions](http://erlang.org/doc/man/erl_nif.html) (NIF)
* [Using C from Elixir with NIFs](https://andrealeopardi.com/posts/using-c-from-elixir-with-nifs/)
* [libjpeg](http://ijg.org) download contains an example.c