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
Namespace: Dynamsoft.CVR
public abstract class IntermediateResultReceiver
Methods
| Method | Description |
|---|---|
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. |
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. |
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. |
OnShortLinesUnitReceived |
Called when short line units have been received. |
OnRawTextLinesUnitReceived |
Called when raw text lines have been received. |
OnLogicLinesUnitReceived |
Called when logic lines have been received. |
OnEnhancedImageReceived |
Called when enhanced images have been received. |
OnTargetROIResultsReceived |
Called when all tasks for the target ROI are completed and the results are deduplicated. |
GetObservationParameters
Gets the observation parameters of the intermediate result receiver.
ObservationParameters GetObservationParameters()
Return value
Returns the object of ObservationParameters. 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.
virtual void OnTaskResultsReceived(IntermediateResult result, IntermediateResultExtraInfo info)
Parameters
[in] result The IntermediateResult object that contains several result units.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnPredetectedRegionsReceived
Called when predetected regions have been received.
virtual void OnPredetectedRegionsReceived(PredetectedRegionsUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The PredetectedRegionsUnit object that contains the result.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnLocalizedBarcodesReceived
Called when localized barcodes have been received.
virtual void OnLocalizedBarcodesReceived(LocalizedBarcodesUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The LocalizedBarcodesUnit object that contains the result.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnDecodedBarcodesReceived
Called when decoded barcodes have been received.
virtual void OnDecodedBarcodesReceived(DecodedBarcodesUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The DecodedBarcodesUnit object that contains the result.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnLocalizedTextLinesReceived
Called when localized text lines have been received.
virtual void OnLocalizedTextLinesReceived(LocalizedTextLinesUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The LocalizedTextLinesUnit object that contains the result.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnRecognizedTextLinesReceived
Called when recognized text lines have been received.
virtual void OnRecognizedTextLinesReceived(RecognizedTextLinesUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The RecognizedTextLinesUnit object that contains the result.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnDetectedQuadsReceived
Called when detected quadrilaterals have been received.
virtual void OnDetectedQuadsReceived(DetectedQuadsUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The DetectedQuadsUnit object that contains the result.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnDeskewedImageReceived
Called when deskewed images have been received.
virtual void OnDeskewedImageReceived(DeskewedImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The DeskewedImageUnit object that contains the result.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnColourImageUnitReceived
Called when colour image units have been received.
virtual void OnColourImageUnitReceived(ColourImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The received colour image unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnScaledColourImageUnitReceived
Handles the receipt of a scaled colour image unit.
virtual void OnScaledColourImageUnitReceived(ScaledColourImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The received scaled colour image unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnGrayscaleImageUnitReceived
Handles the receipt of a grayscale image unit.
virtual void OnGrayscaleImageUnitReceived(GrayscaleImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The received grayscale image unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnTransformedGrayscaleImageUnitReceived
Handles the receipt of a transformed grayscale image unit.
virtual void OnTransformedGrayscaleImageUnitReceived(TransformedGrayscaleImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The received transformed grayscale image unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnEnhancedGrayscaleImageUnitReceived
Handles the receipt of an enhanced grayscale image unit.
virtual void OnEnhancedGrayscaleImageUnitReceived(EnhancedGrayscaleImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The received enhanced grayscale image unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnBinaryImageUnitReceived
Handles the receipt of a binary image unit.
virtual void OnBinaryImageUnitReceived(BinaryImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The received binary image unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnTextureDetectionResultUnitReceived
Handles the receipt of a texture detection result unit.
virtual void OnTextureDetectionResultUnitReceived(TextureDetectionResultUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The received texture detection result unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnTextureRemovedGrayscaleImageUnitReceived
Handles the receipt of a texture-removed grayscale image unit.
virtual void OnTextureRemovedGrayscaleImageUnitReceived(TextureRemovedGrayscaleImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The received texture-removed grayscale image unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
TextureRemovedGrayscaleImageUnit
OnTextureRemovedBinaryImageUnitReceived
Handles the receipt of a texture-removed binary image unit.
virtual void OnTextureRemovedBinaryImageUnitReceived(TextureRemovedBinaryImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The received texture-removed binary image unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnContoursUnitReceived
Handles the receipt of a contours unit.
virtual void OnContoursUnitReceived(ContoursUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The contours unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnLineSegmentsUnitReceived
Called when a line segments unit is received.
virtual void OnLineSegmentsUnitReceived(LineSegmentsUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The line segments unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnTextZonesUnitReceived
Called when a text zones unit is received.
virtual void OnTextZonesUnitReceived(TextZonesUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The text zones unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnTextRemovedBinaryImageUnitReceived
Called when a text removed binary image unit is received.
virtual void OnTextRemovedBinaryImageUnitReceived(TextRemovedBinaryImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The text removed binary image unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnLongLinesUnitReceived
Called when a long lines unit is received.
virtual void OnLongLinesUnitReceived(LongLinesUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The long lines unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnCornersUnitReceived
Called when a corners unit is received.
virtual void OnCornersUnitReceived(CornersUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The corners unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnCandidateQuadEdgesUnitReceived
Called when a candidate quad edges unit is received.
virtual void OnCandidateQuadEdgesUnitReceived(CandidateQuadEdgesUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The candidate quad edges unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnCandidateBarcodeZonesUnitReceived
Called when a candidate barcode zones unit is received.
virtual void OnCandidateBarcodeZonesUnitReceived(CandidateBarcodeZonesUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The candidate barcode zones unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnScaledBarcodeImageUnitReceived
Called when a scaled barcode image unit is received.
virtual void OnScaledBarcodeImageUnitReceived(ScaledBarcodeImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The scaled barcode image unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnDeformationResistedBarcodeImageUnitReceived
Called when a deformation resisted barcode image unit is received.
virtual void OnDeformationResistedBarcodeImageUnitReceived(DeformationResistedBarcodeImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The deformation resisted barcode image unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
DeformationResistedBarcodeImageUnit
OnComplementedBarcodeImageUnitReceived
Called when a complemented barcode image unit is received.
virtual void OnComplementedBarcodeImageUnitReceived(ComplementedBarcodeImageUnit result,IntermediateResultExtraInfo info)
Parameters
[in] result The complemented barcode image unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnShortLinesUnitReceived
Called when short lines units have been received.
virtual void OnShortLinesUnitReceived(ShortLinesUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The received short lines unit.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnRawTextLinesUnitReceived
Called when raw text lines have been received.
virtual void OnRawTextLinesUnitReceived(RawTextLinesUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The RawTextLinesUnit object that contains the result.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnLogicLinesUnitReceived
Called when logic lines have been received.
virtual void OnLogicLinesUnitReceived(LogicLinesUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The LogicLinesUnit object that contains the result.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also
OnEnhancedImageReceived
Called when an enhanced image unit is received.
virtual void OnEnhancedImageReceived(EnhancedImageUnit result, IntermediateResultExtraInfo info)
Parameters
[in] result The enhanced image unit.
[in] info The 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.
virtual void OnTargetROIResultsReceived(IntermediateResult result, IntermediateResultExtraInfo info)
Parameters
[in] result The IntermediateResult object that contains the result.
[in] info The IntermediateResultExtraInfo object that contains the extra info of intermediate result.
See Also