# ExtendedBarcodeResult Class

The `ExtendedBarcodeResult` class represents an extended barcode result in a decoded barcode element. It contains information such as the type of extended barcode, deformation, clarity, and a sampling image of the barcode.

## Definition

*Module:* dbr

*Inheritance:* [DecodedBarcodeElement](https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/api-reference/decoded-barcode-element.md) -> ExtendedBarcodeResult

```python
class ExtendedBarcodeResult(DecodedBarcodeElement)
```

## Methods

| Method | Description |
|--------|-------------|
| [`get_extended_barcode_result_type`](#get_extended_barcode_result_type) | Gets the type of extended barcode result. |
| [`get_deformation`](#get_deformation) | Gets the deformation of the barcode. |
| [`get_clarity`](#get_clarity) | Gets the clarity of the barcode. |
| [`get_sampling_image`](#get_sampling_image) | Gets the sampling image of the barcode. |

### get_extended_barcode_result_type

Gets the type of extended barcode result.

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

**Return value**

Returns the type of the extended barcode result. This is one of the values of the `EnumExtendedBarcodeResultType` enumeration.

**See Also**

[EnumExtendedBarcodeResultType](https://www.dynamsoft.com/barcode-reader/docs/server/programming/python/api-reference/enum-extended-barcode-result-type.md)

### get_deformation

Gets the deformation of the barcode.

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

**Return value**

Returns the deformation of the barcode.

### get_clarity

Gets the clarity of the barcode.

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

**Return value**

Returns the clarity of the barcode.

### get_sampling_image

Gets the sampling image of the barcode.

```python
def get_sampling_image(self) -> ImageData:
```

**Return value**

Returns an `ImageData` object representing the sampling image of the barcode.

**See Also**

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