Documentation for Face PSIM 1.0.1.

Previous page Next page

General request format:

POST http://AxxonPSIM_user_login:AxxonPSIM_user_password@IP address:port/firserver/FaceErrorDescriptions

Request example:

POST http://1:1@127.0.0.1:10000/firserver/FaceErrorDescriptions

Response:

{
 "FAILED_TO_ADD_PERSON": "Failed to add person. Check request parameters or database",
 "FACE_NOT_FOUND": "Face not found on supplied image",
 "MAXIMUM_FIRS": "Maximum FIR in database",
 "SERVER_NOT_READY": "Server is initializing, please wait",
 "FAILED_TO_DELETE_PERSON": "Failed to delete person. Check request parameters or database",
 "FAILED_TO_ADD_PERSON_MANY_FACES": "The image shown has more than one face",
 "FAILED_TO_SAVE_DATABASE": "Failed to save person. Check request parameters or database",
 "FAILED_TO_UPDATE_PERSON": "Failed to update person. Check request parameters or database"
}

Request headlines:

Headline

Headline description

AllowReturns the HTTP method used in request
Content-LengthShows the size of characters in bytes received in the request
Content-TypeReturns the type of received request
ServerSpecifies the server from which the request comes
Access-Control-Request-MethodReturns the HTTP method that can be used in the request
Access-Control-OriginShows if the server response can be accessed by the code that sends a request from this source
DateShows the time of the request

Response parameters:

ParameterParameter description
FAILED_TO_ADD_PERSONFailed to add a person. Check the request parameters or database
FACE_NOT_FOUNDFace not found on the supplied image
MAXIMUM_FIRSMaximum number of faces in the database
SERVER_NOT_READYServer is initializing, please wait
FAILED_TO_DELETE_PERSONFailed to delete a person. Check the request parameters or database
FAILED_TO_ADD_PERSON_MANY_FACESThe image has more than one face
FAILED_TO_SAVE_DATABASEFailed to save a person. Check the request parameters or database
FAILED_TO_UPDATE_PERSONFailed to update a person. Check the request parameters or database
  • No labels