×
MENU
Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

ImageParameter Object | TextFilterModes

TextFilterModes

Mode Properties

TextFilterModes is a parameter for setting the mode for text filter. It consists of one or more TextFilterMode items and each item has its own arguments. The array index represents the priority of the item. The smaller index is, the higher priority is.

Value Type Value Range Default Value
string array or TextFilterMode array “TFM_SKIP”
“TFM_AUTO”
“TFM_GENERAL_CONTOUR”
[“TFM_GENERAL_CONTOUR”, “TFM_SKIP”, “TFM_SKIP”, “TFM_SKIP”, “TFM_SKIP”, “TFM_SKIP”, “TFM_SKIP”, “TFM_SKIP”]

Mode Arguments

MinImageDimension

Sets the minimum image dimension (in pixels) to filter the text.

Value Type Value Range Default Value
int [65536, 0x7fffffff] 65536
  • Remarks
    If the image dimension is larger than the given value, the library will enable the text filtering feature. Otherwise, it will skip this step when doing barcode recognition. The feature can speed up the recognition process.
Sensitivity

Sets the sensitivity used for text filtering.

Value Type Value Range Default Value
int [0, 9] 0
  • Remarks
    • 0: automatically set by the library.
    • A larger value means the library will take more effort to filter text.
LibraryFileName

Sets the file name of the library to load dynamically.

Value Type Value Range Default Value Valid For
string A string value representing file name. ”” All TextFilterMode items except TFM_SKIP and TFM_AUTO
  • Remarks
    The library must be in the same place with Dynamsoft Barcode Reader Library.
LibraryParameters

Sets the parameters passed to the library to load dynamically.

Value Type Value Range Default Value Valid For
string A string value representing parameters. ”” All TextFilterMode items except TFM_SKIP and TFM_AUTO

Setting Methods

As JSON Parameter

TextFilterModes as a JSON parameter is a JSON Object array. Each JSON Object has several keys for setting the mode and the value of arguments. The array index decides the priority the mode for text filter. Default values will be used if there is no manual setting.

Json Object Json Parameter Name Value Type
ImageParameter TextFilterModes JSON Object Array

Json Parameter Example

{
    "TextFilterModes": [
        {
            "Mode": "TFM_GENERAL_CONTOUR",
            "MinImageDimension":262144,
            "Sensitivity": 5
        }
    ]
}

 

As PublicRuntimeSettings Member

TextFilterModes is a TextFilterMode array defines in furtherModes which is a struct member of PublicRuntimeSettings. It is used for setting the modes and the priority for text filter. Default value will be used if there is no manual setting.

Struct Struct Member Name Value Type
PublicRuntimeSettings->furtherModes textFilterModes TextFilterMode[8]

Remarks
GetModeArgument and SetModeArgument need to be called for getting or setting the value of arguments.

See Also

This page is compatible for:

Version 7.5

Is this page helpful?

YesYes NoNo

latest version

  • Latest Version
  • version 8.1.2
  • version 8.0
  • version 7.6
  • version 7.5
Change +
© 2003–2020 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support