> For the complete documentation index, see [llms.txt](https://doc.ozforensics.com/oz-knowledge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ozforensics.com/oz-knowledge/oz-knowledge/pt-br/guias/developer-guide/api/oz-api/basic-scenarios/liveness/foto-de-acao.md). Agents can also search and read this documentation through its [MCP server](https://doc.ozforensics.com/oz-knowledge/~gitbook/mcp).

# Foto de ação

A captura de ação é um quadro de um vídeo em que o usuário realiza um gesto, por exemplo, olhos fechados para piscar. Um quadro separado é salvo para cada gesto.

## Requisitos

* API – 5.3.1,&#x20;
* Web SDK – 1.6.15,&#x20;
* Web UI – 1.3.4,&#x20;
* Mobile SDK (iOS, Android, Flutter) – 8.14.

## Habilitação do Action Shot

### Web SDK

No [arquivo de configuração do Web Adapter](https://doc.ozforensics.com/oz-knowledge/oz-knowledge/pt-br/guias/administrator-guide/configuracao/web-adapter/configuration-file-settings.md), defina `extract_action_shot` como `True`.

### Mobile SDK

Adicione o `extract_action_shot` parâmetro com o `true` valor em `params` (iOS) / `analysisParams` (Android) da `Analysis` estrutura ao executar a análise.

{% tabs %}
{% tab title="iOS" %}

```swift
Analysis.init(media: results,
 type: .quality,
 mode: .serverBased,
 params: ["extract_best_shot" : true, "extract_action_shot": true])
```

{% endtab %}

{% tab title="Android" %}

```kotlin
val analysisParams = mapOf(
    "extract_best_shot" to true,
    "extract_action_shot" to true
)
AnalysisScenario.Liveness
 -> addAnalysis(
  Analysis(
    Analysis.Type.QUALITY,
    analysisMode,
    media,
    analysisParams, 
    sizeReductionStrategy
  )
 )
```

{% endtab %}
{% endtabs %}

### Onde encontrar as capturas de ação

* Na resposta da API (API 6.6.1 e versões mais recentes): `analyses[].results_media[].output_images[]`. A captura de ação tem `original_name` = `ResultImageActionShot.jpeg`.
* No relatório: um quadro para cada gesto. Gere o relatório via Web UI (o botão PDF no pedido) ou API (`POST /api/folders/{{folder_id}}/reports/`).

{% hint style="info" %}
Para Correspondência facial (`biometria`), use a melhor captura da análise de Liveness (`qualidade`) e não as capturas de ação: em um quadro de gesto, o rosto pode estar, por exemplo, de perfil, o que pode afetar o resultado da análise. A melhor captura atende aos requisitos de mídia para Correspondência facial. Recomendamos obter a melhor captura do `video_selfie_blank` vídeo.
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.ozforensics.com/oz-knowledge/oz-knowledge/pt-br/guias/developer-guide/api/oz-api/basic-scenarios/liveness/foto-de-acao.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
