2

Read barcodes

scancode

POST https://tesseractor.com/api/scancode?version=1&login=&password=

versionVersion number of the API.
loginYour identification code.
passwordYour password.
multipart/form-data
fileContent of the PDF or JPG, PNG or GIF image in binary.
yoloDetect barcodes (experimental).
resolutionResolution in dpi of the image generated for each page of a PDF .
imagesDirectly extract just the images in a PDF.
rotateRotate images.
resizeResize images.
unsharpSharpen the contours.
normalizeAdd contrast to the colors.
colorspaceConvert to grayscale.
reframeReframe images on a background.
unborderRemove border lines.

version is 1.

If yolo is true, each image is cropped around barcodes using the object detection system. IMPORTANT: Only works for now on QR codes.

NOTE: To have a correct understanding of the effects of these parameters, test them in the interface of your personal space.

barcode39.jpg ean128.gif qr.png
$ curl -s --fail --show-error -X POST "https://tesseractor.com/api/scancode?version=1&login=abcdef&password=ABCDEF" -F "file=@barcode39.jpg" -o -
WIKIPEDIA
$ curl -s --fail --show-error -X POST "https://tesseractor.com/api/scancode?version=1&login=abcdef&password=ABCDEF" -F "file=@ean128.gif" -o -
010123456789012815057072
$ curl -s --fail --show-error -X POST "https://tesseractor.com/api/scancode?version=1&login=abcdef&password=ABCDEF" -F "file=@qr.png" -o -
https://www.wikipedia.org

dqr.jpg

$ curl -s --fail --show-error -X POST "https://tesseractor.com/api/scancode?version=1&login=abcdef&password=ABCDEF" -F "file=@dqr.jpg" -o -
2137919

Only 1 QR is read by ZBar.

$ curl -s --fail --show-error -X POST "https://tesseractor.com/api/scancode?version=1&login=abcdef&password=ABCDEF" -F "yolo=1" -F "file=@dqr.jpg" -o -
NEWDOC
2137919

Using YOLO, the image is analyzed and cropped into 2 distinct images which ZBar can easily decode.

SEE ALSO

Call the service API, Scan the text

Comments

To add a comment, click here.