System MarshalByRefObject
Cognex.VisionPro.Implementation CogObjectBase
Cognex.VisionPro.Implementation CogSerializableObjectBase
Cognex.VisionPro.Implementation CogSerializableChangedEventBase
Cognex.VisionPro.OCRMax CogOCRMaxSwapChar
Namespace: Cognex.VisionPro.OCRMax
Assembly: Cognex.VisionPro.OCRMax (in Cognex.VisionPro.OCRMax.dll) Version: 65.1.0.0
The CogOCRMaxSwapChar type exposes the following members.
| Name | Description | |
|---|---|---|
| CogOCRMaxSwapChar |
Construct a default CogOCRMaxSwapChar object.
| |
| CogOCRMaxSwapChar(CogOCRMaxSwapChar) |
Constructs a deep copy of the supplied CogOCRMaxSwapChar object.
| |
| CogOCRMaxSwapChar(SerializationInfo, StreamingContext) |
Serialization constructor for CogOCRMaxSwapChar.
|
| Name | Description | |
|---|---|---|
| Contains |
Returns true if characterCode is included in this swap character.
| |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
| Degen |
Returns true if this group of swap character is degenerate, i.e.,
containing less than two members.
| |
| Dispose | ||
| Dispose(Boolean) | ||
| Equals | (Inherited from Object.) | |
| Finalize | (Overrides Object Finalize .) | |
| GetAttributes |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetCharacterCodes |
Get a copy of the (UTF-32) character codes that are defined as
"swappable" (They appear similar and are hard to distinguish, e.g. '0'
(zero) and 'O' (capital oh)).
| |
| GetClassName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetComponentName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetConverter |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultEvent |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultProperty |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEditor |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents( Attribute ) |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| GetObjectData | (Overrides CogSerializableObjectBase GetObjectData(SerializationInfo, StreamingContext).) | |
| GetProperties |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetProperties( Attribute ) |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetPropertyOwner |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetString |
Get a string representation of the (UTF-32) character codes that are
defined as "swappable" (They appear similar and are hard to distinguish,
e.g. '0' (zero) and 'O' (capital oh)).
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
| OnChanged(Int64) |
This method should be called internally whenever the object's state may
have changed.
(Inherited from CogSerializableChangedEventBase.) | |
| OnChanged(CogChangedEventArgs) |
This method may be called internally whenever a derived object's state
may have changed and the derived object expresses this change via a
derived CogChangedEventArgs class.
(Inherited from CogSerializableChangedEventBase.) | |
| ResumeAndRaiseChangedEvent |
Re-enables raising of the Changed event after SuspendChangedEvent
has been called, and 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.
(Inherited from CogSerializableChangedEventBase.) | |
| SetCharacters( Int32 ) |
Set the characters (UTF-32) that are defined as "swappable" (They appear
similar and are hard to distinguish, e.g. '0' (zero) and 'O' (capital
oh)).
| |
| SetCharacters(String) |
Set the characters that are defined as "swappable" (They appear similar
and are hard to distinguish, e.g. '0' (zero) and 'O' (capital oh)).
| |
| SuspendChangedEvent |
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.
(Inherited from CogSerializableChangedEventBase.) | |
| ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| SfDegen |
This bit will be set in the EventArgs of a Changed event every time the
value returned by Degen may have changed.
| |
| SfGetCharacterCodes |
This bit will be set in the EventArgs of a Changed event every time the
value returned by GetCharacterCodes may have changed.
| |
| SfGetString |
This bit will be set in the EventArgs of a Changed event every time the
value returned by GetString may have changed.
| |
| SfNextSf |
| Name | Description | |
|---|---|---|
| ChangedEventSuspended |
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.
(Inherited from CogSerializableChangedEventBase.) | |
| HasChanged | (Inherited from CogSerializableChangedEventBase.) | |
| StateFlags |
Returns the complete set of state flags supported on this object. The
flags may be indexed by name as shown in the following C# code snippet:
if (changedObject.StateFlags["Color"] & eventArgs.StateFlags) { ... }
(Inherited from CogSerializableChangedEventBase.) |
| Name | Description | |
|---|---|---|
| Changed |
This event is raised when one or more parts of the object's state may
have changed.
(Inherited from CogSerializableChangedEventBase.) |
SwapChars are used by the classifier. The classifier will ignore swap chars when calculating its confidence score. Additionally the AlternateCharacters in the OCRMax result will never contain a character that is a SwapChar of the primary result.
A user may configure the swap chars to prevent the classifier from failing an otherwise understandable string due to confusion between two or more characters which are known to have very similar appearances (e.g. '0' and 'O'). In this cases the user has determined that it does not matter if the tool reads a '0' or an 'O', because the correct string can be determined by the surrounding context or by using prior knowledge of the text being read.
To illustrate: The information contained in the string "0ctober 2Oth" is still evident despite the fact that the CogOCRMaxTool read '0' (zero) and 'O' (capital oh) in the incorrect positions.