CapturedResult
The CapturedResult class represents the result of a capture operation on an image. Internally, CapturedResult stores an array that contains multiple items, each of which may be a barcode, text line, detected quad, normalized image, original image, parsed item, etc.
You might also looking for:
Definition
Namespace: com.dynamsoft.cvr
Assembly: DynamsoftCaptureVisionBundle.aar
class CapturedResult
Methods
| Method | Description |
|---|---|
getItems |
Get an array of CapturedResultItems, which are the basic unit of the captured results. A CapturedResultItem can be a original image, a decoded barcode, a recognized text, a detected quad, a normalized image or a parsed result. View CapturedResultItemType for all available types. |
getDecodedBarcodesResult |
Get a DecodedBarcodesResult object that contains all the BarcodeResultItems in the CapturedResult. |
getRecognizedTextLinesResult |
Get a RecognizedTextLinesResult object that contains all the TextLineResultItems in the CapturedResult. |
getProcessedDocumentResult |
Get a ProcessedDocumentResult object that contains all the results with the type of deskewed image, detected quads, and enhanced images. |
getParsedResult |
Get the parsed result. |
The following methods are inherited from CapturedResultBase:
| Method | Description |
|---|---|
getOriginalImageHashId |
Gets the hash id of the original image. |
getOriginalImageTag |
Gets the ImageTag of the original image. |
getRotationTransformMatrix |
Gets the rotation transformation matrix of the original image relative to the rotated image. |
getErrorCode |
Gets the error code of this result. |
getErrorMessage |
Gets the error message of this result. |
getItems
Get an array of CapturedResultItem, which is the basic unit of the captured results. A CapturedResultItem can be a original image, a decoded barcode, a recognized text, a detected quad, a normalized image, or a parsed result. View CapturedResultItemType for all available types.
@Size(min = 0)
@NonNull
CapturedResultItem[] getItems();
Return Value
An array containing the CapturedResultItem objects within the captured result.
getDecodedBarcodesResult
Get all the barcode decoding results of the CapturedResult.
@Nullable
DecodedBarcodesResult getDecodedBarcodesResult();
Return Value
A DecodedBarcodesResult that contains all the BarcodeResultItems of the CapturedResult.
getRecognizedTextLinesResult
Get all the text line recognition results of the CapturedResult.
@Nullable
RecognizedTextLinesResult getRecognizedTextLinesResult();
Return Value
A RecognizedTextLinesResult that contains all the TextLineResultItems of the CapturedResult.
getProcessedDocumentResult
Get a ProcessedDocumentResult object that contains all the results with the type of deskewed image, detected quads, and enhanced images.
@Nullable
ProcessedDocumentResult getProcessedDocumentResult();
Return Value
A ProcessedDocumentResult object. It consists of:
getParsedResult
Get all the parsed results of the CapturedResult.
@Nullable
ParsedResult getParsedResult();
Return Value
A ParsedResult that contains all the ParsedResultItems of the CapturedResult.