CapturedResultReceiver
The CapturedResultReceiver class is responsible for receiving captured results. It contains several callback functions for different types of results, including original image, decoded barcodes, recognized text lines, detected quads, normalized images, and parsed results.
Definition
Namespace: com.dynamsoft.cvr
class CapturedResultReceiver
Methods
| Method | Description |
|---|---|
onCapturedResultReceived |
Callback function triggered after processing each image and returns all captured results. |
onOriginalImageResultReceived |
Callback function triggered when start processing each image and returns the original image result. |
onDecodedBarcodesReceived |
Callback function triggered after processing each image and returns all decoded barcodes results. |
onRecognizedTextLinesReceived |
Callback function triggered after processing each image and returns all recognized text lines results. |
onProcessedDocumentResultReceived |
Callback function triggered after processing each image and returns all processed document results. |
onParsedResultsReceived |
Callback function triggered after processing each image and returns all parsed results. |
getName |
Gets the name of the captured result receiver. |
setName |
Sets the name of the captured result receiver. |
getObservedResultItemTypes |
Gets the types of result items being observed. |
onCapturedResultReceived
Callback function triggered after processing each image and returns all captured results.
public void onCapturedResultReceived(CapturedResult result)
Parameters
result The captured result.
See Also
onOriginalImageResultReceived
Callback function triggered when start processing each image and returns the original image result. For the callback to be triggered, it is essential that the parameter OutputOriginalImage is set to value 1.
public void onOriginalImageResultReceived(OriginalImageResultItem result)
Parameters
result The original image result.
See Also
onDecodedBarcodesReceived
Callback function triggered after processing each image and returns all decoded barcodes. For the callback to be triggered, it is essential that the BarcodeReaderTask is properly configured.
public void onDecodedBarcodesReceived(DecodedBarcodesResult result)
Parameters
result The decoded barcodes result.
See Also
onRecognizedTextLinesReceived
Callback function triggered after processing each image and returns all recognized text lines. For the callback to be triggered, it is essential that the LabelRecognizerTask is properly configured.
public void onRecognizedTextLinesReceived(RecognizedTextLinesResult result)
Parameters
result The recognized text lines result.
See Also
onProcessedDocumentResultReceived
Callback function triggered after processing each image and returns all processed document results. For the callback to be triggered, it is essential that the DocumentNormalizerTask is properly configured.
public void onProcessedDocumentResultReceived(ProcessedDocumentResult result)
Parameters
result The processed document results.
See Also
onParsedResultsReceived
Callback function triggered after processing each image and returns all parsed results. For the callback to be triggered, it is essential that the CodeParserTask is properly configured.
public void onParsedResultsReceived(ParsedResult result)
Parameters
result The parsed result.
See Also
getName
Gets the name of the captured result receiver.
public String getName()
Return Value
Returns the name of the captured result receiver.
setName
Sets the name of the captured result receiver.
public void setName(String name)
Parameters
name The name of the captured result receiver.
getObservedResultItemTypes
Gets the types of result items being observed.
public int getObservedResultItemTypes()
Return Value
Returns an integer representing the types of result items being observed.