For the complete documentation index, see llms.txt. This page is also available as Markdown.

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,

  • Web SDK – 1.6.15,

  • Web UI – 1.3.4,

  • Mobile SDK (iOS, Android, Flutter) – 8.14.

Enabling Action Shot

Web SDK

In the Web Adapter configuration file, 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.

Analysis.init(media: results,
 type: .quality,
 mode: .serverBased,
 params: ["extract_best_shot" : true, "extract_action_shot": true])
val analysisParams = mapOf(
    "extract_best_shot" to true,
    "extract_action_shot" to true
)
AnalysisScenario.Liveness
 -> addAnalysis(
  Analysis(
    Analysis.Type.QUALITY,
    analysisMode,
    media,
    analysisParams, 
    sizeReductionStrategy
  )
 )

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/).

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.

Last updated

Was this helpful?