Resource Base
Table of contents

CapturedResultReceiver

The CapturedResultReceiver class is designed as a standardized way for retrieving captured results in the Dynamsoft Capture Vision architecture. It adopts an event-driven approach, with events dedicated to various result types, such as the original image, decoded barcodes, recognized text lines, detected quads, normalized images, and parsed results, etc.

class CapturedResultReceiver {
    onCapturedResultReceived?(result: CapturedResult): void;
    onOriginalImageResultReceived?(result: OriginalImageResultItem): void;
    onDecodedBarcodesReceived?(result: DecodedBarcodesResult): void;
    onRecognizedTextLinesReceived?(result: RecognizedTextLinesResult):void;
    onDetectedQuadsReceived?(result: DetectedQuadsResult): void;
    onNormalizedImagesReceived?(result: NormalizedImagesResult): void;
    onParsedResultsReceived?(result: ParsedResult): void;
} 
Name Description
onCapturedResultReceived() Event triggered when a generic captured result is available.
onOriginalImageResultReceived() Event triggered when the original image result is available.
onDecodedBarcodesReceived() Event triggered when decoded barcodes are available.
onRecognizedTextLinesReceived() Event triggered when recognized text lines are available.
onDetectedQuadsReceived() Event triggered when detected quads are available.
onNormalizedImagesReceived() Event triggered when normalized images are available.
onParsedResultsReceived() Event triggered when parsed results are available.

onCapturedResultReceived

Event triggered when a generic captured result is available, occurring each time an image finishes its processing. This event can be used for any result that does not fit into the specific categories of the other callback events.

onCapturedResultReceived(result: CapturedResult): void;

Parameters

The captured result, an instance of CapturedResult.

See Also

CapturedResult

onOriginalImageResultReceived

Event triggered when the original image result is available. This event is used to handle the original image captured by an image source such as Dynamsoft Camera Enhancer.

onOriginalImageResultReceived(result: OriginalImageResultItem): void;

Parameters

result: The original image result, an instance of OriginalImageResultItem.

See Also

OriginalImageResultItem

onDecodedBarcodesReceived

Event triggered when decoded barcodes are available. This event is used to handle barcodes that have been successfully decoded by Dynamsoft Barcode Reader

onDecodedBarcodesReceived(result: DecodedBarcodesResult): void;

Parameters

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

See Also

DecodedBarcodesResult

onRecognizedTextLinesReceived

Event triggered when recognized text lines are available. This event is used to handle the result of text recognition by Dynamsoft Label Recognizer.

onRecognizedTextLinesReceived(result: RecognizedTextLinesResult): void;

Parameters

result: The recognized text lines result, an instance of RecognizedTextLinesResult.

RecognizedTextLinesResult

onDetectedQuadsReceived

Event triggered when detected quads are available. This event is used to handle the detection of quadrilateral shapes, typically used as document boundaries, by Dynamsoft Document Normalizer.

onDetectedQuadsReceived(result: DetectedQuadsResult): void;

Parameters

result: The detected quads result, an instance of DetectedQuadsResult.

See Also

DetectedQuadsResult

onNormalizedImagesReceived

Event triggered when normalized images are available. This event is used for handling images that have been processed or normalized (e.g., corrected for skew or perspective), by Dynamsoft Document Normalizer.

onNormalizedImagesReceived(result: NormalizedImagesResult): void;

Parameters

result: The normalized images result, an instance of NormalizedImagesResult.

See Also

NormalizedImagesResult

onParsedResultsReceived

Event triggered when parsed results are available. This event is used for handling results that have been parsed into a structured format by Dynamsoft Code Parser.

onParsedResultsReceived(result: ParsedResult): void;

Parameters

result: The parsed result, an instance of ParsedResult.

See Also

ParsedResult

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

latest version

    Change +