Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Get Document Type #29

Unanswered
sberer asked this question in Q&A
Aug 10, 2021 · 2 comments · 1 reply
Discussion options

How can I get the document type such as driving license, Id-Card or passport?

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

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

You must be logged in to vote
0 replies
Comment options

I did it this way:
ChosenDocumentTypeResult chosenDocumentTypeResult = response.ResultByType<ChosenDocumentTypeResult>(Result.DOCUMENT_TYPE); var documentType = chosenDocumentTypeResult?.OneCandidate?.FDSIDList?.DType;

Is this correct?

You must be logged in to vote
1 reply
Comment options

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

Result.STATUS, Result.AUTHENTICITY, Result.TEXT, Result.IMAGES,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /