Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General request format:

POST http://IP-address:port/prefix/firserver/CreatePerson

Request parameters:

ParameterRequiredParameter description
server_idYes

ID of Face Recognition Server in the face-Intellect software package (see the Configuring the Face Recognition Server object)

objectTypeNoObject type
idNo identifier

ID of the user in GUID format

.

If the ID is not specified, then it will be automatically generated for the newly added user and returned in the response;

nameNo

Name

If not specified, the person will be added without a name

surnameYes

Surname

patronymicNo

Patronymic

If not specified, the person will be added without a patronymic

departmentYesDepartment
commentNo

Comment

If not specified, the person will be added without a comment

createPersonInIntellect

No

this This parameter defines whether to create a person on behalf of the Intellect operator or not;

imageYesJPEG image in the base64 format.
firNo

Face pattern (vector)

If

the "fir" parameter contains a template, then

specified, the face will be added to the database without any

checking

verification (face search, face vector generation)

; in addition, there should be an "image" parameter.

...

Request example:

POST http://localhost:10000/firserver/CreatePerson

Expand


Code Block
{
 "server_id" : "1",
 "objectType" : "PERSON",
 "id" : "7BC06491-C30D-450F-BF45-F9F5D680A501",
 "name" :"John",
 "surname" : "Kramer",
 "patronymic" : "",
 "department" : "Department 1",
 "comment" : "Some comment",
 "createPersonInIntellect": 1,
 "image": "",
 "fir": ""
}

...


Response example:

Expand


Code Block
{
    "Status": "SUCCESS",
    "Result": "7BC06491-C30D-450F-BF45-F9F5D680A501",
    "Description": ""
}


Response parameters:

ParameterParameter description
StatusCompleted request status: SUCCESS - successful
ResultAdded user ID in GUID format
DescriptionRequest Description