Table of contents

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 a decoded barcode (Barcode Reader), a recognized text line (Label Recognizer), a detected quad (Document Normalizer), a normalized image (Document Normalizer), or parsed data (Code Parser). 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

Assembly: dynamsoft_capture_vision_flutter

class CapturedResultReceiver

Methods

Method Description
onCapturedResultReceived The callback invoked when captured results become available. It is triggered once for each image after its processing is completed.
onDecodedBarcodesReceived The callback invoked when decoded barcodes become available. It is triggered once for each image after its processing is completed.
onParsedResultsReceived The callback invoked when parsed results become available. It is triggered once for each image after its processing is completed.
onProcessedDocumentResultReceived The callback invoked when processed document results become available. It is triggered once for each image after its processing is completed.
onRecognizedTextLinesReceived The callback invoked when recognized text lines become available. It is triggered once for each image after its processing is completed.

onCapturedResultReceived

This callback method delivers a CapturedResult - an object representing any kind of captured result item that is captured from an image or a video frame. The callback is triggered each time an image finishes processing, regardless of whether there is a valid result or not.

Future<void> Function(CapturedResult result)? onCapturedResultReceived;

Parameters

result: The captured result, an instance of CapturedResult.

onDecodedBarcodesReceived

This callback method delivers a DecodedBarcodesResult, which is an object representing any captured result of type barcode that is taken from an image or a video frame. The callback is triggered each time an image finishes processing, regardless of whether there is a valid result or not.

Future<void> Function(DecodedBarcodesResult result)? onDecodedBarcodesReceived;

Parameters

result: The decoded barcode result, an instance of DecodedBarcodesResult.

onParsedReultsReceived

This callback method delivers a ParsedResult, which is an object representing any captured result of type parsedResult that is taken from an image or a video frame. The callback is triggered each time an image finishes processing, regardless of whether there is a valid result or not.

Future<void> Function(ParsedResult result)? onParsedResultsReceived;

Parameters

result: The parsed result, an instance of ParsedResult.

onProcessedDocumentResultReceived

This callback method delivers a ProcessedDocumentResult, which is an object representing any captured result of type detectedQuad, deskewedImage and enhancedImage that is taken from an image or a video frame. The callback is triggered each time an image finishes processing, regardless of whether there is a valid result or not.

Future<void> Function(ProcessedDocumentResult result)? onProcessedDocumentResultReceived;

Parameters

result: The document processing results, an instance of ProcessedDocumentResult.

onRecognizedTextLinesReceived

This callback method delivers a RecognizedTextLinesResult, which is an object representing any captured result of type recognizedTextLines that is taken from an image or a video frame. The callback is triggered each time an image finishes processing, regardless of whether there is a valid result or not.

Future<void> Function(RecognizedTextLinesResult result)? onRecognizedTextLinesReceived;

Parameters

result: The text recognition result, an instance of RecognizedTextLinesResult.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: