NET_DVR_PDC_RULE_CFG_V42

Configuration parameter structure of people counting rule

Structure Definition

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;

Members

dwSize

Structure size.

byEnable

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

byOSDEnable

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.

byCurDetectType

Current detection region type: 0-polygon, 1-detection line, 2-detection polyline.

byInterferenceSuppression

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.

struOSDPoint

Upper-left vertex coordinates of the information display position on people counting statistics picture, refer to the structure NET_VCA_POINT for details.

byDataUploadCycle

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.

bySECUploadEnable

Whether to enable uploading by second: 0-no, 1-yes.

byEmailDayReport

Whether to enable uploading people counting daily report by email: 0-no, 1-yes.

byEmailWeekReport

Whether to enable uploading people counting weekly report by email: 0-no, 1-yes.

byEmailMonthReport

Whether to enable uploading people counting monthly report by email: 0-no, 1-yes.

byEmailYearReport

Whether to enable uploading people counting annual report by email: 0-no, 1-yes.

byRes2

Reserved, set to 0.

struPolygon

Polyson region, it is valid when byCurDetectType is 0. Refer to the structure NET_VCA_POLYGON for details.

struEnterDirection

Entering direction, refer to the structure NET_DVR_PDC_ENTER_DIRECTION for details.

struAlarmTime

Arming schedule, refer to the structure NET_DVR_SCHEDTIME for details.

struDayStartTime

Start time of day, unit: hour, minute, second, refer to the structure NET_DVR_TIME_EX for details.

struNightStartTime

Start time of night, unit: hour, minute, second, refer to the structure NET_DVR_TIME_EX for details.

struAlarmHandleType

Alarm linkage action types, refer to the structure NET_DVR_HANDLEEXCEPTION_V41 for details. Here, only the "center" (upload to center) is supported.

byDetecteSensitivity

Detection sensitivity, whose value is between 1 and 100, the default value is 50.

byGenerateSpeedSpace

Target generation speed in space, whose value is between 1 and 100, the default value is 50.

byGenerateSpeedTime

Target generation speed in time, whose value is between 1 and 100, the default value is 50.

byCountSpeed

Counting speed, whose value is between 1 and 100, the default value is 50.

byDetecteType

Target detection type: 0-auto, 1-head, 2-head and shoulder, the default is 0.

byTargetSizeCorrect

Target size correction, whose value is between 1 and 100, the default value is 50.

byStreamOverlayRuleInfos

Whether to display VCA information on stream: 0-no, 1-yes.

byRes3

Reserved, set to 0.

struLine

Detection line, it is valid when byCurDetectType is 1. Refer to the structure NET_VCA_LINE for details.

byHeightFilterEnable

Whether to enable height filtering: 0-no, 1-yes

byRes4

Reserved, set to 0

fHeightFilter

Filtered height, it is valid when byHeightFilterEnable is 1, unit: cm, default: 120 cm, range: 40 to 200 cm.

byCalibrateType

Calibration type: 0-not calibrate, 1-auto, 2-manual

byCountingType

Counting trigger mode: 0-none, 1-alarm input triggered, 2-VCA triggered.

bySignalType

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

byRS485TransmissionEnabled

Whether to enable RS-485 transmission: 0-no, 1-yes

fTiltAngle

Angle of pitch, unit: degree, default: 0, range: 0 to 180, read only.

fHeelAngle

Angle of roll, unit: degree, default: 0, range: -90 to 90, read only.

fHeight

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.

struCountPolygon

Counting region, read-only, refer to the structure NET_VCA_POLYGON for details.

struAutoCalibPolygon

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.

struDailyResetTime

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.

struPolyLine

Detection polyline, it is valid when byCurDetectType is 2. Refer to the structure NET_VCA_POLYLINE for details.

byRes

Reserved, set to 0.