File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Regula.DocumentReader.NetCoreExample
Regula.DocumentReader.WebClient/Model/Ext Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ public static void Main()
66
66
var docNumberMrzValidity = docNumberField . SourceValidity ( Source . MRZ ) ;
67
67
var docNumberMrzVisualMatching = docNumberField . CrossSourceComparison ( Source . MRZ , Source . VISUAL ) ;
68
68
69
+ var docType = response . DocumentType ( ) ;
70
+
71
+
69
72
var docAuthenticity = response . Authenticity ( ) ;
70
73
var docIRB900 = docAuthenticity . IrB900Checks ( ) ;
71
74
var docIRB900Blank = docIRB900 ? . ChecksByElement ( SecurityFeatureType . BLANK ) ;
@@ -82,7 +85,8 @@ public static void Main()
82
85
Console . WriteLine ( $ " Document Overall Status: { docOverallStatus } ") ;
83
86
Console . WriteLine ( $ " Document Optical Text Status: { docOpticalTextStatus } ") ;
84
87
Console . WriteLine ( $ " Document Number Visual: { docNumberVisual } ") ;
85
- Console . WriteLine ( $ " Document Number MRZ: { docNumberMrz } ", docNumberMrz ) ;
88
+ Console . WriteLine ( $ " Document Number MRZ: { docNumberMrz } ", docNumberMrz ) ;
89
+ Console . WriteLine ( $ " Document Name: { docType . DocumentName } ") ;
86
90
Console . WriteLine ( $ "Validity Of Document Number Visual: { docNumberVisualValidity } ") ;
87
91
Console . WriteLine ( $ " Validity Of Document Number MRZ: { docNumberMrzValidity } ") ;
88
92
Console . WriteLine ( $ " MRZ-Visual values comparison: { docNumberMrzVisualMatching } ") ;
Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ public ImageQualityCheckList ImageQualityChecks(int pageIdx=0)
40
40
return result ? . ImageQualityCheckList ;
41
41
}
42
42
43
+ public OneCandidate DocumentType ( int pageIdx = 0 )
44
+ {
45
+ var result = ResultByType < ChosenDocumentTypeResult > ( Result . DOCUMENT_TYPE , pageIdx ) ;
46
+ return result ? . OneCandidate ;
47
+ }
48
+
43
49
public T ResultByType < T > ( int type , int pageIdx = 0 ) where T : ResultItem
44
50
{
45
51
foreach ( var item in OriginalResponse . ContainerList . List )
You can’t perform that action at this time.
0 commit comments