Community

processMRZ in php code

Right now I'm using processImage Method but i want to use processMRZ Method so please tell me ow i can test or use this in php code..

0

Comments

1 comment

  • Avatar
    Oksana Serdyuk

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

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

    to

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

    and

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

    to

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

    in the PHP code sample.

    0
    Comment actions Permalink

Please sign in to leave a comment.