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

Manages a complete context for the reading or verification of bar codes in EasyBarCode. More...

#include <eVision/EasyBarCode/EasyBarCode1/EBarCode.h>

Collaboration diagram for eVision::EBarCode:

Public Member Functions

 EBarCode ()
 Creates an EBarCode::EBarCode object.
virtual ~EBarCode () throw ()
void SetRectangle (const eVision::Legacy::ERectangle &rectangle)
 Sets the nominal position (center coordinates), size and rotation angle of the symbol bounding box according to a known rectangle.
void SetReadingCenter (float relativeX, float relativeY)
 Sets the reading area center coordinates, relative to the symbol position and extent.
void SetReadingSize (float relativeSizeX, float relativeSizeY)
 Sets the reading area size, relative to the symbol extent.
float GetRelativeReadingX () const
 Reading area abscissa, relative to the symbol position.
float GetRelativeReadingY () const
 Reading area ordinate, relative to the symbol position.
float GetRelativeReadingSizeX () const
 Reading area width, relative to the symbol extent.
float GetRelativeReadingSizeY () const
 Reading area height, relative to the symbol extent.
float GetModule () const
 Module value.
void SetModule (float f32Module)
 Module value.
float GetThicknessRatio () const
 Bars thickness ratio.
void SetThicknessRatio (float f32ThicknessRatio)
 Bars thickness ratio.
bool GetKnownLocation () const
 Flag indicating whether the symbol location is known or not.
void SetKnownLocation (bool bKnownLocation)
 Flag indicating whether the symbol location is known or not.
bool GetKnownModule () const
 Flag indicating whether the symbol module is known or not.
void SetKnownModule (bool bKnownModule)
 Flag indicating whether the symbol module is known or not.
bool GetVerifyChecksum () const
 "VerifyChecksum" mode.
void SetVerifyChecksum (bool bVerifyChecksum)
 "VerifyChecksum" mode.
void Detect (eVision::EROIBW8 *sourceImage)
 Processes the image, reads the possible contents of the bar code corresponding to all enabled symbologies and rates their likeliness.
std::string Decode (eVision::ESymbologies symbology)
 Provides the decoded information (or a reading error code) corresponding to the specified symbology.
std::string Read (eVision::EROIBW8 *sourceImage)
 Processes the image, reads the possible contents of the bar code and returns the single possible decoding (mono-symbology) or the most likely one (multi-symbology) or a reading error code.
void GetDecodedDirection (bool &directEncoding)
 Returns the encoding direction of the bar code, pertaining to the specified symbology, or, at least, to the most likely symbology.
void GetDecodedDirection (eVision::ESymbologies symbology, bool &directEncoding)
 Returns the encoding direction of the bar code, pertaining to the specified symbology, or, at least, to the most likely symbology.
void GetDecodedAngle (float &decodedAngle)
 Allows retrieving the bar code reading angle, pertaining to the specified symbology, or, at least, to the most likely symbology.
void GetDecodedAngle (float &decodedAngle, float cutAngle)
 Allows retrieving the bar code reading angle, pertaining to the specified symbology, or, at least, to the most likely symbology.
void GetDecodedAngle (eVision::ESymbologies symbology, float &decodedAngle)
 Allows retrieving the bar code reading angle, pertaining to the specified symbology, or, at least, to the most likely symbology.
void GetDecodedAngle (eVision::ESymbologies symbology, float &decodedAngle, float cutAngle)
 Allows retrieving the bar code reading angle, pertaining to the specified symbology, or, at least, to the most likely symbology.
void GetDecodedRectangle (eVision::Legacy::ERectangle &rect)
 Allows retrieving the bar code reading rectangle, pertaining to the specified symbology, or, at least, to the most likely symbology.
void GetDecodedRectangle (eVision::ESymbologies symbology, eVision::Legacy::ERectangle &rect)
 Allows retrieving the bar code reading rectangle, pertaining to the specified symbology, or, at least, to the most likely symbology.
uint32_t GetNumEnabledSymbologies () const
 Number of enabled symbologies.
uint32_t GetNumDecodedSymbologies () const
 Number of symbologies (among the enabled ones) for which the decoding process was successful.
eVision::ESymbologies GetDecodedSymbology (uint32_t index)
 Returns the identifier of one of the symbologies that were successfully decoded.
uint32_t GetStandardSymbologies () const
 Enabled symbologies belonging to the group of standard symbologies.
void SetStandardSymbologies (uint32_t un32StandardSymbologies)
 Enabled symbologies belonging to the group of standard symbologies.
uint32_t GetAdditionalSymbologies () const
 Enabled symbologies belonging to the group of additional symbologies.
void SetAdditionalSymbologies (uint32_t un32AdditionalSymbologies)
 Enabled symbologies belonging to the group of additional symbologies.
void Draw (eVision::EDrawAdapter *graphicContext, eVision::EDrawingMode drawingMode, bool daughters)
 Draws the symbol bounding box.
void Draw (eVision::EDrawAdapter *graphicContext, eVision::EDrawingMode drawingMode)
 Draws the symbol bounding box.
void Draw (eVision::EDrawAdapter *graphicContext)
 Draws the symbol bounding box.
void Draw (HDC graphicContext, eVision::EDrawingMode drawingMode, bool daughters)
 Draws the symbol bounding box.
void Draw (HDC graphicContext, eVision::EDrawingMode drawingMode)
 Draws the symbol bounding box.
void Draw (HDC graphicContext)
 Draws the symbol bounding box.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, eVision::EDrawingMode drawingMode, bool daughters)
 Draws the symbol bounding box.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, eVision::EDrawingMode drawingMode)
 Draws the symbol bounding box.
void Draw (HDC graphicContext, const eVision::ERGBColor &color)
 Draws the symbol bounding box.
void DrawWithCurrentPen (HDC graphicContext, eVision::EDrawingMode drawingMode, bool daughters)
 Draws the symbol bounding box.
void DrawWithCurrentPen (HDC graphicContext, eVision::EDrawingMode drawingMode)
 Draws the symbol bounding box.
void DrawWithCurrentPen (HDC graphicContext)
 Draws the symbol bounding box.
bool HitTest (bool daughters)
 Checks whether the cursor is positioned over a handle (true) or not (false).
bool HitTest ()
 Checks whether the cursor is positioned over a handle (true) or not (false).
void Drag (int32_t cursorX, int32_t cursorY)
 Moves a handle to a new position and updates the position parameters of the symbol bounding box.
float GetCenterX () const
 Abscissa of the origin point of the EBarCode.
float GetCenterY () const
 Ordinate of the origin point of the EBarCode.
eVision::EPoint GetCenter () const
 Center point of the EBarCode.
void SetCenter (const eVision::EPoint &center)
 Center point of the EBarCode.
float GetSizeX () const
 X size of the EBarCode.
float GetSizeY () const
 Y size of the EBarCode.
float GetAngle () const
 Orientation of the shape.
void SetAngle (float f32Angle)
 Orientation of the shape.
void SetSize (float sizeX, float sizeY)
 Sets the size of a EBarCode object.
void SetCenterXY (float centerX, float centerY)
 Sets the center coordinates of a EBarCode object.
const eVision::Legacy::ERectangleShape & GetRectangleShape () const
 Get the rectangle shape associated with the EBarCode.
eVision::Legacy::ERectangleShape & GetRectangleShape ()
 Get the rectangle shape associated with the EBarCode.
std::string GetSymbologyName (eVision::ESymbologies symbology)
 Retrieves the name of given symbology as a string.
void Save (const std::string &path, bool daughters)
 Loads an EBarCode.The given EBarCode must have been created for writing.
void Save (const std::string &path)
 Loads an EBarCode.The given EBarCode must have been created for writing.
void Save (eVision::ESerializer *serializer, bool daughters)
 Loads an EBarCode.The given EBarCode must have been created for writing.
void Save (eVision::ESerializer *serializer)
 Loads an EBarCode.The given EBarCode must have been created for writing.
void Load (const std::string &path, bool daughters)
 Loads an EBarCode.The given EBarCode must have been created for reading.
void Load (const std::string &path)
 Loads an EBarCode.The given EBarCode must have been created for reading.
void Load (eVision::ESerializer *serializer, bool daughters)
 Loads an EBarCode.The given EBarCode must have been created for reading.
void Load (eVision::ESerializer *serializer)
 Loads an EBarCode.The given EBarCode must have been created for reading.
 EBarCode (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Manages a complete context for the reading or verification of bar codes in EasyBarCode.

License(s): EasyBarCode

Deprecated

Deprecated, use EBarCodeReader instead.

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

Constructor & Destructor Documentation

◆ EBarCode() [1/2]

eVision::EBarCode::EBarCode ( )

Creates an EBarCode::EBarCode object.

◆ ~EBarCode()

eVision::EBarCode::~EBarCode ( )
throw ( )
virtual

◆ EBarCode() [2/2]

eVision::EBarCode::EBarCode ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ Decode()

std::string eVision::EBarCode::Decode ( eVision::ESymbologies symbology)

Provides the decoded information (or a reading error code) corresponding to the specified symbology.

Parameters
symbologySpecified symbology, as defined by ESymbologies this symbology must have been enabled).

Before calling EBarCode::Decode, an EBarCode::Detect operation must have been performed. In case of the mono-symbology mode, or if only the most likely decoding matters, the EBarCode::Read method should be used.

◆ Detect()

void eVision::EBarCode::Detect ( eVision::EROIBW8 * sourceImage)

Processes the image, reads the possible contents of the bar code corresponding to all enabled symbologies and rates their likeliness.

Parameters
sourceImagePointer to the image containing the bar code.

Processing the image means finding the symbol (in case of automatic location mode) and retrieving its descriptive parameters. The decoded information corresponding to a specific symbology is provided by the decode function. The symbologies that were successfully decoded are ranked by decreasing likeliness (range 0 to NumDecodedSymbologies-1). In case of the mono-symbology mode or if only the most likely decoding matters, the Read function should be used.

◆ Drag()

void eVision::EBarCode::Drag ( int32_t cursorX,
int32_t cursorY )

Moves a handle to a new position and updates the position parameters of the symbol bounding box.

Parameters
cursorXCursor current coordinates.
cursorYCursor current coordinates.

◆ Draw() [1/9]

void eVision::EBarCode::Draw ( eVision::EDrawAdapter * graphicContext)

Draws the symbol bounding box.

Parameters
graphicContextHandle of the device context on which to draw.

The bounding box corresponds to the nominal position of the bar code (EDrawingMode::EDrawingMode_Nominal), in case this information has been explicitly provided, and to the actual position (EDrawingMode::EDrawingMode_Actual) if it has been determined by image analysis.

◆ Draw() [2/9]

void eVision::EBarCode::Draw ( eVision::EDrawAdapter * graphicContext,
eVision::EDrawingMode drawingMode )

Draws the symbol bounding box.

Parameters
graphicContextHandle of the device context on which to draw.
drawingModeIndicates how the symbol bounding box must be displayed, as defined by EDrawingMode.

The bounding box corresponds to the nominal position of the bar code (EDrawingMode::EDrawingMode_Nominal), in case this information has been explicitly provided, and to the actual position (EDrawingMode::EDrawingMode_Actual) if it has been determined by image analysis.

◆ Draw() [3/9]

void eVision::EBarCode::Draw ( eVision::EDrawAdapter * graphicContext,
eVision::EDrawingMode drawingMode,
bool daughters )

Draws the symbol bounding box.

Parameters
graphicContextHandle of the device context on which to draw.
drawingModeIndicates how the symbol bounding box must be displayed, as defined by EDrawingMode.
daughterstrue if the shapes attached to the symbol bounding box are to be displayed as well.

The bounding box corresponds to the nominal position of the bar code (EDrawingMode::EDrawingMode_Nominal), in case this information has been explicitly provided, and to the actual position (EDrawingMode::EDrawingMode_Actual) if it has been determined by image analysis.

◆ Draw() [4/9]

void eVision::EBarCode::Draw ( HDC graphicContext)

Draws the symbol bounding box.

Parameters
graphicContextHandle of the device context on which to draw.

The bounding box corresponds to the nominal position of the bar code (EDrawingMode::EDrawingMode_Nominal), in case this information has been explicitly provided, and to the actual position (EDrawingMode::EDrawingMode_Actual) if it has been determined by image analysis.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

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

◆ Draw() [5/9]

void eVision::EBarCode::Draw ( HDC graphicContext,
const eVision::ERGBColor & color )

Draws the symbol bounding box.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the overlay.

The bounding box corresponds to the nominal position of the bar code (EDrawingMode::EDrawingMode_Nominal), in case this information has been explicitly provided, and to the actual position (EDrawingMode::EDrawingMode_Actual) if it has been determined by image analysis.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

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

◆ Draw() [6/9]

void eVision::EBarCode::Draw ( HDC graphicContext,
const eVision::ERGBColor & color,
eVision::EDrawingMode drawingMode )

Draws the symbol bounding box.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the overlay.
drawingModeIndicates how the symbol bounding box must be displayed, as defined by EDrawingMode.

The bounding box corresponds to the nominal position of the bar code (EDrawingMode::EDrawingMode_Nominal), in case this information has been explicitly provided, and to the actual position (EDrawingMode::EDrawingMode_Actual) if it has been determined by image analysis.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

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

◆ Draw() [7/9]

void eVision::EBarCode::Draw ( HDC graphicContext,
const eVision::ERGBColor & color,
eVision::EDrawingMode drawingMode,
bool daughters )

Draws the symbol bounding box.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the overlay.
drawingModeIndicates how the symbol bounding box must be displayed, as defined by EDrawingMode.
daughterstrue if the shapes attached to the symbol bounding box are to be displayed as well.

The bounding box corresponds to the nominal position of the bar code (EDrawingMode::EDrawingMode_Nominal), in case this information has been explicitly provided, and to the actual position (EDrawingMode::EDrawingMode_Actual) if it has been determined by image analysis.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

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

◆ Draw() [8/9]

void eVision::EBarCode::Draw ( HDC graphicContext,
eVision::EDrawingMode drawingMode )

Draws the symbol bounding box.

Parameters
graphicContextHandle of the device context on which to draw.
drawingModeIndicates how the symbol bounding box must be displayed, as defined by EDrawingMode.

The bounding box corresponds to the nominal position of the bar code (EDrawingMode::EDrawingMode_Nominal), in case this information has been explicitly provided, and to the actual position (EDrawingMode::EDrawingMode_Actual) if it has been determined by image analysis.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

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

◆ Draw() [9/9]

void eVision::EBarCode::Draw ( HDC graphicContext,
eVision::EDrawingMode drawingMode,
bool daughters )

Draws the symbol bounding box.

Parameters
graphicContextHandle of the device context on which to draw.
drawingModeIndicates how the symbol bounding box must be displayed, as defined by EDrawingMode.
daughterstrue if the shapes attached to the symbol bounding box are to be displayed as well.

The bounding box corresponds to the nominal position of the bar code (EDrawingMode::EDrawingMode_Nominal), in case this information has been explicitly provided, and to the actual position (EDrawingMode::EDrawingMode_Actual) if it has been determined by image analysis.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

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

◆ DrawWithCurrentPen() [1/3]

void eVision::EBarCode::DrawWithCurrentPen ( HDC graphicContext)

Draws the symbol bounding box.

Parameters
graphicContextHandle of the device context on which to draw.

The bounding box corresponds to the nominal position of the bar code (EDrawingMode::EDrawingMode_Nominal), in case this information has been explicitly provided, and to the actual position (EDrawingMode::EDrawingMode_Actual) if it has been determined by image analysis.

Deprecated

Use the overload of EBarCode::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

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

◆ DrawWithCurrentPen() [2/3]

void eVision::EBarCode::DrawWithCurrentPen ( HDC graphicContext,
eVision::EDrawingMode drawingMode )

Draws the symbol bounding box.

Parameters
graphicContextHandle of the device context on which to draw.
drawingModeIndicates how the symbol bounding box must be displayed, as defined by EDrawingMode.

The bounding box corresponds to the nominal position of the bar code (EDrawingMode::EDrawingMode_Nominal), in case this information has been explicitly provided, and to the actual position (EDrawingMode::EDrawingMode_Actual) if it has been determined by image analysis.

Deprecated

Use the overload of EBarCode::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

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

◆ DrawWithCurrentPen() [3/3]

void eVision::EBarCode::DrawWithCurrentPen ( HDC graphicContext,
eVision::EDrawingMode drawingMode,
bool daughters )

Draws the symbol bounding box.

Parameters
graphicContextHandle of the device context on which to draw.
drawingModeIndicates how the symbol bounding box must be displayed, as defined by EDrawingMode.
daughterstrue if the shapes attached to the symbol bounding box are to be displayed as well.

The bounding box corresponds to the nominal position of the bar code (EDrawingMode::EDrawingMode_Nominal), in case this information has been explicitly provided, and to the actual position (EDrawingMode::EDrawingMode_Actual) if it has been determined by image analysis.

Deprecated

Use the overload of EBarCode::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

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

◆ GetAdditionalSymbologies()

uint32_t eVision::EBarCode::GetAdditionalSymbologies ( ) const

Enabled symbologies belonging to the group of additional symbologies.

Due to the large number of supported symbologies, they have been gathered in two groups. For more information about these groups, see ESymbologies.

◆ GetAngle()

float eVision::EBarCode::GetAngle ( ) const

Orientation of the shape.

◆ GetCenter()

eVision::EPoint eVision::EBarCode::GetCenter ( ) const

Center point of the EBarCode.

◆ GetCenterX()

float eVision::EBarCode::GetCenterX ( ) const

Abscissa of the origin point of the EBarCode.

◆ GetCenterY()

float eVision::EBarCode::GetCenterY ( ) const

Ordinate of the origin point of the EBarCode.

◆ GetDecodedAngle() [1/4]

void eVision::EBarCode::GetDecodedAngle ( eVision::ESymbologies symbology,
float & decodedAngle )

Allows retrieving the bar code reading angle, pertaining to the specified symbology, or, at least, to the most likely symbology.

Parameters
symbologySpecified symbology, as defined by ESymbologies (this symbology must have been enabled).
decodedAngleReturned bar code reading angle value.

◆ GetDecodedAngle() [2/4]

void eVision::EBarCode::GetDecodedAngle ( eVision::ESymbologies symbology,
float & decodedAngle,
float cutAngle )

Allows retrieving the bar code reading angle, pertaining to the specified symbology, or, at least, to the most likely symbology.

Parameters
symbologySpecified symbology, as defined by ESymbologies (this symbology must have been enabled).
decodedAngleReturned bar code reading angle value.
cutAngleCut angle value (degrees) defining the allowed range for the bar code reading angle ([cutAngle, cutAngle + 360]). By default, the cut angle equals -45.

◆ GetDecodedAngle() [3/4]

void eVision::EBarCode::GetDecodedAngle ( float & decodedAngle)

Allows retrieving the bar code reading angle, pertaining to the specified symbology, or, at least, to the most likely symbology.

Parameters
decodedAngleReturned bar code reading angle value.

◆ GetDecodedAngle() [4/4]

void eVision::EBarCode::GetDecodedAngle ( float & decodedAngle,
float cutAngle )

Allows retrieving the bar code reading angle, pertaining to the specified symbology, or, at least, to the most likely symbology.

Parameters
decodedAngleReturned bar code reading angle value.
cutAngleCut angle value (degrees) defining the allowed range for the bar code reading angle ([cutAngle, cutAngle + 360]). By default, the cut angle equals -45.

◆ GetDecodedDirection() [1/2]

void eVision::EBarCode::GetDecodedDirection ( bool & directEncoding)

Returns the encoding direction of the bar code, pertaining to the specified symbology, or, at least, to the most likely symbology.

Parameters
directEncodingBoolean holding the encoding direction status.

The encoding direction of the bar code is "Direct" or "Inverse". The encoding direction is said to be "Direct" when the bar code longitudinal axis falls in the range [-45 degrees, 135]. Conversely, when the bar code longitudinal axis doesn't fall in the previous range, the encoding direction is said to be "Inverse".

◆ GetDecodedDirection() [2/2]

void eVision::EBarCode::GetDecodedDirection ( eVision::ESymbologies symbology,
bool & directEncoding )

Returns the encoding direction of the bar code, pertaining to the specified symbology, or, at least, to the most likely symbology.

Parameters
symbologySpecified symbology, as defined by ESymbologies (this symbology must have been enabled).
directEncodingBoolean holding the encoding direction status.

The encoding direction of the bar code is "Direct" or "Inverse". The encoding direction is said to be "Direct" when the bar code longitudinal axis falls in the range [-45 degrees, 135]. Conversely, when the bar code longitudinal axis doesn't fall in the previous range, the encoding direction is said to be "Inverse".

◆ GetDecodedRectangle() [1/2]

void eVision::EBarCode::GetDecodedRectangle ( eVision::ESymbologies symbology,
eVision::Legacy::ERectangle & rect )

Allows retrieving the bar code reading rectangle, pertaining to the specified symbology, or, at least, to the most likely symbology.

Parameters
symbologySpecified symbology, as defined by ESymbologies (this symbology must have been enabled).
rectReturned bar code reading rectangle.

◆ GetDecodedRectangle() [2/2]

void eVision::EBarCode::GetDecodedRectangle ( eVision::Legacy::ERectangle & rect)

Allows retrieving the bar code reading rectangle, pertaining to the specified symbology, or, at least, to the most likely symbology.

Parameters
rectReturned bar code reading rectangle.

◆ GetDecodedSymbology()

eVision::ESymbologies eVision::EBarCode::GetDecodedSymbology ( uint32_t index)

Returns the identifier of one of the symbologies that were successfully decoded.

Parameters
indexIndex of the specified symbology (range 0 to NumDecodedSymbologies-1).

The desired symbology is specified by its ranking index (range 0 to NumDecodedSymbologies-1). The symbologies that were successfully decoded are ranked by decreasing likeliness.

◆ GetKnownLocation()

bool eVision::EBarCode::GetKnownLocation ( ) const

Flag indicating whether the symbol location is known or not.

In case of known location, use EBarCode::SetRectangle to adjust a rectangle around the symbol.

◆ GetKnownModule()

bool eVision::EBarCode::GetKnownModule ( ) const

Flag indicating whether the symbol module is known or not.

If true, it is also necessary to get the EBarCode::GetModule and EBarCode::GetThicknessRatio properties in order to specify the requested module and thickness ratio.

◆ GetModule()

float eVision::EBarCode::GetModule ( ) const

Module value.

The module value is a descriptive parameter participating in the encoding; it corresponds to the thinner bar width. Symbols whose bars thickness can take two values, the module and V times the module (where V runs from 1.5 to 3), are called binary bar codes. When the bars thickness are small integer multiples (1 to 4 or 5) of a module, the symbols are called modular bar codes.

◆ GetNumDecodedSymbologies()

uint32_t eVision::EBarCode::GetNumDecodedSymbologies ( ) const

Number of symbologies (among the enabled ones) for which the decoding process was successful.

◆ GetNumEnabledSymbologies()

uint32_t eVision::EBarCode::GetNumEnabledSymbologies ( ) const

Number of enabled symbologies.

◆ GetRectangleShape() [1/2]

eVision::Legacy::ERectangleShape & eVision::EBarCode::GetRectangleShape ( )

Get the rectangle shape associated with the EBarCode.

◆ GetRectangleShape() [2/2]

const eVision::Legacy::ERectangleShape & eVision::EBarCode::GetRectangleShape ( ) const

Get the rectangle shape associated with the EBarCode.

◆ GetRelativeReadingSizeX()

float eVision::EBarCode::GetRelativeReadingSizeX ( ) const

Reading area width, relative to the symbol extent.

◆ GetRelativeReadingSizeY()

float eVision::EBarCode::GetRelativeReadingSizeY ( ) const

Reading area height, relative to the symbol extent.

◆ GetRelativeReadingX()

float eVision::EBarCode::GetRelativeReadingX ( ) const

Reading area abscissa, relative to the symbol position.

◆ GetRelativeReadingY()

float eVision::EBarCode::GetRelativeReadingY ( ) const

Reading area ordinate, relative to the symbol position.

◆ GetSizeX()

float eVision::EBarCode::GetSizeX ( ) const

X size of the EBarCode.

◆ GetSizeY()

float eVision::EBarCode::GetSizeY ( ) const

Y size of the EBarCode.

◆ GetStandardSymbologies()

uint32_t eVision::EBarCode::GetStandardSymbologies ( ) const

Enabled symbologies belonging to the group of standard symbologies.

Due to the large number of supported symbologies, they have been gathered in two groups. For more information about these groups, see ESymbologies.

◆ GetSymbologyName()

std::string eVision::EBarCode::GetSymbologyName ( eVision::ESymbologies symbology)

Retrieves the name of given symbology as a string.

Parameters
symbologySymbology.

◆ GetThicknessRatio()

float eVision::EBarCode::GetThicknessRatio ( ) const

Bars thickness ratio.

This property is relevant in case of binary codes only. It corresponds to the ratio of a thin bar width over a thick bar width, and should range from 1.5 to 3.

◆ GetVerifyChecksum()

bool eVision::EBarCode::GetVerifyChecksum ( ) const

"VerifyChecksum" mode.

The "VerifyChecksum" mode enables or disables verification of the checksum character. That verification mode is set in the same way for all enabled symbologies. It is worth noting that checksum may be present or not in the bar code, and the user may verify or not checksum validity. These two circumstances are independent, and give rise to four modes of operation. The verification process will return an "invalid checksum" error in case of bad checksum character. This error can also be generated if there is no checksum in the bar code. In the other case, when checksum are not verified, no error will occur, and the process will continue silently. When the "VerifyChecksum" mode is enabled, the returned decoded string does not contain the checksum character(s). Conversely, when the verification process is disabled, the checksum character(s) are concatenated to the encoded information.

◆ HitTest() [1/2]

bool eVision::EBarCode::HitTest ( )

Checks whether the cursor is positioned over a handle (true) or not (false).

◆ HitTest() [2/2]

bool eVision::EBarCode::HitTest ( bool daughters)

Checks whether the cursor is positioned over a handle (true) or not (false).

Parameters
daughterstrue if the handles of the shapes attached to the symbol bounding box have to be considered as well.

◆ Load() [1/4]

void eVision::EBarCode::Load ( const std::string & path)

Loads an EBarCode.The given EBarCode must have been created for reading.

Parameters
pathThe file path.

◆ Load() [2/4]

void eVision::EBarCode::Load ( const std::string & path,
bool daughters )

Loads an EBarCode.The given EBarCode must have been created for reading.

Parameters
pathThe file path.
daughtersIndicates if the load must be done on the whole hierarchy or just this object.

◆ Load() [3/4]

void eVision::EBarCode::Load ( eVision::ESerializer * serializer)

Loads an EBarCode.The given EBarCode must have been created for reading.

Parameters
serializerPointer to the ESerializer created for reading.

◆ Load() [4/4]

void eVision::EBarCode::Load ( eVision::ESerializer * serializer,
bool daughters )

Loads an EBarCode.The given EBarCode must have been created for reading.

Parameters
serializerPointer to the ESerializer created for reading.
daughtersIndicates if the load must be done on the whole hierarchy or just this object.

◆ Read()

std::string eVision::EBarCode::Read ( eVision::EROIBW8 * sourceImage)

Processes the image, reads the possible contents of the bar code and returns the single possible decoding (mono-symbology) or the most likely one (multi-symbology) or a reading error code.

Parameters
sourceImageThe image containing the bar code.

Processing the image means finding the symbol (in case of automatic location mode) and retrieving its descriptive parameters. When decoding other than the most likely one are also required, a call to the EBarCode::Detect function followed by a EBarCode::Decode should be used.

◆ Save() [1/4]

void eVision::EBarCode::Save ( const std::string & path)

Loads an EBarCode.The given EBarCode must have been created for writing.

Parameters
pathThe file path.

◆ Save() [2/4]

void eVision::EBarCode::Save ( const std::string & path,
bool daughters )

Loads an EBarCode.The given EBarCode must have been created for writing.

Parameters
pathThe file path.
daughtersIndicates if the save must be done on the whole hierarchy or just this object.

◆ Save() [3/4]

void eVision::EBarCode::Save ( eVision::ESerializer * serializer)

Loads an EBarCode.The given EBarCode must have been created for writing.

Parameters
serializerPointer to the ESerializer created for writing.

◆ Save() [4/4]

void eVision::EBarCode::Save ( eVision::ESerializer * serializer,
bool daughters )

Loads an EBarCode.The given EBarCode must have been created for writing.

Parameters
serializerPointer to the ESerializer created for writing.
daughtersIndicates if the save must be done on the whole hierarchy or just this object.

◆ SetAdditionalSymbologies()

void eVision::EBarCode::SetAdditionalSymbologies ( uint32_t un32AdditionalSymbologies)

Enabled symbologies belonging to the group of additional symbologies.

Due to the large number of supported symbologies, they have been gathered in two groups. For more information about these groups, see ESymbologies.

◆ SetAngle()

void eVision::EBarCode::SetAngle ( float f32Angle)

Orientation of the shape.

◆ SetCenter()

void eVision::EBarCode::SetCenter ( const eVision::EPoint & center)

Center point of the EBarCode.

◆ SetCenterXY()

void eVision::EBarCode::SetCenterXY ( float centerX,
float centerY )

Sets the center coordinates of a EBarCode object.

Parameters
centerXCenter coordinates of the EBarCode object.
centerYCenter coordinates of the EBarCode object.

◆ SetKnownLocation()

void eVision::EBarCode::SetKnownLocation ( bool bKnownLocation)

Flag indicating whether the symbol location is known or not.

In case of known location, use EBarCode::SetRectangle to adjust a rectangle around the symbol.

◆ SetKnownModule()

void eVision::EBarCode::SetKnownModule ( bool bKnownModule)

Flag indicating whether the symbol module is known or not.

If true, it is also necessary to get the EBarCode::GetModule and EBarCode::GetThicknessRatio properties in order to specify the requested module and thickness ratio.

◆ SetModule()

void eVision::EBarCode::SetModule ( float f32Module)

Module value.

The module value is a descriptive parameter participating in the encoding; it corresponds to the thinner bar width. Symbols whose bars thickness can take two values, the module and V times the module (where V runs from 1.5 to 3), are called binary bar codes. When the bars thickness are small integer multiples (1 to 4 or 5) of a module, the symbols are called modular bar codes.

◆ SetReadingCenter()

void eVision::EBarCode::SetReadingCenter ( float relativeX,
float relativeY )

Sets the reading area center coordinates, relative to the symbol position and extent.

Parameters
relativeXReading area center abscissa, relative to the symbol position and extent.
relativeYReading area center ordinate, relative to the symbol position and extent.

◆ SetReadingSize()

void eVision::EBarCode::SetReadingSize ( float relativeSizeX,
float relativeSizeY )

Sets the reading area size, relative to the symbol extent.

Parameters
relativeSizeXReading area width, relative to the symbol extent.
relativeSizeYReading area height, relative to the symbol extent.

◆ SetRectangle()

void eVision::EBarCode::SetRectangle ( const eVision::Legacy::ERectangle & rectangle)

Sets the nominal position (center coordinates), size and rotation angle of the symbol bounding box according to a known rectangle.

Parameters
rectangleRectangle of known position (center coordinates), size and rotation angle.

An ERectangle object is characterized by its center coordinates, its size and its rotation angle.

◆ SetSize()

void eVision::EBarCode::SetSize ( float sizeX,
float sizeY )

Sets the size of a EBarCode object.

Parameters
sizeXNominal size X of the EBarCode object. Default values is 100.
sizeYNominal size Y of the EBarCode object. Default values is 100.

A EBarCode object is fully defined knowing its nominal position (given by the coordinates of its center), its nominal size, its rotation angle and its outline tolerance. By default, the width and height values are 100, which means 100 pixels when the field of view is not calibrated and 100 "units" in case of a calibrated field of view.

◆ SetStandardSymbologies()

void eVision::EBarCode::SetStandardSymbologies ( uint32_t un32StandardSymbologies)

Enabled symbologies belonging to the group of standard symbologies.

Due to the large number of supported symbologies, they have been gathered in two groups. For more information about these groups, see ESymbologies.

◆ SetThicknessRatio()

void eVision::EBarCode::SetThicknessRatio ( float f32ThicknessRatio)

Bars thickness ratio.

This property is relevant in case of binary codes only. It corresponds to the ratio of a thin bar width over a thick bar width, and should range from 1.5 to 3.

◆ SetVerifyChecksum()

void eVision::EBarCode::SetVerifyChecksum ( bool bVerifyChecksum)

"VerifyChecksum" mode.

The "VerifyChecksum" mode enables or disables verification of the checksum character. That verification mode is set in the same way for all enabled symbologies. It is worth noting that checksum may be present or not in the bar code, and the user may verify or not checksum validity. These two circumstances are independent, and give rise to four modes of operation. The verification process will return an "invalid checksum" error in case of bad checksum character. This error can also be generated if there is no checksum in the bar code. In the other case, when checksum are not verified, no error will occur, and the process will continue silently. When the "VerifyChecksum" mode is enabled, the returned decoded string does not contain the checksum character(s). Conversely, when the verification process is disabled, the checksum character(s) are concatenated to the encoded information.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EBarCode::wrappedClass_