-
Notifications
You must be signed in to change notification settings - Fork 6
-
How can I get the document type such as driving license, Id-Card or passport?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 1 reply
-
There is Result.DOCUMENT_TYPE
result, which containing doc_type_result.one_candidate.fdsid_list.d_type
field. This field contains document type value. See https://github.com/regulaforensics/DocumentReader-web-openapi/blob/master/e-document-type.yml
Beta Was this translation helpful? Give feedback.
All reactions
-
I did it this way:
ChosenDocumentTypeResult chosenDocumentTypeResult = response.ResultByType<ChosenDocumentTypeResult>(Result.DOCUMENT_TYPE); var documentType = chosenDocumentTypeResult?.OneCandidate?.FDSIDList?.DType;
Is this correct?
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes, it is correct.
Note, you have to pass Result.DOCUMENT_TYPE
in a request if you specify concrete results (by default process method returns all possible results for an image). See
DocumentReader-web-csharp-client/src/Regula.DocumentReader.NetCoreExample/Program.cs
Line 35 in 9780111
Beta Was this translation helpful? Give feedback.