CapturedResultReceiver
The CapturedResultReceiver
interface is designed as a standardized way for retrieving captured results in the Dynamsoft Capture Vision architecture. By implementing the CapturedResultReceiver
, you will receive the callback of the various types of captured results, such as original image, decoded barcode, recognized text line, detected quad, normalized image, or parsed data. The CapturedResultReceiver
can add a receiver for any type of captured result or for a specific type of captured result, based on the method that is implemented.
Definition
Namespace: com.dynamsoft.core.basic_structures
Assembly: DynamsoftCore.aar
interface CapturedResultReceiver
Methods
Method | Description |
---|---|
onCapturedResultReceived |
The callback triggered when a generic captured result is available, occurring each time an image finishes its processing. |
onOriginalImageResultReceived |
The callback triggered when the original image result is available, occurring each time an image finishes its processing. |
onDecodedBarcodesReceived |
The callback triggered when decoded barcodes are available, occurring each time an image finishes its processing. |
onRecognizedTextLinesReceived |
The callback triggered when recognized text lines are available, occurring each time an image finishes its processing. |
onDetectedQuadsReceived |
The callback triggered when detected quads are available, occurring each time an image finishes its processing. |
onNormalizedImagesReceived |
The callback triggered when normalized images are available, occurring each time an image finishes its processing. |
onParsedResultsReceived |
The callback triggered when parsed results are available, occurring each time an image finishes its processing. |
onCapturedResultReceived
The callback method triggered when a generic captured result is available, occurring each time an image finishes its processing. This callback can be used for any result that does not fit into the specific categories of the other callbacks.
void onCapturedResultReceived(CapturedResult result);
Parameters
[in] result
: The captured result, an instance of CapturedResult
.
onOriginalImageResultReceived
The callback method triggered when the original image result is available, occurring each time an image finishes its processing. This callback is used to handle the original image that used as the input of this capture process.
void onOriginalImageResultReceived(OriginalImageResultItem result);
Parameters
[in] result
: The original image result, an instance of OriginalImageResultItem
.
onDecodedBarcodesReceived
The callback triggered when decoded barcodes are available, occurring each time an image finishes its processing. This callback is used to handle barcodes that have been successfully decoded by Dynamsoft Barcode Reader
void onDecodedBarcodesReceived(DecodedBarcodesResult result);
Parameters
[in] result
: The decoded barcode result, an instance of DecodedBarcodesResult
.
onRecognizedTextLinesReceived
The callback triggered when recognized text lines are available, occurring each time an image finishes its processing. This callback is used to handle the result of text recognition by Dynamsoft Label Recognizer.
void onRecognizedTextLinesReceived(RecognizedTextLinesResult result);
Parameters
[in] result
: The recognized text lines result, an instance of RecognizedTextLinesResult
.
onDetectedQuadsReceived
The callback triggered when detected quads are available, occurring each time an image finishes its processing. This callback is used to handle the detection of quadrilateral shapes, typically used as document boundaries, by Dynamsoft Document Normalizer.
void onDetectedQuadsReceived(DetectedQuadsResult result);
Parameters
[in] result
: The detected quads result, an instance of DetectedQuadsResult
.
onNormalizedImagesReceived
The callback triggered when normalized images are available, occurring each time an image finishes its processing. This callback is used for handling images that have been processed or normalized (e.g., corrected for skew or perspective), by Dynamsoft Document Normalizer.
void onNormalizedImagesReceived(NormalizedImagesResult result);
Parameters
[in] result
: The normalized images result, an instance of NormalizedImagesResult
.
onParsedResultsReceived
The callback triggered when parsed results are available, occurring each time an image finishes its processing. This callback is used for handling results that have been parsed into a structured format by Dynamsoft Code Parser.
void onParsedResultsReceived(ParsedResult result);
Parameters
[in] result
: The parsed result, an instance of ParsedResult
.