---
layout: default-layout
needAutoGenerateSidebar: true
needGenerateH3Content: true
noTitleIndex: true
title: Dynamsoft Document Viewer API Reference - Interface DetectResult
keywords: Documentation, Dynamsoft Document Viewer, API Reference, Interface DetectResult
breadcrumbText: Interface DetectResult
description: Dynamsoft Document Viewer Documentation API Reference Interface DetectResult Page
permalink: /api/interface/detectresult.html
---

# DetectResult

## Syntax

```typescript
interface DetectResult {
    location: Quad;
    width: number;
    height: number;
    config: DocumentDetectConfig;
    confidence?: number;
}
```

## Attributes

### location

The result of boundaries quadrangle. Please refer to [`Quad`](https://www.dynamsoft.com/document-viewer/docs/api/enumeration-type/quad.md).

### width

The width of image.

### height

The height of image.

### config

The configuration of document detect. Please refer to [`DocumentDetectConfig`](https://www.dynamsoft.com/document-viewer/docs/api/interface/documentdetectconfig.md).

### confidence

The confidence of the result quadrangle.
