enum L_OcrSettingValueType
{
L_OcrSettingValueType_BeginCategory,
L_OcrSettingValueType_EndCategory,
L_OcrSettingValueType_Integer,
L_OcrSettingValueType_Enum,
L_OcrSettingValueType_Double,
L_OcrSettingValueType_Boolean,
L_OcrSettingValueType_String,
};
typedef enum L_OcrSettingValueType L_OcrSettingValueType;
Defines a setting type.
Value | Value |
---|---|
L_OcrSettingValueType_BeginCategory | Beginning of a new category. This setting has no value. |
L_OcrSettingValueType_EndCategory | End of the current category. This setting has no value. |
L_OcrSettingValueType_Integer | An integer setting. |
L_OcrSettingValueType_Enum | An enum setting. |
L_OcrSettingValueType_Double | A double value setting. |
L_OcrSettingValueType_Boolean | A boolean setting (TRUE or FALSE). |
L_OcrSettingValueType_String | A string (UNICODE) setting. |
This enumerated type is used by the following structure:
LEADTOOLS OCR Module - LEAD Engine contain specific additional features and functionalities that can be queried and updated using the L_OcrSettingManager provided functionality.
You can use the different methods of the L_OcrSettingManager to get and set the engine specific settings. Each setting has a unique name (a string value). You can get all the settings available to the OCR engine through calls to L_OcrSettingManager_GetSettingCount and L_OcrSettingManager_GetSettingName methods. The L_OcrSettingManager_GetSettingDescriptor method returns a description of the setting (its type, friendly name and value range), you can then use the various setting get and set methods to query and change the value of a certain setting. For example, if the setting type is L_OcrSettingValueType_Integer, you can use the L_OcrSettingManager_GetIntegerValue to get the current value of the setting and the L_OcrSettingManager_SetIntegerValue to change its value. Refer to L_OcrEngine_GetSettingManager for a complete example.
For a list of supported engine specific settings and their meanings, refer to LEADTOOLS OCR Module - LEAD Engine Settings.