HOME

  • ABOUT
  • PORTFOLIO
  • NEWS, TECH & ART
    • Websites
    • WordPress Plugins
    • Processing.org
    • Neural networks
    • New Media Art
  • RASPBERRY PI
  • ABOUT
  • PORTFOLIO
  • NEWS, TECH & ART
    • Websites
    • WordPress Plugins
    • Processing.org
    • Neural networks
    • New Media Art
  • RASPBERRY PI
zxing4processing – Processing Library

zxing4processing – Processing Library

  • barcode, barcodes, download, library, processing, processing.org, qr-code, QRCode, zxing

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

Zxing4processing

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

zxing4processing3

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!




previous article next article
profile background
profile image

Rolf van Gelder

Owner of CAGE Web Design

CAGE was established in the year 2000

What’s new?

  • WebImageLoader – Processing Library
  • Responsive P5JS for WP – WordPress plugin
  • Optimize Database after Deleting Revisions – WordPress plugin
© 1995-2025 CAGE Web Design, Eindhoven, NL | +31 (0)6 22 66 3193