#include <peak_icv/algorithms/code_reader/peak_icv_code_reader.hpp>
Public Member Functions | |
| CodeReader () | |
| Creates an instance of a code reader. | |
| ~CodeReader () | |
| CodeReader (const CodeReader &other)=delete | |
| CodeReader (CodeReader &&other) noexcept | |
| CodeReader & | operator= (const CodeReader &other)=delete |
| CodeReader & | operator= (CodeReader &&other) noexcept |
| std::vector< CodeType > | GetCodeTypesToDetect () const |
| Retrieves the number of configured code types. | |
| void | setCodeTypesToDetect (const std::vector< CodeType > &codeTypesToDetect) const |
| Sets the allowed code types for detection and decoding. | |
| std::vector< CodeReaderResult > | DetectAndDecode (const Image &image) const |
| Detects and decodes codes in an input image. | |
| void | SetMaximumNumberOfCodesToDetect (size_t count) const |
| Sets the maximum number of codes to detect per call. | |
| size_t | GetMaximumNumberOfCodesToDetect () const |
| Retrieves the maximum number of codes to detect per call. | |
Class to read codes from an image.
|
inline |
Creates an instance of a code reader.
|
inline |
|
delete |
|
inlinenoexcept |
|
inline |
Detects and decodes codes in an input image.
Attempts to find codes of the configured types in image and decodes their payload.
|
inline |
Retrieves the number of configured code types.
When no explicit code types are set via setCodeTypesToDetect, the implementation-defined default set is active.
|
inline |
Retrieves the maximum number of codes to detect per call.
Returns the current limit configured via SetMaximumNumberOfCodesToDetect.
|
inlinenoexcept |
|
delete |
|
inline |
Sets the allowed code types for detection and decoding.
Restricts the Code Reader to the provided list of CodeType values.
|
inline |
Sets the maximum number of codes to detect per call.
Limits how many codes the detector will return for a single invocation of DetectAndDecode. This can be used to cap runtime and memory usage in scenarios with many codes present.