CogOCVCharacterPosition ClassCognex VisionPro 9.5
Default interface of this class provides access to the character position parameters. User can specify which character models to verify, their expected position and positional uncertainties, as well as their accept and confidence thresholds.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.OC CogOCVCharacterPosition

Namespace: Cognex.VisionPro.OC
Assembly: Cognex.VisionPro.OC (in Cognex.VisionPro.OC.dll) Version: 69.0.0.0
Syntax

[SerializableAttribute]
public class CogOCVCharacterPosition : CogObjectBase, 
	ICogNetInternal, IDisposable, ICloneable, ISerializable, ICogHasChanged, 
	ICogChangedEvent

The CogOCVCharacterPosition type exposes the following members.

Constructors

  NameDescription
Public methodCogOCVCharacterPosition 
Constructs a new instance of this class.
Public methodCogOCVCharacterPosition(IntPtr)
Constructs a new instance of this class using com pointer.
Public methodCogOCVCharacterPosition(CogOCVCharacterPosition)
Constructs a new instance of this class as a deep copy of the given instance.
Top
Methods

  NameDescription
Public methodAddFontModel
Add a new font model to the end of the list of model candidates to be verified at this character position. FontModelCount will increment by one.
Protected methodClone
Returns a deep copy of this class instance. Derived classes that implement Clone should override this method; other clients who wish to clone this instance should call ICloneable.Clone. See also CogSerializer.DeepCopyObject
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDeleteFontModel
Delete the font model specified by Index from the list of model candidates to be verified at this character position. FontModelCount will decrement by one.
Public methodDispose 
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize (Overrides Object Finalize .)
Protected methodGetAttributes
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetClassName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetComponentName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetConverter
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultEvent
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultProperty
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEditor
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetFontModel
Get the name and instance of the font model specified by the index.
Public methodGetFontModelInstance
The Instance of the font model candidate specified via Index. OCV verifies the highest scoring candidate. Models are specified using both FontModelName & FontModelInstance. Index must be greater than or equal to zero and less than FontModelCount.
Public methodGetFontModelName
The Name of the font model candidate specified via Index. OCV verifies the highest scoring candidate. Models are specified using both FontModelName & FontModelInstance. Index must be greater than or equal to zero and less than FontModelCount.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetObjectData
Protected methodGetProperties 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetProperties( Attribute ) (Overrides CogObjectBase GetProperties( Attribute ).)
Protected methodGetPropertyOwner
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetScalingRotationTranslation
Wide getter for character position. The character position is the position of a font model's origin with respect to the expected position of the pattern which the user supplies at run-time.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone 
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called. Also raises the Changed event if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.
Public methodSetFontModel
Set font model specified by the index to the new values.
Public methodSetFontModelInstance
The Instance of the font model candidate specified via Index. OCV verifies the highest scoring candidate. Models are specified using both FontModelName & FontModelInstance. Index must be greater than or equal to zero and less than FontModelCount.
Public methodSetFontModelName
The Name of the font model candidate specified via Index. OCV verifies the highest scoring candidate. Models are specified using both FontModelName & FontModelInstance. Index must be greater than or equal to zero and less than FontModelCount.
Public methodSetScalingRotationTranslation
Wide setter for character position. The character position is the position of a font model's origin with respect to the expected position of the pattern which the user supplies at run-time.
Public methodSuspendChangedEvent
Temporarily suspends the raising of the Changed event. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSfFontModelCount
This bit will be set in the EventArgs of a Changed event every time the value returned by FontModelCount may have changed.
Public fieldStatic memberSfGetFontModelInstance
This bit will be set in the EventArgs of a Changed event every time the value returned by GetFontModelInstance may have changed.
Public fieldStatic memberSfGetFontModelName
This bit will be set in the EventArgs of a Changed event every time the value returned by GetFontModelName may have changed.
Public fieldStatic memberSfRotation
This bit will be set in the EventArgs of a Changed event every time the value returned by Rotation may have changed.
Public fieldStatic memberSfRotationUncertainty
This bit will be set in the EventArgs of a Changed event every time the value returned by RotationUncertainty may have changed.
Public fieldStatic memberSfRunTimeAcceptThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by RunTimeAcceptThreshold may have changed.
Public fieldStatic memberSfRunTimeConfidenceThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by RunTimeConfidenceThreshold may have changed.
Public fieldStatic memberSfScaling
This bit will be set in the EventArgs of a Changed event every time the value returned by Scaling may have changed.
Public fieldStatic memberSfScalingUncertainty
This bit will be set in the EventArgs of a Changed event every time the value returned by ScalingUncertainty may have changed.
Public fieldStatic memberSfTranslationUncertainty
This bit will be set in the EventArgs of a Changed event every time the value returned by TranslationUncertainty may have changed.
Public fieldStatic memberSfTranslationX
This bit will be set in the EventArgs of a Changed event every time the value returned by TranslationX may have changed.
Public fieldStatic memberSfTranslationY
This bit will be set in the EventArgs of a Changed event every time the value returned by TranslationY may have changed.
Public fieldStatic memberSfUsePatternCharacterUncertainties
This bit will be set in the EventArgs of a Changed event every time the value returned by UsePatternCharacterUncertainties may have changed.
Public fieldStatic memberSfUsePatternRunTimeCharacterThresholds
This bit will be set in the EventArgs of a Changed event every time the value returned by UsePatternRunTimeCharacterThresholds may have changed.
Top
Properties

  NameDescription
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
Public propertyFontModelCount
Number of model candidates for this position. OCV verifies the highest scoring candidate. Models are specified using FontModelName & FontModelInstance. Increasing count adds models with an empty name and instance of zero. Decreasing removes candidates.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyRotation
The expected rotation, in radians, of this character position. The character position is the position of a font model's origin with respect to the expected position of the pattern which the user supplies at run-time.
Public propertyRotationUncertainty
Rotation uncertainty specifies the expected +/- range, in radians, of the image-to-image variation of a character's rotation. This is an unsigned value.
Public propertyRunTimeAcceptThreshold
The accept threshold specifies the matching score below which a character will fail verification.
Public propertyRunTimeConfidenceThreshold
The confidence score is the amount that a character's matching score must exceed the highest scoring confusing character in order to pass verification.
Public propertyScaling
The expected scaling factor of this character position. The character position is the position of a font model's origin with respect to the expected position of the pattern which the user supplies at run-time.
Public propertyScalingUncertainty
Scaling uncertainty specifies the expected +/- range of the of the image-to-image variation of a character's scaling factor. This is an unsigned value.
Public propertyTranslationUncertainty
Translation uncertainty specifies the expected +/- range of the image-to-image variation of a character's x,y position. This is an unsigned value.
Public propertyTranslationX
The expected X coordinate of this character position. This is the position of a font model's origin with respect to the expected position of the pattern which the user supplies at run-time.
Public propertyTranslationY
The expected Y coordinate of this character position. This is the position of a font model's origin with respect to the expected position of the pattern which the user supplies at run-time.
Public propertyUsePatternCharacterUncertainties
If true then this character position will use the common uncertainty settings in the pattern. Otherwise, this position will use the uncertainty settings specified by its own properties.
Public propertyUsePatternRunTimeCharacterThresholds
If set, the thresholds for the location will come from pattern's character location settings when the run-time parameter is built.
Top
Events

  NameDescription
Public eventChanged
Occurs when one or more parts of the object's state may have changed.
Top
Remarks

Interface that provides access to the character position parameters. This interface lets you specify which character models to verify, their expected positions and positional uncertainties, as well as their accept and confidence thresholds.

See Also