Versions Compared

Key

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


Section


Column
width50%


Panel
borderColor#CCCCCC
bgColor#FFFFFF
titleBGColor#F0F0F0
borderStylesolid
titleIn this section:
Table of Contents



Column
 


The requests are used to send commands and receive the data from the FIRSERVER object using the HTTP requests (for details, see Intellect HTTP API).

CreatePerson -the request for creating a person in the reference face database

Example:

Code Block
languagexml
POST http://127.0.0.1:10000/firserver/CreatePerson
{
  "server_id": "1",
  "id": "",
  "name": "",
  "surname": "40567259",
  "patronymic": "",
  "department": "Отдел 1",
  "comment": "",
  "createPersonInIntellect": 0,
  "image": "base64 image"
  "fir": "base64 fir"
}


Note
titleAttention!

If the "fir" parameter contains a template, then the face will be added to the database without any checking (face search, face vector generation); in addition, there should be an "image" parameter.

DeletePersons - the request for clearing the reference face database

Example:

Code Block
languagexml
POST http://127.0.0.1:10000/firserver/DeletePersons
{
  "server_id": "1",
  "id": [
    "*all*"
  ]
}