/train/verify

Description

Train the verify model for one person. Please note the following:
  • A person must be trained before you can perform verification.
  • A person must be re-trained if it is modified (i.e. Add/remove faces of person.) to make the modifications take effect.
  • The training procedure may be time-consuming, so asynchronous invocation is forced and only the session id is returned.
  • The result can later be retrieved via /info/get_session. When the train is completed, result will be {"success": true}.

Parameter

Name Description
Required api_key Your registered API Key
api_secret Your registered API Secret
person_id or person_name Id or name to specify the person to be trained.

Return Values

Field Type Description
session_id string Unique id of a session

Parameter

https://apius.faceplusplus.com/v2/train/verify?api_secret=YOUR_API_SECRET&api_key=YOUR_API_KEY&person_name=Demoperson

JSON Response

{
    "session_id": "986313a592c9970235181ac119fecd76"
}

Error Code List

Error Code HTTP Status Code Error Message
1001 500 INTERNAL_ERROR
1003 403 AUTHORIZATION_ERROR
1003 403 INSUFFICIENT_PRIVILEGE_OR_QUOTA_LIMIT_EXCEEDED
1004 400 MISSING_ARGUMENTS
1005 400 INVALID_ARGUMENTS
1006 403 ILLEGAL_USE_OF_DEMO_KEY
1202 502 SERVER_TOO_BUSY
Google+