Documentation for Face Intellect 8.0-8.1. Documentation for other versions of Intellect is available too.

Previous page Next page

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

POST http://localhost:10000/firserver/GetAnalitycByTime

JSON parameters:

{
  "server_id": "1",
  "minAge": 5,
  "maxAge": 45,
  "dateTimeFrom": "2019-01-17T21:00:00.000",
  "dateTimeTo": "2020-01-18T20:59:59.000",
  "cameraIds": [
    "1"
  ],
  "genders": [
    0
    1,
    2
  ],
  "returnLocalTime" : 0,
  "timePeriod" : 0
}

where:

  • server_id is the identifier of the Face Recognition Server in Face Intellect (see Configuring the Face Recognition Server object);
  • minAge is the minimum age of persons whose data should be obtained;
  • maxAge is the maximum age of persons whose data should be obtained;
  • dateTimeFrom is the time in UTC format, starting from which the data should be obtained;
  • dateTimeTo is the time in UTC format, up to which the data should be obtained;
  • cameraIds is the camera IDs in Face Intellect (see Creating and configuring the Camera object);
  • genders is the gender of persons whose data should be obtained: 0 - Unknown, 1 - Males, 2 - Females;
  • returnLocalTime is the time format of the face capture: 0 - time in UTC format, 1- local time of the Server;
  • timePeriod is the type of grouping the analytic data: 0 - by hour, 1 - by day, 2 - by month, 3 - by year.

Response example:

{
    "Rows": [
        {
            "timestamp": "2019-02-27T180000.000",
            "value": [
                {
                    "age": 27,
                    "gender": {
                        "males": 10,
                        "females": 9,
                        "unknown": 0
                    },
                    "smile": {
                        "males": 3,
                        "females": 1,
                        "unknown": 0
                    },
                    "angry": {
                        "males": 1,
                        "females": 2,
                        "unknown": 0
                    },
                    "fear": {
                        "males": 1,
                        "females": 2,
                        "unknown": 0
                    },
                    "happiness": {
                        "males": 1,
                        "females": 1,
                        "unknown": 0
                    },
                    "neutral": {
                        "males": 2,
                        "females": 1,
                        "unknown": 0
                    },
                    "sadness": {
                        "males": 1,
                        "females": 1,
                        "unknown": 0
                    },
                    "surprise": {
                        "males": 1,
                        "females": 1,
                        "unknown": 0
                    }
                }
            ]
        }
    ]
    "Responce": {
        "Status": "SUCCESS"
    }
}

Note

age = 0 means that age is not defined.

  • No labels