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. | |
Manages a complete context for the font-dependent printed character reader implemented in EasyOCR2.
Remarks:
License(s): EasyOCR2
| None eVision.EOCR2.__init__ | ( | self | ) |
Constructs an eVision.EOCR2 context.
| None eVision.EOCR2.__init__ | ( | self, | |
| eVision.EOCR2 | other ) |
Constructs an eVision.EOCR2 context.
| other | The other eVision.EOCR2 that we will copy into this one. |
| 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.
| file | A string containing the path of the file. |
| 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.
| file | A string containing the path of the file. |
| filter | Optional parameter; an eVision.EasyOCR2CharacterFilter that tells the method which subset of the character-set should be loaded. |
| 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.
| symbol | symbol combination to add classifier for |
| classifier | classifier to add to symbol |
| 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.
| 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.
| eVision.EOCR2CharacterDatabase eVision.EOCR2.CharacterDatabase | ( | self | ) |
Sets the eVision.EOCR2CharacterDatabase used for recognizing text.
Remarks:
Setting a new characterDatabase will overwrite the current one.
| 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.
| int eVision.EOCR2.CharsHeight | ( | self | ) |
Sets the expected character height in pixels.
| eVision.EOCR2.CharsHeight | ( | self, | |
| int | value ) |
Sets the expected character height in pixels.
| 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.
| 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.
| 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
| 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
| int eVision.EOCR2.CharsWidth | ( | self | ) |
Sets the expected character width in pixels.
Use eVision.EOCR2.CharsWidthRange instead.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| eVision.EOCR2.CharsWidth | ( | self, | |
| int | value ) |
Sets the expected character width in pixels.
Use eVision.EOCR2.CharsWidthRange instead.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| 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
| 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
| eVision.EIntegerRange eVision.EOCR2.CharsWidthRange | ( | self | ) |
Sets the range of expected character widths in pixels.
| eVision.EOCR2.CharsWidthRange | ( | self, | |
| eVision.EIntegerRange | value ) |
Sets the range of expected character widths in pixels.
| 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.
Use eVision.EOCR2.CharsWidthRange instead.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| 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.
Use eVision.EOCR2.CharsWidthRange instead.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| 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.
| 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.
| None eVision.EOCR2.ClearCharacterDatabase | ( | self | ) |
Clears the reference character database from this eVision.EOCR2 instance.
| None eVision.EOCR2.ClearResult | ( | self | ) |
Clear the current detected text if it exists.
Use the returned eVision.EOCR2Text instead.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| eVision.EOCR2Text eVision.EOCR2.Detect | ( | self, | |
| eVision.EROIBW8 | srcRoi ) |
Finds the text in an image as follows:
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.
| srcRoi | The source image/ROI. |
| eVision.EOCR2Text eVision.EOCR2.Detect | ( | self, | |
| eVision.EROIBW8 | srcRoi, | ||
| eVision.EFrame | frame ) |
Finds the text in an image as follows:
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.
| srcRoi | The source image/ROI. |
| frame | Reference frame of the input region. |
| eVision.EOCR2Text eVision.EOCR2.Detect | ( | self, | |
| eVision.EROIBW8 | srcRoi, | ||
| eVision.ERegion | region ) |
Finds the text in an image as follows:
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.
| srcRoi | The source image/ROI. |
| region | The region of interest where the detection is performed. |
| eVision.EOCR2Text eVision.EOCR2.Detect | ( | self, | |
| eVision.EROIBW8 | srcRoi, | ||
| eVision.ERegion | region, | ||
| eVision.EFrame | frame ) |
Finds the text in an image as follows:
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.
| srcRoi | The source image/ROI. |
| region | The region of interest where the detection is performed. |
| frame | Reference frame of the input region. |
| 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.
| 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.
| 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.
| 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.
| None eVision.EOCR2.DrawDetection | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EasyOCR2DrawDetectionStyle | style ) |
Draws the bounding boxes found by the topology detection algorithm.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each detection box should be drawn. |
| None eVision.EOCR2.DrawDetection | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EasyOCR2DrawDetectionStyle | style, | ||
| float | zoomX ) |
Draws the bounding boxes found by the topology detection algorithm.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each detection box should be drawn. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each detection box should be drawn. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each detection box should be drawn. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each detection box should be drawn. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each detection box should be drawn. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| frame | Frame used in the last read. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each recognition result should be drawn. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each recognition result should be drawn. |
| cHeight | The character-height with which the recognized text should be displayed. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each recognition result should be drawn. |
| cHeight | The character-height with which the recognized text should be displayed. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each recognition result should be drawn. |
| cHeight | The character-height with which the recognized text should be displayed. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each recognition result should be drawn. |
| cHeight | The character-height with which the recognized text should be displayed. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each recognition result should be drawn. |
| cHeight | The character-height with which the recognized text should be displayed. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each recognition result should be drawn. |
| cHeight | The character-height with which the recognized text should be displayed. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| frame | Frame used in the last read. |
| None eVision.EOCR2.DrawSegmentation | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EasyOCR2DrawSegmentationStyle | style ) |
Draws the blobs found by the segmentation algorithm.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each blob should be drawn. |
| None eVision.EOCR2.DrawSegmentation | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EasyOCR2DrawSegmentationStyle | style, | ||
| float | zoomX ) |
Draws the blobs found by the segmentation algorithm.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each blob should be drawn. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| None eVision.EOCR2.DrawSegmentation | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EasyOCR2DrawSegmentationStyle | style, | ||
| float | zoomX, | ||
| float | zoomY ) |
Draws the blobs found by the segmentation algorithm.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each blob should be drawn. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each blob should be drawn. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each blob should be drawn. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the draw methods attached to eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| drawAdapter | eVision.EDrawAdapter that will be used to draw. |
| style | The style in which each blob should be drawn. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| frame | Frame used in the last read. |
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| symbol | symbol combination for which to get classifier |
| 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 .
| 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 .
| 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 .
| 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 .
| 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.
| 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.
| list[int] eVision.EOCR2.GPUIndexes | ( | self | ) |
Sets/gets the GPUs to use when computing.
| eVision.EOCR2.GPUIndexes | ( | self, | |
| list[int] | value ) |
Sets/gets the GPUs to use when computing.
| 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.
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| character | Returns the character if one was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| character | Returns the character if one was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| character | Returns the character if one was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| character | Returns the character if one was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| character | Returns the character if one was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| character | Returns the character if one was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| frame | Frame used in the read of the specified character. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| line | Object to fill if a line was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| line | Object to fill if a line was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| line | Object to fill if a line was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| line | Object to fill if a line was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| line | Object to fill if a line was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| line | Object to fill if a line was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| frame | Frame used in the read of the specified line. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| text | Object to fill if a text was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| text | Object to fill if a text was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| text | Object to fill if a text was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| text | Object to fill if a text was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| text | Object to fill if a text was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| text | Object to fill if a text was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| frame | Frame used in the read of the specified text. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| word | Object to fill if a word was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| word | Object to fill if a word was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| word | Object to fill if a word was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| word | Object to fill if a word was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| word | Object to fill if a word was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| 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.
Use the Hit methods attached to the returned eVision.EOCR2Text
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| word | Object to fill if a word was detected under the cursor. |
| x | Horizontal position of the cursor. |
| y | Vertical position of the cursor. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| frame | Frame used in the read of the specified word. |
| 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.
| character | A single eVision.EOCR2Char character, containing the detected character from the reference image as well as the corresponding character code. |
| 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.
| character | A single eVision.EOCR2Char character, containing the detected character from the reference image as well as the corresponding character code. |
| frame | Frame used in the read of the specified character, word, line or text. |
| 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.
| line | A single eVision.EOCR2Line line, containing the detected characters in a single line from the reference image as well as the corresponding character codes. |
| 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.
| line | A single eVision.EOCR2Line line, containing the detected characters in a single line from the reference image as well as the corresponding character codes. |
| frame | Frame used in the read of the specified character, word, line or text. |
| 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.
| text | A complete eVision.EOCR2Text text, containing all detected characters from the reference image as well as the corresponding character codes. |
| 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.
| text | A complete eVision.EOCR2Text text, containing all detected characters from the reference image as well as the corresponding character codes. |
| frame | Frame used in the read of the specified character, word, line or text. |
| 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.
| word | A single eVision.EOCR2Word word, containing the detected characters in a single word from the reference image as well as the corresponding character codes. |
| 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.
| word | A single eVision.EOCR2Word word, containing the detected characters in a single word from the reference image as well as the corresponding character codes. |
| frame | Frame used in the read of the specified character, word, line or text. |
| 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.
| serializer | The serializer. |
| None eVision.EOCR2.Load | ( | self, | |
| str | modelPath ) |
Loads a model, containing parameter settings used for all operations in eVision.EOCR2.__init__, from disk.
| modelPath | A string containing the full path to the model file. |
| 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.
| 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.
| 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.
| 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.
| str eVision.EOCR2.Read | ( | self, | |
| eVision.EROIBW8 | srcRoi ) |
Performs all steps required for reading text from an image:
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.
Use the eVision.EOCR2.Read2.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| srcRoi | The source image/ROI. |
| str eVision.EOCR2.Read | ( | self, | |
| eVision.EROIBW8 | srcRoi, | ||
| eVision.ERegion | region ) |
Performs all steps required for reading text from an image:
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.
| srcRoi | The source image/ROI. |
| region | The region of interest where the reading is performed |
| eVision.EOCR2Text eVision.EOCR2.Read2 | ( | self, | |
| eVision.EROIBW8 | srcRoi ) |
Performs all steps required for reading text from an image:
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.
| srcRoi | The source image/ROI. |
| eVision.EOCR2Text eVision.EOCR2.Read2 | ( | self, | |
| eVision.EROIBW8 | srcRoi, | ||
| eVision.EFrame | frame ) |
Performs all steps required for reading text from an image:
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.
| srcRoi | The source image/ROI. |
| frame | Reference frame of the input region. |
| eVision.EOCR2Text eVision.EOCR2.Read2 | ( | self, | |
| eVision.EROIBW8 | srcRoi, | ||
| eVision.ERegion | region ) |
Performs all steps required for reading text from an image:
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.
| srcRoi | The source image/ROI. |
| region | The region of interest where the reading is performed |
| 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:
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.
| srcRoi | The source image/ROI. |
| region | The region of interest where the reading is performed |
| frame | Reference frame of the input region. |
| eVision.EOCR2Text eVision.EOCR2.ReadText | ( | self | ) |
Outputs an eVision.EOCR2Text structure containing the detailed detection and recognition results.
Use the returned eVision.EOCR2Text instead.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| 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.
Use the Recognize method that modifies the input eVision.EOCR2Text.
Deprecated in version 26.10. Scheduled to be removed in version 27.10.
| text | eVision.EOCR2Text structure containing the detected characters from the image. |
| 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.
| text | eVision.EOCR2Text structure containing the detected characters from the image. |
| frame | Reference frame used during detection. |
| 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.
| text | eVision.EOCR2Text structure containing the detected characters from the image. |
| srcRoi | The source image/ROI. |
| 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.
| text | eVision.EOCR2Text structure containing the detected characters from the image. |
| srcRoi | The source image/ROI. |
| frame | Reference frame used during detection. |
| 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.
| text | eVision.EOCR2Text structure containing the detected characters from the image. |
| 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.
| text | eVision.EOCR2Text structure containing the detected characters from the image. |
| frame | Reference frame used during detection. |
| 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.
| 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.
| 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.
| symbol | symbol combination for which to remove classifier |
| 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.
| 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.
| 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)
| serializer | The serializer. |
| 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)
| modelPath | A string containing the full path to the model file. |
| None eVision.EOCR2.SaveCharacterDatabase | ( | self, | |
| str | file ) |
Saves the current reference character database to disk.
| file | A string containing the path of the file. |
| 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.
| 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.
| 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.
| 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.
| 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.
Use eVision.EOCR2.TextAngleRange instead
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| 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.
Use eVision.EOCR2.TextAngleRange instead
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| 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.
Use eVision.EOCR2.TextAngleRange instead
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| 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.
Use eVision.EOCR2.TextAngleRange instead
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| 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.
| 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.
| 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.
| 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.
| 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:
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).
| 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:
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).