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/ReadPersons

Request parameters:

ParameterRequiredParameter description
server_idYes

ID of the Face recognition server in Face PSIM

idNo

ID of the Axxon PSIM user

If not specified, the response returns information about all users

pageNo

Number of pages with results

If not specified, then page = 1

pageSize

No

Number of results per page

If not specified, then pageSize = 1, that is, there is one result on one page

departmentFilter

No 

ID of the department

Request example:

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

Get information about users from the entire face database

{
 "server_id": "1",
 "objectType": "PERSON",
 "id": [
 
 ],
 "page": 1,
 "pageSize": 2
}

Get information about users from a specified department

{
 "server_id": "1",
 "departmentFilter":"1"
 "objectType": "PERSON",
 "id": [
 
 ],
 "page": 1,
 "pageSize": 2
}

Request headlines:

HeadlineHeadline 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 example:

"PersonList": [
	{
            "Id": "1CEE737C-B5D4-EB11-AC0A-B42E999B6711",
            "Name": "",
            "Surname": "1CEE737C-B5D4-EB11-AC0A-B42E999B6711",
            "Patronymic": "",
            "Department": "3",
            "Comment": "",
            "Timestamp": "2021-06-24T06:29:16.199",
            "ImageId": "1EEE737C-B5D4-EB11-AC0A-B42E999B6711",
            "AutoCreated": true,
            "LastRecognitionTimestamp": "2021-06-24T06:29:28.270",
            "RecognitionCount": 1,
	}
],
 "Total": 220,
 "Response": {
 "Status": "OK"
 }

The response returns users in the order of when they were added to the database (most recently added first).

Using the identifier from the PersonList.ImageId parameter, you can get the user's photo with a separate query. See Get an image by ID.

Response parameters:

ParameterParameter description
PersonListList of users with information from the face database
idUser identifier from the face database
nameName
surnameSurname
patronymicPatronymic
departmentDepartment
commentComment
timestampTime of adding a face to the database of reference faces in UTC+0 format
ImageIdIdentifier of the reference face image from the face database
AutoCreated

true if the unrecognized face is added automatically

LastRecognitionTimestamp

Time of the last access in UTC+0 format

RecognitionCountNumber of accesses
TotalTotal users in the face database
SourceID of the server in GUID format
ResponseResponse
StatusStatus of the completed request: OK—successful, if error—see List of possible errors of the Face recognition server
  • No labels