General request format:
...
POST http://
...
AxxonPSIM_user_login:AxxonPSIM_user_password@IP address:port/firserver/GetAnalitycByTime
Request parameters:
Parameter | Required | Parameter description |
---|
server_id | Yes | Identifier of the Face |
Recognition Server recognition server in Face PSIM |
minAge | No | Minimum age of persons If not specified, then age is not taken into account |
maxAge | No | Maximum age of persons If not specified, then age is not taken into account |
dateTimeFrom | Yes | Time in UTC+0 format |
, starting from which you want to get the data |
should be obtained |
dateTimeTo | Yes | Time in UTC+0 format |
, up to which you want to get the data |
should be obtained |
cameraIds | No | Camera IDs in Face PSIM If not specified, then results for all cameras are displayed |
genders | Yes | Gender of persons |
whose data should be obtained - Unknown - Males - Females—Females If parameter value is empty, then all results are displayed regardless of gender |
returnLocalTime | No | Time format of the face capture: 0 |
- time - local Server then returnLocalTimethen returnLocalTime=0 |
timePeriod | No | Type of grouping |
the analytic - by - by - by - by —by year If not specified, |
then timePeriodRequest example:
POST POST http://1271:1@127.0.0.1:10000/firserver/GetAnalitycByTime
Code Block |
---|
{
"server_id": "1",
"minAge": 20,
"maxAge": 30,
"dateTimeFrom": "2019-02-25T21:00:00.000",
"dateTimeTo": "2019-03-29T20:59:59.000",
"cameraIds": [
"1"
],
"genders": [
0,
1,
2
],
"returnLocalTime" : 0,
"timePeriod" : 0
} |
...
Request headlines:
Headline | Headline description |
---|
Allow | Returns the HTTP method used in request |
Content-Length | Shows the size of characters in bytes |
, received in the request |
Content-Type | Returns the type of received request |
Server | Specifies the server from which the request comes |
Access-Control-Request-Method | Returns the HTTP method that can be used in the request |
Access-Control-Origin |
Indicates Shows if the server response can be accessed by the code that sends |
the a request from this source |
can access the server response |
Date | Shows the time of the request |
Response example:
Expand |
---|
|
Code Block |
---|
{
"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
}
}
]
}
]
"Response": {
"Status": "SUCCESS"
}
} |
|
Response parameters:
Parameter | Parameter description |
---|
Rows | List of unique faces |
timestamp |
First pass time Time of first access in UTC+0 format |
value | List of additional face characteristics (for more details, see |
Getting Completed Status of the completed request |
status SUCCESS - successful error - see Recognition Server