I need to get the information that is encoded in a barcode on a car licence disc. I want to pass an image of the whole disc and get the barcode data returned. I'm currently using the processImage api function but it only seems to work if I pass the api a cropped image with just the barcode. My use case requires a user to upload an image of their licence disc and get the encoded data return, so cropping the image with just the barcode isn't possible.
Extract barcode from car licence disc
- 39 Views
- Last Post 07 November 2018
- Topic Is Solved
In order to recognize barcodes only, please specify the barcodeRecognition profile as a parameter of the processImage method. The other way is to define the region on the image where the barcode is located and apply the processBarcodeField method.
Please find more information about working with the barcodes in the corresponding article. Hope this will help!
When using this example :
and using a JPG file
images/SAMPLE.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=11, manufacturer=Apple, model=iPhone SE, orientation=upper-right, xresolution=162, yresolution=170, resolutionunit=2, software=10.2.1, datetime=2018:11:07 06:17:51, GPS-Data], baseline, precision 8, 4032x3024, frames 3
I get the following response:
[message] => Unsupported image file format
1975 questions, 6318 answers.