Configuration parameter structure of people counting rule
struct{
DWORD dwSize;
BYTE byEnable;
BYTE byOSDEnable;
BYTE byCurDetectType;
BYTE byInterferenceSuppression;
NET_VCA_POINT struOSDPoint;
BYTE byDataUploadCycle;
BYTE bySECUploadEnable;
BYTE byEmailDayReport;
BYTE byEmailWeekReport;
BYTE byEmailMonthReport;
BYTE byEmailYearReport;
BYTE byRes2[6];
NET_VCA_POLYGON struPolygon;
NET_DVR_PDC_ENTER_DIRECTION struEnterDirection;
NET_DVR_SCHEDTIME struAlarmTime[MAX_DAYS/*7*/][MAX_TIMESEGMENT_V30/*8*/];
NET_DVR_TIME_EX struDayStartTime;
NET_DVR_TIME_EX struNightStartTime;
NET_DVR_HANDLEEXCEPTION_V41 struAlarmHandleType;
BYTE byDetecteSensitivity;
BYTE byGenerateSpeedSpace;
BYTE byGenerateSpeedTime;
BYTE byCountSpeed;
BYTE byDetecteType;
BYTE byTargetSizeCorrect;
BYTE byStreamOverlayRuleInfos;
BYTE byRes3;
NET_VCA_LINE struLine;
BYTE byHeightFilterEnable;
BYTE byRes4[3];
float fHeightFilter;
BYTE byCalibrateType;
BYTE byCountingType;
BYTE bySignalType;
BYTE byRS485TransmissionEnabled;
float fTiltAngle;
float fHeelAngle;
float fHeight;
NET_VCA_POLYGON struCountPolygon;
NET_VCA_POLYGON struAutoCalibPolygon;
NET_DVR_TIME_EX struDailyResetTime;
NET_VCA_POLYLINE struPolyLine;
BYTE byRes[4];
}NET_DVR_PDC_RULE_CFG_V42,*LPNET_DVR_PDC_RULE_CFG_V42;
Structure size.
Whether to enable people counting: 0-no, 1-yes
Whether to enable display people counting information on picture: 0- no, 1-yes, 2-display number of entered people only, 3-display number of exited people only, 4-display number of passed people, 5-display number of entered and passed people.
Current detection region type: 0-polygon, 1-detection line, 2-detection polyline.
Jamming type and status (represented by byte): bit0-shadow, bit1-loitering, bit2-trolley, value: 0-disable, 1-enable. For example: if byInterferenceSuppression==7 (111 in binary), it indicates shadow, loitering, and trolley jamming are all enabled.
Upper-left vertex coordinates of the information display position on people counting statistics picture, refer to the structure NET_VCA_POINT for details.
Time interval for uploading people counting data: 0-15 minutes, 1-1 minute, 2-5 minutes, 3-10 minutes, 4-20 minutes, 5-30 minutes, 6-60 minutes.
Whether to enable uploading by second: 0-no, 1-yes.
Whether to enable uploading people counting daily report by email: 0-no, 1-yes.
Whether to enable uploading people counting weekly report by email: 0-no, 1-yes.
Whether to enable uploading people counting monthly report by email: 0-no, 1-yes.
Whether to enable uploading people counting annual report by email: 0-no, 1-yes.
Reserved, set to 0.
Polyson region, it is valid when byCurDetectType is 0. Refer to the structure NET_VCA_POLYGON for details.
Entering direction, refer to the structure NET_DVR_PDC_ENTER_DIRECTION for details.
Arming schedule, refer to the structure NET_DVR_SCHEDTIME for details.
Start time of day, unit: hour, minute, second, refer to the structure NET_DVR_TIME_EX for details.
Start time of night, unit: hour, minute, second, refer to the structure NET_DVR_TIME_EX for details.
Alarm linkage action types, refer to the structure NET_DVR_HANDLEEXCEPTION_V41 for details. Here, only the "center" (upload to center) is supported.
Detection sensitivity, whose value is between 1 and 100, the default value is 50.
Target generation speed in space, whose value is between 1 and 100, the default value is 50.
Target generation speed in time, whose value is between 1 and 100, the default value is 50.
Counting speed, whose value is between 1 and 100, the default value is 50.
Target detection type: 0-auto, 1-head, 2-head and shoulder, the default is 0.
Target size correction, whose value is between 1 and 100, the default value is 50.
Whether to display VCA information on stream: 0-no, 1-yes.
Reserved, set to 0.
Detection line, it is valid when byCurDetectType is 1. Refer to the structure NET_VCA_LINE for details.
Whether to enable height filtering: 0-no, 1-yes
Reserved, set to 0
Filtered height, it is valid when byHeightFilterEnable is 1, unit: cm, default: 120 cm, range: 40 to 200 cm.
Calibration type: 0-not calibrate, 1-auto, 2-manual
Counting trigger mode: 0-none, 1-alarm input triggered, 2-VCA triggered.
Signal types: 0-level (connect to alarm input 1, set to remain open mode, high level indicates opening door, low level indicates closing door); 1-pulse (connect to alarm input 1 (opening door) and alarm input 2 (closing door), set to remain open mode, rising edge will be detected, at least 10 ms duration are required).
Whether to enable RS-485 transmission: 0-no, 1-yes
Angle of pitch, unit: degree, default: 0, range: 0 to 180, read only.
Angle of roll, unit: degree, default: 0, range: -90 to 90, read only.
Calibrated height (the distance between camera lens and ground), unit: cm, default: 300, range: 200 to 500, it can be set only when byCalibrateType is 2, otherwise, this parameter is read-only.
Counting region, read-only, refer to the structure NET_VCA_POLYGON for details.
Automatically calibrated region (for people counting function in vehicle-mounted device, this parameter indicates the pedal area), it is valid when byCalibrateType is 1. Refer to the structure NET_VCA_POLYGON for details.
Clearing schedule (clear the displayed people counting information, by default, the information will be cleared at 00:00). Refer to the structure NET_DVR_TIME_EX for details.
Detection polyline, it is valid when byCurDetectType is 2. Refer to the structure NET_VCA_POLYLINE for details.
Reserved, set to 0.