POST
/
api
/
classification_video
Classify a video
curl --request POST \
  --url https://backend.identifai.net/api/classification_video \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-Api-Key: <api-key>' \
  --form frames=5 \
  --form key_frames=true \
  --form key_frames_method=iframe \
  --form with_morphing=true \
  --form with_tampering=false \
  --form image=@/path/to/sample.mp4 \
  --form webhook_url=https://example-webhook.com \
  --form video=@example-file
{
  "identifier": "8d64370a87b820cc1cf620338f5c898bab37439c9a405f32d9eaffc50c4f27b0"
}

Authorizations

X-Api-Key
string
header
required

Your API key.

Body

multipart/form-data
video
file
required

The video to be classified.

frames
enum<integer>

Choose to classify a maximum of 5, 10 or 30 frames.

Available options:
5,
10,
30
key_frames
boolean

If set to true extracts key frames and uses those for classification instead of fixed-time distance images. The extracted key frames may be less than the requested frames.

key_frames_method
enum<string>

Key frames identification algorithm. Possible values are iframe (default), flow and color.

  • iframes : extracts the iframes of the video;
  • color : returns the average frame, based on color, of every shot sequence. Shot sequences are group of frames that start with an iframe;
  • flow : returns the most still frame with respect of the previous frame of every shot sequence.
Available options:
iframe,
flow,
color
with_morphing
boolean

Set it to true if you also want to analyze people's faces in the image using morphing.

webhook_url
string

If specified, the classification result will also be automatically sent to the entered URL. Otherwise, the result can be obtained by polling the relative endpoint.

Response

The classification identifier. The format depends on the Accept header.

identifier
string
Example:

"8d64370a87b820cc1cf620338f5c898bab37439c9a405f32d9eaffc50c4f27b0"