BarcodeRecognize
✖
BarcodeRecognize
Details



- BarcodeRecognize works with arbitrary grayscale and multichannel images, operating on the intensity value of each pixel.
- If multiple barcodes exist in the image, a list of decoded barcodes is returned.
- The following properties "prop" are supported:
-
"Data" recognized barcode data "Format" recognized format for the barcode "BoundingBox" approximate bounding box for the barcode as a Rectangle "Orientation" orientation used for recognizing the barcode {prop1,prop2,…} a list of properties - To extract a list of available properties and their values use:
-
"Properties" the list of available properties "PropertyAssociation" an association of all properties and their values - With BarcodeRecognize[image,"prop",{format1,format2,…}], a list of formats to include in barcode recognition can be specified.
- BarcodeRecognize works with different types of one- and two-dimensional barcodes.
- The following 1D barcode formats can be used for format:
-
"UPC" UPC-A 12 numerical digits "UPCE" UPC-E 8 numerical digits "EAN8" EAN-8 8 numerical digits "EAN13" EAN-13 13 numerical digits "Code39" Code 39 up to 43 characters of uppercase letters, numeric digits, special characters -, ., $, /, +, %, and space "Code93" Code 93 uppercase letters, numeric digits, special characters -, ., $, /, +, %, and space "Code128" Code 128 up to 80 ASCII characters "ITF" ITF up to 80 numerical digits of an even length "Codabar" Codabar numerical digits and special characters :, /, +, . "GS1" GS1 DataBar (or RSS) 14 numerical digits "ExpandedGS1" GS1 Expanded and Expanded Stacked 74 digits or 41 alphanumeric characters in a single row or up to 11 stacked rows (GS1 DataBar Expanded Stacked) - The following 2D barcode formats can be used for format:
-
"QR" QR variable-length ASCII characters "PDF417" PDF417 variable-length ASCII characters "Aztec" Aztec code variable-length ASCII characters "DataMatrix" Data Matrix code variable-length ASCII characters "MaxiCode" MaxiCode up to 93 ASCII characters "MicroQR" MicroQR variable-length ASCII characters
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (23)Survey of the scope of standard use cases
Data (2)
Formats (17)

https://wolfram.com/xid/0cf3h4iefv0pzmm-wvuh2f


https://wolfram.com/xid/0cf3h4iefv0pzmm-x6y34x


https://wolfram.com/xid/0cf3h4iefv0pzmm-477ivx


https://wolfram.com/xid/0cf3h4iefv0pzmm-tr9kaq


https://wolfram.com/xid/0cf3h4iefv0pzmm-ucevze


https://wolfram.com/xid/0cf3h4iefv0pzmm-imta56


https://wolfram.com/xid/0cf3h4iefv0pzmm-ttioi2


https://wolfram.com/xid/0cf3h4iefv0pzmm-hmqbg7


https://wolfram.com/xid/0cf3h4iefv0pzmm-yg0lmv


https://wolfram.com/xid/0cf3h4iefv0pzmm-nb3dw2

Recognize a GS1 (Expanded) barcode:

https://wolfram.com/xid/0cf3h4iefv0pzmm-umvbgz


https://wolfram.com/xid/0cf3h4iefv0pzmm-t9e90t


https://wolfram.com/xid/0cf3h4iefv0pzmm-b7w9n1


https://wolfram.com/xid/0cf3h4iefv0pzmm-n3xqyx


https://wolfram.com/xid/0cf3h4iefv0pzmm-9eqhxt

Recognize a Data Matrix barcode:

https://wolfram.com/xid/0cf3h4iefv0pzmm-bpye0q


https://wolfram.com/xid/0cf3h4iefv0pzmm-zwtnlb

Properties (4)
List all available properties:

https://wolfram.com/xid/0cf3h4iefv0pzmm-zpa5sy

Extract all properties for a QR code:

https://wolfram.com/xid/0cf3h4iefv0pzmm-g9qvzy


https://wolfram.com/xid/0cf3h4iefv0pzmm-droty5

https://wolfram.com/xid/0cf3h4iefv0pzmm-kvf0tm


https://wolfram.com/xid/0cf3h4iefv0pzmm-dg1b57

Compute and visualize the bounding box:

https://wolfram.com/xid/0cf3h4iefv0pzmm-hz2dys


https://wolfram.com/xid/0cf3h4iefv0pzmm-fli7nk

Recognize bounding box of multiple barcodes:

https://wolfram.com/xid/0cf3h4iefv0pzmm-s37g3m

https://wolfram.com/xid/0cf3h4iefv0pzmm-gb8brb

Highlight barcode bounding boxes:

https://wolfram.com/xid/0cf3h4iefv0pzmm-yj53xt

Get the format with the error correction level:

https://wolfram.com/xid/0cf3h4iefv0pzmm-etnsn

Applications (4)Sample problems that can be solved with this function
Read an ISBN from a scan of a book:

https://wolfram.com/xid/0cf3h4iefv0pzmm-mfw0cz


https://wolfram.com/xid/0cf3h4iefv0pzmm-dv0n5g

Use Hyperlink to get a link from a QR code:

https://wolfram.com/xid/0cf3h4iefv0pzmm-fxs6tv


https://wolfram.com/xid/0cf3h4iefv0pzmm-k6a8lb

Highlight the bounding box of the QR code:

https://wolfram.com/xid/0cf3h4iefv0pzmm-4bwj0v

Recognize and annotate a recognized barcode:

https://wolfram.com/xid/0cf3h4iefv0pzmm-6o0nq1


https://wolfram.com/xid/0cf3h4iefv0pzmm-b3ufc

Properties & Relations (4)Properties of the function, and connections to other functions
Recognize a noisy PDF417 code:

https://wolfram.com/xid/0cf3h4iefv0pzmm-mlt6bx


https://wolfram.com/xid/0cf3h4iefv0pzmm-pain3d


https://wolfram.com/xid/0cf3h4iefv0pzmm-jrwmby

Use BarcodeImage to generate a barcode image:

https://wolfram.com/xid/0cf3h4iefv0pzmm-ottqk


https://wolfram.com/xid/0cf3h4iefv0pzmm-dp0upj

Possible Issues (1)Common pitfalls and unexpected behavior
Book ISBNs typically have a price barcode that may be recognized with the main code:

https://wolfram.com/xid/0cf3h4iefv0pzmm-fpj110

https://wolfram.com/xid/0cf3h4iefv0pzmm-2w22zn

Computed bounding box may not be accurate:

https://wolfram.com/xid/0cf3h4iefv0pzmm-gi0877

Neat Examples (2)Surprising or curious use cases
Wolfram Research (2014), BarcodeRecognize, Wolfram Language function, https://reference.wolfram.com/language/ref/BarcodeRecognize.html (updated 2025).
Text
Wolfram Research (2014), BarcodeRecognize, Wolfram Language function, https://reference.wolfram.com/language/ref/BarcodeRecognize.html (updated 2025).
Wolfram Research (2014), BarcodeRecognize, Wolfram Language function, https://reference.wolfram.com/language/ref/BarcodeRecognize.html (updated 2025).
CMS
Wolfram Language. 2014. "BarcodeRecognize." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/BarcodeRecognize.html.
Wolfram Language. 2014. "BarcodeRecognize." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/BarcodeRecognize.html.
APA
Wolfram Language. (2014). BarcodeRecognize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BarcodeRecognize.html
Wolfram Language. (2014). BarcodeRecognize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BarcodeRecognize.html
BibTeX
@misc{reference.wolfram_2025_barcoderecognize, author="Wolfram Research", title="{BarcodeRecognize}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/BarcodeRecognize.html}", note=[Accessed: 23-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_barcoderecognize, organization={Wolfram Research}, title={BarcodeRecognize}, year={2025}, url={https://reference.wolfram.com/language/ref/BarcodeRecognize.html}, note=[Accessed: 23-May-2025
]}