Parse MRZ

281 views
Skip to first unread message

chetan chaudahri

unread,
Apr 18, 2020, 9:38:27 AM4/18/20
to doubango-ai

Can you please help me to parse passport MRZ info.

We check the following documentation for parsing but didn't understand. in the document their mention to find type of document from the line but from line how we get front 

const MRZ_DOCUMENT_TYPE type = (lines.size() == 3 && lines.front().size() == 30) ?  MRZ_DOCUMENT_TYPE_TD1 : ((lines.front().size() == 44 && lines.size() == 2) ? (lines.front()[0] == 'P' ? MRZ_DOCUMENT_TYPE_TD3 : MRZ_DOCUMENT_TYPE_MRVA) : ((lines.front().size() == 36 && lines.size() == 2) ?  (lines.front()[0] == 'V' ? MRZ_DOCUMENT_TYPE_MRVB : MRZ_DOCUMENT_TYPE_TD2) : MRZ_DOCUMENT_TYPE_UNKNOWN)); 



//this is my mrz scan result
{{
  "duration": 164,
  "frame_id": 0,
  "zones": [
    {
      "lines": [
        {
          "confidence": 92.0,
          "text": "P<LI*W*LCH<<H*NS<P*T*R<<<<<<<<<<<<<<<<<<<<<<",
          "warpedBox": [
            -1.0,
            -1.0,
            -1.0,
            -1.0,
            -1.0,
            -1.0,
            -1.0,
            -1.0
          ]
        },
        {
          "confidence": 89.0,
          "text": "R00000<<<9LI*5309052M1*122*2<<<<<<<<<<<<<<<0",
          "warpedBox": [
            -1.0,
            -1.0,
            -1.0,
            -1.0,
            -1.0,
            -1.0,
            -1.0,
            -1.0
          ]
        }
      ],
      "warpedBox": [
        30,
        339,
        561,
        339,
        561,
        386,
        30,
        386
      ]
    }
  ]
}}

Mamadou DIOP

unread,
Apr 18, 2020, 8:30:15 PM4/18/20
to chetan chaudahri, doubango-ai
The MRZ parser is 100% open source and hosted at https://github.com/DoubangoTelecom/ultimateMRZ-SDK/tree/master/samples/c%2B%2B/parser
Explaining the next code to you is useless because we use regular expressions (https://github.com/DoubangoTelecom/ultimateMRZ-SDK/blob/master/samples/c%2B%2B/mrz_parser.h) and they will fail because the returned result contains invalid characters. The invalid characters (‘*’) are returned because you’re using a trial version.

--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/doubango-ai/4f7ec2ab-d18f-43a8-b9f6-b140595bacb4%40googlegroups.com.

Chetan Chaudhari

unread,
Apr 19, 2020, 1:06:06 AM4/19/20
to Mamadou DIOP, doubango-ai
Can you please let me know the cost of a license?



Thanks and Regards,

 

http://pixel-studios.org/clients/sko/mail-signature/logo-signature.jpg

 

Chetan Chaudhari
Technical Lead
http://pixel-studios.org/clients/sko/mail-signature/call.png +91 8830814668
http://pixel-studios.org/clients/sko/mail-signature/sms.png che...@skosystems.com http://pixel-studios.org/clients/sko/mail-signature/web.png www.skosystems.com

http://pixel-studios.org/clients/sko/mail-signature/lin.png

 



From: Mamadou DIOP <diopm...@doubango.org>
Sent: Sunday, April 19, 2020 6:00 AM
To: Chetan Chaudhari <che...@skosystems.com>
Cc: doubango-ai <douba...@googlegroups.com>
Subject: Re: Parse MRZ
 
This e-mail and any attachments are CONFIDENTIAL and may contain legally privileged information. If you are not the intended recipient of this e-mail message, please telephone (0208 966 9560) or e-mail (enqu...@skosystems.com) immediately, delete this message from your system and do not read, copy, distribute, disclose or otherwise use this e-mail message and any attachments. This e-mail and any attachments have been scanned for the presence of viruses and as such SKO Systems believe this e-mail to be free of any virus or other defect that may affect your computer. It is the responsibility of the recipient to ensure that it is virus free and SKO Systems does not accept any responsibility for any loss or damage arising in any way from its use. SKO Systems Ltd. Registered office: 265-269 Kingston Rd, London SW19. Registered in England and Wales: 6429637, VAT No: 918 9957 54
Reply all
Reply to author
Forward
0 new messages