Fortinet white logo
Fortinet white logo

Face_recognitionUser

Face_recognitionUser

Information about people used to identify them when their face is detected. This is used by face recognition AI on FortiRecorder.

Permissions required include Camera analytics.

HTTP Methods
  • GET

  • POST

  • PUT

  • DELETE

URL

For HTTP GET, use either:

  • https://HOST_OR_IP/api/v1/Face_recognitionUser/
  • https://HOST_OR_IP/api/v1/Face_recognitionUser/PERSON_NAME/

For HTTPPOST, PUT, and DELETE, use:

  • https://HOST_OR_IP/api/v1/Face_recognitionUser/PERSON_NAME/

where variables are:

  • USER_NAME — Unique identifier of a specific person defined for face recognition.

Response JSON

For HTTP PUT and POST, responses vary by which settings you changed.

For HTTP GET, responses vary by URL (collection vs. individual resource): For example, if you get a person profile, your response may look like this:

{
    "objectID": "Face_recognitionUser:pt001",
    "reqAction": 1,
    "nodePermission": 3,
    "mkey": "pt001",
    "department": "default-department",
    "role": "default-role",
    "display_name": "",
    "image_content": "face-recognition/employees/pt001/default_image.jpg",
    "group1_summary": {
        "images": [
            {
                "image_path": "face-recognition/employees/pt001/group1/image/68_1584718836.jpg",
                "is_local": true,
                "mkey": "68_1584718836"
            },
            { 
                "image_path": "face-recognition/employees/pt001/group1/image/73_1584718823.jpg",
                "is_local": true,
                "mkey": "73_1584718823"
            },
            {
                "image_path": "face-recognition/employees/pt001/group1/image/74_1584718818.jpg",
                "is_local": true,
                "mkey": "74_1584718818"
            }
        ]
    },
    "department_display": "default-department",
    "role_display": "default-role",
    "default_images": "[]",
    "percent": {}
}

where attributes are:

  • is_local — Whether or not you have already uploaded each thubnail image of the person:

    • true — A thumbnail image exists on FortiRecorder.

    • false — No thumbnail image exists yet on FortiRecorder. You can either upload it via the GUI, or use the REST API. See EmployeeFaceRecord.

Example: Create a person for face recognition on FortiRecorder

curl -X POST -b cookie.txt "https://HOST_OR_IP/api/v1/Face_recognitionUser/PERSON_NAME"

After you create the entry, you must upload thumbnails of the person's face in order for FortiRecorder to be able to identify them. See EmployeeFaceRecord.

Face_recognitionUser

Face_recognitionUser

Information about people used to identify them when their face is detected. This is used by face recognition AI on FortiRecorder.

Permissions required include Camera analytics.

HTTP Methods
  • GET

  • POST

  • PUT

  • DELETE

URL

For HTTP GET, use either:

  • https://HOST_OR_IP/api/v1/Face_recognitionUser/
  • https://HOST_OR_IP/api/v1/Face_recognitionUser/PERSON_NAME/

For HTTPPOST, PUT, and DELETE, use:

  • https://HOST_OR_IP/api/v1/Face_recognitionUser/PERSON_NAME/

where variables are:

  • USER_NAME — Unique identifier of a specific person defined for face recognition.

Response JSON

For HTTP PUT and POST, responses vary by which settings you changed.

For HTTP GET, responses vary by URL (collection vs. individual resource): For example, if you get a person profile, your response may look like this:

{
    "objectID": "Face_recognitionUser:pt001",
    "reqAction": 1,
    "nodePermission": 3,
    "mkey": "pt001",
    "department": "default-department",
    "role": "default-role",
    "display_name": "",
    "image_content": "face-recognition/employees/pt001/default_image.jpg",
    "group1_summary": {
        "images": [
            {
                "image_path": "face-recognition/employees/pt001/group1/image/68_1584718836.jpg",
                "is_local": true,
                "mkey": "68_1584718836"
            },
            { 
                "image_path": "face-recognition/employees/pt001/group1/image/73_1584718823.jpg",
                "is_local": true,
                "mkey": "73_1584718823"
            },
            {
                "image_path": "face-recognition/employees/pt001/group1/image/74_1584718818.jpg",
                "is_local": true,
                "mkey": "74_1584718818"
            }
        ]
    },
    "department_display": "default-department",
    "role_display": "default-role",
    "default_images": "[]",
    "percent": {}
}

where attributes are:

  • is_local — Whether or not you have already uploaded each thubnail image of the person:

    • true — A thumbnail image exists on FortiRecorder.

    • false — No thumbnail image exists yet on FortiRecorder. You can either upload it via the GUI, or use the REST API. See EmployeeFaceRecord.

Example: Create a person for face recognition on FortiRecorder

curl -X POST -b cookie.txt "https://HOST_OR_IP/api/v1/Face_recognitionUser/PERSON_NAME"

After you create the entry, you must upload thumbnails of the person's face in order for FortiRecorder to be able to identify them. See EmployeeFaceRecord.