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‘.
It can decode and generate QRCodes.
(boolean tryHarder, processing.core.PImage img)
Decode the QRCode from a PImage object
(java.lang.String content, int width, int height)Generates a QRCode image from a string
()Get the position markers for the latest detected QRCode (see the red lines in the image below)
()Display the version info of the library in the console
– the first Processing v2.x/3.x compatible version
– removed the deprecated method decodeWeb()
– added a new method: version()
– several minor changes
Download the latest version (v3.2) of the library (for free, of course!):
- zxing4p3.zip for Processing v2.x/3.x
Unzip the .zip file to your processing/libraries folder.
The in the .zip file included examples:
Hold a printed QRCode in front of your webcam and the sketch will automatically find it and decode it
Decode a QRCode straight from a Processing ‘PImage’ object
Enter a text and it will generate a QRCode containing the text, with an option to save the generated image
You like this library? Please donate!