An ECodeReader instance can detect and decode various types of codes. More...
#include <eVision/EasyID/ECodeReader.h>
Public Member Functions | |
| ECodeReader () | |
| Creates an ECodeReader object. | |
| ECodeReader (const eVision::ECodeReader &other) | |
| Creates an ECodeReader object. | |
| virtual | ~ECodeReader () throw () |
| eVision::ECodeReader & | operator= (const eVision::ECodeReader &other) |
| Assignment operator. | |
| std::vector< eVision::ECode > | Read (const eVision::EROIBW8 &roi) |
| Tries to locate, decode and read data codes in the given ROI. | |
| std::vector< eVision::ECode > | Read (const eVision::EROIBW8 &roi, const eVision::EFrame &frame) |
| Tries to locate, decode and read data codes in the given ROI. | |
| std::vector< eVision::ECode > | Read (const eVision::EROIBW8 &roi, const eVision::ERegion ®ion) |
| Tries to locate, decode and read data codes in the given ROI. | |
| std::vector< eVision::ECode > | Read (const eVision::EROIBW8 &roi, const eVision::ERegion ®ion, const eVision::EFrame &frame) |
| Tries to locate, decode and read data codes in the given ROI. | |
| eVision::ECodeGrid | Read (const eVision::EROIBW8 &roi, const eVision::ERectangleRegion &area, int32_t numCellsX, int32_t numCellsY, float extension) |
| Tries to locate, decode and read data codes in the given ROI. | |
| eVision::ECodeGrid | Read (const eVision::EROIBW8 &roi, const eVision::ERectangleRegion &area, int32_t numCellsX, int32_t numCellsY) |
| Tries to locate, decode and read data codes in the given ROI. | |
| eVision::ECodeGrid | Read (const eVision::EROIBW8 &roi, const eVision::ERectangleRegion &area, const eVision::EFrame &frame, int32_t numCellsX, int32_t numCellsY, float extension) |
| Tries to locate, decode and read data codes in the given ROI. | |
| eVision::ECodeGrid | Read (const eVision::EROIBW8 &roi, const eVision::ERectangleRegion &area, const eVision::EFrame &frame, int32_t numCellsX, int32_t numCellsY) |
| Tries to locate, decode and read data codes in the given ROI. | |
| eVision::ECodeGrid | Read (const eVision::EROIBW8 &roi, const eVision::ERectangleRegion &area, const eVision::ECodeGrid &grid, float extension) |
| Tries to locate, decode and read data codes in the given ROI. | |
| eVision::ECodeGrid | Read (const eVision::EROIBW8 &roi, const eVision::ERectangleRegion &area, const eVision::ECodeGrid &grid) |
| Tries to locate, decode and read data codes in the given ROI. | |
| eVision::ECodeGrid | Read (const eVision::EROIBW8 &roi, const eVision::ERectangleRegion &area, const eVision::EFrame &frame, const eVision::ECodeGrid &grid, float extension) |
| Tries to locate, decode and read data codes in the given ROI. | |
| eVision::ECodeGrid | Read (const eVision::EROIBW8 &roi, const eVision::ERectangleRegion &area, const eVision::EFrame &frame, const eVision::ECodeGrid &grid) |
| Tries to locate, decode and read data codes in the given ROI. | |
| eVision::ECodeGrid | Read (const eVision::EROIBW8 &roi, const eVision::EGrid &grid) |
| Tries to locate, decode and read data codes in the given ROI. | |
| eVision::ECodeGrid | Read (const eVision::EROIBW8 &roi, const eVision::EGrid &grid, const eVision::EFrame &frame) |
| Tries to locate, decode and read data codes in the given ROI. | |
| void | SetMaxNumCodesPerType (uint32_t max) |
| The maximum number of codes that the reader should try to find. | |
| uint32_t | GetMaxNumCodesPerType () const |
| The maximum number of codes that the reader should try to find. | |
| void | SetTimeOut (uint64_t timeOut) |
| The timeout for the ECodeReader::Read method in microseconds. | |
| uint64_t | GetTimeOut () const |
| The timeout for the ECodeReader::Read method in microseconds. | |
| void | SetEnabledCodeTypes (std::vector< eVision::ECodeType > types) |
| The enabled code types. | |
| std::vector< eVision::ECodeType > | GetEnabledCodeTypes () |
| The enabled code types. | |
| void | Load (const std::string &path) |
| Load the configuration for this ECodeReader instance. | |
| void | Load (eVision::ESerializer *serializer) |
| Load the configuration for this ECodeReader instance. | |
| void | Save (const std::string &path) |
| Save the configuration for this ECodeReader instance. | |
| void | Save (eVision::ESerializer *serializer) |
| Save the configuration for this ECodeReader instance. | |
| eVision::EasyMatrixCode2::EMatrixCodeReader & | GetMatrixCodeReader () |
| Gets the underlying EMatrixCodeReader instance. | |
| eVision::EasyBarCode2::EBarCodeReader & | GetBarCodeReader () |
| Gets the underlying EBarCodeReader instance. | |
| eVision::EQRCodeReader & | GetQRCodeReader () |
| Gets the underlying EQRCodeReader instance. | |
| ECodeReader (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
An ECodeReader instance can detect and decode various types of codes.
License(s): EasyMatrixCode and EasyBarCode and EasyQRCode
| eVision::ECodeReader::ECodeReader | ( | ) |
Creates an ECodeReader object.
| eVision::ECodeReader::ECodeReader | ( | const eVision::ECodeReader & | other | ) |
Creates an ECodeReader object.
| other | Another ECodeReader object to be copied in the new ECodeReader object. |
|
virtual | ||||||||||||
| eVision::ECodeReader::ECodeReader | ( | CppWrapperInternal::InternalConstructor | ) |
| eVision::EasyBarCode2::EBarCodeReader & eVision::ECodeReader::GetBarCodeReader | ( | ) |
Gets the underlying EBarCodeReader instance.
| std::vector< eVision::ECodeType > eVision::ECodeReader::GetEnabledCodeTypes | ( | ) |
The enabled code types.
All code types enabled by default
| eVision::EasyMatrixCode2::EMatrixCodeReader & eVision::ECodeReader::GetMatrixCodeReader | ( | ) |
Gets the underlying EMatrixCodeReader instance.
| uint32_t eVision::ECodeReader::GetMaxNumCodesPerType | ( | ) | const |
The maximum number of codes that the reader should try to find.
By default, this parameter is set to 1.
| eVision::EQRCodeReader & eVision::ECodeReader::GetQRCodeReader | ( | ) |
Gets the underlying EQRCodeReader instance.
| uint64_t eVision::ECodeReader::GetTimeOut | ( | ) | const |
The timeout for the ECodeReader::Read method in microseconds.
If the processing time of one of these methods becomes longer than the set time-out period, the process is stopped.
The ECodeReader::Read method will return all the codes it has decoded up to that point.
Note that the time-out period is not exact: the process is stopped at the first checkpoint after the time-out period has elapsed.
| void eVision::ECodeReader::Load | ( | const std::string & | path | ) |
Load the configuration for this ECodeReader instance.
| path | The path from which to load the configuration. |
| void eVision::ECodeReader::Load | ( | eVision::ESerializer * | serializer | ) |
Load the configuration for this ECodeReader instance.
| serializer | The serializer. |
| eVision::ECodeReader & eVision::ECodeReader::operator= | ( | const eVision::ECodeReader & | other | ) |
Assignment operator.
| other | ECodeReader object to be copied. |
| std::vector< eVision::ECode > eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi | ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
| std::vector< eVision::ECode > eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::EFrame & | frame ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| frame | Reference frame of the input image |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
| eVision::ECodeGrid eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::EGrid & | grid ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| grid | Grid with cell disabling capabilities |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
| eVision::ECodeGrid eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::EGrid & | grid, | ||
| const eVision::EFrame & | frame ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| grid | Grid with cell disabling capabilities |
| frame | Reference frame of the input image |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
| eVision::ECodeGrid eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::ERectangleRegion & | area, | ||
| const eVision::ECodeGrid & | grid ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| area | Rectangular Region used as the full grid area |
| grid | Grid with cell disabling capabilities |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
Deprecated, use overloads taking an EGrid argument instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| eVision::ECodeGrid eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::ERectangleRegion & | area, | ||
| const eVision::ECodeGrid & | grid, | ||
| float | extension ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| area | Rectangular Region used as the full grid area |
| grid | Grid with cell disabling capabilities |
| extension | Extension of the grid cells to allow cell overlap. For instance, 0.0f means no extension and 0.1f means a 10% cell size extension. |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
Deprecated, use overloads taking an EGrid argument instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| eVision::ECodeGrid eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::ERectangleRegion & | area, | ||
| const eVision::EFrame & | frame, | ||
| const eVision::ECodeGrid & | grid ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| area | Rectangular Region used as the full grid area |
| frame | Reference frame of the input image |
| grid | Grid with cell disabling capabilities |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
Deprecated, use overloads taking an EGrid argument instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| eVision::ECodeGrid eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::ERectangleRegion & | area, | ||
| const eVision::EFrame & | frame, | ||
| const eVision::ECodeGrid & | grid, | ||
| float | extension ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| area | Rectangular Region used as the full grid area |
| frame | Reference frame of the input image |
| grid | Grid with cell disabling capabilities |
| extension | Extension of the grid cells to allow cell overlap. For instance, 0.0f means no extension and 0.1f means a 10% cell size extension. |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
Deprecated, use overloads taking an EGrid argument instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| eVision::ECodeGrid eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::ERectangleRegion & | area, | ||
| const eVision::EFrame & | frame, | ||
| int32_t | numCellsX, | ||
| int32_t | numCellsY ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| area | Rectangular Region used as the full grid area |
| frame | Reference frame of the input image |
| numCellsX | Number of grid cells in the X direction |
| numCellsY | Number of grid cells in the Y direction |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
Deprecated, use overloads taking an EGrid argument instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| eVision::ECodeGrid eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::ERectangleRegion & | area, | ||
| const eVision::EFrame & | frame, | ||
| int32_t | numCellsX, | ||
| int32_t | numCellsY, | ||
| float | extension ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| area | Rectangular Region used as the full grid area |
| frame | Reference frame of the input image |
| numCellsX | Number of grid cells in the X direction |
| numCellsY | Number of grid cells in the Y direction |
| extension | Extension of the grid cells to allow cell overlap. For instance, 0.0f means no extension and 0.1f means a 10% cell size extension. |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
Deprecated, use overloads taking an EGrid argument instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| eVision::ECodeGrid eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::ERectangleRegion & | area, | ||
| int32_t | numCellsX, | ||
| int32_t | numCellsY ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| area | Rectangular Region used as the full grid area |
| numCellsX | Number of grid cells in the X direction |
| numCellsY | Number of grid cells in the Y direction |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
Deprecated, use overloads taking an EGrid argument instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| eVision::ECodeGrid eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::ERectangleRegion & | area, | ||
| int32_t | numCellsX, | ||
| int32_t | numCellsY, | ||
| float | extension ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| area | Rectangular Region used as the full grid area |
| numCellsX | Number of grid cells in the X direction |
| numCellsY | Number of grid cells in the Y direction |
| extension | Extension of the grid cells to allow cell overlap. For instance, 0.0f means no extension and 0.1f means a 10% cell size extension. |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
Deprecated, use overloads taking an EGrid argument instead.
Deprecated in version 26.6. Scheduled to be removed in version 27.6.
| std::vector< eVision::ECode > eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::ERegion & | region ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| region | Region into the search field where the data matrix codes have to be found. |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
| std::vector< eVision::ECode > eVision::ECodeReader::Read | ( | const eVision::EROIBW8 & | roi, |
| const eVision::ERegion & | region, | ||
| const eVision::EFrame & | frame ) |
Tries to locate, decode and read data codes in the given ROI.
| roi | The ROI in which the data matrix codes have to be found. |
| region | Region into the search field where the data matrix codes have to be found. |
| frame | Reference frame of the input image |
The grid overload allows you to disable some cells of the grid if those cells are not supposed to contain codes. See the ECodeGrid class documentation for more information.
| void eVision::ECodeReader::Save | ( | const std::string & | path | ) |
Save the configuration for this ECodeReader instance.
| path | The path to which to save the configuration. |
| void eVision::ECodeReader::Save | ( | eVision::ESerializer * | serializer | ) |
Save the configuration for this ECodeReader instance.
| serializer | The serializer. |
| void eVision::ECodeReader::SetEnabledCodeTypes | ( | std::vector< eVision::ECodeType > | types | ) |
The enabled code types.
All code types enabled by default
| void eVision::ECodeReader::SetMaxNumCodesPerType | ( | uint32_t | max | ) |
The maximum number of codes that the reader should try to find.
By default, this parameter is set to 1.
| void eVision::ECodeReader::SetTimeOut | ( | uint64_t | timeOut | ) |
The timeout for the ECodeReader::Read method in microseconds.
If the processing time of one of these methods becomes longer than the set time-out period, the process is stopped.
The ECodeReader::Read method will return all the codes it has decoded up to that point.
Note that the time-out period is not exact: the process is stopped at the first checkpoint after the time-out period has elapsed.
| CppWrapperInternal::WrappedClass eVision::ECodeReader::wrappedClass_ |