# CapturedResultItem

The `CapturedResultItem` class represents the most basic item in the captured result. Depending on the type of the [`CapturedResult`](/capture-vision/docs/mobile/programming/flutter/api-reference/capture-vision-router/captured-result.html), the captured result item can be a barcode, a text line, a normalized image, a detected quad, a parsed item, or an original image.

> [!NOTE]
> Sub classes:
> - Barcode: [`BarcodeResultItem`](/barcode-reader/docs/mobile/programming/flutter/api-reference/barcode-reader/barcode-result-item.html)
> - Text line: [`TextLineResultItem`](/label-recognition/docs/mobile/programming/flutter/api-reference/text-line-result-item.html)
> - Document page(s): 
>   - [`DeskewedImageResultItem`](/document-normalizer/docs/mobile/programming/flutter/api-reference/deskewed-image-result-item.html)
>   - [`DetectedQuadResultItem`](/document-normalizer/docs/mobile/programming/flutter/api-reference/detected-quad-result-item.html)
>   - [`EnhancedImageResultItem`](/document-normalizer/docs/mobile/programming/flutter/api-reference/enhanced-image-result-item.html)
> - Parsed content (DL, MRZ, VIN, GS1 AI, etc.): [`ParsedResultItem`](/code-parser/docs/mobile/programming/flutter/api-reference/parsed-result-item.html)

## Definition

*Assembly:* dynamsoft_capture_vision_flutter

```dart
class CapturedResultItem
```

## Properties

| Property | Type | Description |
| --------- | ---- | ----------- |
| [`targetROIDefName`](#targetroidefname) | *String* | The name of the target region of interest (ROI) where the captured result was found. |
| [`taskName`](#taskname) | *String* | The name of the recognition task that produced the CapturedResultItem. |
| [`type`](#type) | [*EnumCapturedResultItemType*](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/flutter/api-reference/core/enum/captured-result-item-type.md) | The type of the captured result item. |

### targetROIDefName

Returns a string that represents the name of the target region of interest (ROI) where the captured result was found. The target ROI is where the recognition task is run, and it is defined in the Capture Vision template.

```dart
String targetROIDefName,
```

**Remarks**

To learn more about the `TargetROIDef` object, please visit this [page](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/target-roi-definition/index.md).

### taskName

Returns the name of the recognition task that produced the CapturedResultItem. The task name sets the functional product that will be used for the recognition task, and it is defined in the Capture Vision template. 

```dart
String taskName;
```

**Remarks**

To learn more about how the tasks are set in the TargetROIDef object, please visit this [page](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/target-roi-def/task-setting-name-array.md).

### type

The type of the captured result item represented as a [`EnumCapturedResultItemType`](/capture-vision/docs/mobile/programming/flutter/api-reference/core/enum/captured-result-item-type.html). Depending on the functional product used, the captured result item can be a barcode, a text line, a normalized image, a detected quad, a parsed item, or an original image.

```dart
EnumCapturedResultItemType type;
```

**Remarks**

| CapturedResultItemType | Sub Class |
| ---------------------- | --------- |
| `barcode` | [`BarcodeResultItem`](/barcode-reader/docs/mobile/programming/flutter/api-reference/barcode-reader/barcode-result-item.html) |
| `textLine` | [`TextLineResultItem`](/label-recognition/docs/mobile/programming/flutter/api-reference/text-line-result-item.html) |
| `detectedQuad` | [`DetectedQuadResultItem`](/document-normalizer/docs/mobile/programming/flutter/api-reference/detected-quad-result-item.html) |
| `deskewedImage` | [`DeskewedImageResultItem`](/document-normalizer/docs/mobile/programming/flutter/api-reference/deskewed-image-result-item.html) |
| `parsedResult` | [`ParsedResultItem`](/code-parser/docs/mobile/programming/flutter/api-reference/parsed-result-item.html) |
| `enhancedImage` | [`EnhancedImageResultItem`](/document-normalizer/docs/mobile/programming/flutter/api-reference/enhanced-image-result-item.html) |
