Page 1 of 1

Amcrest API has lots of new features - people detection?

Posted: Mon Jan 11, 2021 3:58 pm
by alabamatoy
https://support.amcrest.com/hc/en-us/ar ... TP-API-SDK

2020 version has lots of interesting built-in functionality for counting people and various other cool stuff. My current Amcrest cameras don't support this, but if it can be used along with ZM to detect presence of people, that could be very powerful and might make it worth upgrading.

8.3.2 Query the count of people

1. Whether or not found people count information
Table 8-10 Syntax http://<server>/cgi-bin/videoStatServer.cgi?action=startFind[&channel=<ChannelNo>]&condition.Start Time=<start>&condition. EndTime=<end>&condition.Granularity=<granularity> Method GET
Description Start to find Video Stat info, in response, there is a token for further info finding process, and there is a totalCount shows how many data count(s). Example Find Video Stat info between 2011-1-1 12:00:00 and 2011-1-10 12:00:00, with information granularity is hour: http://192.168.1.108/cgi-bin/videoStatS ... artTime=20 11-1-1%2012:00:00&condition.EndTime=2011-1-10%2012:00:00&condition.Granularity=Hour Success Return token=1 totalCount=14 Comment Params in URL: ChannelNo : video channel No. starts from 1 start/end: the start/end time of Video Stat info. 24 hour Format, as: yyyy-mm-dd hh:mm:ss. granularity: the information granularity returned by the query requirements. the range is {Hour, Day, Week, Month, Season, Year}

2. Get the particular number of people count information
Table 8-11 Syntax http://<server>/cgi-bin/videoStatServer.cgi?action=doFind[&channel=<ChannelNo>]&token=<TokenVa lue>&beginNumber=<beginNumber>&count=<Count> Method GET Description Find Video Stat info with channel, token, begin Number and count. Example http://192.168.1.108/cgi-bin/videoStatS ... ginNumber= 0&count=14 Success Return found=14 info[0].Channel=0 info[0].EndTime=2015-07-06 00:59:59 info[0].EnteredSubtotal=0 info[0].ExitedSubtotal=0 info[0].RuleName= info[0].StartTime=2015-07-06 00:00:00 info[1].Channel=0 info[1].EndTime=2015-07-06 01:59:59 info[1].EnteredSubtotal=0 info[1].ExitedSubtotal=0 info[1].RuleName= info[1].StartTime=2015-07-06 01:00:00 … Comment Params in URL: ChannelNo : video channel index, start from 1 TokenValue: get by startFind in above section. beginNumber : the start count, must between 0 and Count -1 Count: the count of info for this query.

3. Stop query people count information
Table 8-12 Syntax http://<server>/cgi-bin/videoStatServer.cgi?action=stopFind&token=<TokenValue>[&channel=<Chann elNo>] Method GET Description Stop query Video Stat by channel and token. Example http://192.168.1.108/cgi-bin/videoStatS ... =1&token=1 Success Return OK Comment Params in URL: ChannelNo: video channel index, start from 1 TokenValue: get by startFind in above section.

Re: Amcrest API has lots of new features - people detection?

Posted: Fri Jan 15, 2021 10:14 pm
by tomcat84
Hikevision cameras have such options too. You can for example connect them to home assistant and use the camera sensors to trigger zoneminder from home assistant. Indoor or short range it may work. But outdoor not realy to my experiences.