Resource Base
Table of contents

IntermediateResultReceiver

The IntermediateResultReceiver class is designed as a standardized way for retrieving intermediate results in image processing workflows in the Dynamsoft Capture Vision architecture. By implementing the CapturedResultReceiver, you will receive the callback of the various types of captured results, such as pre-detected regions, localized barcodes, etc. Each callback is optional, allowing flexibility and customization based on the needs of the application.

Definition

Namespace: com.dynamsoft.core.intermediate_results

Assembly: DynamsoftCore.aar

interface IntermediateResultReceiver

Methods

Method Description
getObservationParameters Gets the observed parameters of the intermediate result receiver.
onTaskResultsReceived The callback triggered when task results are received.
onPredetectedRegionsReceived The callback triggered when pre-detected regions are received.
onLocalizedBarcodesReceived The callback triggered when localized barcodes are received.
onDecodedBarcodesReceived The callback triggered when decoded barcodes are received.
onLocalizedTextLinesReceived The callback triggered when localized text lines are received.
onRecognizedTextLinesReceived The callback triggered when recognized text lines are received.
onDetectedQuadsReceived The callback triggered when detected quads are received.
onNormalizedImagesReceived The callback triggered when normalized images are received.
onColourImageUnitReceived The callback triggered when a colour image unit is received.
onScaledDownColourImageUnitReceived The callback triggered when a scaled-down colour image unit is received.
onGrayscaleImageUnitReceived The callback triggered when a grayscale image unit is received.
onTransformedGrayscaleImageUnitReceived The callback triggered when a transformed grayscale image unit is received.
onEnhancedGrayscaleImageUnitReceived The callback triggered when an enhanced grayscale image unit is received.
onBinaryImageUnitReceived The callback triggered when a binary image unit is received.
onTextureDetectionResultUnitReceived The callback triggered when a texture detection result unit is received.
onTextureRemovedGrayscaleImageUnitReceived The callback triggered when a texture-removed grayscale image unit is received.
onTextureRemovedBinaryImageUnitReceived The callback triggered when a texture-removed binary image unit is received.
onContoursUnitReceived The callback triggered when a contours unit is received.
onLineSegmentsUnitReceived The callback triggered when a line segments unit is received.
onTextZonesUnitReceived The callback triggered when a text zones unit is received.
onTextRemovedBinaryImageUnitReceived The callback triggered when a text-removed binary image unit is received.
onShortLinesUnitReceived The callback triggered when a short lines unit is received.
onLongLinesUnitReceived The callback triggered when a long lines unit is received.
onCornersUnitReceived The callback triggered when a corners unit is received.
onCandidateQuadEdgesUnitReceived The callback triggered when a candidate quad edges unit are detected.
onCandidateBarcodeZonesUnitReceived The callback triggered when a candidate barcode zones unit are detected.
onScaledUpBarcodeImageUnitReceived The callback triggered when a scaled-up barcode image unit is received.
onDeformationResistedBarcodeImageUnitReceived The callback triggered when a deformation-resisted barcode image unit is received.
onComplementedBarcodeImageUnitReceived The callback triggered when a complemented barcode image unit is received.

getObservationParameters

Gets the observed parameters of the intermediate result receiver.

ObservationParameters getObservationParameters();

Return Value

An ObservationParameters object.

onTaskResultsReceived

The callback triggered when task results are received.

void onTaskResultsReceived(IntermediateResult result, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result from the task, of type IntermediateResult.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onPredetectedRegionsReceived

The callback triggered when pre-detected regions are received.

void onPredetectedRegionsReceived(PredetectedRegionsUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the pre-detected regions, of type PredetectedRegionsUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onLocalizedBarcodesReceived

The callback triggered when localized barcodes are received.

void onLocalizedBarcodesReceived(LocalizedBarcodesUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the localized barcodes, of type LocalizedBarcodesUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onDecodedBarcodesReceived

The callback triggered when decoded barcodes are received.

void onDecodedBarcodesReceived(DecodedBarcodesUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the decoded barcodes, of type DecodedBarcodesUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onLocalizedTextLinesReceived

The callback triggered when localized text lines are received.

void onLocalizedTextLinesReceived(LocalizedTextLinesUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the localized text lines, of type LocalizedTextLinesUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onRecognizedTextLinesReceived

The callback triggered when recognized text lines are received.

void onRecognizedTextLinesReceived(RecognizedTextLinesUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the recognized text lines, of type RecognizedTextLinesUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onDetectedQuadsReceived

The callback triggered when detected quads are received.

void onDetectedQuadsReceived(DetectedQuadsUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the detected quads, of type DetectedQuadsUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onNormalizedImagesReceived

The callback triggered when normalized images are received.

void onNormalizedImagesReceived(NormalizedImagesUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the normalized images, of type NormalizedImagesUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onColourImageUnitReceived

The callback triggered when colour images are received.

void onColourImageUnitReceived(ColourImageUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the colour image, of type ColourImageUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onScaledDownColourImageUnitReceived

The callback triggered when scaled-down colour images are received.

void onScaledDownColourImageUnitReceived(ScaledDownColourImageUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the scaled-down colour image, of type ScaledDownColourImageUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onGrayscaleImageUnitReceived

The callback triggered when grayscale images are received.

void onGrayscaleImageUnitReceived(GrayscaleImageUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the grayscale image, of type GrayscaleImageUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onTransformedGrayscaleImageUnitReceived

The callback triggered when transformed grayscale images are received.

void onTransformedGrayscaleImageUnitReceived(TransformedGrayscaleImageUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the transformed grayscale image, of type TransformedGrayscaleImageUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onEnhancedGrayscaleImageUnitReceived

The callback triggered when enhanced grayscale images are received.

void onEnhancedGrayscaleImageUnitReceived(EnhancedGrayscaleImageUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the enhanced grayscale image, of type EnhancedGrayscaleImageUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onBinaryImageUnitReceived

The callback triggered when binary images are received.

void onBinaryImageUnitReceived(BinaryImageUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the binary image, of type BinaryImageUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onTextureDetectionResultUnitReceived

The callback triggered when texture detection results are received.

void onTextureDetectionResultUnitReceived(TextureDetectionResultUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the texture detection result, of type TextureDetectionResultUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onTextureRemovedGrayscaleImageUnitReceived

The callback triggered when texture removed grayscale images are received.

void onTextureRemovedGrayscaleImageUnitReceived(TextureRemovedGrayscaleImageUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the texture removed grayscale image, of type TextureRemovedGrayscaleImageUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onTextureRemovedBinaryImageUnitReceived

The callback triggered when texture removed binary images are received.

void onTextureRemovedBinaryImageUnitReceived(TextureRemovedBinaryImageUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the texture removed binary image, of type TextureRemovedBinaryImageUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onContoursUnitReceived

The callback triggered when contours are received.

void onContoursUnitReceived(ContoursUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the contours, of type ContoursUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onLineSegmentsUnitReceived

The callback triggered when line segments are received.

void onLineSegmentsUnitReceived(LineSegmentsUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the line segments, of type LineSegmentsUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onTextZonesUnitReceived

The callback triggered when text zones are received.

void onTextZonesUnitReceived(TextZonesUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the text zones, of type TextZonesUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onTextRemovedBinaryImageUnitReceived

The callback triggered when text removed binary images are received.

void onTextRemovedBinaryImageUnitReceived(TextRemovedBinaryImageUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the text removed binary image, of type TextRemovedBinaryImageUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onShortLinesUnitReceived

The callback triggered when short lines are received.

void onShortLinesUnitReceived(ShortLinesUnit unit IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the short lines, of type ShortLinesUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onLongLinesUnitReceived

The callback triggered when long lines are received.

void onLongLinesUnitReceived(LongLinesUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the long lines, of type LongLinesUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onCornersUnitReceived

The callback triggered when corners are received.

void onCornersUnitReceived(CornersUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the corners, of type CornersUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onCandidateQuadEdgesUnitReceived

The callback triggered when candidate quad edges are received.

void onCandidateQuadEdgesUnitReceived(CandidateQuadEdgesUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the candidate quad edges, of type CandidateQuadEdgesUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onCandidateBarcodeZonesUnitReceived

The callback triggered when candidate barcode zones are received.

void onCandidateBarcodeZonesUnitReceived(CandidateBarcodeZonesUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the candidate barcode zones, of type CandidateBarcodeZonesUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onScaledUpBarcodeImageUnitReceived

The callback triggered when scaled up barcode images are received.

void onScaledUpBarcodeImageUnitReceived(ScaledUpBarcodeImageUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the scaled up barcode image, of type ScaledUpBarcodeImageUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onDeformationResistedBarcodeImageUnitReceived

The callback triggered when deformation resisted barcode images are received.

void onDeformationResistedBarcodeImageUnitReceived(DeformationResistedBarcodeImageUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the deformation resisted barcode image, of type DeformationResistedBarcodeImageUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

onComplementedBarcodeImageUnitReceived

The callback triggered when complemented barcode images are received.

void onComplementedBarcodeImageUnitReceived(ComplementedBarcodeImageUnit unit, IntermediateResultExtraInfo info);

Parameters

[in] unit: The intermediate result that contains the complemented barcode image, of type ComplementedBarcodeImageUnit.

[in] info: Additional information about the result, of type IntermediateResultExtraInfo.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.x
      • Version 2.2.10
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.10
      • Version 2.2.10
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.10
    • Version 1.x
      • Version 1.2.1
      • Version 1.2.0
      • Version 1.1.0
      • Version 1.0.0
      • Version 1.0.4
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
      • Version 1.1.13
      • Version 1.1.12
      • Version 1.1.11
      • Version 1.1.9
      • Version 1.1.8
      • Version 1.1.7
      • Version 1.1.6
      • Version 1.1.5
      • Version 1.1.4
      • Version 1.1.3
      • Version 1.1.2
      • Version 1.1.1
      • Version 1.1.0
      • Version 1.0.0
      • Version 1.0.4
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
    Change +