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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.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
}
]
Created 23th May 2021, last changed 23th June 2021
Barcode.Modulo10Checksum - Barcode.SetInputMode
Feedback: Report problem or ask question.