> For the complete documentation index, see [llms.txt](https://doc.ozforensics.com/oz-knowledge-ru/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-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api/media-tags.md).

# Теги медиафайлов

Каждый загружаемый медиафайл требуется маркировать специальными тегами. Это необходимо для корректной работы алгоритмов распознавания. Теги для видео и фото отличаются друг от друга.

## Теги видеофайлов

Для видеофайлов в Системе должны быть указаны следующие типы тегов:

* Тег, определяющий тип данных «видео»:
  * `video_selfie`
* Тег, определяющий ориентацию видео:
  * `orientation_portrait` – портретная ориентация;
  * `orientation_landscape` – ландшафтная ориентация.
* Тег, определяющий действие на видео:
  * `video_selfie_left` – поворот головы налево;
  * `video_selfie_right` – поворот головы направо;
  * `video_selfie_down` – наклон головы вниз;
  * `video_selfie_high` – наклон головы вверх;
  * `video_selfie_smile` – улыбка;
  * `video_selfie_eyes` – моргание;
  * `video_selfie_scan` – сканирование;
  * `video_selfie_blank` – нет действия;
  * `video_selfie_oneshot` – анализ по одному кадру.

<mark style="background-color:red;">С 1 января 2027 года однокадровый анализ (жест One Shot) будет отключен. Пожалуйста, спланируйте</mark> [<mark style="background-color:red;">миграцию</mark>](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/instrukcii-po-migracii/perekhod-s-odnokadrovogo-analiza.md) <mark style="background-color:red;">заранее.</mark>

Алгоритмы распознают файлы с тегами из этого списка как подходящие для выполнения анализов [Quality](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api/types-of-analyzes.md#quality-liveness-best-shot) (Liveness) и [Biometry](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api/types-of-analyzes.md#biometry).

Важно: в версии API 4.0.8 или старше, чтобы отправить на анализ Quality (Liveness) изображение, а не видео, необходимо поместить его в архив .zip, установить тип файла `SHOTS_SET` и поставить один из тегов `video_`, иначе Quality изображение проигнорирует.

Пример корректного набора тегов видеофайла с действием «моргание»:

```javascript
  "video1": [
      "video_selfie",
      "video_selfie_eyes",
      "orientation_portrait"
    ]
```

## Теги фотофайлов

Для фотофайлов в Системе должны быть указаны следующие типы тегов:

* Тег для селфи:
  * `photo_selfie` – тег, определяющий тип фотографии «селфи»
* Теги для фотографий или сканов удостоверений личности:
  * `photo_id` – тег, определяющий тип фотографии «документы»;
  * `photo_id_front` – фото лицевой стороны документа;
  * `photo_id_back` – фото обратной стороны документа (любые другие анализы, кроме Documents, файлы с этим тегом игнорируют. <sub><mark style="background-color:red;">Поддержка анализа Documents прекращается. С 1 июля 2027 года анализ будет недоступен.<mark style="background-color:red;"></sub>).

Важно: в версии API 4.0.8 или старше, чтобы отправить на анализ Quality (Liveness) изображение, а не видео, необходимо поместить его в архив .zip, установить тип файла `SHOTS_SET` и поставить один из тегов `video_`, иначе Quality изображение проигнорирует.

Пример корректного набора тегов фотофайла «селфи»:

```javascript
  "photo1": [
      "photo_selfie"
  ]
```

Пример корректного набора тегов фотофайла с лицевой стороной документа:

```javascript
"photo1": [
    "photo_id", "photo_id_front"
]
```

Пример корректного набора тегов фотофайла с обратной стороной документа:

```javascript
"photo1": [
    "photo_id", "photo_id_back"
]
```


---

# 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-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api/media-tags.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.
