Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  


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


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


Returns JSON or error.


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.


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

💬 Ask a question or report a problem