Barcode
Input Image Requirements
Please ensure that you follow the below guidelines and requirements when scanning an image.
-
Please make sure that the image in not blurry and in good quality.
-
Recommended Formats: JPG
-
Supported Formats: JPG, PNG, HEIC
-
Maximum Body size: 10MB
Using the Barcode API
To make a call to the Barcode, create a POST Request and include the following shown in the below example:
curl --request POST \
--url https://api.anyline.com/v2/barcode \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--data '{image: "yourBase64Image"}'
Be sure to replace YOUR_ACCESS_TOKEN with your actual access-token, and the "yourBase64Image" String with the blob for the image you wish to scan.
|
After the call has been sent, you will receive a result including a JSON File like the following example:
{
"barcodes": [
{
"value": "Anyline Cloud API",
"format": "QR_CODE",
"coordinates": [
949,
949,
950,
145,
149,
149,
149,
928
]
}
]
}
And that’s it! You’ve successfully scanned an image using the Barcode API!
Scan capability overview
The Anyline Barcode Cloud API currently supports the fallowing symbologies:
-
Content of the barcode
-
Format of the barcode
-
Position (X,Y coordinates) of barcode on the input image
Anyline has leveraged our extensive computer vision and machine-learning expertise to develop a best-in-class 1D and 2D barcode symbology API. With the ability to tolerate real-world variations like reflections, warping due to cylindrical or curved surfaces, low contrast codes, damaged or obscured codes, and inverted polarity codes, customers can realize faster throughput and more accurate data quality in their front-line barcode scanning applications.