# DetectedQuadElement Class

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

## Definition

*Package:* com.dynamsoft.ddn.intermediate_results

```java
public class DetectedQuadElement extends RegionObjectElement
```

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

## Methods

| Method | Description |
|--------|-------------|
| [`DetectedQuadElement`](#detectedquadelement) | Initializes a new instance of the `DetectedQuadElement` class. |
| [`getConfidenceAsDocumentBoundary`](#getconfidenceasdocumentboundary) | Gets the confidence as document boundary of current object. |
| [`setLocation`](#setlocation) | Sets the location of the detected quad element. |

### DetectedQuadElement

Initializes a new instance of the `DetectedQuadElement` class.

```java
public DetectedQuadElement()
```

### getConfidenceAsDocumentBoundary

Gets the confidence as document boundary of current object.

```java
public int getConfidenceAsDocumentBoundary()
```

**Return Value**

The confidence as document boundary of current object.

### setLocation

Sets the location of the detected quad element.

```java
public void setLocation(Quadrilateral location) throws DocumentNormalizerException
```

**Parameters**

`location` The location of the detected quad element.

**Exceptions**

[`DocumentNormalizerException`](https://www.dynamsoft.com/document-normalizer/docs/server/programming/java/api-reference/document-normalizer-exception.md)

**See Also**

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