iDLRRuntimeSettings
Defines a struct to configure the text recognizer runtime settings. These settings control the text recognition process.
@interface iDLRRuntimeSettings : NSObject
Attributes
Attribute | Type |
---|---|
maxThreadCount |
NSInteger |
characterModelName |
NSString* |
referenceRegion |
iDLRReferenceRegion * |
textArea |
iQuadrilateral * |
dictionaryPath |
NSString* |
dictionaryCorrectionThreshold |
iDLRDictionaryCorrectionThreshold * |
binarizationModes |
NSArray* |
furtherModes |
iDLRFurtherModes * |
maxThreadCount
Sets the number of threads the algorithm will use to recognize label.
NSInteger maxThreadCount
Value Range
[1, 4]
Default value
4
Remarks
To keep a balance between speed and quality, the library concurrently runs four different threads by default.
characterModelName
The name of the CharacterModel.
NSString* characterModelName
referenceRegion
Sets the reference region to search for text.
iDLRReferenceRegion* referenceRegion
textArea
Sets the text area relative to the reference region.
iQuadrilateral* textArea
dictionaryPath
Sets the path of the dictionary file.
NSString* dictionaryPath
dictionaryCorrectionThreshold
Sets the threshold of dictionary error correction.
iDLRDictionaryCorrectionThreshold* dictionaryCorrectionThreshold
binarizationModes
Sets the mode and priority for binarization.
NSArray* binarizationModes
Value Range
Each array item can be any one of the EnumBinarizationMode
Enumeration items.
Default value
[EnumBinarizationModeLocalBlock, EnumBinarizationModeSkip, EnumBinarizationModeSkip, EnumBinarizationModeSkip, EnumBinarizationModeSkip, EnumBinarizationModeSkip, EnumBinarizationModeSkip, EnumBinarizationModeSkip]
Remarks
The array index represents the priority of the item. The smaller index is, the higher priority is.
furtherModes
Sets further modes.
iDLRFurtherModes* furtherModes
See also