CCapturedResultReceiver
The CCapturedResultReceiver
class is responsible for receiving captured results. It contains several callback functions for different types of results, including original image, decoded barcodes, recognized text lines, detected quads, normalized images, and parsed results.
Definition
Namespace: dynamsoft::cvr
Assembly: DynamsoftCaptureVisionRouter
class CCapturedResultReceiver
Methods Summary
Method | Description |
---|---|
CCapturedResultReceiver |
Constructor |
~CCapturedResultReceiver |
Destructor |
GetObservedResultItemTypes |
Gets the types of observed result items. |
OnCapturedResultReceived |
Callback function triggered after processing each image and returns all captured results. |
OnOriginalImageResultReceived |
Callback function triggered when start processing each image and returns the original image result. |
OnDecodedBarcodesReceived |
Callback function triggered after processing each image and returns all decoded barcodes results. |
OnRecognizedTextLinesReceived |
Callback function triggered after processing each image and returns all recognized text lines results. |
OnDetectedQuadsReceived |
Callback function triggered after processing each image and returns all detected quads results. |
OnNormalizedImagesReceived |
Callback function triggered after processing each image and returns all normalized images results. |
OnParsedResultsReceived |
Callback function triggered after processing each image and returns all parsed results. |
GetName |
Gets the name of the captured result receiver. |
SetName |
Sets the name of the captured result receiver. |
CCapturedResultReceiver Constructor
Constructor.
CCapturedResultReceiver()
CCapturedResultReceiver Destructor
Destructor.
virtual ~CCapturedResultReceiver()
GetObservedResultItemTypes
Gets the types of observed result items.
unsigned int GetObservedResultItemTypes()
Return value
Returns the types of observed result items.
OnCapturedResultReceived
Callback function triggered after processing each image and returns all captured results.
virtual void OnCapturedResultReceived(CCapturedResult* pResult)
Parameters
[in] pResult
The captured result.
See Also
OnOriginalImageResultReceived
Callback function triggered when start processing each image and returns the original image result. For the callback to be triggered, it is essential that the parameter OutputOriginalImage
is set to value 1
.
virtual void OnOriginalImageResultReceived(COriginalImageResultItem* pResult)
Parameters
[in] pResult
The original image result.
See Also
OnDecodedBarcodesReceived
Callback function triggered after processing each image and returns all decoded barcodes. For the callback to be triggered, it is essential that the BarcodeReaderTask
is properly configured.
virtual void OnDecodedBarcodesReceived(dbr::CDecodedBarcodesResult* pResult)
Parameters
[in] pResult
The decoded barcodes result.
See Also
OnRecognizedTextLinesReceived
Callback function triggered after processing each image and returns all recognized text lines. For the callback to be triggered, it is essential that the LabelRecognizerTask
is properly configured.
virtual void OnRecognizedTextLinesReceived(dlr::CRecognizedTextLinesResult* pResult)
Parameters
[in] pResult
The recognized text lines result.
See Also
OnDetectedQuadsReceived
Callback function triggered after processing each image and returns all detected quads. For the callback to be triggered, it is essential that the DocumentNormalizerTask
is properly configured.
virtual void OnDetectedQuadsReceived(ddn::CDetectedQuadsResult* pResult)
Parameters
[in] pResult
The detected quads result.
See Also
OnNormalizedImagesReceived
Callback function triggered after processing each image and returns all normalized images. For the callback to be triggered, it is essential that the DocumentNormalizerTask
is properly configured.
virtual void OnNormalizedImagesReceived(ddn::CNormalizedImagesResult* pResult)
Parameters
[in] pResult
The normalized images result.
See Also
OnParsedResultsReceived
Callback function triggered after processing each image and returns all parsed results. For the callback to be triggered, it is essential that the CodeParserTask
is properly configured.
virtual void OnParsedResultsReceived(dcp::CParsedResult* pResult)
Parameters
[in] pResult
The parsed result.
See Also
GetName
Gets the name of the captured result receiver.
const char* GetName() const
Return value
Returns the name of the captured result receiver.
SetName
Sets the name of the captured result receiver.
void SetName(const char* name)
Parameters
[in] name
The name of the captured result receiver.