> 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/guides/developer-guide/api/oz-api/basic-scenarios/liveness/action-shot.md).

# Action Shot

Action shot is a frame from a video where the user performs a gesture, e.g., closed eyes for blinking. A separate frame is saved for each gesture.

## Requirements

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

## Enabling Action Shot

### Web SDK

In the [Web Adapter configuration file](https://doc.ozforensics.com/oz-knowledge/guides/administrator-guide/configuration/web-adapter/configuration-file-settings.md), set `extract_action_shot` to `True`.

### Mobile SDK

Add the `extract_action_shot` parameter with the `true` value to `params` (iOS) / `analysisParams` (Android) of the `Analysis` structure when running the analysis.

{% 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 %}

### Where to Find Action Shots

* In the API response (API 6.6.1 and newer): `analyses[].results_media[].output_images[]`. Action shot has `original_name` = `ResultImageActionShot.jpeg`.
* In the report: a frame for each gesture. Generate the report via Web UI (the PDF button in the order) or API (`POST /api/folders/{{folder_id}}/reports/`).

{% hint style="info" %}
For Face Matching (`biometry`), use the best shot from the Liveness (`quality`) analysis, not action shots: on a gesture frame, the face may be, e.g., in profile, which may affect the analysis result. The best shot meets the media requirements for Face Matching. We recommend taking the best shot from the `video_selfie_blank` video.
{% 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/guides/developer-guide/api/oz-api/basic-scenarios/liveness/action-shot.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.
