/train/identify

Description

Train the identify model for one group. Plase note the following:
  • A group must be trained before you can perform identification.
  • A group must be re-trained if it is modified (i.e. Add/remove persons, add/remove faces of group members.) 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
group_id or group_name Id or name to specify the group to be trained.

Return Values

Field Type Description
session_id string Unique id of a session

Parameter

https://apius.faceplusplus.com/v2/train/identify?api_secret=YOUR_API_SECRET&api_key=YOUR_API_KEY&group_name=DemoGroup

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+