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.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Scans for barcodes in a picture.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Barcode | 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Image | The image to scan for a barcode. Can be container with image or an Image reference number from our GraphicsMagick image functions. |
$image | |
AllowedTypes | The list of types to allow. Default is empty for all types. Types allowed: All, EAN8, UPCE, ISBN10, UPCA, EAN13, ISBN13, I25, CODE39, PDF417, QRCode, CODE128, Symbol. |
"all" | Optional |
Returns JSON or error.
Key | Value |
type | The number for the type of barcode. |
name | The name of the barcode type. |
quality | The quality level. |
text | The content of the barcode. |
xml | The XML representation from zbar for this barcode. |
boundsTop | The top of the bounding box. |
boundsLeft | The left of the bounding box. |
boundsRight | The right of the bounding box. |
boundsBottom | The bottom of the bounding box. |
components | The components of a composed barcodes. |
Scan for barcodes in picture:
Set Variable [ $r ; Value: MBS("Barcode.Scan"; MyRecord::Picture) ]
Set Field [ MyRecord::QRCodeResult ; $r ]
Commit Records/Requests [ With dialog: Off ]
Example result:
[
{
"type": 12,
"name": "UPC-A",
"quality": 99,
"text": "725272702703",
"xml": "<symbol type='UPC-A' quality='99'><data><![CDATA[725272702703]]></data></symbol>",
"boundsTop": 0,
"boundsLeft": 20,
"boundsRight": 210,
"boundsBottom": 49
}
]
This function checks for a license.
Created 23th May 2021, last changed 19th April 2023