Condition structure of people counting data search.
struct{
DWORD dwSize;
DWORD dwChannel;
NET_DVR_TIME_EX struStartTime;
NET_DVR_TIME_EX struEndTime;
BYTE byReportType;
BYTE byEnableProgramStatistics;
BYTE byTriggerPeopleCountingData;
BYTE byMultiChannelSearch;
DWORD dwPlayScheduleNo;
BYTE byISO8601;
char cStartTimeDifferenceH;
char cStartTimeDifferenceM;
char cStopTimeDifferenceH;
char cStopTimeDifferenceM;
BYTE byRes1[3];
DWORD dwSearchChannelNum;
char pSearchChannel;
BYTE byChild;
BYTE byMinTimeInterval;
BYTE byStatisticType;
BYTE byRes[101];
}NET_DVR_PDC_QUERY_COND, *LPNET_DVR_PDC_QUERY_COND;
Structure size
Channel No.
Start time of search, see details in structure NET_DVR_TIME_EX.
End time of search, see details in structure NET_DVR_TIME_EX.
Report type: 0-invalid, 1-daily, 2-weekly, 3-monthly, 4-anual
Whether to count by program: 0-no, 1-yes
Whether to enable people counting data search: 0-no, 1-yes
Whether to enable searching in multiple channels: 0-no, 1-yes
Linked plan No. for statistics by program.
Whether the time is in ISO8601 format, i.e., whether the time difference is valid. 0-invalid, the time is device local time, 1-valid.
Time difference between start time and UTC time, unit: hour, the value is between -12 and +14 ("+" indicates the east time zone), it is valid when byISO8601 is "1".
Time difference between start time and UTC time, unit: minute, the value is -30, +30, or +45 ("+" indicates the east time zone), it is valid when byISO8601 is "1".
Time difference between stop time and UTC time, unit: hour, the value is between -12 and +14 ("+" indicates the east time zone), it is valid when byISO8601 is "1".
Time difference between stop time and UTC time, unit: minute, the value is -30, +30, or +45 ("+" indicates the east time zone), it is valid when byISO8601 is "1".
Reserved
Number of channels to search
Search channel No.
Whether to detect children only: 0-no, 1-yes.
Minimum time interval: 0-invalid, 1-15 minutes, 2-30 minutes, 3-one hour, 4-one day, 5-one week, 6-one month.
Counting type: 0-invalid, 1-by entered people, 2-by exited people, 3-all.
Reserved.
Search end time is used for simple verification such as "if the start time is earlier than end time". The search time period is subject to start time and search mode, for example, if the start date is July 1st and the end date is August 1st, and the search mode is weekly, then the device will search the information between July 1st and July 7th.