NET_DVR_PDC_QUERY_COND

Condition structure of people counting data search.

Structure Definition

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;

Members

dwSize

Structure size

dwChannel

Channel No.

struStartTime

Start time of search, see details in structure NET_DVR_TIME_EX.

struEndTime

End time of search, see details in structure NET_DVR_TIME_EX.

byReportType

Report type: 0-invalid, 1-daily, 2-weekly, 3-monthly, 4-anual

byEnableProgramStatistics

Whether to count by program: 0-no, 1-yes

byTriggerPeopleCountingData

Whether to enable people counting data search: 0-no, 1-yes

byMultiChannelSearch

Whether to enable searching in multiple channels: 0-no, 1-yes

dwPlayScheduleNo

Linked plan No. for statistics by program.

byISO8601

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.

cStartTimeDifferenceH

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".

cStartTimeDifferenceM

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".

cStopTimeDifferenceH

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".

cStopTimeDifferenceM

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".

byRes1

Reserved

dwSearchChannelNum

Number of channels to search

pSearchChannel

Search channel No.

byChild

Whether to detect children only: 0-no, 1-yes.

byMinTimeInterval

Minimum time interval: 0-invalid, 1-15 minutes, 2-30 minutes, 3-one hour, 4-one day, 5-one week, 6-one month.

byStatisticType

Counting type: 0-invalid, 1-by entered people, 2-by exited people, 3-all.

byRes

Reserved.

Remarks

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.