Liveness Check v2 (Deprecated)
Input image requirement
For video
- The input video does not exceed 10MB and has the minimum resolution of 800x600 to ensure accuracy
 - The face area must take up at least 3/5 the total video frame
 - The video is 5-10 seconds long.
 
For attached image (to compare the face)
- 
The image to be compared with video does not exceed 5MB and has the minimum resolution of 800x600.
 - 
The face area must take up at least 3/5 the total image
 
API Information
Request Url
POST https://api.fpt.ai/dmp/checklive/v2
Request Headers
| Parameter | Required | Default | Description | 
|---|---|---|---|
| api_key | Yes | your api_key (from console.fpt.ai) | 
Request Body
FormData containing the video and image to be checked
| Parameter | Required | Description | 
|---|---|---|
| video | Yes | Video of customer’s face naturally moving | 
| cmnd | No | Image to be compared with the straightest face in video | 
| detect_mask | Optional | Detect face with mask in video | 
Sample Request
curl --location --request POST 'https://api.fpt.ai/dmp/checklive/v2' \
--header 'api-key: xxxxxxxx' \
--form 'video=@"/video.mp4"' \
--form 'cmnd=@"/face.jpg"'