# RegionObjectElement

The `RegionObjectElement` class represents an element of a region object in 2D space. It is an abstract class that provides the interface for region object elements.

## Definition

*Module:* core

```python
class RegionObjectElement 
```

## Methods

| Method               | Description |
|----------------------|-------------|
| [`get_location`](#get_location) | Gets the location of the region object element. |
| [`get_referenced_element`](#get_referenced_element) | Gets a referenced region object element. |
| [`get_element_type`](#get_element_type) | Gets the type of the region object element. |
| [`get_image_data`](#get_image_data) | Get the imageData of the region object element. |
| [`set_location`](#set_location) | Sets the location of the region object element. |
| [`clone`](#clone) | Clones the region object element. |

### get_location

Gets the location of the region object element.

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

**Return value**

Returns a `Quadrilateral` object which represents the location of the region object element.

**See Also**

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

### get_referenced_element

Gets a referenced region object element.

```python
def get_referenced_element(self) -> "RegionObjectElement":
```

**Return value**

Returns a referenced `RegionObjectElement` object.

**See Also**

[RegionObjectElement](https://www.dynamsoft.com/capture-vision/docs/server/programming/python/api-reference/core/intermediate-results/region-object-element.md)

### get_element_type

Gets the type of the region object element.

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

**Return value**

Returns a `EnumRegionObjectElementType` enum value which represents the type of the region object element.

**See Also**

[EnumRegionObjectElementType](https://www.dynamsoft.com/capture-vision/docs/server/programming/python/api-reference/core/enum-region-object-element-type.md)

### get_image_data

Get the imageData of the region object element.

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

**Return value**

Returns an `ImageData` object that contains the image data of current object.

**See Also**

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

### set_location

Sets the location of the region object element.

```python
def set_location(self, location: Quadrilateral) -> int:
```

**Parameters**

`location` The location of the region object element.

**Return value**

Returns 0 if success, otherwise an error code.

**See Also**

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

### Clone

Clones the region object element.

```python
def clone(self) -> "RegionObjectElement":
```

**Return value**

Returns a copy of the region object element.

