Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Vision.DetectBarcode

Detects barcodes in images.

Component Version macOS Windows Linux Server iOS SDK
Vision 9.4 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "Vision.DetectBarcode"; Image { ; symbologies } )   More

Parameters

Parameter Description Example Flags
Image The image to analyze.
Can be container value with JPEG, PNG or other image formats supported by Vision framework.
$image
symbologies Which symbologies to allow.
Default is all, e.g. the list returned by Vision.SupportedSymbologies function.
"VNBarcodeSymbologyQR" Optional

Result

Returns JSON or error.

Description

Detects barcodes in images.
Returns JSON array with all recognized barcodes.
You may improve recognition by cropping the picture to the area with barcode and providing a good resolution.

If you need cross platform barcode detection, please use Barcode.Scan or Barcode.Detect functions.

Added for macOS 12: Codabar, GS1DataBar, GS1DataBarExpanded, GS1DataBarLimited, MicroPDF417 and MicroQR.

Examples

Detect barcode:

Set Field [ Vision::Result ; MBS( "Vision.DetectBarcode"; Vision::Image) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2019, last changed 17th June 2021


Vision.ClassifyImage - Vision.KnownClassifications