# 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

*Namespace:* Dynamsoft.CVR


```csharp
public class CapturedResult : CapturedResultBase, IEnumerable<CapturedResultItem> 
```

## Methods

| Method               | Description |
|----------------------|-------------|
| [`GetOriginalImageHashId`](#getoriginalimagehashid) | Gets the hash ID of the original image.|
| [`GetOriginalImageTag`](#getoriginalimagetag) | Gets the tag of the original image.|
| [`GetItems`](#getitems) | Gets all items in the captured result.|
| [`GetRotationTransformMatrix`](#getrotationtransformmatrix) | Gets the 3x3 rotation transformation matrix of the original image relative to the rotated image.|
| [`GetErrorCode`](#geterrorcode) | Gets the error code of the capture operation.|
| [`GetErrorString`](#geterrorstring) | Gets the error message of the capture operation.|
| [`GetDecodedBarcodesResult`](#getdecodedbarcodesresult) | Gets the decoded barcode items from the `CapturedResult`.|
| [`GetRecognizedTextLinesResult`](#getrecognizedtextlinesresult) | Gets the recognized text line items from the `CapturedResult`.|
| [`GetProcessedDocumentResult`](#getprocesseddocumentresult) | Gets the processed document items from the `CapturedResult`.|
| [`GetParsedResult`](#getparsedresult) | Gets the parsed result items from the `CapturedResult`.|

### GetOriginalImageHashId

Gets the hash ID of the original image.

```csharp
abstract string GetOriginalImageHashId()
```

**Return Value**

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

### GetOriginalImageTag

Gets the tag of the original image.

```csharp
abstract ImageTag GetOriginalImageTag()
```

**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/dotnet/api-reference/core/basic-classes/image-tag.md)

### GetItems

Gets all items in the captured result.

```csharp
abstract CapturedResultItem[] GetItems()
```

**Return Value**

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

**See Also**

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

### GetRotationTransformMatrix

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

```csharp
abstract double[] GetRotationTransformMatrix()
```

**Return Value**

Returns a double array of length 9 which represents a 3x3 rotation matrix.

### GetErrorCode

Gets the error code of the capture operation.

```csharp
abstract int GetErrorCode()
```

**Return Value**

Returns the error code of the capture operation.

**See Also**

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

### GetErrorString

Gets the error message of the capture operation.

```csharp
abstract string GetErrorString()
```

**Return Value**

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

### GetDecodedBarcodesResult

Gets the decoded barcode items from the `CapturedResult`.

```csharp
abstract DecodedBarcodesResult GetDecodedBarcodesResult()
```

**Return Value**

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

**See Also**

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

### GetRecognizedTextLinesResult

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

```csharp
abstract RecognizedTextLinesResult GetRecognizedTextLinesResult()
```

**Return Value**

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

**See Also**

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

### GetProcessedDocumentResult

Gets the processed document items from the `CapturedResult`.

```csharp
public ProcessedDocumentResult GetProcessedDocumentResult()
```

**Return Value**

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

**See Also**

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

### GetParsedResult

Gets the parsed result items from the `CapturedResult`.

```csharp
abstract ParsedResult GetParsedResult()
```

**Return Value**

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

**See Also**

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