Skip to content

ryo-ma/UnityBarcodeScanner

 
 

Repository files navigation

Unity Barcode Scanner

Build Status

Since months, I was looking for a good way to parse QRCodes (and generic barcode) in Unity. On the Asset Store, few libraries are already providing that, but they are expensive, overly complex, not tested and not always maintained.

So, I was just trying to do something simple, readable, cross-platform and open source.

  • Tested with Unity 5.3.x, 5.4.x
  • Tested on PC, Mac, Android, WebGL
  • Tested with the following barcode format:
    • 1D : Code 39, Code 128, ISBN
    • 2D : QR Code, Aztec, Data Matrix

How does that work ?

This project is a Unity Project that you can use directly.

Every part is separated and can be replaced or extended if needed

  • Camera : use directly the API of unity to access the webcam (available on iOS, Android, Windows, Mac, Linux, ...)
  • Parser : use zxing to extract the data https://zxingnet.codeplex.com/ (Apache 2)
  • Scanner : use Camera & Parser and manage them in a unity context

And that's it, few C# files and a dll

How to use it ?

License

Under license WTFPL (http://www.wtfpl.net/about/)

Packages

No packages published

Languages

  • C# 62.2%
  • CSS 24.8%
  • HTML 10.1%
  • Shell 2.9%