# Recognize Passport

Document recognition for "Passport". Supported formats: .pdf, .png, .jpeg, .jpg.

<table data-header-hidden><thead><tr><th width="258" valign="top"></th><th width="290" valign="top"></th></tr></thead><tbody><tr><td valign="top">File path</td><td valign="top">[Text] File path. The pdf file can be multi-page.</td></tr><tr><td valign="top">Operation mode</td><td valign="top"><p>Select the operation mode of the block:</p><ul><li>Online - recognition via Yandex service;</li><li>Offline - allows recognition using offline OCR engines.</li></ul></td></tr><tr><td valign="top">Header language</td><td valign="top"><p>Language of the attribute headers. Possible values:</p><ul><li>en - in English,</li><li>ru - in Russian.</li></ul></td></tr><tr><td valign="top">Module</td><td valign="top">Selection of the OCR module used for recognition.</td></tr><tr><td valign="top">Scale</td><td valign="top"><p>[Number] Image scaling factor.</p><p>Value 1 = 100 %.</p></td></tr><tr><td valign="top">Attributes</td><td valign="top">[Dictionary] Dictionary with document attributes. For example: "Passport Number", "Date of Issue", etc.</td></tr><tr><td valign="top">Error handling level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - by default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are processed.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message level</td><td valign="top"><p>Select the message level that the blocks will output during operation. Possible values:</p><ul><li>"Default" - by default;</li><li>"Release" - output is disabled;</li><li>"Debug" - outputs main information;</li><li>"Detailed" - outputs detailed information.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error text</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block's work.</td></tr></tbody></table>
