# BarcodeResultItem Class

The `BarcodeResultItem` class represents a barcode result item decoded by barcode reader engine. It is derived from `CapturedResultItem`.

## Definition

*Module:* dbr

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

```python
class BarcodeResultItem(dynamsoft_core.CapturedResultItem)
```

## Methods

| Method               | Description |
|----------------------|-------------|
| [`get_format`](#get_format) | Gets the format of the decoded barcode result. |
| [`get_format_string`](#get_format_string) | Gets the format string of the decoded barcode result. |
| [`get_text`](#get_text) | Gets the text result of the decoded barcode. |
| [`get_bytes`](#get_bytes) | Gets the text bytes of the decoded barcode result. |
| [`get_location`](#get_location) | Gets the location of the decoded barcode in a quadrilateral. |
| [`get_confidence`](#get_confidence) | Gets the confidence of the decoded barcode result. |
| [`get_angle`](#get_angle) | Gets the angle of the decoded barcode result. |
| [`get_module_size`](#get_module_size) | Gets the module size of the decoded barcode result. |
| [`get_details`](#get_details) | Gets the details of the decoded barcode result. |
| [`is_dpm`](#is_dpm) | Gets whether the decoded barcode is a DPM code. |
| [`is_mirrored`](#is_mirrored) | Gets whether the decoded barcode is a mirrored barcode. |
| [`get_eci_segments`](#get_eci_segments) | Gets all the ECI segments in the barcode. |

### get_format

Gets the format of the decoded barcode result.

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

**Return Value**

Returns the format of the decoded barcode result which is a value of the `EnumBarcodeFormat` enumeration.

**See Also**

[EnumBarcodeFormat](https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/api-reference/enum-barcode-format.md)

### get_format_string

Gets the format string of the decoded barcode result.

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

**Return Value**

Returns the format string of the decoded barcode result.

### get_text

Gets the text result of the decoded barcode.

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

**Return Value**

Returns the text result of the decoded barcode.

### get_bytes

Gets the text bytes of the decoded barcode result.

```python
def get_bytes(self) -> bytes:
```

**Return Value**

Returns the text bytes of the decoded barcode result.

### get_location

Gets the location of the decoded barcode in a quadrilateral.

```python
def get_location(self) -> Quadrilateral:
```

**Return Value**

Returns the location of the decoded barcode in a quadrilateral.

**See Also**

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

### get_confidence

Gets the confidence of the decoded barcode result.

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

**Return Value**

Returns the confidence of the decoded barcode result.

### get_angle

Gets the angle of the decoded barcode result.

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

**Return Value**

Returns the angle of the decoded barcode result.

**See Also**

[How the angle is calculated for different barcode types](https://www.dynamsoft.com/barcode-reader/docs/core/programming/features/get-confidence-rotation.md#barcode-rotation-angle)

### get_module_size

Gets the module size of the decoded barcode result.

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

**Return Value**

Returns the module size of the decoded barcode result.

### get_details

Gets the details of the decoded barcode result.

```python
def get_details(self) -> BarcodeDetails:
```

**Return Value**

Returns the details of the decoded barcode result.

**See Also**

- [AztecDetails](https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/api-reference/aztec-details.md)
- [BarcodeDetails](https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/api-reference/barcode-details.md)
- [DataMatrixDetails](https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/api-reference/datamatrix-details.md)
- [OneDCodeDetails](https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/api-reference/oned-code-details.md)
- [PDF417Details](https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/api-reference/pdf417-details.md)
- [QRCodeDetails](https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/api-reference/qr-code-details.md)

### is_dpm

Gets whether the decoded barcode is a DPM code.

```python
def is_dpm(self) -> bool:
```

**Return Value**

Returns whether the decoded barcode is a DPM code.

### is_mirrored

Gets whether the decoded barcode is mirrored.

```python
def is_mirrored(self) -> bool:
```

**Return Value**

Returns whether the decoded barcode is mirrored.

### get_eci_segments

Gets all the ECI segments in the barcode.

```python
def get_eci_segments(self) -> List[ECISegment]:
```

**Return Value**

Returns a list of [`ECISegment`](https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/api-reference/eci-segment.md) objects. Returns an empty list if no ECI information is present.

**See Also**

[ECISegment](https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/api-reference/eci-segment.md)

**Remarks**

Introduced in Dynamsoft Barcode Reader SDK version 11.4.1000 and Dynamsoft Capture Vision version 3.4.1000.

