> For the complete documentation index, see [llms.txt](https://docs.caf.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.caf.io/caf-sdk/flutter/standalone-modules/documentdetector.md).

# Document Detector

{% hint style="info" %}
This library provides a Flutter bridge for our native SDKs. The versions currently in use are as follows:

* Android: `io.caf.sdk:document-detector:9.15.5`
* iOS: `DocumentDetector, 16.0.2`
  {% endhint %}

The Document Detector SDK utilizes cutting-edge artificial intelligence to capture and verify document images reliably, ensuring fraud prevention and compliance. It is ideal for onboarding processes that require document authentication.

## Repository

You can access the Caf's Document Detector Flutter Repository [here](https://github.com/combateafraude/DocumentDetectorFlutter/).

## Terms & Policies

When using our SDKs, please make sure that you agree with our [Privacy Policy](https://en.caf.io/politicas/politicas-de-privacidade) and our [Terms and Conditions of Use](https://en.caf.io/politicas/termos-e-condicoes-de-uso).

### Runtime Permissions

#### Android

| Permission | Reason                                                      | Required |
| ---------- | ----------------------------------------------------------- | :------: |
| `CAMERA`   | Capturing images of the document for verification purposes. |     ✅    |

#### iOS

| Permission                           | Reason                                                      | Required |
| ------------------------------------ | ----------------------------------------------------------- | :------: |
| `Privacy - Camera Usage Description` | Capturing images of the document for verification purposes. |     ✅    |

***

## Useful Links

{% content-ref url="/pages/t972GJ43VBWohivOXVtB" %}
[Requirements](/caf-sdk/flutter/standalone-modules/documentdetector/requirements.md)
{% endcontent-ref %}

{% content-ref url="/pages/BtK8LEPy2d6WcGeXak3o" %}
[Installating the SDK](/caf-sdk/flutter/standalone-modules/documentdetector/installation.md)
{% endcontent-ref %}

{% content-ref url="/pages/BEdZxwNJDV5TB8AMB6oS" %}
[Android Configuration](/caf-sdk/flutter/standalone-modules/documentdetector/android_config.md)
{% endcontent-ref %}

{% content-ref url="/pages/hmaVrqde2KSIChIzWSNj" %}
[iOS Configuration](/caf-sdk/flutter/standalone-modules/documentdetector/ios_config.md)
{% endcontent-ref %}

{% content-ref url="/pages/Mj38ToDLIcZYBmOp5vbS" %}
[SDK Lifecycle](/caf-sdk/flutter/standalone-modules/documentdetector/lifecycle.md)
{% endcontent-ref %}

{% content-ref url="/pages/QlBIZESLXb8yadpwtPWn" %}
[Building the SDK](/caf-sdk/flutter/standalone-modules/documentdetector/builder.md)
{% endcontent-ref %}

{% content-ref url="/pages/h1nvekCRj1ZiB9CBZOmc" %}
[Start Liveness Verification](/caf-sdk/flutter/standalone-modules/documentdetector/start-sdk.md)
{% endcontent-ref %}

{% content-ref url="/pages/N3zLM2pwrp4JePu8liCF" %}
[Source Code](/caf-sdk/flutter/standalone-modules/documentdetector/source-code.md)
{% endcontent-ref %}

{% content-ref url="/pages/XspyJcqharicAG1MBEf0" %}
[Release Notes](/caf-sdk/flutter/standalone-modules/documentdetector/release-notes.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.caf.io/caf-sdk/flutter/standalone-modules/documentdetector.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
