/train/search

Description

Train the search model for one faceset. Plase note the following:
  • A faceset must be trained before you can perform searching.
  • A faceset must be re-trained if it is modified (i.e. add/remove faces of faceset) 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
faceset_id or faceset_name Id or name to specify the faceset to be trained.

Return Values

Field Type Description
session_id string Unique id of a session

Parameter

https://apius.faceplusplus.com/v2/train/search?api_secret=YOUR_API_SECRET&api_key=YOUR_API_KEY&faceset_name=Demofaceset

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+