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.

Supported Formats

Barcode

Code

Example

UPC E

UPC_E

UPC E Barcode

EAN 8

EAN_8

EAN-8 Barcode

Code 93

CODE_93

Code 93 Barcode

ITF-14 / Leitcode

ITF

ITF-14 Barcode

Code 128 / EAN-14 / EAN-18 / EAN-128

CODE_128

Code-128 Barcode

QR Code

QR_CODE

QR-Code Barcode

EAN 13 / EAN-99 / ISMN

EAN_13

EAN-13 Barcode

PDF 417

PDF_417

PDF 417 Barcode

UPC A / Identcode

UPC_A

UPC A Barcode

GS1 128

GS1_128

GS1-128 Barcode

Code 39

CODE_39

Code 39 Barcode