eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EOCR2Text Class Reference

Holds a vector of EOCR2Line objects representing a text. More...

#include <eVision/EasyOcr/EasyOCR2/EOCR2Text.h>

Collaboration diagram for eVision::EOCR2Text:

Public Member Functions

 EOCR2Text ()
 Constructs an EOCR2Text context.
 EOCR2Text (const eVision::EOCR2Text &other)
 Constructs an EOCR2Text context.
virtual ~EOCR2Text () throw ()
eVision::EOCR2Text & operator= (const eVision::EOCR2Text &other)
 Copies all the data from another EOCR2Text object into the current EOCR2Text object.
std::string GetString ()
 Gets the read string.
std::vector< eVision::EOCR2Line > GetLines () const
 The vector of EOCR2Line objects representing the text.
void SetLines (std::vector< eVision::EOCR2Line > lines)
 The vector of EOCR2Line objects representing the text.
int32_t GetLineCount () const
 Gets the number of lines.
eVision::ERectangle GetBoundingBox () const
 The bounding box encapsulating all characters in the text.
void SetText (const std::string &text)
 The true value of all characters in the text.
std::string GetText () const
 The true value of all characters in the text.
void DrawSegmentation (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawSegmentationStyle style, float zoomX, float zoomY, float panX, float panY, const eVision::EFrame &frame) const
 Draws the blobs found by the segmentation algorithm.
void DrawSegmentation (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawSegmentationStyle style, float zoomX, float zoomY, float panX, float panY) const
 Draws the blobs found by the segmentation algorithm.
void DrawSegmentation (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawSegmentationStyle style, float zoomX, float zoomY, float panX) const
 Draws the blobs found by the segmentation algorithm.
void DrawSegmentation (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawSegmentationStyle style, float zoomX, float zoomY) const
 Draws the blobs found by the segmentation algorithm.
void DrawSegmentation (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawSegmentationStyle style, float zoomX) const
 Draws the blobs found by the segmentation algorithm.
void DrawSegmentation (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawSegmentationStyle style) const
 Draws the blobs found by the segmentation algorithm.
void DrawDetection (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawDetectionStyle style, float zoomX, float zoomY, float panX, float panY, const eVision::EFrame &frame) const
 Draws the bounding boxes found by the topology detection algorithm.
void DrawDetection (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawDetectionStyle style, float zoomX, float zoomY, float panX, float panY) const
 Draws the bounding boxes found by the topology detection algorithm.
void DrawDetection (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawDetectionStyle style, float zoomX, float zoomY, float panX) const
 Draws the bounding boxes found by the topology detection algorithm.
void DrawDetection (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawDetectionStyle style, float zoomX, float zoomY) const
 Draws the bounding boxes found by the topology detection algorithm.
void DrawDetection (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawDetectionStyle style, float zoomX) const
 Draws the bounding boxes found by the topology detection algorithm.
void DrawDetection (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawDetectionStyle style) const
 Draws the bounding boxes found by the topology detection algorithm.
void DrawRecognition (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawRecognitionStyle style, int32_t fontSize, float zoomX, float zoomY, float panX, float panY, const eVision::EFrame &frame) const
 Draws the recognized text next to the character bounding box in the image.
void DrawRecognition (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawRecognitionStyle style, int32_t fontSize, float zoomX, float zoomY, float panX, float panY) const
 Draws the recognized text next to the character bounding box in the image.
void DrawRecognition (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawRecognitionStyle style, int32_t fontSize, float zoomX, float zoomY, float panX) const
 Draws the recognized text next to the character bounding box in the image.
void DrawRecognition (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawRecognitionStyle style, int32_t fontSize, float zoomX, float zoomY) const
 Draws the recognized text next to the character bounding box in the image.
void DrawRecognition (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawRecognitionStyle style, int32_t fontSize, float zoomX) const
 Draws the recognized text next to the character bounding box in the image.
void DrawRecognition (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawRecognitionStyle style, int32_t fontSize) const
 Draws the recognized text next to the character bounding box in the image.
void DrawRecognition (eVision::EDrawAdapter *drawAdapter, eVision::EasyOCR2DrawRecognitionStyle style) const
 Draws the recognized text next to the character bounding box in the image.
bool HitTestChar (eVision::EOCR2Char &character, int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY, const eVision::EFrame &frame) const
 Tests the cursor position for the presence of a character. If one is present under the cursor, it returns true and fills the EOCR2Char object passed as parameter.
bool HitTestChar (eVision::EOCR2Char &character, int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY) const
 Tests the cursor position for the presence of a character. If one is present under the cursor, it returns true and fills the EOCR2Char object passed as parameter.
bool HitTestChar (eVision::EOCR2Char &character, int32_t x, int32_t y, float zoomX, float zoomY, float panX) const
 Tests the cursor position for the presence of a character. If one is present under the cursor, it returns true and fills the EOCR2Char object passed as parameter.
bool HitTestChar (eVision::EOCR2Char &character, int32_t x, int32_t y, float zoomX, float zoomY) const
 Tests the cursor position for the presence of a character. If one is present under the cursor, it returns true and fills the EOCR2Char object passed as parameter.
bool HitTestChar (eVision::EOCR2Char &character, int32_t x, int32_t y, float zoomX) const
 Tests the cursor position for the presence of a character. If one is present under the cursor, it returns true and fills the EOCR2Char object passed as parameter.
bool HitTestChar (eVision::EOCR2Char &character, int32_t x, int32_t y) const
 Tests the cursor position for the presence of a character. If one is present under the cursor, it returns true and fills the EOCR2Char object passed as parameter.
bool HitTestWord (eVision::EOCR2Word &word, int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY, const eVision::EFrame &frame) const
 Tests the cursor position for the presence of a word. If one is present under the cursor, it returns true and fills the EOCR2Word object passed as parameter.
bool HitTestWord (eVision::EOCR2Word &word, int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY) const
 Tests the cursor position for the presence of a word. If one is present under the cursor, it returns true and fills the EOCR2Word object passed as parameter.
bool HitTestWord (eVision::EOCR2Word &word, int32_t x, int32_t y, float zoomX, float zoomY, float panX) const
 Tests the cursor position for the presence of a word. If one is present under the cursor, it returns true and fills the EOCR2Word object passed as parameter.
bool HitTestWord (eVision::EOCR2Word &word, int32_t x, int32_t y, float zoomX, float zoomY) const
 Tests the cursor position for the presence of a word. If one is present under the cursor, it returns true and fills the EOCR2Word object passed as parameter.
bool HitTestWord (eVision::EOCR2Word &word, int32_t x, int32_t y, float zoomX) const
 Tests the cursor position for the presence of a word. If one is present under the cursor, it returns true and fills the EOCR2Word object passed as parameter.
bool HitTestWord (eVision::EOCR2Word &word, int32_t x, int32_t y) const
 Tests the cursor position for the presence of a word. If one is present under the cursor, it returns true and fills the EOCR2Word object passed as parameter.
bool HitTestLine (eVision::EOCR2Line &line, int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY, const eVision::EFrame &frame) const
 Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line object passed as parameter.
bool HitTestLine (eVision::EOCR2Line &line, int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY) const
 Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line object passed as parameter.
bool HitTestLine (eVision::EOCR2Line &line, int32_t x, int32_t y, float zoomX, float zoomY, float panX) const
 Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line object passed as parameter.
bool HitTestLine (eVision::EOCR2Line &line, int32_t x, int32_t y, float zoomX, float zoomY) const
 Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line object passed as parameter.
bool HitTestLine (eVision::EOCR2Line &line, int32_t x, int32_t y, float zoomX) const
 Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line object passed as parameter.
bool HitTestLine (eVision::EOCR2Line &line, int32_t x, int32_t y) const
 Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line object passed as parameter.
bool HitTestText (int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY, const eVision::EFrame &frame) const
 Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true.
bool HitTestText (int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY) const
 Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true.
bool HitTestText (int32_t x, int32_t y, float zoomX, float zoomY, float panX) const
 Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true.
bool HitTestText (int32_t x, int32_t y, float zoomX, float zoomY) const
 Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true.
bool HitTestText (int32_t x, int32_t y, float zoomX) const
 Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true.
bool HitTestText (int32_t x, int32_t y) const
 Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true.
eVision::EFrame ToFrame (bool useAngle, eVision::EFrameScaling frameScaling) const
 Converts the shape to a frame.
eVision::EFrame ToFrame (bool useAngle, eVision::EFrameScaling frameScaling, const eVision::EFrame &frame) const
 Converts the shape to a frame.
eVision::ERegion ToRegion () const
 Creates an ERegion from the EOCR2Text.
 EOCR2Text (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Holds a vector of EOCR2Line objects representing a text.

License(s): None

Constructor & Destructor Documentation

◆ EOCR2Text() [1/3]

eVision::EOCR2Text::EOCR2Text ( )

Constructs an EOCR2Text context.

Default and copy constructors.

◆ EOCR2Text() [2/3]

eVision::EOCR2Text::EOCR2Text ( const eVision::EOCR2Text & other)

Constructs an EOCR2Text context.

Parameters
otherEOCR2Text object to be copied.

Default and copy constructors.

◆ ~EOCR2Text()

eVision::EOCR2Text::~EOCR2Text ( )
throw ( )
virtual

◆ EOCR2Text() [3/3]

eVision::EOCR2Text::EOCR2Text ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ DrawDetection() [1/6]

void eVision::EOCR2Text::DrawDetection ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawDetectionStyle style ) const

Draws the bounding boxes found by the topology detection algorithm.

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

◆ DrawDetection() [2/6]

void eVision::EOCR2Text::DrawDetection ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawDetectionStyle style,
float zoomX ) const

Draws the bounding boxes found by the topology detection algorithm.

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

◆ DrawDetection() [3/6]

void eVision::EOCR2Text::DrawDetection ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawDetectionStyle style,
float zoomX,
float zoomY ) const

Draws the bounding boxes found by the topology detection algorithm.

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

◆ DrawDetection() [4/6]

void eVision::EOCR2Text::DrawDetection ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawDetectionStyle style,
float zoomX,
float zoomY,
float panX ) const

Draws the bounding boxes found by the topology detection algorithm.

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

◆ DrawDetection() [5/6]

void eVision::EOCR2Text::DrawDetection ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawDetectionStyle style,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the bounding boxes found by the topology detection algorithm.

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

◆ DrawDetection() [6/6]

void eVision::EOCR2Text::DrawDetection ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawDetectionStyle style,
float zoomX,
float zoomY,
float panX,
float panY,
const eVision::EFrame & frame ) const

Draws the bounding boxes found by the topology detection algorithm.

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

◆ DrawRecognition() [1/7]

void eVision::EOCR2Text::DrawRecognition ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawRecognitionStyle style ) const

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

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

◆ DrawRecognition() [2/7]

void eVision::EOCR2Text::DrawRecognition ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawRecognitionStyle style,
int32_t fontSize ) const

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

Parameters
drawAdapterEDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
fontSizeFont size used when drawing read strings. Default is 16.

◆ DrawRecognition() [3/7]

void eVision::EOCR2Text::DrawRecognition ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawRecognitionStyle style,
int32_t fontSize,
float zoomX ) const

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

Parameters
drawAdapterEDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
fontSizeFont size used when drawing read strings. Default is 16.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawRecognition() [4/7]

void eVision::EOCR2Text::DrawRecognition ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawRecognitionStyle style,
int32_t fontSize,
float zoomX,
float zoomY ) const

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

Parameters
drawAdapterEDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
fontSizeFont size used when drawing read strings. Default is 16.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawRecognition() [5/7]

void eVision::EOCR2Text::DrawRecognition ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawRecognitionStyle style,
int32_t fontSize,
float zoomX,
float zoomY,
float panX ) const

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

Parameters
drawAdapterEDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
fontSizeFont size used when drawing read strings. Default is 16.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawRecognition() [6/7]

void eVision::EOCR2Text::DrawRecognition ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawRecognitionStyle style,
int32_t fontSize,
float zoomX,
float zoomY,
float panX,
float panY ) const

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

Parameters
drawAdapterEDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
fontSizeFont size used when drawing read strings. Default is 16.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawRecognition() [7/7]

void eVision::EOCR2Text::DrawRecognition ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawRecognitionStyle style,
int32_t fontSize,
float zoomX,
float zoomY,
float panX,
float panY,
const eVision::EFrame & frame ) const

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

Parameters
drawAdapterEDrawAdapter that will be used to draw.
styleThe style in which each recognition result should be drawn.
fontSizeFont size used when drawing read strings. Default is 16.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
frameFrame used in the last read.

◆ DrawSegmentation() [1/6]

void eVision::EOCR2Text::DrawSegmentation ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawSegmentationStyle style ) const

Draws the blobs found by the segmentation algorithm.

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

◆ DrawSegmentation() [2/6]

void eVision::EOCR2Text::DrawSegmentation ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawSegmentationStyle style,
float zoomX ) const

Draws the blobs found by the segmentation algorithm.

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

◆ DrawSegmentation() [3/6]

void eVision::EOCR2Text::DrawSegmentation ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawSegmentationStyle style,
float zoomX,
float zoomY ) const

Draws the blobs found by the segmentation algorithm.

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

◆ DrawSegmentation() [4/6]

void eVision::EOCR2Text::DrawSegmentation ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawSegmentationStyle style,
float zoomX,
float zoomY,
float panX ) const

Draws the blobs found by the segmentation algorithm.

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

◆ DrawSegmentation() [5/6]

void eVision::EOCR2Text::DrawSegmentation ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawSegmentationStyle style,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the blobs found by the segmentation algorithm.

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

◆ DrawSegmentation() [6/6]

void eVision::EOCR2Text::DrawSegmentation ( eVision::EDrawAdapter * drawAdapter,
eVision::EasyOCR2DrawSegmentationStyle style,
float zoomX,
float zoomY,
float panX,
float panY,
const eVision::EFrame & frame ) const

Draws the blobs found by the segmentation algorithm.

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

◆ GetBoundingBox()

eVision::ERectangle eVision::EOCR2Text::GetBoundingBox ( ) const

The bounding box encapsulating all characters in the text.

◆ GetLineCount()

int32_t eVision::EOCR2Text::GetLineCount ( ) const

Gets the number of lines.

◆ GetLines()

std::vector< eVision::EOCR2Line > eVision::EOCR2Text::GetLines ( ) const

The vector of EOCR2Line objects representing the text.

◆ GetString()

std::string eVision::EOCR2Text::GetString ( )

Gets the read string.

◆ GetText()

std::string eVision::EOCR2Text::GetText ( ) const

The true value of all characters in the text.

Use a space (" ") to separate two words and a linebreak ("\n") to separate two lines.

◆ HitTestChar() [1/6]

bool eVision::EOCR2Text::HitTestChar ( eVision::EOCR2Char & character,
int32_t x,
int32_t y ) const

Tests the cursor position for the presence of a character. If one is present under the cursor, it returns true and fills the EOCR2Char object passed as parameter.

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

◆ HitTestChar() [2/6]

bool eVision::EOCR2Text::HitTestChar ( eVision::EOCR2Char & character,
int32_t x,
int32_t y,
float zoomX ) const

Tests the cursor position for the presence of a character. If one is present under the cursor, it returns true and fills the EOCR2Char object passed as parameter.

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

◆ HitTestChar() [3/6]

bool eVision::EOCR2Text::HitTestChar ( eVision::EOCR2Char & character,
int32_t x,
int32_t y,
float zoomX,
float zoomY ) const

Tests the cursor position for the presence of a character. If one is present under the cursor, it returns true and fills the EOCR2Char object passed as parameter.

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

◆ HitTestChar() [4/6]

bool eVision::EOCR2Text::HitTestChar ( eVision::EOCR2Char & character,
int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX ) const

Tests the cursor position for the presence of a character. If one is present under the cursor, it returns true and fills the EOCR2Char object passed as parameter.

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

◆ HitTestChar() [5/6]

bool eVision::EOCR2Text::HitTestChar ( eVision::EOCR2Char & character,
int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX,
float panY ) const

Tests the cursor position for the presence of a character. If one is present under the cursor, it returns true and fills the EOCR2Char object passed as parameter.

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

◆ HitTestChar() [6/6]

bool eVision::EOCR2Text::HitTestChar ( eVision::EOCR2Char & character,
int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX,
float panY,
const eVision::EFrame & frame ) const

Tests the cursor position for the presence of a character. If one is present under the cursor, it returns true and fills the EOCR2Char object passed as parameter.

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

◆ HitTestLine() [1/6]

bool eVision::EOCR2Text::HitTestLine ( eVision::EOCR2Line & line,
int32_t x,
int32_t y ) const

Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line object passed as parameter.

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

◆ HitTestLine() [2/6]

bool eVision::EOCR2Text::HitTestLine ( eVision::EOCR2Line & line,
int32_t x,
int32_t y,
float zoomX ) const

Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line object passed as parameter.

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

◆ HitTestLine() [3/6]

bool eVision::EOCR2Text::HitTestLine ( eVision::EOCR2Line & line,
int32_t x,
int32_t y,
float zoomX,
float zoomY ) const

Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line object passed as parameter.

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

◆ HitTestLine() [4/6]

bool eVision::EOCR2Text::HitTestLine ( eVision::EOCR2Line & line,
int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX ) const

Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line object passed as parameter.

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

◆ HitTestLine() [5/6]

bool eVision::EOCR2Text::HitTestLine ( eVision::EOCR2Line & line,
int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX,
float panY ) const

Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line object passed as parameter.

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

◆ HitTestLine() [6/6]

bool eVision::EOCR2Text::HitTestLine ( eVision::EOCR2Line & line,
int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX,
float panY,
const eVision::EFrame & frame ) const

Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line object passed as parameter.

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

◆ HitTestText() [1/6]

bool eVision::EOCR2Text::HitTestText ( int32_t x,
int32_t y ) const

Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true.

Parameters
xHorizontal position of the cursor.
yVertical position of the cursor.

◆ HitTestText() [2/6]

bool eVision::EOCR2Text::HitTestText ( int32_t x,
int32_t y,
float zoomX ) const

Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true.

Parameters
xHorizontal position of the cursor.
yVertical position of the cursor.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ HitTestText() [3/6]

bool eVision::EOCR2Text::HitTestText ( int32_t x,
int32_t y,
float zoomX,
float zoomY ) const

Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true.

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

◆ HitTestText() [4/6]

bool eVision::EOCR2Text::HitTestText ( int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX ) const

Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true.

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

◆ HitTestText() [5/6]

bool eVision::EOCR2Text::HitTestText ( int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX,
float panY ) const

Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true.

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

◆ HitTestText() [6/6]

bool eVision::EOCR2Text::HitTestText ( int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX,
float panY,
const eVision::EFrame & frame ) const

Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true.

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

◆ HitTestWord() [1/6]

bool eVision::EOCR2Text::HitTestWord ( eVision::EOCR2Word & word,
int32_t x,
int32_t y ) const

Tests the cursor position for the presence of a word. If one is present under the cursor, it returns true and fills the EOCR2Word object passed as parameter.

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

◆ HitTestWord() [2/6]

bool eVision::EOCR2Text::HitTestWord ( eVision::EOCR2Word & word,
int32_t x,
int32_t y,
float zoomX ) const

Tests the cursor position for the presence of a word. If one is present under the cursor, it returns true and fills the EOCR2Word object passed as parameter.

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

◆ HitTestWord() [3/6]

bool eVision::EOCR2Text::HitTestWord ( eVision::EOCR2Word & word,
int32_t x,
int32_t y,
float zoomX,
float zoomY ) const

Tests the cursor position for the presence of a word. If one is present under the cursor, it returns true and fills the EOCR2Word object passed as parameter.

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

◆ HitTestWord() [4/6]

bool eVision::EOCR2Text::HitTestWord ( eVision::EOCR2Word & word,
int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX ) const

Tests the cursor position for the presence of a word. If one is present under the cursor, it returns true and fills the EOCR2Word object passed as parameter.

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

◆ HitTestWord() [5/6]

bool eVision::EOCR2Text::HitTestWord ( eVision::EOCR2Word & word,
int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX,
float panY ) const

Tests the cursor position for the presence of a word. If one is present under the cursor, it returns true and fills the EOCR2Word object passed as parameter.

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

◆ HitTestWord() [6/6]

bool eVision::EOCR2Text::HitTestWord ( eVision::EOCR2Word & word,
int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX,
float panY,
const eVision::EFrame & frame ) const

Tests the cursor position for the presence of a word. If one is present under the cursor, it returns true and fills the EOCR2Word object passed as parameter.

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

◆ operator=()

eVision::EOCR2Text & eVision::EOCR2Text::operator= ( const eVision::EOCR2Text & other)

Copies all the data from another EOCR2Text object into the current EOCR2Text object.

Parameters
otherEOCR2Text object to be copied

◆ SetLines()

void eVision::EOCR2Text::SetLines ( std::vector< eVision::EOCR2Line > lines)

The vector of EOCR2Line objects representing the text.

◆ SetText()

void eVision::EOCR2Text::SetText ( const std::string & text)

The true value of all characters in the text.

Parameters
textA string containing the true value of all characters in the text.

Use a space (" ") to separate two words and a linebreak ("\n") to separate two lines.

◆ ToFrame() [1/2]

eVision::EFrame eVision::EOCR2Text::ToFrame ( bool useAngle,
eVision::EFrameScaling frameScaling ) const

Converts the shape to a frame.

Parameters
useAngleWhether to use the angle of the shape as the orientation of the frame
frameScalingHow to change the scaling of the frame.

◆ ToFrame() [2/2]

eVision::EFrame eVision::EOCR2Text::ToFrame ( bool useAngle,
eVision::EFrameScaling frameScaling,
const eVision::EFrame & frame ) const

Converts the shape to a frame.

Parameters
useAngleWhether to use the angle of the shape as the orientation of the frame
frameScalingHow to change the scaling of the frame.
frameThe frame in which the text is defined

◆ ToRegion()

eVision::ERegion eVision::EOCR2Text::ToRegion ( ) const

Creates an ERegion from the EOCR2Text.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EOCR2Text::wrappedClass_