# CapturedResult

The `CapturedResult` class represents the result of a capture operation on an image. Internally, `CaptureResult` stores an array that contains multiple items, each of which may be a barcode, text line, detected quad, normalized image, raw image, parsed item, etc.

## Definition

*Module:* cvr

```python
class CapturedResult 
```

## Methods

| Method               | Description |
|----------------------|-------------|
| [`get_original_image_hash_id`](#get_original_image_hash_id) | Gets the hash ID of the original image.|
| [`get_original_image_tag`](#get_original_image_tag) | Gets the tag of the original image.|
| [`get_items`](#get_items) | Gets all items in the captured result.|
| [`get_rotation_transform_matrix`](#get_rotation_transform_matrix) | Gets the 3x3 rotation transformation matrix of the original image relative to the rotated image.|
| [`get_error_code`](#get_error_code) | Gets the error code of the capture operation.|
| [`get_error_string`](#get_error_string) | Gets the error message of the capture operation.|
| [`get_decoded_barcodes_result`](#get_decoded_barcodes_result) | Gets the decoded barcode items from the `CapturedResult`.|
| [`get_recognized_text_lines_result`](#get_recognized_text_lines_result) | Gets the recognized text line items from the `CapturedResult`.|
| [`get_processed_document_result`](#get_processed_document_result) | Gets the processed document items from the `CapturedResult`.|
| [`get_parsed_result`](#get_parsed_result) | Gets the parsed result items from the `CapturedResult`.|

### get_original_image_hash_id

Gets the hash ID of the original image.

```python
def get_original_image_hash_id(self) -> str:
```

**Return Value**

Returns the hash ID of the original image as a string.

### get_original_image_tag

Gets the tag of the original image.

```python
def get_original_image_tag(self) -> ImageTag:
```

**Return Value**

Returns an `ImageTag` object containing the tag of the original image.

**See Also**

[ImageTag](https://www.dynamsoft.com/capture-vision/docs/server/programming/python/api-reference/core/basic-classes/image-tag.md)

### get_items

Gets all items in the captured result.

```python
def get_items(self) -> List[CapturedResultItem]:
```

**Return Value**

Returns a `CapturedResultItem` list with all items in the captured result.

**See Also**

[CapturedResultItem](https://www.dynamsoft.com/capture-vision/docs/server/programming/python/api-reference/core/basic-classes/captured-result-item.md)

### get_rotation_transform_matrix

Gets the 3x3 rotation transformation matrix of the original image relative to the rotated image.

```python
def get_rotation_transform_matrix(self) -> List[float]:
```

**Return Value**

Returns a float list of length 9 which represents a 3x3 rotation matrix.

### get_error_code

Gets the error code of the capture operation.

```python
def get_error_code(self) -> int:
```

**Return Value**

Returns the error code of the capture operation.

**See Also**

[EnumErrorCode](https://www.dynamsoft.com/capture-vision/docs/server/programming/python/api-reference/core/enum-error-code.md)

### get_error_string

Gets the error message of the capture operation.

```python
def get_error_string(self) -> str:
```

**Return Value**

Returns the error message of the capture operation as a string.

### get_decoded_barcodes_result

Gets the decoded barcode items from the `CapturedResult`.

```python
def get_decoded_barcodes_result(self) -> "DecodedBarcodesResult":
```

**Return Value**

Returns a `DecodedBarcodesResult` object containing the decoded barcode items. 

**See Also**

[DecodedBarcodesResult](https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/api-reference/decoded-barcodes-result.md)

### get_recognized_text_lines_result

Gets the recognized text line items from the `CapturedResult`.

```python
def get_recognized_text_lines_result(self) -> "RecognizedTextLinesResult":
```

**Return Value**

Returns a `RecognizedTextLinesResult` object containing the recognized text line items.

**See Also**

[RecognizedTextLinesResult](https://www.dynamsoft.com/label-recognition/docs/server/programming/python/api-reference/recognized-text-lines-result.md)

### get_processed_document_result

Gets the processed document items from the `CapturedResult`.

```python
def get_processed_document_result(self) -> "ProcessedDocumentResult":
```

**Return Value**

Returns a `ProcessedDocumentResult` object containing the processed document items.

**See Also**

[ProcessedDocumentResult](https://www.dynamsoft.com/document-normalizer/docs/server/programming/python/api-reference/processed-document-result.md)

### get_parsed_result

Gets the parsed result items from the `CapturedResult`.

```python
def get_parsed_result(self) -> "ParsedResult":
```

**Return Value**

Returns a `ParsedResult` object containing the parsed result items.

**See Also**

[ParsedResult](https://www.dynamsoft.com/code-parser/docs/server/programming/python/api-reference/parsed-result.md)
