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

Holds all information related to a single detected character. More...

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

Collaboration diagram for eVision::EOCR2Char:

Public Member Functions

 EOCR2Char ()
 Constructs an EOCR2Char context.
 EOCR2Char (const eVision::EOCR2Char &other)
 Constructs an EOCR2Char context.
virtual ~EOCR2Char () throw ()
eVision::EOCR2Char & operator= (const eVision::EOCR2Char &other)
 Copies all the data from another EOCR2Char object into the current EOCR2Char object.
eVision::EROIBW8 & GetBitmap ()
 The bitmap associated to this character.
std::vector< eVision::EOCR2CharacterCandidate > GetCandidates ()
 The list of recognition results for all reference-characters with their respective scores. The list is sorted from the best score to the worst one.
eVision::ERectangle GetBoundingBox () const
 The bounding box associated to this character.
void SetText (const std::string &text)
 The true value of the character, this is used during the learning phase.
std::string GetText () const
 The true value of the character, this is used during the learning phase.
void SetTextCode (uint16_t code)
 The true value of the character, this is used during the learning phase.
 EOCR2Char (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Holds all information related to a single detected character.

License(s): None

Constructor & Destructor Documentation

◆ EOCR2Char() [1/3]

eVision::EOCR2Char::EOCR2Char ( )

Constructs an EOCR2Char context.

◆ EOCR2Char() [2/3]

eVision::EOCR2Char::EOCR2Char ( const eVision::EOCR2Char & other)

Constructs an EOCR2Char context.

Parameters
otherEOCR2Char object to be copied.

◆ ~EOCR2Char()

eVision::EOCR2Char::~EOCR2Char ( )
throw ( )
virtual

◆ EOCR2Char() [3/3]

eVision::EOCR2Char::EOCR2Char ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ GetBitmap()

eVision::EROIBW8 & eVision::EOCR2Char::GetBitmap ( )

The bitmap associated to this character.

◆ GetBoundingBox()

eVision::ERectangle eVision::EOCR2Char::GetBoundingBox ( ) const

The bounding box associated to this character.

◆ GetCandidates()

std::vector< eVision::EOCR2CharacterCandidate > eVision::EOCR2Char::GetCandidates ( )

The list of recognition results for all reference-characters with their respective scores. The list is sorted from the best score to the worst one.

◆ GetText()

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

The true value of the character, this is used during the learning phase.

It is also possible to set the character value using a uint16_t code, this is done with EOCR2Char::SetTextCode.

◆ operator=()

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

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

Parameters
otherEOCR2Char object to be copied

◆ SetText()

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

The true value of the character, this is used during the learning phase.

Parameters
textA string starting with the true value of the character.

It is also possible to set the character value using a uint16_t code, this is done with EOCR2Char::SetTextCode.

◆ SetTextCode()

void eVision::EOCR2Char::SetTextCode ( uint16_t code)

The true value of the character, this is used during the learning phase.

Parameters
codeAn integer containing the ASCII representation of the character.

It is also possible to set the character value using a std::string, this is done with EOCR2Char::SetText.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EOCR2Char::wrappedClass_