# DetectedQuadsResult

The `DetectedQuadsResult` class represents a collection of [`DetectedQuadResultItems`](https://www.dynamsoft.com/document-normalizer/docs/mobile/programming/android/api-reference/detected-quad-result-item.md), the basic unit of a detected quad result.

## Definition

*Namespace:* com.dynamsoft.ddn

*Assembly:* DynamsoftCaptureVisionBundle.aar

```java
class DetectedQuadsResult
```

## Methods

| Methods | Description |
| ---------- | ----------- |
| [`getItems`](#getitems) | An array of [`DetectedQuadResultItem`](https://www.dynamsoft.com/document-normalizer/docs/mobile/programming/android/api-reference/detected-quad-result-item.md), which are the detected quadrilateral items. |
| [`getRotationTransformMatrix`](#getrotationtransformmatrix) | The rotation transformation matrix of the original image relative to the rotated image. |
| [`getOriginalImageHashId`](#getoriginalimagehashid) | The hash id of the original image. You can use this ID to get the original image via `IntermediateResultManager` class. |
| [`getOriginalImageTag`](#getoriginalimagetag) | The tag of the original image, from which you get the detected quads result. |
| [`getErrorCode`](#geterrorcode) | Gets the error code of the detected quads result, if an error occurred. |
| [`getErrorMessage`](#geterrormessage) | Gets the error message of the detected quads result, if an error occurred. |

### getItems

Returns an array of [`DetectedQuadResultItem`](https://www.dynamsoft.com/document-normalizer/docs/mobile/programming/android/api-reference/detected-quad-result-item.md), which represents the basic unit of the captured result, in this case, a detected quadrilateral.

```java
DetectedQuadResultItem[] getItems();
```

**Return Value**

The array of the detected quadrilateral items.

### getRotationTransformMatrix

Returns the rotation transformation matrix of the original image relative to the rotated image. Please see [Matrix](https://developer.android.com/reference/android/opengl/Matrix){:target="_blank"} for more info.

```java
Matrix getRotationTransformMatrix();
```

**Return Value**

The rotation transformation matrix of the original image relative to the rotated image.

### getOriginalImageHashId

Returns the hash ID of the original image. You can use this ID to get the original image via [`IntermediateResultManager`](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/android/api-reference/core/intermediate-results/intermediate-result-manager.md) class.

```java
String getOriginalImageHashId();
```

### getOriginalImageTag

Returns the [`ImageTag`](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/android/api-reference/core/basic-structures/image-tag.md) of the original image, which contains various information about the image.

```java
ImageTag getOriginalImageTag();
```

**Return Value**

The tag of the original image.

**See Also**

* [ImageTag](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/android/api-reference/core/basic-structures/image-tag.md)

### getErrorCode

Gets the error code of the detected quads result, if an error occurred.

```java
int getErrorCode();
```

**Return value**

Returns the error code of the detected quads result, or 0 if no error occurred.

### getErrorMessage

Gets the error message of the detected quads result, if an error occurred.

```java
String getErrorMessage();
```

**Return value**

Returns a string that describes the error message.
