Passer au contenu principal
Cet objet permet d’accéder aux propriétés spécifiques d’un bloc de coche. L’interface ICheckmarkBlock dérive de l’interface IBlock et hérite de toutes ses propriétés. Cet objet peut être un élément de la collection CheckmarkGroup. Les propriétés de cet objet peuvent être réparties en deux groupes :
  • les propriétés qui influent sur le processus de reconnaissance des coches dans le bloc. Il s’agit de ImageProcessingParams, CheckmarkType, IsCorrectionEnabled, BlackThreshold, SuspiciousDistance et TrainingData. C’est à l’aide de ces propriétés que vous pouvez définir des paramètres spéciaux de traitement des coches pour un seul bloc.
  • toutes les autres propriétés, qui représentent les résultats de la reconnaissance.

Propriétés

Provides access to the set of properties affecting image preprocessing inside the checkmark block.

Specifies the checkmark type used for recognition. When creating checkmark blocks manually, set this property to specify checkmark type. When checkmarks are found on the image during layout analysis, the type is detected automatically.

Notes:

  • This property must be identical fr all checkmarks belonging to a single group.
  • If the type of checkmark is CMT_Custom, recognized checkmark can be either checked or unchecked (see the description of the CheckmarkState property).

The default value is CMT_Empty.

This property set to TRUE means that checkmark block can be selected and then corrected.

Remarques :

  • Cette propriété doit être identique pour toutes les coches appartenant à un même groupe.
  • Si la propriété CheckmarkType est CMT_Custom, la valeur de cette propriété est ignorée : la coche reconnue de ce type peut être cochée ou décochée (voir la description de la propriété CheckmarkState).

La valeur par défaut est FALSE.

Specifies the percentage of black color which is necessary to consider the checkmark checked. This property can be used only for checkmarks of the typeCMT_Custom.

By default, it is -1.

After checkmark training or when you load the TrainingData for this checkmark this value is changed. See details inRecognizing Checkmarks.

Specifies the distance from black threshold which makes the checkmark uncertainly recognized. If the absolute value of the difference between AmountOfBlack and BlackThreshold is less than or equal to the value of this property, the IsSuspicious property will be set to TRUE.

This property can be used only for checkmarks of the typeCMT_Custom.

The default value is -1.

After checkmark training or when you load the TrainingData for this checkmark this value is changed. See details inRecognizing Checkmarks.

Specifies the checkmark training data. This property makes sense only for checkmarks of the typeCMT_Custom.

Checkmark training data is created for each checkmark block of the type CMT_Custom during checkmark training using themethod.

If you want to use training data for a checkmark of the type CMT_Custom, you should initialize the value of this property of corresponding checkmark block with the suitable CheckmarkTrainingData object obtained during training. See details inRecognizing Checkmarks.

Cette propriété est corrélée avec les valeurs des propriétés BlackThreshold et SuspiciousDistance : lorsqu’un nouvel objet CheckmarkTrainingData est assigné à cette propriété, BlackThreshold et SuspiciousDistance prennent les valeurs avec lesquelles cet objet a été enregistré. Inversement, lorsque vous modifiez BlackThreshold et SuspiciousDistance et enregistrez la valeur de cette propriété, vous obtenez un nouvel objet CheckmarkTrainingData qui conserve les informations relatives aux valeurs de ces deux propriétés.

Renvoie l’état du bloc de coche : coché, non coché, corrigé.

Si la propriété CheckmarkType est CMT_Custom, la coche reconnue peut être cochée ou non cochée, mais ne peut pas se trouver dans l’état corrigé.

Lorsque cette propriété est définie sur TRUE, cela indique que la coche a été reconnue avec incertitude.

, lecture seule

Renvoie le pourcentage de noir sur l’image de la coche.

Méthodes

NomDescription
CopyFromInitialise les propriétés de l’objet courant avec les valeurs des propriétés similaires d’un autre objet.
CheckmarkBlock Diagramme des objets

Paramètre de sortie

Cet objet est le paramètre de sortie des méthodes et propriétés suivantes :

Voir aussi

Block CheckmarkGroup Travailler avec Layout et les objets Block Reconnaissance des coches Travailler avec les propriétés