@@ -68,7 +68,8 @@ protected ProcessParams() { }
68
68
/// <param name="returnUncroppedImage">This option allows returning input images in output if enabled..</param>
69
69
/// <param name="mrzFormatsFilter">This option allows limiting MRZ formats to be recognized by specifying them in array..</param>
70
70
/// <param name="forceReadMrzBeforeLocate">This option can be set to true to make sure that in series processing MRZ is located fully inside the result document image, if present on the document. Enabling this option may add extra processing time, by disabling optimizations, but allows more stability in output image quality..</param>
71
- public ProcessParams ( string scenario = default ( string ) , List < int > resultTypeOutput = default ( List < int > ) , bool doublePageSpread = default ( bool ) , bool generateDoublePageSpreadImage = default ( bool ) , List < int > fieldTypesFilter = default ( List < int > ) , string dateFormat = default ( string ) , int measureSystem = default ( int ) , int imageDpiOutMax = default ( int ) , bool alreadyCropped = default ( bool ) , Dictionary < string , Object > customParams = default ( Dictionary < string , Object > ) , List < PerDocumentConfig > config = default ( List < PerDocumentConfig > ) , bool log = default ( bool ) , string logLevel = default ( string ) , int forceDocID = default ( int ) , bool matchTextFieldMask = default ( bool ) , bool fastDocDetect = default ( bool ) , bool updateOCRValidityByGlare = default ( bool ) , bool checkRequiredTextFields = default ( bool ) , bool returnCroppedBarcode = default ( bool ) , ImageQA imageQA = default ( ImageQA ) , int forceDocFormat = default ( int ) , bool noGraphics = default ( bool ) , float documentAreaMin = default ( float ) , bool depersonalizeLog = default ( bool ) , bool multiDocOnImage = default ( bool ) , int shiftExpiryDate = default ( int ) , int minimalHolderAge = default ( int ) , bool returnUncroppedImage = default ( bool ) , List < string > mrzFormatsFilter = default ( List < string > ) , bool forceReadMrzBeforeLocate = default ( bool ) )
71
+ /// <param name="parseBarcodes">This option can be set to false to stop parsing after barcode is read..</param>
72
+ public ProcessParams ( string scenario = default ( string ) , List < int > resultTypeOutput = default ( List < int > ) , bool doublePageSpread = default ( bool ) , bool generateDoublePageSpreadImage = default ( bool ) , List < int > fieldTypesFilter = default ( List < int > ) , string dateFormat = default ( string ) , int measureSystem = default ( int ) , int imageDpiOutMax = default ( int ) , bool alreadyCropped = default ( bool ) , Dictionary < string , Object > customParams = default ( Dictionary < string , Object > ) , List < PerDocumentConfig > config = default ( List < PerDocumentConfig > ) , bool log = default ( bool ) , string logLevel = default ( string ) , int forceDocID = default ( int ) , bool matchTextFieldMask = default ( bool ) , bool fastDocDetect = default ( bool ) , bool updateOCRValidityByGlare = default ( bool ) , bool checkRequiredTextFields = default ( bool ) , bool returnCroppedBarcode = default ( bool ) , ImageQA imageQA = default ( ImageQA ) , int forceDocFormat = default ( int ) , bool noGraphics = default ( bool ) , float documentAreaMin = default ( float ) , bool depersonalizeLog = default ( bool ) , bool multiDocOnImage = default ( bool ) , int shiftExpiryDate = default ( int ) , int minimalHolderAge = default ( int ) , bool returnUncroppedImage = default ( bool ) , List < string > mrzFormatsFilter = default ( List < string > ) , bool forceReadMrzBeforeLocate = default ( bool ) , bool parseBarcodes = default ( bool ) )
72
73
{
73
74
// to ensure "scenario" is required (not null)
74
75
if ( scenario == null )
@@ -109,6 +110,7 @@ protected ProcessParams() { }
109
110
this . ReturnUncroppedImage = returnUncroppedImage ;
110
111
this . MrzFormatsFilter = mrzFormatsFilter ;
111
112
this . ForceReadMrzBeforeLocate = forceReadMrzBeforeLocate ;
113
+ this . ParseBarcodes = parseBarcodes ;
112
114
}
113
115
114
116
/// <summary>
@@ -316,6 +318,13 @@ protected ProcessParams() { }
316
318
[ DataMember ( Name = "forceReadMrzBeforeLocate" , EmitDefaultValue = false ) ]
317
319
public bool ForceReadMrzBeforeLocate { get ; set ; }
318
320
321
+ /// <summary>
322
+ /// This option can be set to false to stop parsing after barcode is read.
323
+ /// </summary>
324
+ /// <value>This option can be set to false to stop parsing after barcode is read.</value>
325
+ [ DataMember ( Name = "parseBarcodes" , EmitDefaultValue = false ) ]
326
+ public bool ParseBarcodes { get ; set ; }
327
+
319
328
/// <summary>
320
329
/// Returns the string presentation of the object
321
330
/// </summary>
@@ -354,6 +363,7 @@ public override string ToString()
354
363
sb . Append ( " ReturnUncroppedImage: " ) . Append ( ReturnUncroppedImage ) . Append ( "\n " ) ;
355
364
sb . Append ( " MrzFormatsFilter: " ) . Append ( MrzFormatsFilter ) . Append ( "\n " ) ;
356
365
sb . Append ( " ForceReadMrzBeforeLocate: " ) . Append ( ForceReadMrzBeforeLocate ) . Append ( "\n " ) ;
366
+ sb . Append ( " ParseBarcodes: " ) . Append ( ParseBarcodes ) . Append ( "\n " ) ;
357
367
sb . Append ( "}\n " ) ;
358
368
return sb . ToString ( ) ;
359
369
}
@@ -542,6 +552,11 @@ public bool Equals(ProcessParams input)
542
552
this . ForceReadMrzBeforeLocate == input . ForceReadMrzBeforeLocate ||
543
553
( this . ForceReadMrzBeforeLocate != null &&
544
554
this . ForceReadMrzBeforeLocate . Equals ( input . ForceReadMrzBeforeLocate ) )
555
+ ) &&
556
+ (
557
+ this . ParseBarcodes == input . ParseBarcodes ||
558
+ ( this . ParseBarcodes != null &&
559
+ this . ParseBarcodes . Equals ( input . ParseBarcodes ) )
545
560
) ;
546
561
}
547
562
@@ -614,6 +629,8 @@ public override int GetHashCode()
614
629
hashCode = hashCode * 59 + this . MrzFormatsFilter . GetHashCode ( ) ;
615
630
if ( this . ForceReadMrzBeforeLocate != null )
616
631
hashCode = hashCode * 59 + this . ForceReadMrzBeforeLocate . GetHashCode ( ) ;
632
+ if ( this . ParseBarcodes != null )
633
+ hashCode = hashCode * 59 + this . ParseBarcodes . GetHashCode ( ) ;
617
634
return hashCode ;
618
635
}
619
636
}
0 commit comments