MRZ API: is it possible to get more detailed code?

  • 1.8K Views
  • Last Post 08 January 2016
NickPLV posted this 25 March 2013

Hello,

Is it possible to get some more detailed (possibly php) code for your MRZ OCR feature?

Thanks,

Nicolas

Order By: Standard | Newest | Votes
Anastasia Galimova posted this 29 March 2013

Hello Nicolas,

Thank you for your question!

To process MRZ using PHP code, you can just replace the line

30  $url = 'http://cloud.ocrsdk.com/processImage?language=english&exportFormat=rtf';

to

30  $url = 'http://cloud.ocrsdk.com/processMRZ';

and

130 header('Content-type: application/rtf');
131 header('Content-Disposition: attachment; filename="file.rtf"');

to

130 header('Content-type: application/xml');
131 header('Content-Disposition: attachment; filename="file.xml"');

in the PHP code sample.

  • Liked by
  • Vitaly_k
Amit posted this 07 January 2016

Getting blank xml result if i'm using processMRZ but when i'm using processImage getting results

Oksana Serdyuk posted this 08 January 2016

Most possible the program is not able to find any MRZ text on your image. The reasons can be different: inappropriate quality of the image, unsupported MRZ format or something else. Could you kindly send to CloudOCRSDK@abbyy.com the following info for further investigation the issue:

1) your Application ID,

2) your image sample.

Close