コミュニティ

Extract barcode from car licence disc 回答済み

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.

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

2件のコメント

  • Avatar
    Helen Osetrova

    Hello!

     

    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!

    0
  • Avatar
    Permanently deleted user

     When using this example :

    https://www.ocrsdk.com/documentation/quick-start-guide/php-barcode-ocr-sdk

    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:

    SimpleXMLElement Object
    (
        [message] => Unsupported image file format
    )

     

     

    0

サインインしてコメントを残してください。