---
layout: default-layout
title: DetectedQuadElement Class – Document Normalizer Python
description: This page shows DetectedQuadElement class definition of Dynamsoft Document Normalizer SDK Python Edition.
keywords: get_confidence_as_document_boundary, DetectedQuadElement, api reference
---

# DetectedQuadElement Class

The `DetectedQuadElement` class stores an intermediate result whose type is detected quad.

## Definition

*Module:* ddn

```python
class DetectedQuadElement(RegionObjectElement)
```

*Inheritance:* [RegionObjectElement]({{ site.dcvb_python_api }}core/intermediate-results/region-object-element.html) -> DetectedQuadElement

## Methods

| Method | Description |
|--------|-------------|
| [`__init__`](#__init__) | Initializes a new instance of the `DetectedQuadElement` class. |
| [`get_confidence_as_document_boundary`](#get_confidence_as_document_boundary) | Gets the confidence as document boundary of current object. |
| [`set_location`](#set_location) | Sets the location of the detected quad element. |

### \_\_init\_\_

Initializes a new instance of the `DetectedQuadElement` class.

```python
def __init__(self, *args, **kwargs):
```

### get_confidence_as_document_boundary

Gets the confidence as document boundary of current object.

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

**Return Value**

The confidence as document boundary of current object.

### set_location

Sets the location of the detected quad element.

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

**Parameters**

`location` The location of the detected quad element.

**Return Value**

Returns 0 if success, otherwise an error code.

**See Also**

* [Quadrilateral]({{ site.dcvb_python_api }}core/basic-classes/quadrilateral.html)
