Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.22
|
Leadtools.Barcode Namespace > MicroPDF417BarcodeReadOptions Class : EnableDoublePass Property |
[DisplayNameAttribute("Enable double pass")] [CategoryAttribute(" Options")] [DescriptionAttribute("If no barcodes of this symbology are found, auto pre-process the image and then re-scan")] [DefaultValueAttribute()] public bool EnableDoublePass {get; set;}
'Declaration
<DisplayNameAttribute("Enable double pass")> <CategoryAttribute(" Options")> <DescriptionAttribute("If no barcodes of this symbology are found, auto pre-process the image and then re-scan")> <DefaultValueAttribute()> Public Property EnableDoublePass As Boolean
'Usage
Dim instance As MicroPDF417BarcodeReadOptions Dim value As Boolean instance.EnableDoublePass = value value = instance.EnableDoublePass
[DisplayNameAttribute("Enable double pass")] [CategoryAttribute(" Options")] [DescriptionAttribute("If no barcodes of this symbology are found, auto pre-process the image and then re-scan")] [DefaultValueAttribute()] public bool EnableDoublePass {get; set;}
@property (nonatomic, assign) BOOL enableDoublePass
public boolean getEnableDoublePass() public void setEnableDoublePass(boolean value)
DisplayNameAttribute("Enable double pass") CategoryAttribute(" Options") DescriptionAttribute("If no barcodes of this symbology are found, auto pre-process the image and then re-scan") DefaultValueAttribute() <br/>get_EnableDoublePass();<br/>set_EnableDoublePass(value);<br/>Object.defineProperty('EnableDoublePass');
[DisplayNameAttribute("Enable double pass")] [CategoryAttribute(" Options")] [DescriptionAttribute("If no barcodes of this symbology are found, auto pre-process the image and then re-scan")] [DefaultValueAttribute()] public: property bool EnableDoublePass { bool get(); void set ( bool value); }
When reading 2D barcodes, LEADTOOLS can perform internal auto preprocessing on the image and try again if the engine cannot detect the barcode required. This may take extra processing and increase the barcode detection time. Therefore, it is best to set EnableDoublePass to true only in certain situations, as follows:
The application is reading barcodes of this type exclusively (for example, a dedicated MicroPDF417 reader is being used). In this case, reading the barcodes is always more important than recognition speed.
The application uses barcode detection on a server. In this case, the time spent on the actual barcode detection is most probably less than the time required to send the image to the server and get the result back due to network latency. Thus it makes sense to enable double pass in this situation.
The images provided may have a small resolution (DPI) or known to come from a source that does not always provide clean images. For example, a Fax machine or a Scanner. Enabling double pass here ensures that you can read the barcodes regardless on the quality of the input image.
The LEADTOOLS .NET C# and VB Barcode demos leave double pass disabled by default. If the engine tries to read a MicroPDF417 barcode but cannot find it, it will then ask the user if DoublePass should be enabled and reading be retried. An approach like that (or an automated one: Read. If failure, enable and read again) can also be used.
For an example, refer to MicroPDF417BarcodeReadOptions.