eVision Python API
Loading...
Searching...
No Matches
eVision.EOCR2 Class Reference

Manages a complete context for the font-dependent printed character reader implemented in EasyOCR2. More...

Public Member Functions

None __init__ (self)
 Constructs an eVision.EOCR2 context.
None __init__ (self, eVision.EOCR2 other)
 Constructs an eVision.EOCR2 context.
str Read (self, eVision.EROIBW8 srcRoi)
 Performs all steps required for reading text from an image:
str Read (self, eVision.EROIBW8 srcRoi, eVision.ERegion region)
 Performs all steps required for reading text from an image:
eVision.EOCR2Text Read2 (self, eVision.EROIBW8 srcRoi)
 Performs all steps required for reading text from an image:
eVision.EOCR2Text Read2 (self, eVision.EROIBW8 srcRoi, eVision.ERegion region)
 Performs all steps required for reading text from an image:
eVision.EOCR2Text Read2 (self, eVision.EROIBW8 srcRoi, eVision.ERegion region, eVision.EFrame frame)
 Performs all steps required for reading text from an image:
eVision.EOCR2Text Read2 (self, eVision.EROIBW8 srcRoi, eVision.EFrame frame)
 Performs all steps required for reading text from an image:
eVision.EOCR2Text Detect (self, eVision.EROIBW8 srcRoi)
 Finds the text in an image as follows:
eVision.EOCR2Text Detect (self, eVision.EROIBW8 srcRoi, eVision.ERegion region)
 Finds the text in an image as follows:
eVision.EOCR2Text Detect (self, eVision.EROIBW8 srcRoi, eVision.ERegion region, eVision.EFrame frame)
 Finds the text in an image as follows:
eVision.EOCR2Text Detect (self, eVision.EROIBW8 srcRoi, eVision.EFrame frame)
 Finds the text in an image as follows:
None RecognizeText (self, eVision.EOCR2Text text)
 Recognizes the characters in a given eVision.EOCR2Text instance, based on a given reference font.
None RecognizeText (self, eVision.EOCR2Text text, eVision.EFrame frame)
 Recognizes the characters in a given eVision.EOCR2Text instance, based on a given reference font.
str Recognize (self, eVision.EOCR2Text text)
 Recognizes the characters in a given eVision.EOCR2Text instance, based on a given reference font.
str Recognize (self, eVision.EOCR2Text text, eVision.EFrame frame)
 Recognizes the characters in a given eVision.EOCR2Text instance, based on a given reference font.
str Recognize (self, eVision.EOCR2Text text, eVision.EROIBW8 srcRoi)
 Recognizes the characters in a given eVision.EOCR2Text instance, based on a given reference font.
str Recognize (self, eVision.EOCR2Text text, eVision.EROIBW8 srcRoi, eVision.EFrame frame)
 Recognizes the characters in a given eVision.EOCR2Text instance, based on a given reference font.
None AddCharactersToDatabase (self, str file)
 Reads reference characters from disk and adds them to the database used for text recognition.
None AddCharactersToDatabase (self, str file, eVision.EasyOCR2CharacterFilter filter)
 Reads reference characters from disk and adds them to the database used for text recognition.
None SaveCharacterDatabase (self, str file)
 Saves the current reference character database to disk.
None ClearCharacterDatabase (self)
 Clears the reference character database from this eVision.EOCR2 instance.
None Learn (self, eVision.EOCR2Char character)
 Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.
None Learn (self, eVision.EOCR2Word word)
 Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.
None Learn (self, eVision.EOCR2Line line)
 Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.
None Learn (self, eVision.EOCR2Text text)
 Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.
None Learn (self, eVision.EOCR2Char character, eVision.EFrame frame)
 Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.
None Learn (self, eVision.EOCR2Word word, eVision.EFrame frame)
 Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.
None Learn (self, eVision.EOCR2Line line, eVision.EFrame frame)
 Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.
None Learn (self, eVision.EOCR2Text text, eVision.EFrame frame)
 Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.
None Save (self, str modelPath)
 Saves the model to disk, containing the current parameter setting used for all operations in eVision.EOCR2.
None Save (self, eVision.ESerializer|None serializer)
 Saves the model to disk, containing the current parameter setting used for all operations in eVision.EOCR2.
None Load (self, str modelPath)
 Loads a model, containing parameter settings used for all operations in eVision.EOCR2.__init__, from disk.
None Load (self, eVision.ESerializer|None serializer)
 Loads a model, containing parameter settings used for all operations in eVision.EOCR2.__init__, from disk.
None DrawSegmentation (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawSegmentationStyle style, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Draws the blobs found by the segmentation algorithm.
None DrawSegmentation (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawSegmentationStyle style, float zoomX, float zoomY, float panX, float panY)
 Draws the blobs found by the segmentation algorithm.
None DrawSegmentation (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawSegmentationStyle style, float zoomX, float zoomY, float panX)
 Draws the blobs found by the segmentation algorithm.
None DrawSegmentation (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawSegmentationStyle style, float zoomX, float zoomY)
 Draws the blobs found by the segmentation algorithm.
None DrawSegmentation (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawSegmentationStyle style, float zoomX)
 Draws the blobs found by the segmentation algorithm.
None DrawSegmentation (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawSegmentationStyle style)
 Draws the blobs found by the segmentation algorithm.
None DrawDetection (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawDetectionStyle style, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Draws the bounding boxes found by the topology detection algorithm.
None DrawDetection (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawDetectionStyle style, float zoomX, float zoomY, float panX, float panY)
 Draws the bounding boxes found by the topology detection algorithm.
None DrawDetection (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawDetectionStyle style, float zoomX, float zoomY, float panX)
 Draws the bounding boxes found by the topology detection algorithm.
None DrawDetection (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawDetectionStyle style, float zoomX, float zoomY)
 Draws the bounding boxes found by the topology detection algorithm.
None DrawDetection (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawDetectionStyle style, float zoomX)
 Draws the bounding boxes found by the topology detection algorithm.
None DrawDetection (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawDetectionStyle style)
 Draws the bounding boxes found by the topology detection algorithm.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style, int cHeight, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Draws the recognized text next to the character bounding box in the image.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style, int cHeight, float zoomX, float zoomY, float panX, float panY)
 Draws the recognized text next to the character bounding box in the image.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style, int cHeight, float zoomX, float zoomY, float panX)
 Draws the recognized text next to the character bounding box in the image.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style, int cHeight, float zoomX, float zoomY)
 Draws the recognized text next to the character bounding box in the image.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style, int cHeight, float zoomX)
 Draws the recognized text next to the character bounding box in the image.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style, int cHeight)
 Draws the recognized text next to the character bounding box in the image.
None DrawRecognition (self, eVision.EDrawAdapter|None drawAdapter, eVision.EasyOCR2DrawRecognitionStyle style)
 Draws the recognized text next to the character bounding box in the image.
bool HitTestChar (self, eVision.EOCR2Char character, int x, int y, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Tests the cursor position for the presence of a character.
bool HitTestChar (self, eVision.EOCR2Char character, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Tests the cursor position for the presence of a character.
bool HitTestChar (self, eVision.EOCR2Char character, int x, int y, float zoomX, float zoomY, float panX)
 Tests the cursor position for the presence of a character.
bool HitTestChar (self, eVision.EOCR2Char character, int x, int y, float zoomX, float zoomY)
 Tests the cursor position for the presence of a character.
bool HitTestChar (self, eVision.EOCR2Char character, int x, int y, float zoomX)
 Tests the cursor position for the presence of a character.
bool HitTestChar (self, eVision.EOCR2Char character, int x, int y)
 Tests the cursor position for the presence of a character.
bool HitTestWord (self, eVision.EOCR2Word word, int x, int y, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Tests the cursor position for the presence of a word.
bool HitTestWord (self, eVision.EOCR2Word word, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Tests the cursor position for the presence of a word.
bool HitTestWord (self, eVision.EOCR2Word word, int x, int y, float zoomX, float zoomY, float panX)
 Tests the cursor position for the presence of a word.
bool HitTestWord (self, eVision.EOCR2Word word, int x, int y, float zoomX, float zoomY)
 Tests the cursor position for the presence of a word.
bool HitTestWord (self, eVision.EOCR2Word word, int x, int y, float zoomX)
 Tests the cursor position for the presence of a word.
bool HitTestWord (self, eVision.EOCR2Word word, int x, int y)
 Tests the cursor position for the presence of a word.
bool HitTestLine (self, eVision.EOCR2Line line, int x, int y, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Tests the cursor position for the presence of a line.
bool HitTestLine (self, eVision.EOCR2Line line, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Tests the cursor position for the presence of a line.
bool HitTestLine (self, eVision.EOCR2Line line, int x, int y, float zoomX, float zoomY, float panX)
 Tests the cursor position for the presence of a line.
bool HitTestLine (self, eVision.EOCR2Line line, int x, int y, float zoomX, float zoomY)
 Tests the cursor position for the presence of a line.
bool HitTestLine (self, eVision.EOCR2Line line, int x, int y, float zoomX)
 Tests the cursor position for the presence of a line.
bool HitTestLine (self, eVision.EOCR2Line line, int x, int y)
 Tests the cursor position for the presence of a line.
bool HitTestText (self, eVision.EOCR2Text text, int x, int y, float zoomX, float zoomY, float panX, float panY, eVision.EFrame frame)
 Tests the cursor position for the presence of a text.
bool HitTestText (self, eVision.EOCR2Text text, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Tests the cursor position for the presence of a text.
bool HitTestText (self, eVision.EOCR2Text text, int x, int y, float zoomX, float zoomY, float panX)
 Tests the cursor position for the presence of a text.
bool HitTestText (self, eVision.EOCR2Text text, int x, int y, float zoomX, float zoomY)
 Tests the cursor position for the presence of a text.
bool HitTestText (self, eVision.EOCR2Text text, int x, int y, float zoomX)
 Tests the cursor position for the presence of a text.
bool HitTestText (self, eVision.EOCR2Text text, int x, int y)
 Tests the cursor position for the presence of a text.
None ClearResult (self)
 Clear the current detected text if it exists.
None AddClassifierForSymbol (self, str symbol, eVision.EOCR2Classifier classifier)
 Adds the EOCR2Classifier for the given specific symbol combination during the recognition instead of the one set by eVision.EOCR2.Classifier.
eVision.EOCR2Classifier GetClassifierForSymbol (self, str symbol)
 Gets the EOCR2Classifier for the given specific symbol combination during the recognition instead of the one set by eVision.EOCR2.Classifier.
None RemoveClassifierForSymbol (self, str symbol)
 Removes the EOCR2Classifier for the given specific symbol combination during the recognition so the one set by eVision.EOCR2.Classifier will be used.
bool HasDatabaseClassifier (self)
 Returns whether this reader has a database classifier set and ready to use.
str Topology (self)
 Sets the topology of the text that should be found in the image.
 Topology (self, str value)
 Sets the topology of the text that should be found in the image.
bool EnabledTopology (self)
 Sets whether the topology is required or not.
 EnabledTopology (self, bool value)
 Sets whether the topology is required or not.
bool RepasteObjects (self)
 Sets whether EOCR2 groups or does not group the blobs believed to belong to the same character.
 RepasteObjects (self, bool value)
 Sets whether EOCR2 groups or does not group the blobs believed to belong to the same character.
bool EnableOffSizeCharacter (self)
 Sets whether EOCR2 allows or not the detection of characters whose size (width and height) is out of the size parameters if they are in the vicinity of characters in valid size range.
 EnableOffSizeCharacter (self, bool value)
 Sets whether EOCR2 allows or not the detection of characters whose size (width and height) is out of the size parameters if they are in the vicinity of characters in valid size range.
bool EnableCutLargeCharacter (self)
 Sets whether EOCR2 detection should split or not segmented blobs into multiple characters if they are wider than the given character width range parameter.
 EnableCutLargeCharacter (self, bool value)
 Sets whether EOCR2 detection should split or not segmented blobs into multiple characters if they are wider than the given character width range parameter.
bool EnableSecondPassGlobalSegmentation (self)
 Sets whether EOCR2 segmentation should do or not do an extra pass to determine the best threshold using the eVision.EOCR2SegmentationMethod.Global segmentation method.
 EnableSecondPassGlobalSegmentation (self, bool value)
 Sets whether EOCR2 segmentation should do or not do an extra pass to determine the best threshold using the eVision.EOCR2SegmentationMethod.Global segmentation method.
eVision.EThresholdMode GlobalSegmentationThresholdMode (self)
 Sets/Gets the eVision.EThresholdMode used when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.
 GlobalSegmentationThresholdMode (self, eVision.EThresholdMode value)
 Sets/Gets the eVision.EThresholdMode used when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.
float GlobalSegmentationRelativeThreshold (self)
 Sets/Gets the fraction of the image pixels that will be set below the threshold used when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.
 GlobalSegmentationRelativeThreshold (self, float value)
 Sets/Gets the fraction of the image pixels that will be set below the threshold used when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.
int GlobalSegmentationAbsoluteThreshold (self)
 Gets the value of the image pixels that will be set below the threshold used when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.
 GlobalSegmentationAbsoluteThreshold (self, int value)
 Gets the value of the image pixels that will be set below the threshold used when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.
eVision.EIntegerRange CharsWidthRange (self)
 Sets the range of expected character widths in pixels.
 CharsWidthRange (self, eVision.EIntegerRange value)
 Sets the range of expected character widths in pixels.
int CharsWidth (self)
 Sets the expected character width in pixels.
 CharsWidth (self, int value)
 Sets the expected character width in pixels.
float CharsWidthTolerance (self)
 Sets the CharsWidthTolerance parameter for the topology fitting algorithm, which will attempt to optimize the width of the bounding boxes to optimally fit the detected blobs.
 CharsWidthTolerance (self, float value)
 Sets the CharsWidthTolerance parameter for the topology fitting algorithm, which will attempt to optimize the width of the bounding boxes to optimally fit the detected blobs.
int CharsHeight (self)
 Sets the expected character height in pixels.
 CharsHeight (self, int value)
 Sets the expected character height in pixels.
eVision.EFloatRange RelativeSpacesWidthRange (self)
 Sets the range of expected spaces between words as a fraction of the character width.
 RelativeSpacesWidthRange (self, eVision.EFloatRange value)
 Sets the range of expected spaces between words as a fraction of the character width.
float MaxVariation (self)
 Sets the maxVariation parameter for the segmentation algorithm.
 MaxVariation (self, float value)
 Sets the maxVariation parameter for the segmentation algorithm.
float CharsMaxFragmentation (self)
 Sets the CharsMaxFragmentation parameter for the segmentation algorithm.
 CharsMaxFragmentation (self, float value)
 Sets the CharsMaxFragmentation parameter for the segmentation algorithm.
int DetectionDelta (self)
 Sets the DetectionDelta parameter for the segmentation algorithm.
 DetectionDelta (self, int value)
 Sets the DetectionDelta parameter for the segmentation algorithm.
eVision.EasyOCR2TextPolarity TextPolarity (self)
 Sets the TextPolarity parameter for the segmentation algorithm.
 TextPolarity (self, eVision.EasyOCR2TextPolarity value)
 Sets the TextPolarity parameter for the segmentation algorithm.
eVision.EasyOCR2CharWidthBias CharsWidthBias (self)
 Sets the CharsWidthBias parameter for the topology fitting algorithm, which optimizes the width of the bounding boxes to optimally fit the detected blobs.
 CharsWidthBias (self, eVision.EasyOCR2CharWidthBias value)
 Sets the CharsWidthBias parameter for the topology fitting algorithm, which optimizes the width of the bounding boxes to optimally fit the detected blobs.
eVision.EasyOCR2CharSpacingBias CharsSpacingBias (self)
 Sets the CharSpacingBias parameter for the topology fitting algorithm, which optimizes the spacing of the bounding boxes to optimally fit the detected blobs.
 CharsSpacingBias (self, eVision.EasyOCR2CharSpacingBias value)
 Sets the CharSpacingBias parameter for the topology fitting algorithm, which optimizes the spacing of the bounding boxes to optimally fit the detected blobs.
eVision.EFloatRange TextAngleRange (self)
 Sets the TextAngleRange parameter for the topology fitting algorithm, which will attempt to find the angle of the text in the image with respect to the horizontal.
 TextAngleRange (self, eVision.EFloatRange value)
 Sets the TextAngleRange parameter for the topology fitting algorithm, which will attempt to find the angle of the text in the image with respect to the horizontal.
float TextBaseAngle (self)
 Sets the TextBaseAngle parameter for the topology fitting algorithm, which will attempt to find the angle of the text in the image with respect to the horizontal.
 TextBaseAngle (self, float value)
 Sets the TextBaseAngle parameter for the topology fitting algorithm, which will attempt to find the angle of the text in the image with respect to the horizontal.
float TextAngleTolerance (self)
 Sets the TextAngleTolerance parameter for the topology fitting algorithm, which finds the angle of the text in the image with respect to the horizontal.
 TextAngleTolerance (self, float value)
 Sets the TextAngleTolerance parameter for the topology fitting algorithm, which finds the angle of the text in the image with respect to the horizontal.
eVision.EOCR2DetectionMethod DetectionMethod (self)
 Sets the EOCR2DetectionMethod parameter for the topology fitting algorithm, which will place text boxes on the segmentation results, matching the given topology.
 DetectionMethod (self, eVision.EOCR2DetectionMethod value)
 Sets the EOCR2DetectionMethod parameter for the topology fitting algorithm, which will place text boxes on the segmentation results, matching the given topology.
eVision.EasyOCR2CharacterFilter AllowedCharacterTypes (self)
 Sets which character types are expected when eVision.EOCR2.EnabledTopology is false.
 AllowedCharacterTypes (self, eVision.EasyOCR2CharacterFilter value)
 Sets which character types are expected when eVision.EOCR2.EnabledTopology is false.
int NumDetectionPasses (self)
 Sets the NumDetectionPasses parameter for the topology fitting algorithm, which will place text boxes on the segmentation results (blobs).
 NumDetectionPasses (self, int value)
 Sets the NumDetectionPasses parameter for the topology fitting algorithm, which will place text boxes on the segmentation results (blobs).
eVision.EOCR2SegmentationMethod SegmentationMethod (self)
 Sets the EOCR2SegmentationMethod parameter for the segmentation algorithm, which will detect blobs in the image.
 SegmentationMethod (self, eVision.EOCR2SegmentationMethod value)
 Sets the EOCR2SegmentationMethod parameter for the segmentation algorithm, which will detect blobs in the image.
eVision.EOCR2CharacterDatabase CharacterDatabase (self)
 Sets the eVision.EOCR2CharacterDatabase used for recognizing text.
 CharacterDatabase (self, eVision.EOCR2CharacterDatabase value)
 Sets the eVision.EOCR2CharacterDatabase used for recognizing text.
eVision.EOCR2Text ReadText (self)
 Outputs an eVision.EOCR2Text structure containing the detailed detection and recognition results.
int TimeOut (self)
 Time-out for the eVision.EOCR2.Read, eVision.EOCR2.Detect and eVision.EOCR2.Recognize methods.
 TimeOut (self, int value)
 Time-out for the eVision.EOCR2.Read, eVision.EOCR2.Detect and eVision.EOCR2.Recognize methods.
eVision.EOCR2Classifier Classifier (self)
 Sets the EOCR2Classifier parameter for the recognition algorithm.
 Classifier (self, eVision.EOCR2Classifier value)
 Sets the EOCR2Classifier parameter for the recognition algorithm.
bool EnableGPU (self)
 Sets/Gets whether EOCR2 uses a GPU to accelerate its processing.
 EnableGPU (self, bool value)
 Sets/Gets whether EOCR2 uses a GPU to accelerate its processing.
list[int] GPUIndexes (self)
 Sets/gets the GPUs to use when computing.
 GPUIndexes (self, list[int] value)
 Sets/gets the GPUs to use when computing.

Detailed Description

Manages a complete context for the font-dependent printed character reader implemented in EasyOCR2.

Remarks:

License(s): EasyOCR2

Constructor & Destructor Documentation

◆ __init__() [1/2]

None eVision.EOCR2.__init__ ( self)

Constructs an eVision.EOCR2 context.

◆ __init__() [2/2]

None eVision.EOCR2.__init__ ( self,
eVision.EOCR2 other )

Constructs an eVision.EOCR2 context.

Parameters
otherThe other eVision.EOCR2 that we will copy into this one.

Member Function Documentation

◆ AddCharactersToDatabase() [1/2]

None eVision.EOCR2.AddCharactersToDatabase ( self,
str file )

Reads reference characters from disk and adds them to the database used for text recognition.

The characters can be read from a trueType (.ttf/.ttc) file or from an EasyOCR2 database file.

Parameters
fileA string containing the path of the file.

◆ AddCharactersToDatabase() [2/2]

None eVision.EOCR2.AddCharactersToDatabase ( self,
str file,
eVision.EasyOCR2CharacterFilter filter )

Reads reference characters from disk and adds them to the database used for text recognition.

The characters can be read from a trueType (.ttf/.ttc) file or from an EasyOCR2 database file.

Parameters
fileA string containing the path of the file.
filterOptional parameter; an eVision.EasyOCR2CharacterFilter that tells the method which subset of the character-set should be loaded.

◆ AddClassifierForSymbol()

None eVision.EOCR2.AddClassifierForSymbol ( self,
str symbol,
eVision.EOCR2Classifier classifier )

Adds the EOCR2Classifier for the given specific symbol combination during the recognition instead of the one set by eVision.EOCR2.Classifier.

Remarks:

The only accepted eVision.EOCR2Classifier is currently eVision.EOCR2Classifier.DatabaseClassifier. Symbol combinations are the same as used in the topology, ex : Lu, P or [LlNS]. See eVision.EOCR2.Topology for more details.

Parameters
symbolsymbol combination to add classifier for
classifierclassifier to add to symbol

◆ AllowedCharacterTypes() [1/2]

eVision.EasyOCR2CharacterFilter eVision.EOCR2.AllowedCharacterTypes ( self)

Sets which character types are expected when eVision.EOCR2.EnabledTopology is false.

The set of expected character types is represented by a bitwise combination of different eVision.EasyOCR2CharacterFilter.

Remarks:

For example, digits and uppercase letters can be expressed by eVision.EasyOCR2CharacterFilter.UpperCaseLetters | eVision.EasyOCR2CharacterFilter.Digits. The default setting for this parameter is eVision.EasyOCR2CharacterFilter.ASCII.

◆ AllowedCharacterTypes() [2/2]

eVision.EOCR2.AllowedCharacterTypes ( self,
eVision.EasyOCR2CharacterFilter value )

Sets which character types are expected when eVision.EOCR2.EnabledTopology is false.

The set of expected character types is represented by a bitwise combination of different eVision.EasyOCR2CharacterFilter.

Remarks:

For example, digits and uppercase letters can be expressed by eVision.EasyOCR2CharacterFilter.UpperCaseLetters | eVision.EasyOCR2CharacterFilter.Digits. The default setting for this parameter is eVision.EasyOCR2CharacterFilter.ASCII.

◆ CharacterDatabase() [1/2]

eVision.EOCR2CharacterDatabase eVision.EOCR2.CharacterDatabase ( self)

Sets the eVision.EOCR2CharacterDatabase used for recognizing text.

Remarks:

Setting a new characterDatabase will overwrite the current one.

◆ CharacterDatabase() [2/2]

eVision.EOCR2.CharacterDatabase ( self,
eVision.EOCR2CharacterDatabase value )

Sets the eVision.EOCR2CharacterDatabase used for recognizing text.

Remarks:

Setting a new characterDatabase will overwrite the current one.

◆ CharsHeight() [1/2]

int eVision.EOCR2.CharsHeight ( self)

Sets the expected character height in pixels.

◆ CharsHeight() [2/2]

eVision.EOCR2.CharsHeight ( self,
int value )

Sets the expected character height in pixels.

◆ CharsMaxFragmentation() [1/2]

float eVision.EOCR2.CharsMaxFragmentation ( self)

Sets the CharsMaxFragmentation parameter for the segmentation algorithm.

This will determine the minimum size a blob should be in order to be considered a potential character. A high setting will allow only larger blobs, a low setting will also allow smaller blobs.

The minimum blob size to be considered a potential character is defined as: CharsMaxFragmentation * CharsHeight * CharsWidth

Remarks:

This parameter should be set between 0.0 and 1.0, the default setting is 0.1.

◆ CharsMaxFragmentation() [2/2]

eVision.EOCR2.CharsMaxFragmentation ( self,
float value )

Sets the CharsMaxFragmentation parameter for the segmentation algorithm.

This will determine the minimum size a blob should be in order to be considered a potential character. A high setting will allow only larger blobs, a low setting will also allow smaller blobs.

The minimum blob size to be considered a potential character is defined as: CharsMaxFragmentation * CharsHeight * CharsWidth

Remarks:

This parameter should be set between 0.0 and 1.0, the default setting is 0.1.

◆ CharsSpacingBias() [1/2]

eVision.EasyOCR2CharSpacingBias eVision.EOCR2.CharsSpacingBias ( self)

Sets the CharSpacingBias parameter for the topology fitting algorithm, which optimizes the spacing of the bounding boxes to optimally fit the detected blobs.

This will determine whether the method is biased toward finding narrow spacing, wide spacing or is neutral.

Remarks:

The default setting for this parameter is eVision.EasyOCR2CharSpacingBias.Neutral

◆ CharsSpacingBias() [2/2]

eVision.EOCR2.CharsSpacingBias ( self,
eVision.EasyOCR2CharSpacingBias value )

Sets the CharSpacingBias parameter for the topology fitting algorithm, which optimizes the spacing of the bounding boxes to optimally fit the detected blobs.

This will determine whether the method is biased toward finding narrow spacing, wide spacing or is neutral.

Remarks:

The default setting for this parameter is eVision.EasyOCR2CharSpacingBias.Neutral

◆ CharsWidth() [1/2]

int eVision.EOCR2.CharsWidth ( self)

Sets the expected character width in pixels.

Deprecated

Use eVision.EOCR2.CharsWidthRange instead.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ CharsWidth() [2/2]

eVision.EOCR2.CharsWidth ( self,
int value )

Sets the expected character width in pixels.

Deprecated

Use eVision.EOCR2.CharsWidthRange instead.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ CharsWidthBias() [1/2]

eVision.EasyOCR2CharWidthBias eVision.EOCR2.CharsWidthBias ( self)

Sets the CharsWidthBias parameter for the topology fitting algorithm, which optimizes the width of the bounding boxes to optimally fit the detected blobs.

This will determine whether the method is biased toward finding narrow boxes, wide boxes or is neutral.

Remarks:

The default setting for this parameter is eVision.EasyOCR2CharWidthBias.Neutral

◆ CharsWidthBias() [2/2]

eVision.EOCR2.CharsWidthBias ( self,
eVision.EasyOCR2CharWidthBias value )

Sets the CharsWidthBias parameter for the topology fitting algorithm, which optimizes the width of the bounding boxes to optimally fit the detected blobs.

This will determine whether the method is biased toward finding narrow boxes, wide boxes or is neutral.

Remarks:

The default setting for this parameter is eVision.EasyOCR2CharWidthBias.Neutral

◆ CharsWidthRange() [1/2]

eVision.EIntegerRange eVision.EOCR2.CharsWidthRange ( self)

Sets the range of expected character widths in pixels.

◆ CharsWidthRange() [2/2]

eVision.EOCR2.CharsWidthRange ( self,
eVision.EIntegerRange value )

Sets the range of expected character widths in pixels.

◆ CharsWidthTolerance() [1/2]

float eVision.EOCR2.CharsWidthTolerance ( self)

Sets the CharsWidthTolerance parameter for the topology fitting algorithm, which will attempt to optimize the width of the bounding boxes to optimally fit the detected blobs.

This will determine the range of bounding box sizes that will be accepted, defined as: (1 - CharsWidthTolerance) * CharsWidth <= BBoxWidth <= (1 + CharsWidthTolerance) * CharsWidth

Remarks:

The CharsWidthTolerance parameter should be between 0.0 and 1.0, the default setting is 0.25.

Deprecated

Use eVision.EOCR2.CharsWidthRange instead.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ CharsWidthTolerance() [2/2]

eVision.EOCR2.CharsWidthTolerance ( self,
float value )

Sets the CharsWidthTolerance parameter for the topology fitting algorithm, which will attempt to optimize the width of the bounding boxes to optimally fit the detected blobs.

This will determine the range of bounding box sizes that will be accepted, defined as: (1 - CharsWidthTolerance) * CharsWidth <= BBoxWidth <= (1 + CharsWidthTolerance) * CharsWidth

Remarks:

The CharsWidthTolerance parameter should be between 0.0 and 1.0, the default setting is 0.25.

Deprecated

Use eVision.EOCR2.CharsWidthRange instead.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Classifier() [1/2]

eVision.EOCR2Classifier eVision.EOCR2.Classifier ( self)

Sets the EOCR2Classifier parameter for the recognition algorithm.

This will determine which classifier will be used for the recognition.

Remarks:

The default setting for this parameter is eVision.EOCR2Classifier.DatabaseClassifier.

◆ Classifier() [2/2]

eVision.EOCR2.Classifier ( self,
eVision.EOCR2Classifier value )

Sets the EOCR2Classifier parameter for the recognition algorithm.

This will determine which classifier will be used for the recognition.

Remarks:

The default setting for this parameter is eVision.EOCR2Classifier.DatabaseClassifier.

◆ ClearCharacterDatabase()

None eVision.EOCR2.ClearCharacterDatabase ( self)

Clears the reference character database from this eVision.EOCR2 instance.

◆ ClearResult()

None eVision.EOCR2.ClearResult ( self)

Clear the current detected text if it exists.

Deprecated

Use the returned eVision.EOCR2Text instead.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

◆ Detect() [1/4]

eVision.EOCR2Text eVision.EOCR2.Detect ( self,
eVision.EROIBW8 srcRoi )

Finds the text in an image as follows:

  1. Detects potential characters in the image following the given text polarity.
  2. Fits bounding boxes to the detected characters, following the given topology and character width/height.
  3. Extracts the detected characters from the image.

The detected characters are output as an eVision.EOCR2Text structure.

Remarks:

The variables Topology, CharHeight, CharWidth should be set before performing this operation. If the srcRoi is smaller than 3X3, an exception will be thrown.

Parameters
srcRoiThe source image/ROI.

◆ Detect() [2/4]

eVision.EOCR2Text eVision.EOCR2.Detect ( self,
eVision.EROIBW8 srcRoi,
eVision.EFrame frame )

Finds the text in an image as follows:

  1. Detects potential characters in the image following the given text polarity.
  2. Fits bounding boxes to the detected characters, following the given topology and character width/height.
  3. Extracts the detected characters from the image.

The detected characters are output as an eVision.EOCR2Text structure.

Remarks:

The variables Topology, CharHeight, CharWidth should be set before performing this operation. If the srcRoi is smaller than 3X3, an exception will be thrown.

Parameters
srcRoiThe source image/ROI.
frameReference frame of the input region.

◆ Detect() [3/4]

eVision.EOCR2Text eVision.EOCR2.Detect ( self,
eVision.EROIBW8 srcRoi,
eVision.ERegion region )

Finds the text in an image as follows:

  1. Detects potential characters in the image following the given text polarity.
  2. Fits bounding boxes to the detected characters, following the given topology and character width/height.
  3. Extracts the detected characters from the image.

The detected characters are output as an eVision.EOCR2Text structure.

Remarks:

The variables Topology, CharHeight, CharWidth should be set before performing this operation. If the srcRoi is smaller than 3X3, an exception will be thrown.

Parameters
srcRoiThe source image/ROI.
regionThe region of interest where the detection is performed.

◆ Detect() [4/4]

eVision.EOCR2Text eVision.EOCR2.Detect ( self,
eVision.EROIBW8 srcRoi,
eVision.ERegion region,
eVision.EFrame frame )

Finds the text in an image as follows:

  1. Detects potential characters in the image following the given text polarity.
  2. Fits bounding boxes to the detected characters, following the given topology and character width/height.
  3. Extracts the detected characters from the image.

The detected characters are output as an eVision.EOCR2Text structure.

Remarks:

The variables Topology, CharHeight, CharWidth should be set before performing this operation. If the srcRoi is smaller than 3X3, an exception will be thrown.

Parameters
srcRoiThe source image/ROI.
regionThe region of interest where the detection is performed.
frameReference frame of the input region.

◆ DetectionDelta() [1/2]

int eVision.EOCR2.DetectionDelta ( self)

Sets the DetectionDelta parameter for the segmentation algorithm.

This will determine the range of grayscale-values used to determine the stability of a blob. A low setting will make the algorithm more sensitive to noise, a high setting will make the algorithm insensitive to blobs with low contrast to the background.

Remarks:

This parameter should be set between 0 and 127, the default setting is 12.

◆ DetectionDelta() [2/2]

eVision.EOCR2.DetectionDelta ( self,
int value )

Sets the DetectionDelta parameter for the segmentation algorithm.

This will determine the range of grayscale-values used to determine the stability of a blob. A low setting will make the algorithm more sensitive to noise, a high setting will make the algorithm insensitive to blobs with low contrast to the background.

Remarks:

This parameter should be set between 0 and 127, the default setting is 12.

◆ DetectionMethod() [1/2]

eVision.EOCR2DetectionMethod eVision.EOCR2.DetectionMethod ( self)

Sets the EOCR2DetectionMethod parameter for the topology fitting algorithm, which will place text boxes on the segmentation results, matching the given topology.

Remarks:

The default setting for this parameter is eVision.EOCR2DetectionMethod.FixedWidth. This parameter is ignored when the topology is not required.

◆ DetectionMethod() [2/2]

eVision.EOCR2.DetectionMethod ( self,
eVision.EOCR2DetectionMethod value )

Sets the EOCR2DetectionMethod parameter for the topology fitting algorithm, which will place text boxes on the segmentation results, matching the given topology.

Remarks:

The default setting for this parameter is eVision.EOCR2DetectionMethod.FixedWidth. This parameter is ignored when the topology is not required.

◆ DrawDetection() [1/6]

None eVision.EOCR2.DrawDetection ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawDetectionStyle style )

Draws the bounding boxes found by the topology detection algorithm.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each detection box should be drawn.

◆ DrawDetection() [2/6]

None eVision.EOCR2.DrawDetection ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawDetectionStyle style,
float zoomX )

Draws the bounding boxes found by the topology detection algorithm.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each detection box should be drawn.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawDetection() [3/6]

None eVision.EOCR2.DrawDetection ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawDetectionStyle style,
float zoomX,
float zoomY )

Draws the bounding boxes found by the topology detection algorithm.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each detection box should be drawn.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.

◆ DrawDetection() [4/6]

None eVision.EOCR2.DrawDetection ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawDetectionStyle style,
float zoomX,
float zoomY,
float panX )

Draws the bounding boxes found by the topology detection algorithm.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each detection box should be drawn.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawDetection() [5/6]

None eVision.EOCR2.DrawDetection ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawDetectionStyle style,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the bounding boxes found by the topology detection algorithm.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each detection box should be drawn.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawDetection() [6/6]

None eVision.EOCR2.DrawDetection ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawDetectionStyle style,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Draws the bounding boxes found by the topology detection algorithm.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each detection box should be drawn.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
frameFrame used in the last read.

◆ DrawRecognition() [1/7]

None eVision.EOCR2.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style )

Draws the recognized text next to the character bounding box in the image.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.

◆ DrawRecognition() [2/7]

None eVision.EOCR2.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style,
int cHeight )

Draws the recognized text next to the character bounding box in the image.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
cHeightThe character-height with which the recognized text should be displayed.

◆ DrawRecognition() [3/7]

None eVision.EOCR2.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style,
int cHeight,
float zoomX )

Draws the recognized text next to the character bounding box in the image.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
cHeightThe character-height with which the recognized text should be displayed.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawRecognition() [4/7]

None eVision.EOCR2.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style,
int cHeight,
float zoomX,
float zoomY )

Draws the recognized text next to the character bounding box in the image.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
cHeightThe character-height with which the recognized text should be displayed.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.

◆ DrawRecognition() [5/7]

None eVision.EOCR2.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style,
int cHeight,
float zoomX,
float zoomY,
float panX )

Draws the recognized text next to the character bounding box in the image.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
cHeightThe character-height with which the recognized text should be displayed.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawRecognition() [6/7]

None eVision.EOCR2.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style,
int cHeight,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the recognized text next to the character bounding box in the image.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
cHeightThe character-height with which the recognized text should be displayed.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawRecognition() [7/7]

None eVision.EOCR2.DrawRecognition ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawRecognitionStyle style,
int cHeight,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Draws the recognized text next to the character bounding box in the image.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
cHeightThe character-height with which the recognized text should be displayed.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
frameFrame used in the last read.

◆ DrawSegmentation() [1/6]

None eVision.EOCR2.DrawSegmentation ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawSegmentationStyle style )

Draws the blobs found by the segmentation algorithm.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each blob should be drawn.

◆ DrawSegmentation() [2/6]

None eVision.EOCR2.DrawSegmentation ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawSegmentationStyle style,
float zoomX )

Draws the blobs found by the segmentation algorithm.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each blob should be drawn.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawSegmentation() [3/6]

None eVision.EOCR2.DrawSegmentation ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawSegmentationStyle style,
float zoomX,
float zoomY )

Draws the blobs found by the segmentation algorithm.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each blob should be drawn.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.

◆ DrawSegmentation() [4/6]

None eVision.EOCR2.DrawSegmentation ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawSegmentationStyle style,
float zoomX,
float zoomY,
float panX )

Draws the blobs found by the segmentation algorithm.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each blob should be drawn.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawSegmentation() [5/6]

None eVision.EOCR2.DrawSegmentation ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawSegmentationStyle style,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the blobs found by the segmentation algorithm.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each blob should be drawn.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawSegmentation() [6/6]

None eVision.EOCR2.DrawSegmentation ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EasyOCR2DrawSegmentationStyle style,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Draws the blobs found by the segmentation algorithm.

Deprecated

Use the draw methods attached to eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
styleThe style in which each blob should be drawn.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
frameFrame used in the last read.

◆ EnableCutLargeCharacter() [1/2]

bool eVision.EOCR2.EnableCutLargeCharacter ( self)

Sets whether EOCR2 detection should split or not segmented blobs into multiple characters if they are wider than the given character width range parameter.

The default setting for this parameter is false, and it is only applicable when the topology is not required or when the detectionMethod is set to eVision.EOCR2DetectionMethod.Proportional.

◆ EnableCutLargeCharacter() [2/2]

eVision.EOCR2.EnableCutLargeCharacter ( self,
bool value )

Sets whether EOCR2 detection should split or not segmented blobs into multiple characters if they are wider than the given character width range parameter.

The default setting for this parameter is false, and it is only applicable when the topology is not required or when the detectionMethod is set to eVision.EOCR2DetectionMethod.Proportional.

◆ EnabledTopology() [1/2]

bool eVision.EOCR2.EnabledTopology ( self)

Sets whether the topology is required or not.

If it is, eVision.EOCR2 will try to detect the topology accordingly with the eVision.EOCR2DetectionMethod parameter. The default setting for this parameter is true and topology has to be given with eVision.EOCR2.Topology.

◆ EnabledTopology() [2/2]

eVision.EOCR2.EnabledTopology ( self,
bool value )

Sets whether the topology is required or not.

If it is, eVision.EOCR2 will try to detect the topology accordingly with the eVision.EOCR2DetectionMethod parameter. The default setting for this parameter is true and topology has to be given with eVision.EOCR2.Topology.

◆ EnableGPU() [1/2]

bool eVision.EOCR2.EnableGPU ( self)

Sets/Gets whether EOCR2 uses a GPU to accelerate its processing.

Remarks:

Currently only the recognition with a deep-learning classifier can be accelerated with GPU.

◆ EnableGPU() [2/2]

eVision.EOCR2.EnableGPU ( self,
bool value )

Sets/Gets whether EOCR2 uses a GPU to accelerate its processing.

Remarks:

Currently only the recognition with a deep-learning classifier can be accelerated with GPU.

◆ EnableOffSizeCharacter() [1/2]

bool eVision.EOCR2.EnableOffSizeCharacter ( self)

Sets whether EOCR2 allows or not the detection of characters whose size (width and height) is out of the size parameters if they are in the vicinity of characters in valid size range.

The default setting for this parameter is true, and it is only applicable when the topology is not required.

◆ EnableOffSizeCharacter() [2/2]

eVision.EOCR2.EnableOffSizeCharacter ( self,
bool value )

Sets whether EOCR2 allows or not the detection of characters whose size (width and height) is out of the size parameters if they are in the vicinity of characters in valid size range.

The default setting for this parameter is true, and it is only applicable when the topology is not required.

◆ EnableSecondPassGlobalSegmentation() [1/2]

bool eVision.EOCR2.EnableSecondPassGlobalSegmentation ( self)

Sets whether EOCR2 segmentation should do or not do an extra pass to determine the best threshold using the eVision.EOCR2SegmentationMethod.Global segmentation method.

The default setting for this parameter is false, and it is only applicable when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.

Remarks:

The extra pass adds computation.

◆ EnableSecondPassGlobalSegmentation() [2/2]

eVision.EOCR2.EnableSecondPassGlobalSegmentation ( self,
bool value )

Sets whether EOCR2 segmentation should do or not do an extra pass to determine the best threshold using the eVision.EOCR2SegmentationMethod.Global segmentation method.

The default setting for this parameter is false, and it is only applicable when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.

Remarks:

The extra pass adds computation.

◆ GetClassifierForSymbol()

eVision.EOCR2Classifier eVision.EOCR2.GetClassifierForSymbol ( self,
str symbol )

Gets the EOCR2Classifier for the given specific symbol combination during the recognition instead of the one set by eVision.EOCR2.Classifier.

Remarks:

Symbol combinations are the same as used in the topology, ex : Lu, P or [LlNS]. See eVision.EOCR2.Topology for more details.

Parameters
symbolsymbol combination for which to get classifier

◆ GlobalSegmentationAbsoluteThreshold() [1/2]

int eVision.EOCR2.GlobalSegmentationAbsoluteThreshold ( self)

Gets the value of the image pixels that will be set below the threshold used when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.

It is only used when the GlobalSegmentationThresholdMode value is eVision.EThresholdMode.Absolute .

◆ GlobalSegmentationAbsoluteThreshold() [2/2]

eVision.EOCR2.GlobalSegmentationAbsoluteThreshold ( self,
int value )

Gets the value of the image pixels that will be set below the threshold used when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.

It is only used when the GlobalSegmentationThresholdMode value is eVision.EThresholdMode.Absolute .

◆ GlobalSegmentationRelativeThreshold() [1/2]

float eVision.EOCR2.GlobalSegmentationRelativeThreshold ( self)

Sets/Gets the fraction of the image pixels that will be set below the threshold used when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.

It is only used when the GlobalSegmentationThresholdMode value is eVision.EThresholdMode.Relative .

◆ GlobalSegmentationRelativeThreshold() [2/2]

eVision.EOCR2.GlobalSegmentationRelativeThreshold ( self,
float value )

Sets/Gets the fraction of the image pixels that will be set below the threshold used when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.

It is only used when the GlobalSegmentationThresholdMode value is eVision.EThresholdMode.Relative .

◆ GlobalSegmentationThresholdMode() [1/2]

eVision.EThresholdMode eVision.EOCR2.GlobalSegmentationThresholdMode ( self)

Sets/Gets the eVision.EThresholdMode used when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.

From the eVision.EThresholdMode, a threshold will be computed during the segmentation. While using eVision.EasyOCR2TextPolarity.WhiteOnBlack, pixels above or equal to the threshold will be segmented. While using eVision.EasyOCR2TextPolarity.BlackOnWhite, pixels under the threshold will be segmented.

Remarks:

The default setting for this parameter is eVision.EThresholdMode.MinResidue.

◆ GlobalSegmentationThresholdMode() [2/2]

eVision.EOCR2.GlobalSegmentationThresholdMode ( self,
eVision.EThresholdMode value )

Sets/Gets the eVision.EThresholdMode used when the segmentation method is set to eVision.EOCR2SegmentationMethod.Global.

From the eVision.EThresholdMode, a threshold will be computed during the segmentation. While using eVision.EasyOCR2TextPolarity.WhiteOnBlack, pixels above or equal to the threshold will be segmented. While using eVision.EasyOCR2TextPolarity.BlackOnWhite, pixels under the threshold will be segmented.

Remarks:

The default setting for this parameter is eVision.EThresholdMode.MinResidue.

◆ GPUIndexes() [1/2]

list[int] eVision.EOCR2.GPUIndexes ( self)

Sets/gets the GPUs to use when computing.

◆ GPUIndexes() [2/2]

eVision.EOCR2.GPUIndexes ( self,
list[int] value )

Sets/gets the GPUs to use when computing.

◆ HasDatabaseClassifier()

bool eVision.EOCR2.HasDatabaseClassifier ( self)

Returns whether this reader has a database classifier set and ready to use.

Returns true if at least one character has been added to the database classifier.

Remarks:

Even if the returned value is true, the database classifier will only be used if the eVision.EOCR2.Classifier has been set to eVision.EOCR2Classifier.DatabaseClassifier.

◆ HitTestChar() [1/6]

bool eVision.EOCR2.HitTestChar ( self,
eVision.EOCR2Char character,
int x,
int y )

Tests the cursor position for the presence of a character.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Char object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
characterReturns the character if one was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.

◆ HitTestChar() [2/6]

bool eVision.EOCR2.HitTestChar ( self,
eVision.EOCR2Char character,
int x,
int y,
float zoomX )

Tests the cursor position for the presence of a character.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Char object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
characterReturns the character if one was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ HitTestChar() [3/6]

bool eVision.EOCR2.HitTestChar ( self,
eVision.EOCR2Char character,
int x,
int y,
float zoomX,
float zoomY )

Tests the cursor position for the presence of a character.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Char object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
characterReturns the character if one was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.

◆ HitTestChar() [4/6]

bool eVision.EOCR2.HitTestChar ( self,
eVision.EOCR2Char character,
int x,
int y,
float zoomX,
float zoomY,
float panX )

Tests the cursor position for the presence of a character.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Char object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
characterReturns the character if one was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ HitTestChar() [5/6]

bool eVision.EOCR2.HitTestChar ( self,
eVision.EOCR2Char character,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Tests the cursor position for the presence of a character.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Char object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
characterReturns the character if one was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ HitTestChar() [6/6]

bool eVision.EOCR2.HitTestChar ( self,
eVision.EOCR2Char character,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Tests the cursor position for the presence of a character.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Char object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
characterReturns the character if one was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
frameFrame used in the read of the specified character.

◆ HitTestLine() [1/6]

bool eVision.EOCR2.HitTestLine ( self,
eVision.EOCR2Line line,
int x,
int y )

Tests the cursor position for the presence of a line.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Line object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
lineObject to fill if a line was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.

◆ HitTestLine() [2/6]

bool eVision.EOCR2.HitTestLine ( self,
eVision.EOCR2Line line,
int x,
int y,
float zoomX )

Tests the cursor position for the presence of a line.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Line object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
lineObject to fill if a line was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ HitTestLine() [3/6]

bool eVision.EOCR2.HitTestLine ( self,
eVision.EOCR2Line line,
int x,
int y,
float zoomX,
float zoomY )

Tests the cursor position for the presence of a line.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Line object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
lineObject to fill if a line was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ HitTestLine() [4/6]

bool eVision.EOCR2.HitTestLine ( self,
eVision.EOCR2Line line,
int x,
int y,
float zoomX,
float zoomY,
float panX )

Tests the cursor position for the presence of a line.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Line object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
lineObject to fill if a line was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ HitTestLine() [5/6]

bool eVision.EOCR2.HitTestLine ( self,
eVision.EOCR2Line line,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Tests the cursor position for the presence of a line.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Line object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
lineObject to fill if a line was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ HitTestLine() [6/6]

bool eVision.EOCR2.HitTestLine ( self,
eVision.EOCR2Line line,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Tests the cursor position for the presence of a line.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Line object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
lineObject to fill if a line was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
frameFrame used in the read of the specified line.

◆ HitTestText() [1/6]

bool eVision.EOCR2.HitTestText ( self,
eVision.EOCR2Text text,
int x,
int y )

Tests the cursor position for the presence of a text.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Text object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
textObject to fill if a text was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.

◆ HitTestText() [2/6]

bool eVision.EOCR2.HitTestText ( self,
eVision.EOCR2Text text,
int x,
int y,
float zoomX )

Tests the cursor position for the presence of a text.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Text object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
textObject to fill if a text was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ HitTestText() [3/6]

bool eVision.EOCR2.HitTestText ( self,
eVision.EOCR2Text text,
int x,
int y,
float zoomX,
float zoomY )

Tests the cursor position for the presence of a text.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Text object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
textObject to fill if a text was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ HitTestText() [4/6]

bool eVision.EOCR2.HitTestText ( self,
eVision.EOCR2Text text,
int x,
int y,
float zoomX,
float zoomY,
float panX )

Tests the cursor position for the presence of a text.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Text object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
textObject to fill if a text was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ HitTestText() [5/6]

bool eVision.EOCR2.HitTestText ( self,
eVision.EOCR2Text text,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Tests the cursor position for the presence of a text.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Text object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
textObject to fill if a text was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ HitTestText() [6/6]

bool eVision.EOCR2.HitTestText ( self,
eVision.EOCR2Text text,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Tests the cursor position for the presence of a text.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Text object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
textObject to fill if a text was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
frameFrame used in the read of the specified text.

◆ HitTestWord() [1/6]

bool eVision.EOCR2.HitTestWord ( self,
eVision.EOCR2Word word,
int x,
int y )

Tests the cursor position for the presence of a word.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Word object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
wordObject to fill if a word was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.

◆ HitTestWord() [2/6]

bool eVision.EOCR2.HitTestWord ( self,
eVision.EOCR2Word word,
int x,
int y,
float zoomX )

Tests the cursor position for the presence of a word.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Word object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
wordObject to fill if a word was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ HitTestWord() [3/6]

bool eVision.EOCR2.HitTestWord ( self,
eVision.EOCR2Word word,
int x,
int y,
float zoomX,
float zoomY )

Tests the cursor position for the presence of a word.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Word object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
wordObject to fill if a word was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ HitTestWord() [4/6]

bool eVision.EOCR2.HitTestWord ( self,
eVision.EOCR2Word word,
int x,
int y,
float zoomX,
float zoomY,
float panX )

Tests the cursor position for the presence of a word.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Word object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
wordObject to fill if a word was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ HitTestWord() [5/6]

bool eVision.EOCR2.HitTestWord ( self,
eVision.EOCR2Word word,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Tests the cursor position for the presence of a word.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Word object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
wordObject to fill if a word was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ HitTestWord() [6/6]

bool eVision.EOCR2.HitTestWord ( self,
eVision.EOCR2Word word,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY,
eVision.EFrame frame )

Tests the cursor position for the presence of a word.

If one is present under the cursor, it returns true and fills the eVision.EOCR2Word object passed as parameter.

Deprecated

Use the Hit methods attached to the returned eVision.EOCR2Text

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
wordObject to fill if a word was detected under the cursor.
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
frameFrame used in the read of the specified word.

◆ Learn() [1/8]

None eVision.EOCR2.Learn ( self,
eVision.EOCR2Char character )

Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.

Remarks:

The eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance should contain detected characters from a reference image as well as their corresponding character codes.

Parameters
characterA single eVision.EOCR2Char character, containing the detected character from the reference image as well as the corresponding character code.

◆ Learn() [2/8]

None eVision.EOCR2.Learn ( self,
eVision.EOCR2Char character,
eVision.EFrame frame )

Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.

Remarks:

The eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance should contain detected characters from a reference image as well as their corresponding character codes.

Parameters
characterA single eVision.EOCR2Char character, containing the detected character from the reference image as well as the corresponding character code.
frameFrame used in the read of the specified character, word, line or text.

◆ Learn() [3/8]

None eVision.EOCR2.Learn ( self,
eVision.EOCR2Line line )

Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.

Remarks:

The eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance should contain detected characters from a reference image as well as their corresponding character codes.

Parameters
lineA single eVision.EOCR2Line line, containing the detected characters in a single line from the reference image as well as the corresponding character codes.

◆ Learn() [4/8]

None eVision.EOCR2.Learn ( self,
eVision.EOCR2Line line,
eVision.EFrame frame )

Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.

Remarks:

The eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance should contain detected characters from a reference image as well as their corresponding character codes.

Parameters
lineA single eVision.EOCR2Line line, containing the detected characters in a single line from the reference image as well as the corresponding character codes.
frameFrame used in the read of the specified character, word, line or text.

◆ Learn() [5/8]

None eVision.EOCR2.Learn ( self,
eVision.EOCR2Text text )

Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.

Remarks:

The eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance should contain detected characters from a reference image as well as their corresponding character codes.

Parameters
textA complete eVision.EOCR2Text text, containing all detected characters from the reference image as well as the corresponding character codes.

◆ Learn() [6/8]

None eVision.EOCR2.Learn ( self,
eVision.EOCR2Text text,
eVision.EFrame frame )

Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.

Remarks:

The eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance should contain detected characters from a reference image as well as their corresponding character codes.

Parameters
textA complete eVision.EOCR2Text text, containing all detected characters from the reference image as well as the corresponding character codes.
frameFrame used in the read of the specified character, word, line or text.

◆ Learn() [7/8]

None eVision.EOCR2.Learn ( self,
eVision.EOCR2Word word )

Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.

Remarks:

The eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance should contain detected characters from a reference image as well as their corresponding character codes.

Parameters
wordA single eVision.EOCR2Word word, containing the detected characters in a single word from the reference image as well as the corresponding character codes.

◆ Learn() [8/8]

None eVision.EOCR2.Learn ( self,
eVision.EOCR2Word word,
eVision.EFrame frame )

Learns reference characters from a given eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance, containing user-specified character codes.

Remarks:

The eVision.EOCR2Text/eVision.EOCR2Line/eVision.EOCR2Word/eVision.EOCR2Char instance should contain detected characters from a reference image as well as their corresponding character codes.

Parameters
wordA single eVision.EOCR2Word word, containing the detected characters in a single word from the reference image as well as the corresponding character codes.
frameFrame used in the read of the specified character, word, line or text.

◆ Load() [1/2]

None eVision.EOCR2.Load ( self,
eVision.ESerializer | None serializer )

Loads a model, containing parameter settings used for all operations in eVision.EOCR2.__init__, from disk.

Parameters
serializerThe serializer.

◆ Load() [2/2]

None eVision.EOCR2.Load ( self,
str modelPath )

Loads a model, containing parameter settings used for all operations in eVision.EOCR2.__init__, from disk.

Parameters
modelPathA string containing the full path to the model file.

◆ MaxVariation() [1/2]

float eVision.EOCR2.MaxVariation ( self)

Sets the maxVariation parameter for the segmentation algorithm.

This parameter determines how stable a blob in the image should be in order to be considered a potential character, a region with clearly defined edges is generally considered stable while a blurry region is not. A high setting allows more unstable blobs, a low setting allows only very stable blobs.

Remarks:

This parameter should be set between 0.0 and 1.0, the default setting is 0.25.

◆ MaxVariation() [2/2]

eVision.EOCR2.MaxVariation ( self,
float value )

Sets the maxVariation parameter for the segmentation algorithm.

This parameter determines how stable a blob in the image should be in order to be considered a potential character, a region with clearly defined edges is generally considered stable while a blurry region is not. A high setting allows more unstable blobs, a low setting allows only very stable blobs.

Remarks:

This parameter should be set between 0.0 and 1.0, the default setting is 0.25.

◆ NumDetectionPasses() [1/2]

int eVision.EOCR2.NumDetectionPasses ( self)

Sets the NumDetectionPasses parameter for the topology fitting algorithm, which will place text boxes on the segmentation results (blobs).

The first pass will consider all blobs, subsequent passes will only consider those blobs that are inside the text boxes from the previous pass, sometimes resulting in a more optimal fit.

Remarks:

This parameter is used whether the topology is required or not. The default setting for this parameter is 1, the setting can be either 1 or 2.

◆ NumDetectionPasses() [2/2]

eVision.EOCR2.NumDetectionPasses ( self,
int value )

Sets the NumDetectionPasses parameter for the topology fitting algorithm, which will place text boxes on the segmentation results (blobs).

The first pass will consider all blobs, subsequent passes will only consider those blobs that are inside the text boxes from the previous pass, sometimes resulting in a more optimal fit.

Remarks:

This parameter is used whether the topology is required or not. The default setting for this parameter is 1, the setting can be either 1 or 2.

◆ Read() [1/2]

str eVision.EOCR2.Read ( self,
eVision.EROIBW8 srcRoi )

Performs all steps required for reading text from an image:

  1. Detects potential characters in the image following the given text polarity and character width/height.
  2. Fits bounding boxes to the detected characters, following the given topology and character width/height.
  3. Recognizes the detected characters using the given reference character database.

The read text is output as a string.

Remarks:

The variables TextPolarity, Topology, CharHeight, CharWidth should be set and a reference character database should be set before performing this operation. If the srcRoi is smaller than 3X3, an exception will be thrown.

Deprecated

Use the eVision.EOCR2.Read2.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
srcRoiThe source image/ROI.

◆ Read() [2/2]

str eVision.EOCR2.Read ( self,
eVision.EROIBW8 srcRoi,
eVision.ERegion region )

Performs all steps required for reading text from an image:

  1. Detects potential characters in the image following the given text polarity and character width/height.
  2. Fits bounding boxes to the detected characters, following the given topology and character width/height.
  3. Recognizes the detected characters using the given reference character database.

The read text is output as a string.

Remarks:

The variables TextPolarity, Topology, CharHeight, CharWidth should be set and a reference character database should be set before performing this operation. If the srcRoi is smaller than 3X3, an exception will be thrown.

Parameters
srcRoiThe source image/ROI.
regionThe region of interest where the reading is performed

◆ Read2() [1/4]

eVision.EOCR2Text eVision.EOCR2.Read2 ( self,
eVision.EROIBW8 srcRoi )

Performs all steps required for reading text from an image:

  1. Detects potential characters in the image following the given text polarity and character width/height.
  2. Fits bounding boxes to the detected characters, following the given topology and character width/height.
  3. Recognizes the detected characters using the given reference character database.

The read text is output as a eVision.EOCR2Text.

Remarks:

The variables TextPolarity, Topology, CharHeight, CharWidth should be set and a reference character database should be set before performing this operation. If the srcRoi is smaller than 3X3, an exception will be thrown.

Parameters
srcRoiThe source image/ROI.

◆ Read2() [2/4]

eVision.EOCR2Text eVision.EOCR2.Read2 ( self,
eVision.EROIBW8 srcRoi,
eVision.EFrame frame )

Performs all steps required for reading text from an image:

  1. Detects potential characters in the image following the given text polarity and character width/height.
  2. Fits bounding boxes to the detected characters, following the given topology and character width/height.
  3. Recognizes the detected characters using the given reference character database.

The read text is output as a eVision.EOCR2Text.

Remarks:

The variables TextPolarity, Topology, CharHeight, CharWidth should be set and a reference character database should be set before performing this operation. If the srcRoi is smaller than 3X3, an exception will be thrown.

Parameters
srcRoiThe source image/ROI.
frameReference frame of the input region.

◆ Read2() [3/4]

eVision.EOCR2Text eVision.EOCR2.Read2 ( self,
eVision.EROIBW8 srcRoi,
eVision.ERegion region )

Performs all steps required for reading text from an image:

  1. Detects potential characters in the image following the given text polarity and character width/height.
  2. Fits bounding boxes to the detected characters, following the given topology and character width/height.
  3. Recognizes the detected characters using the given reference character database.

The read text is output as a eVision.EOCR2Text.

Remarks:

The variables TextPolarity, Topology, CharHeight, CharWidth should be set and a reference character database should be set before performing this operation. If the srcRoi is smaller than 3X3, an exception will be thrown.

Parameters
srcRoiThe source image/ROI.
regionThe region of interest where the reading is performed

◆ Read2() [4/4]

eVision.EOCR2Text eVision.EOCR2.Read2 ( self,
eVision.EROIBW8 srcRoi,
eVision.ERegion region,
eVision.EFrame frame )

Performs all steps required for reading text from an image:

  1. Detects potential characters in the image following the given text polarity and character width/height.
  2. Fits bounding boxes to the detected characters, following the given topology and character width/height.
  3. Recognizes the detected characters using the given reference character database.

The read text is output as a eVision.EOCR2Text.

Remarks:

The variables TextPolarity, Topology, CharHeight, CharWidth should be set and a reference character database should be set before performing this operation. If the srcRoi is smaller than 3X3, an exception will be thrown.

Parameters
srcRoiThe source image/ROI.
regionThe region of interest where the reading is performed
frameReference frame of the input region.

◆ ReadText()

eVision.EOCR2Text eVision.EOCR2.ReadText ( self)

Outputs an eVision.EOCR2Text structure containing the detailed detection and recognition results.

Deprecated

Use the returned eVision.EOCR2Text instead.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

◆ Recognize() [1/4]

str eVision.EOCR2.Recognize ( self,
eVision.EOCR2Text text )

Recognizes the characters in a given eVision.EOCR2Text instance, based on a given reference font.

This overload does not update the input text.

Remarks:

A reference character database should be provided before performing this operation. The overloaded function that uses an ROI is not yet implemented.

Deprecated

Use the Recognize method that modifies the input eVision.EOCR2Text.

Deprecated in version 26.10. Scheduled to be removed in version 27.10.

Parameters
texteVision.EOCR2Text structure containing the detected characters from the image.

◆ Recognize() [2/4]

str eVision.EOCR2.Recognize ( self,
eVision.EOCR2Text text,
eVision.EFrame frame )

Recognizes the characters in a given eVision.EOCR2Text instance, based on a given reference font.

This overload does not update the input text.

Remarks:

A reference character database should be provided before performing this operation. The overloaded function that uses an ROI is not yet implemented.

Parameters
texteVision.EOCR2Text structure containing the detected characters from the image.
frameReference frame used during detection.

◆ Recognize() [3/4]

str eVision.EOCR2.Recognize ( self,
eVision.EOCR2Text text,
eVision.EROIBW8 srcRoi )

Recognizes the characters in a given eVision.EOCR2Text instance, based on a given reference font.

This overload does not update the input text.

Remarks:

A reference character database should be provided before performing this operation. The overloaded function that uses an ROI is not yet implemented.

Parameters
texteVision.EOCR2Text structure containing the detected characters from the image.
srcRoiThe source image/ROI.

◆ Recognize() [4/4]

str eVision.EOCR2.Recognize ( self,
eVision.EOCR2Text text,
eVision.EROIBW8 srcRoi,
eVision.EFrame frame )

Recognizes the characters in a given eVision.EOCR2Text instance, based on a given reference font.

This overload does not update the input text.

Remarks:

A reference character database should be provided before performing this operation. The overloaded function that uses an ROI is not yet implemented.

Parameters
texteVision.EOCR2Text structure containing the detected characters from the image.
srcRoiThe source image/ROI.
frameReference frame used during detection.

◆ RecognizeText() [1/2]

None eVision.EOCR2.RecognizeText ( self,
eVision.EOCR2Text text )

Recognizes the characters in a given eVision.EOCR2Text instance, based on a given reference font.

Remarks:

A reference character database should be provided before performing this operation. The overloaded function that uses an ROI is not yet implemented.

Parameters
texteVision.EOCR2Text structure containing the detected characters from the image.

◆ RecognizeText() [2/2]

None eVision.EOCR2.RecognizeText ( self,
eVision.EOCR2Text text,
eVision.EFrame frame )

Recognizes the characters in a given eVision.EOCR2Text instance, based on a given reference font.

Remarks:

A reference character database should be provided before performing this operation. The overloaded function that uses an ROI is not yet implemented.

Parameters
texteVision.EOCR2Text structure containing the detected characters from the image.
frameReference frame used during detection.

◆ RelativeSpacesWidthRange() [1/2]

eVision.EFloatRange eVision.EOCR2.RelativeSpacesWidthRange ( self)

Sets the range of expected spaces between words as a fraction of the character width.

Remarks:

This parameter only affects the detection when the detectionMethod is set to eVision.EOCR2DetectionMethod.FixedWidth or when the topology is not required. The RelativeSpacesWidthRange is returned by reference, changing it will affect the internal state of the eVision.EOCR2 object.

◆ RelativeSpacesWidthRange() [2/2]

eVision.EOCR2.RelativeSpacesWidthRange ( self,
eVision.EFloatRange value )

Sets the range of expected spaces between words as a fraction of the character width.

Remarks:

This parameter only affects the detection when the detectionMethod is set to eVision.EOCR2DetectionMethod.FixedWidth or when the topology is not required. The RelativeSpacesWidthRange is returned by reference, changing it will affect the internal state of the eVision.EOCR2 object.

◆ RemoveClassifierForSymbol()

None eVision.EOCR2.RemoveClassifierForSymbol ( self,
str symbol )

Removes the EOCR2Classifier for the given specific symbol combination during the recognition so the one set by eVision.EOCR2.Classifier will be used.

Remarks:

Symbol combinations are the same as used in the topology, ex : Lu, P or [LlNS]. See eVision.EOCR2.Topology for more details.

Parameters
symbolsymbol combination for which to remove classifier

◆ RepasteObjects() [1/2]

bool eVision.EOCR2.RepasteObjects ( self)

Sets whether EOCR2 groups or does not group the blobs believed to belong to the same character.

The default setting for this parameter is true, and it is only applicable when the topology is not required.

◆ RepasteObjects() [2/2]

eVision.EOCR2.RepasteObjects ( self,
bool value )

Sets whether EOCR2 groups or does not group the blobs believed to belong to the same character.

The default setting for this parameter is true, and it is only applicable when the topology is not required.

◆ Save() [1/2]

None eVision.EOCR2.Save ( self,
eVision.ESerializer | None serializer )

Saves the model to disk, containing the current parameter setting used for all operations in eVision.EOCR2.

Remarks:

It is advised to use a file extension that is non-standard (for instance *.ocr2)

Parameters
serializerThe serializer.

◆ Save() [2/2]

None eVision.EOCR2.Save ( self,
str modelPath )

Saves the model to disk, containing the current parameter setting used for all operations in eVision.EOCR2.

Remarks:

It is advised to use a file extension that is non-standard (for instance *.ocr2)

Parameters
modelPathA string containing the full path to the model file.

◆ SaveCharacterDatabase()

None eVision.EOCR2.SaveCharacterDatabase ( self,
str file )

Saves the current reference character database to disk.

Parameters
fileA string containing the path of the file.

◆ SegmentationMethod() [1/2]

eVision.EOCR2SegmentationMethod eVision.EOCR2.SegmentationMethod ( self)

Sets the EOCR2SegmentationMethod parameter for the segmentation algorithm, which will detect blobs in the image.

Remarks:

The default setting for this parameter is eVision.EOCR2SegmentationMethod.Local.

◆ SegmentationMethod() [2/2]

eVision.EOCR2.SegmentationMethod ( self,
eVision.EOCR2SegmentationMethod value )

Sets the EOCR2SegmentationMethod parameter for the segmentation algorithm, which will detect blobs in the image.

Remarks:

The default setting for this parameter is eVision.EOCR2SegmentationMethod.Local.

◆ TextAngleRange() [1/2]

eVision.EFloatRange eVision.EOCR2.TextAngleRange ( self)

Sets the TextAngleRange parameter for the topology fitting algorithm, which will attempt to find the angle of the text in the image with respect to the horizontal.

This will determine the range of angles that will be tested, defined as: TextAngleRange.min() <= angle <= TextAngleRange.max()

Remarks:

This parameter is used whether the topology is required or not. The default setting for this parameter is -20 degrees to +20 degrees.

◆ TextAngleRange() [2/2]

eVision.EOCR2.TextAngleRange ( self,
eVision.EFloatRange value )

Sets the TextAngleRange parameter for the topology fitting algorithm, which will attempt to find the angle of the text in the image with respect to the horizontal.

This will determine the range of angles that will be tested, defined as: TextAngleRange.min() <= angle <= TextAngleRange.max()

Remarks:

This parameter is used whether the topology is required or not. The default setting for this parameter is -20 degrees to +20 degrees.

◆ TextAngleTolerance() [1/2]

float eVision.EOCR2.TextAngleTolerance ( self)

Sets the TextAngleTolerance parameter for the topology fitting algorithm, which finds the angle of the text in the image with respect to the horizontal.

This will limit the range of angles that will be tested, defined as: BaseAngle - AngleTolerance <= angle <= BaseAngle + AngleTolerance

Remarks:

This function follows the angle unit convention defined by eVision.Easy.SetAngleUnit. The default setting for this parameter is 20 degrees.

Deprecated

Use eVision.EOCR2.TextAngleRange instead

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ TextAngleTolerance() [2/2]

eVision.EOCR2.TextAngleTolerance ( self,
float value )

Sets the TextAngleTolerance parameter for the topology fitting algorithm, which finds the angle of the text in the image with respect to the horizontal.

This will limit the range of angles that will be tested, defined as: BaseAngle - AngleTolerance <= angle <= BaseAngle + AngleTolerance

Remarks:

This function follows the angle unit convention defined by eVision.Easy.SetAngleUnit. The default setting for this parameter is 20 degrees.

Deprecated

Use eVision.EOCR2.TextAngleRange instead

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ TextBaseAngle() [1/2]

float eVision.EOCR2.TextBaseAngle ( self)

Sets the TextBaseAngle parameter for the topology fitting algorithm, which will attempt to find the angle of the text in the image with respect to the horizontal.

This will determine the center of the range of angles that will be tested, defined as: BaseAngle - AngleTolerance <= angle <= BaseAngle + AngleTolerance

Remarks:

This function follows the angle unit convention defined by eVision.Easy.SetAngleUnit. The default setting for this parameter is 0 degrees.

Deprecated

Use eVision.EOCR2.TextAngleRange instead

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ TextBaseAngle() [2/2]

eVision.EOCR2.TextBaseAngle ( self,
float value )

Sets the TextBaseAngle parameter for the topology fitting algorithm, which will attempt to find the angle of the text in the image with respect to the horizontal.

This will determine the center of the range of angles that will be tested, defined as: BaseAngle - AngleTolerance <= angle <= BaseAngle + AngleTolerance

Remarks:

This function follows the angle unit convention defined by eVision.Easy.SetAngleUnit. The default setting for this parameter is 0 degrees.

Deprecated

Use eVision.EOCR2.TextAngleRange instead

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ TextPolarity() [1/2]

eVision.EasyOCR2TextPolarity eVision.EOCR2.TextPolarity ( self)

Sets the TextPolarity parameter for the segmentation algorithm.

This will determine whether the algorithm searches for light blobs in a dark background or for dark blobs in a light background.

Remarks:

Default setting is eVision.EasyOCR2TextPolarity.WhiteOnBlack.

◆ TextPolarity() [2/2]

eVision.EOCR2.TextPolarity ( self,
eVision.EasyOCR2TextPolarity value )

Sets the TextPolarity parameter for the segmentation algorithm.

This will determine whether the algorithm searches for light blobs in a dark background or for dark blobs in a light background.

Remarks:

Default setting is eVision.EasyOCR2TextPolarity.WhiteOnBlack.

◆ TimeOut() [1/2]

int eVision.EOCR2.TimeOut ( self)

Time-out for the eVision.EOCR2.Read, eVision.EOCR2.Detect and eVision.EOCR2.Recognize methods.

Remarks:

If the processing time of one of these functions becomes longer than the set time-out, the processing is stopped and an exception is thrown. In that case, the error code of the exception is eVision.EError.TimeoutReached. The time-out is set in microseconds. This time-out is not a real time-out. The processing is stopped as soon as possible after the time-out has been reached. This means that the time elapsed effectively in the method can be greater than the time-out in itself.

◆ TimeOut() [2/2]

eVision.EOCR2.TimeOut ( self,
int value )

Time-out for the eVision.EOCR2.Read, eVision.EOCR2.Detect and eVision.EOCR2.Recognize methods.

Remarks:

If the processing time of one of these functions becomes longer than the set time-out, the processing is stopped and an exception is thrown. In that case, the error code of the exception is eVision.EError.TimeoutReached. The time-out is set in microseconds. This time-out is not a real time-out. The processing is stopped as soon as possible after the time-out has been reached. This means that the time elapsed effectively in the method can be greater than the time-out in itself.

◆ Topology() [1/2]

str eVision.EOCR2.Topology ( self)

Sets the topology of the text that should be found in the image.

A modified version of Regex expressions are used, where:

  • .(dot) represents any character (not including a space).
  • L represents a letter.
  • Lu represents an uppercase letter.
  • Ll represents a lowercase letter.
  • N represents a digit.
  • P represents a punctuation character !"#&'()*,-./:;<>?[\]_{|}~
  • S represents the symbols $;+-<=>|~

  • represents a line break.
  • ' ' (space) represents a space between two words.

Combinations can be made, for example: [LN] represents an alphanumeric character. To specify multiple characters, simply add {n} at the end for n characters. If the amount of characters is uncertain, specify {n,m} for a minimum of n characters and a maximum of m characters.

The topology "`[LuN]{3,5}PN{4} \n .{5} LL`" represents a text comprised of 2 lines: The first line has 1 word composed of 3 to 5 uppercase alphanumeric characters, followed by a punctuation character and 4 numbers. The second line has 2 words. The first word consists of 5 wildcard characters, the second word has 2 alphabetic characters (upper- or lowercase).

◆ Topology() [2/2]

eVision.EOCR2.Topology ( self,
str value )

Sets the topology of the text that should be found in the image.

A modified version of Regex expressions are used, where:

  • .(dot) represents any character (not including a space).
  • L represents a letter.
  • Lu represents an uppercase letter.
  • Ll represents a lowercase letter.
  • N represents a digit.
  • P represents a punctuation character !"#&'()*,-./:;<>?[\]_{|}~
  • S represents the symbols $;+-<=>|~

  • represents a line break.
  • ' ' (space) represents a space between two words.

Combinations can be made, for example: [LN] represents an alphanumeric character. To specify multiple characters, simply add {n} at the end for n characters. If the amount of characters is uncertain, specify {n,m} for a minimum of n characters and a maximum of m characters.

The topology "`[LuN]{3,5}PN{4} \n .{5} LL`" represents a text comprised of 2 lines: The first line has 1 word composed of 3 to 5 uppercase alphanumeric characters, followed by a punctuation character and 4 numbers. The second line has 2 words. The first word consists of 5 wildcard characters, the second word has 2 alphabetic characters (upper- or lowercase).