FineReader and certain bar codes types

The FineReader recognition engine is mostly successful in extracting bar codes of all supported types. However, for a few specific types, there may be issues. The following information provides details on how you can successfully extract certain bar code types when there are issues.

Datamatrix bar codes

Datamatrix bar codes are successfully extracted in most cases using the default settings for the FineReader recognition engine.

However, in a few cases, the default settings do not successfully extract a Datamatrix bar code.

In order to get around this, you can improve your chances of successfully extracting a Datamatrix bar code by setting the DetectInvertedZones setting to False, which disables the setting.

Add the following code to the BeforeLocate event to improve your changes that problematic Datamatrix bar codes are successfully extracted.

	Private Sub Document_BeforeLocate(ByVal pXDoc As CASCADELib.CscXDocument, ByVal LocatorName As String)
		If(LocatorName = "BarcodeLocator") Then
				Dim Loc As CscBarcodeLocator
				Set Loc = Project.ClassByIndex(0).Locators.ItemByName(LocatorName).LocatorMethod
				Loc.DetectInvertedZones = False
		End If
	End Sub

QR bar codes

QR bar codes are successfully extracted in most cases using the default settings for the FineReader recognition engine.

However, in a few cases, the default settings do not successfully extract a QR bar code.

In order to get around this, you can improve your chances of successfully extracting a QR bar code by setting the AdvancedExtractionMode setting to False, which disables the setting.

Add the following code to the BeforeLocate event to improve your changes that problematic QR bar codes are successfully extracted.

	Private Sub Document_BeforeLocate(ByVal pXDoc As CASCADELib.CscXDocument, ByVal LocatorName As String)
		If(LocatorName = "BarcodeLocator") Then
			Dim Loc As CscBarcodeLocator
			Set Loc = Project.ClassByIndex(0).Locators.ItemByName(LocatorName).LocatorMethod
			Loc.EnableAdvancedExtractionMode = False
		End If
	End Sub