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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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