A barcode abstraction layer providing uniform access to generation of barcodes with data.
Prison has a Prison::AbstractBarcode, which is the base class for the actual barcode generators. Prison currently implements barcode generators for the following formats:
Prison currently ships the org.kde.prison.Barcode QML element that can be used to render barcodes in QML code.
There are basically two types of barcodes:
- barcodes that carry the data
- barcodes that carry a lookup number, and require a specific server to look up the actual data.
Prison isn't as such designed for the latter, it will probably work, but patches implementing barcode support for such barcodes will not be accepted. An example is EZCode.
Prison is currently using libdmtx for generation of DataMatrix barcodes, libqrencode for generation of QRCode barcodes and ZXing for generating EAN13 and PDF417 barcodes.
A barcode scanner consuming a live video feed from QtMultimedia.
Prison's barcode scanner can be used from C++ code using the Prison::VideoScanner class, or from QML using the org.kde.prison.scanner.VideoScanner QML element.
There are standalone QML examples in tests/scanner-qt(5|6).qml demonstrating the QML API.
Barcode detection is implemented using the ZXing library, all formats supported by ZXing can be detected.