Simple binding to allow using rqrr from Elixir. Uses Rustler for bindings.
Working Rust toolchain.
Add rqrr_ex
to your list of dependencies in mix.exs
:
def deps do
[
{:rqrr_ex, "~> 0.1.2"}
]
end
Detect and decode QR codes from a file supported by the Rust image crate.
RqrrEx.detect_qr_codes(File.read!("./test.png"))
{:ok,
[
ok: {%{
__struct__: Rqrr.Metadata,
bounds: [{474, 674}, {569, 674}, {569, 770}, {474, 770}],
ecc_level: 1,
mask: 2,
modules: 41
version: 6
},
"The QR Code Content!"}
]}
Documentation can be found at https://hexdocs.pm/rqrr_ex.