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 | ColourClusteringModes

ColourClusteringModes

Not supported yet.

Mode Properties

ColourClusteringModes is a parameter for setting the mode for colour categorization. It consisits of one or more ColourClusteringMode 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 ColourClusteringMode array “CCM_SKIP”
“CCM_AUTO”
“CCM_GENERAL_HSV”
[“CCM_SKIP”, “CCM_SKIP”, “CCM_SKIP”, “CCM_SKIP”, “CCM_SKIP”, “CCM_SKIP”, “CCM_SKIP”, “CCM_SKIP”]

See Also :
ColourClusteringMode Enumeration

Mode Arguments

Sensitivity

Sets the sensitivity used for colour categorization.

Value Type Value Range Default Value
int [1, 9] 5

Remarks
A higher level means less colours will be clustered as the same colour.

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 ColourClusteringMode items except CCM_SKIP and CCM_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 ColourClusteringMode items except CCM_SKIP and CCM_AUTO

Setting Methods

As JSON Parameter

ColourClusteringModes 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 of the mode for colour categorization. Default values will be used if there is no manual setting.

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

Json Parameter Example

{
    "ColourClusteringModes": [
        {
            "Mode": "CCM_GENERAL_HSV",
            "Sensitivity": 5
        }
    ]
}

 

As PublicRuntimeSettings Member

ColourClusteringModes is a ColourClusteringMode array defines in furtherModes which is a struct member of PublicRuntimeSettings. It is used for setting the modes and the priority for colour categorization. Default value will be used if there is no manual setting.

Struct Struct Member Name Value Type
PublicRuntimeSettings->furtherModes colourClusteringModes ColourClusteringMode[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.0

Is this page helpful?

YesYes NoNo

latest version

  • Latest version
  • Version 8.6.0
  • Version 8.4.0
  • Version 8.2.5
  • Version 8.2.3
  • Version 8.2.1
  • Version 8.2.0
  • Version 8.1.3
  • Version 8.1.2
  • Version 8.1.0
  • Version 8.0.0
  • Version 7.6.0
  • Version 7.5.0
Change +
© 2003–2021 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support