Table of contents

IntermediateResultReceiver

The IntermediateResultReceiver class is responsible for receiving intermediate results of different types. It provides virtual functions for each type of result, which are called when the corresponding result is received.

Definition

Package: com.dynamsoft.cvr

public class IntermediateResultReceiver 

Methods

Method Description
IntermediateResultReceiver Initializes a new instance of the IntermediateResultReceiver class.
getObservationParameters Gets the observation parameters of the intermediate result receiver.
onTaskResultsReceived Called when a task result has been received.
onPredetectedRegionsReceived Called when predetected regions have been received.
onLocalizedBarcodesReceived Called when localized barcodes have been received.
onDecodedBarcodesReceived Called when decoded barcodes have been received.
onLocalizedTextLinesReceived Called when localized text lines have been received.
onRecognizedTextLinesReceived Called when recognized text lines have been received.
onDetectedQuadsReceived Called when detected quadrilaterals have been received.
onDeskewedImageReceived Called when deskewed images have been received.
onEnhancedImageReceived Called when enhanced images have been received.
onColourImageUnitReceived Called when colour image units have been received.
onScaledColourImageUnitReceived Called when scaled colour image units have been received.
onGrayscaleImageUnitReceived Called when grayscale image units have been received.
onTransformedGrayscaleImageUnitReceived Called when transformed grayscale image units have been received.
onEnhancedGrayscaleImageUnitReceived Called when enhanced grayscale image units have been received.
onBinaryImageUnitReceived Called when binary image units have been received.
onTextureDetectionResultUnitReceived Called when texture detection result units have been received.
onTextureRemovedGrayscaleImageUnitReceived Called when texture removed grayscale image units have been received.
onTextureRemovedBinaryImageUnitReceived Called when texture removed binary image units have been received.
onContoursUnitReceived Called when contour units have been received.
onShortLinesUnitReceived Called when short line units have been received.
onLineSegmentsUnitReceived Called when line segment units have been received.
onTextZonesUnitReceived Called when text zone units have been received.
onTextRemovedBinaryImageUnitReceived Called when text removed binary image units have been received.
onLongLinesUnitReceived Called when long line units have been received.
onCornersUnitReceived Called when corner units have been received.
onCandidateQuadEdgesUnitReceived Called when candidate quadrilateral edge units have been received.
onCandidateBarcodeZonesUnitReceived Called when candidate barcode zone units have been received.
onScaledBarcodeImageUnitReceived Called when scaled barcode image units have been received.
onDeformationResistedBarcodeImageUnitReceived Called when deformation resisted barcode image units have been received.
onComplementedBarcodeImageUnitReceived Called when complemented barcode image units have been received.
onRawTextLinesUnitReceived Called when raw text lines have been received.
onLogicLinesUnitReceived Called when logic lines have been received.
onTargetROIResultsReceived Called when all tasks for the target ROI are completed and the results are deduplicated.

IntermediateResultReceiver

Initializes a new instance of the IntermediateResultReceiver class.

public IntermediateResultReceiver()

getObservationParameters

Gets the observation parameters of the intermediate result receiver.

public ObservationParameters getObservationParameters()

Return value

Returns an ObservationParameters object. The default parameters are to observe all intermediate result unit types and all tasks.

See Also

ObservationParameters

onTaskResultsReceived

Called when a task result has been received.

public void onTaskResultsReceived(IntermediateResult result, IntermediateResultExtraInfo info)

Parameters

result An IntermediateResult object that contains several result units.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

IntermediateResult

IntermediateResultExtraInfo

onPredetectedRegionsReceived

Called when predetected regions have been received.

public void onPredetectedRegionsReceived(PredetectedRegionsUnit result, IntermediateResultExtraInfo info)

Parameters

result A PredetectedRegionsUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

PredetectedRegionsUnit

IntermediateResultExtraInfo

onLocalizedBarcodesReceived

Called when localized barcodes have been received.

public void onLocalizedBarcodesReceived(LocalizedBarcodesUnit result, IntermediateResultExtraInfo info)

Parameters

result A LocalizedBarcodesUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

LocalizedBarcodesUnit

IntermediateResultExtraInfo

onDecodedBarcodesReceived

Called when decoded barcodes have been received.

public void onDecodedBarcodesReceived(DecodedBarcodesUnit result, IntermediateResultExtraInfo info)

Parameters

result A DecodedBarcodesUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

DecodedBarcodesUnit

IntermediateResultExtraInfo

onLocalizedTextLinesReceived

Called when localized text lines have been received.

public void onLocalizedTextLinesReceived(LocalizedTextLinesUnit result, IntermediateResultExtraInfo info)

Parameters

result A LocalizedTextLinesUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

LocalizedTextLinesUnit

IntermediateResultExtraInfo

onRecognizedTextLinesReceived

Called when recognized text lines have been received.

public void onRecognizedTextLinesReceived(RecognizedTextLinesUnit result, IntermediateResultExtraInfo info)

Parameters

result A RecognizedTextLinesUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

RecognizedTextLinesUnit

IntermediateResultExtraInfo

onDetectedQuadsReceived

Called when detected quadrilaterals have been received.

public void onDetectedQuadsReceived(DetectedQuadsUnit result, IntermediateResultExtraInfo info)

Parameters

result A DetectedQuadsUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

DetectedQuadsUnit

IntermediateResultExtraInfo

onDeskewedImageReceived

Called when deskewed images have been received.

public void onDeskewedImageReceived(DeskewedImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A DeskewedImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

DeskewedImageUnit

IntermediateResultExtraInfo

onEnhancedImageReceived

Called when enhanced images have been received.

public void onEnhancedImageReceived(EnhancedImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A EnhancedImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

EnhancedImageUnit

IntermediateResultExtraInfo

onColourImageUnitReceived

Called when colour image units have been received.

public void onColourImageUnitReceived(ColourImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A ColourImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

ColourImageUnit

IntermediateResultExtraInfo

onScaledColourImageUnitReceived

Called when scaled colour image units have been received.

public void onScaledColourImageUnitReceived(ScaledColourImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A ScaledColourImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

ScaledColourImageUnit

IntermediateResultExtraInfo

onGrayscaleImageUnitReceived

Called when grayscale image units have been received.

public void onGrayscaleImageUnitReceived(GrayscaleImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A GrayscaleImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

GrayscaleImageUnit

IntermediateResultExtraInfo

onTransformedGrayscaleImageUnitReceived

Called when transformed grayscale image units have been received.

public void onTransformedGrayscaleImageUnitReceived(TransformedGrayscaleImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A TransformedGrayscaleImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

TransformedGrayscaleImageUnit

IntermediateResultExtraInfo

onEnhancedGrayscaleImageUnitReceived

Called when enhanced grayscale image units have been received.

public void onEnhancedGrayscaleImageUnitReceived(EnhancedGrayscaleImageUnit result, IntermediateResultExtraInfo info)

Parameters

result An EnhancedGrayscaleImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

EnhancedGrayscaleImageUnit

IntermediateResultExtraInfo

onBinaryImageUnitReceived

Called when binary image units have been received.

public void onBinaryImageUnitReceived(BinaryImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A BinaryImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

BinaryImageUnit

IntermediateResultExtraInfo

onTextureDetectionResultUnitReceived

Called when texture detection result units have been received.

public void onTextureDetectionResultUnitReceived(TextureDetectionResultUnit result, IntermediateResultExtraInfo info)

Parameters

result A TextureDetectionResultUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

TextureDetectionResultUnit

IntermediateResultExtraInfo

onTextureRemovedGrayscaleImageUnitReceived

Called when texture-removed grayscale image units have been received.

public void onTextureRemovedGrayscaleImageUnitReceived(TextureRemovedGrayscaleImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A TextureRemovedGrayscaleImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

TextureRemovedGrayscaleImageUnit

IntermediateResultExtraInfo

onTextureRemovedBinaryImageUnitReceived

Called when texture-removed binary image units have been received.

public void onTextureRemovedBinaryImageUnitReceived(TextureRemovedBinaryImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A TextureRemovedBinaryImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

TextureRemovedBinaryImageUnit

IntermediateResultExtraInfo

onContoursUnitReceived

Called when contours units have been received.

public void onContoursUnitReceived(ContoursUnit result, IntermediateResultExtraInfo info)

Parameters

result A ContoursUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

ContoursUnit

IntermediateResultExtraInfo

onShortLinesUnitReceived

Called when short lines units have been received.

public void onShortLinesUnitReceived(ShortLinesUnit result, IntermediateResultExtraInfo info)

Parameters

result A ShortLinesUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

ShortLinesUnit

IntermediateResultExtraInfo

onLineSegmentsUnitReceived

Called when a line segments unit is received.

public void onLineSegmentsUnitReceived(LineSegmentsUnit result, IntermediateResultExtraInfo info)

Parameters

result A LineSegmentsUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

LineSegmentsUnit

IntermediateResultExtraInfo

onTextZonesUnitReceived

Called when a text zones unit is received.

public void onTextZonesUnitReceived(TextZonesUnit result, IntermediateResultExtraInfo info)

Parameters

result A TextZonesUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

TextZonesUnit

IntermediateResultExtraInfo

onTextRemovedBinaryImageUnitReceived

Called when a text removed binary image unit is received.

public void onTextRemovedBinaryImageUnitReceived(TextRemovedBinaryImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A TextRemovedBinaryImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

TextRemovedBinaryImageUnit

IntermediateResultExtraInfo

onLongLinesUnitReceived

Called when a long lines unit is received.

public void onLongLinesUnitReceived(LongLinesUnit result, IntermediateResultExtraInfo info)

Parameters

result A LongLinesUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

LongLinesUnit

IntermediateResultExtraInfo

onCornersUnitReceived

Called when a corners unit is received.

public void onCornersUnitReceived(CornersUnit result, IntermediateResultExtraInfo info)

Parameters

result A CornersUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

CornersUnit

IntermediateResultExtraInfo

onCandidateQuadEdgesUnitReceived

Called when a candidate quad edges unit is received.

public void onCandidateQuadEdgesUnitReceived(CandidateQuadEdgesUnit result, IntermediateResultExtraInfo info)

Parameters

result A CandidateQuadEdgesUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

CandidateQuadEdgesUnit

IntermediateResultExtraInfo

onCandidateBarcodeZonesUnitReceived

Called when a candidate barcode zones unit is received.

public void onCandidateBarcodeZonesUnitReceived(CandidateBarcodeZonesUnit result, IntermediateResultExtraInfo info)

Parameters

result A CandidateBarcodeZonesUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

CandidateBarcodeZonesUnit

IntermediateResultExtraInfo

onScaledBarcodeImageUnitReceived

Called when a scaled barcode image unit is received.

public void onScaledBarcodeImageUnitReceived(ScaledBarcodeImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A ScaledBarcodeImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

ScaledBarcodeImageUnit

IntermediateResultExtraInfo

onDeformationResistedBarcodeImageUnitReceived

Called when a deformation resisted barcode image unit is received.

public void onDeformationResistedBarcodeImageUnitReceived(DeformationResistedBarcodeImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A DeformationResistedBarcodeImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

DeformationResistedBarcodeImageUnit

IntermediateResultExtraInfo

onComplementedBarcodeImageUnitReceived

Called when a complemented barcode image unit is received.

public void onComplementedBarcodeImageUnitReceived(ComplementedBarcodeImageUnit result, IntermediateResultExtraInfo info)

Parameters

result A ComplementedBarcodeImageUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

ComplementedBarcodeImageUnit

IntermediateResultExtraInfo

onRawTextLinesUnitReceived

Called when raw text lines have been received.

public void onRawTextLinesUnitReceived(RawTextLinesUnit result, IntermediateResultExtraInfo info)

Parameters

result A RawTextLinesUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

RawTextLinesUnit

IntermediateResultExtraInfo

onLogicLinesUnitReceived

Called when logic lines have been received.

public void onLogicLinesUnitReceived(LogicLinesUnit result, IntermediateResultExtraInfo info)

Parameters

result A LogicLinesUnit object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

LogicLinesUnit

IntermediateResultExtraInfo

onTargetROIResultsReceived

Called when all tasks for the target ROI are completed and the results are deduplicated.

public void onTargetROIResultsReceived(IntermediateResult result, IntermediateResultExtraInfo info)

Parameters

result A IntermediateResult object that contains the result.

info An IntermediateResultExtraInfo object that contains the extra info of intermediate result.

See Also

IntermediateResult

IntermediateResultExtraInfo

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: