zxing4processing – Processing Library
Salvatore Iaconesi and Rolf van Gelder created a Processing Library called ‘zxing4processing’.
Processing is an open source programming language and environment for people who want to create images, animations, and interactions.
The zxing4processing library is based on the open-source bar code library ‘ZXing‘.
Download
Download the library:
- zxing4p3.zip v3.5 (07/29/2018), the latest version
Functionality
It can decode 17 different types of barcodes and generate QRCodes.
Available methods
- public java.lang.String QRCodeReader(processing.core.PImage img, boolean tryHarder)
Decode the QRCode from a PImage - public java.lang.String decodeImage(boolean tryHarder, processing.core.PImage img)
Decode the QRCode from a PImage – *DEPRECATED*, USE QRCodeReader INSTEAD - public java.lang.String[] multipleQRCodeReader(processing.core.PImage img, boolean tryHarder)
Decode multiple QRCodes from a PImage - public java.lang.String[] decodeMultipleQRCodes(boolean tryHarder, processing.core.PImage img)
Decode multiple QRCodes from a PImage – *DEPRECATED*, USE multipleQRCodeReader INSTEAD - public java.lang.String getBarcodeFormat()
Get the format of the latest detected barcode - public java.lang.String barcodeReader(processing.core.PImage img, boolean tryHarder)
Decode a barcode from a PImage (scan for all 17 supported barcodes types) - public java.lang.String barcodeReader(processing.core.PImage img, boolean tryHarder, java.util.ArrayList<java.lang.String> barCodeTypes)
Decode a barcode from a PImage (scan for specific barcode types) - public processing.core.PImage generateQRCode(java.lang.String content, int width, int height)
Generates a QRCode PImage from a string - public processing.core.PVector[] getPositionMarkers()
Returns a PVector array with the position markers for the latest detected QRCode - public processing.core.PVector[] getPositionMarkers(int index)
Returns a PVector array with the position markers for a specific QRCode - public void version()
Displays version information of this library in the console
History
v3.1 (07/21/2016)
– the first Processing v2.x/3.x compatible version
v3.2 (07/31/2016)
– removed the deprecated method decodeWeb()
– added a new method: version()
– several minor changes
– download v3.2 here
v3.3 (04/15/2018)
– added Multi QRCode support
– new mothod: decodeMultipleQRCodes()
– new method: getPositionMarkers(i)
– download v3.3 here
v3.4 (06/20/2018)
– bug fixed for multiple codes position markers
– download v3.4 here
v3.5 (06/29/2018)
– New: decode 17 different types of barcodes (barcodeReader() method)
– Change: Most of the code has been rewritten
– decodeImage() changed to QRCodeReader()
– decodeMultipleQRCodes() changed to multipleQRCodeReader()
– download v3.5 here
Installation
Unzip the .zip file to your processing/libraries folder.
Documentation
See the javadocs here.
You like this library? Please donate!