DSCapturedResultReceiver
The DSCapturedResultReceiver
interface is designed as a standardized way for retrieving captured results in the Dynamsoft Capture Vision architecture. By implementing the DSCapturedResultReceiver
, you will receive the callback of the various types of captured results, such as original image, decoded barcode, recognized text line, detected quad, normalized image, or parsed data. The DSCapturedResultReceiver
can add a receiver for any type of captured result or for a specific type of captured result, based on the method that is implemented.
Definition
Assembly: DynamsoftCaptureVisionBundle.xcframework
- Objective-C
- Swift
@protocol DSCapturedResultReceiver <NSObject>
protocol CapturedResultReceiver: NSObjectProtocol
Methods
Method | Description |
---|---|
onCapturedResultReceived |
The callback triggered when a generic captured result is available, occurring each time an image finishes its processing. |
onOriginalImageResultReceived |
The callback triggered when the original image result is available, occurring each time an image finishes its processing. |
onDecodedBarcodesReceived |
The callback triggered when decoded barcodes are available, occurring each time an image finishes its processing. |
onRecognizedTextLinesReceived |
The callback triggered when recognized text lines are available, occurring each time an image finishes its processing. |
onProcessedDocumentResultReceived |
The callback triggered when processed document results are available, occurring each time an image finishes its processing. |
onParsedResultsReceived |
The callback triggered when parsed results are available, occurring each time an image finishes its processing. |
onCapturedResultReceived
The callback method triggered when a generic captured result is available, occurring each time an image finishes its processing. This callback can be used for any result that does not fit into the specific categories of the other callbacks.
- Objective-C
- Swift
- (void)onCapturedResultReceived:(DSCapturedResult*)result;
func onCapturedResultReceived(_ result: DSCapturedResult)
Parameters
result
: A DSCapturedResult
object as a captured result.
onOriginalImageResultReceived
The callback method triggered when the original image result is available, occurring each time an image finishes its processing. This callback is used to handle the original image that used as the input of this capture process.
- Objective-C
- Swift
- (void)onOriginalImageResultReceived:(DSOriginalImageResultItem*)result;
func onOriginalImageResultReceived(_ result: DSOriginalImageResultItem)
Parameters
result
: A DSOriginalImageResultItem
object as a original image result.
onDecodedBarcodesReceived
The callback triggered when decoded barcodes are available, occurring each time an image finishes its processing.
- Objective-C
- Swift
- (void)onDecodedBarcodesReceived:(DSDecodedBarcodesResult*)result;
func onDecodedBarcodesReceived(_ result: DSDecodedBarcodesResult)
Parameters
result
: A DSDecodedBarcodesResult
object as a decoded barcode result.
onRecognizedTextLinesReceived
The callback triggered when recognized text lines are available, occurring each time an image finishes its processing.
- Objective-C
- Swift
- (void)onRecognizedTextLinesReceived:(DSRecognizedTextLinesResult*)result;
func onRecognizedTextLinesReceived(_ result: DSRecognizedTextLinesResult)
Parameters
result
: A DSRecognizedTextLinesResult
object as a recognized text line result.
onProcessedDocumentResultReceived
The callback triggered when processed document results are available, occurring each time an image finishes its processing.
- Objective-C
- Swift
- (void)onProcessedDocumentResultReceived:(DSProcessedDocumentResult*)result;
func onProcessedDocumentResultReceived(_ result: ProcessedDocumentResult)
Parameters
result
: A DSProcessedDocumentResult
object as a processed document result.
onParsedResultsReceived
The callback triggered when parsed results are available, occurring each time an image finishes its processing.
- Objective-C
- Swift
- (void)onParsedResultsReceived:(DSParsedResult*)result;
func onParsedResultsReceived(_ result: DSParsedResult)
Parameters
result
: A DSParsedResult
object as a parsed result.