NET_DVR_SEARCH_EVENT_PARAM_V50

Condition structure about searching videos by event.

Structure Definition

struct{
  WORD                         wMajorType;
  WORD                         wMinorType;
  NET_DVR_TIME_SEARCH_COND     struStartTime;
  NET_DVR_TIME_SEARCH_COND     struEndTime;  
  BYTE                         byLockType;
  BYTE                         byRes[255];
  union{
    BYTE                    byLen[SEARCH_EVENT_INFO_LEN_V40/*800*/];        
    struct{           
      WORD                  wAlarmInNo[128];
      BYTE                  byRes[544];           
    }struAlarmParam;
    struct{
      WORD                  wMotDetChanNo[MAX_CHANNUM_V30/*64*/];
      BYTE                  byRes[672];           
    }struMotionParam;
    struct{           
      WORD                  wChanNo[MAX_CHANNUM_V30/*64*/];
      BYTE                  byRuleID;
      BYTE                  byRes[671];           
    }struVcaParam;
    struct{           
      BYTE                  byRoomIndex;
      BYTE                  byRes[799];           
    }struInquestParam;
    struct{           
      BYTE                  byAll;
      BYTE                  byRes1[3];
      WORD                  wChanNo[MAX_CHANNUM_V30/*64*/];
      BYTE                  byRes1[668];           
    }struVCADetect;
    struct{           
      NET_DVR_STREAM_INFO   struIDInfo;
      DWORD                 dwCmdType;
      BYTE                  byBackupVolumeNum;
      BYTE                  byRes[723];           
    }struStreamIDParam;
    struct{           
      WORD                  wChannel[MAX_CHANNUM_V30/*64*/];
      BYTE                  byAllChan;
      BYTE                  byCaseSensitive;
      BYTE                  byCombinateMode;
      BYTE                  byRes1;
      char                  sKeyWord[MAX_POS_KEYWORDS_NUM/*3*/][MAX_POS_KEYWORD_LEN/*128*/];
      BYTE                  byRes[284];           
    }struPosAlarm;
    struct{           
      BYTE                  byCaseNo[SEARCH_CASE_NO_LEN/*56*/];
      BYTE                  byCaseName[SEARCH_CASE_NAME_LEN/*100*/];
      BYTE                  byLitigant1[SEARCH_LITIGANT_LEN/*32*/];
      BYTE                  byLitigant2[SEARCH_LITIGANT_LEN/*32*/];
      BYTE                  byChiefJudge[SEARCH_CHIEF_JUDGE_LEN/*32*/];
      BYTE                  byCaseType;
      BYTE                  byRes[547];          
    }struTrialParam;
    struct{           
      DWORD                  dwMajor;
      DWORD                  dwMinor;
      BYTE                   byCardNo[ACS_CARD_NO_LEN/*32*/];
      BYTE                   byName[NAME_LEN/*32*/];
      BYTE                   byMACAddr[MACADDR_LEN/*6*/];
      BYTE                   byRes[722];           
    }struACSAlarm;
    struct{
      WORD                   wDeviceType;            
      WORD                   wEventType;          
      WORD                   wChannel[MAX_CHANNUM_V30/*64*/];
      BYTE                   byAllChan;
      BYTE                   byCaseSensitive;
      BYTE                   byCombinateMode;
      BYTE                   bySearchType;
      char                   sKeyWord[MAX_POS_KEYWORDS_NUM/*3*/][MAX_POS_KEYWORD_LEN/*128*/];
      WORD                   wZoneNo;
      BYTE                   byRes[278];
    }struIOTAlarm;
  }uSeniorParam;
}NET_DVR_SEARCH_EVENT_PARAM_V50,*LPNET_DVR_SEARCH_EVENT_PARAM_V50;

Members

wMajorType

Major alarm/event types, see details below:

enum _MAIN_EVENT_TYPE_{
  EVENT_MOT_DET        = 0,
  EVENT_ALARM_IN       = 1,
  EVENT_VCA_BEHAVIOR   = 2,
  EVENT_INQUEST        = 3,
  EVENT_VCA_DETECTION  = 4,
  EVENT_POS            = 5,
  EVENT_TRIAL_CASE     = 6,
  EVENT_ACS_CASE       = 7,
  EVENT_IOT_CASE       = 8,
  EVENT_STREAM_INFO    = 100,
}MAIN_EVENT_TYPE
EVENT_MOT_DET

Motion detection

EVENT_ALARM_IN

Alarm input

EVENT_VCA_BEHAVIOR

Behavior analysis

EVENT_INQUEST

Inquest event (not support)

EVENT_VCA_DETECTION

VCA detection

EVENT_POS

POS information

EVENT_TRIAL_CASE

Trial case information (not support)

EVENT_ACS_CASE

Access control event

EVENT_IOT_CASE
IoT device event
EVENT_STREAM_INFO

Stream ID information

wMinorType

Minor alarm/event types, which vary with the major types. 0xffff-all types. For motion detection, alarm input, and POS recording, there is no minor type, so this parameter is set to "oxffff"; for access control event, refer to the integration manual of access control applications; for the major types of behavior analysis, VCA detection, and stream ID information, the corresponding minor types are shown below:

Table 1 EVENT_VCA_BEHAVIOR

Minor Type

Value

Description

EVENT_TRAVERSE_PLANE

0

Line crossing

EVENT_ENTER_AREA

1

Entering the area,support regional rule

EVENT_EXIT_AREA 2 Leaving the area, support regional rule

EVENT_INTRUSION

3

Perimeter intrusion, support regional rule

EVENT_LOITER

4

Loitering, support regional rule

EVENT_LEFT_TAKE

5

Droping/picking up, support regional rule

EVENT_PARKING

6

Parking, support regional rule

EVENT_RUN

7

Running, support regional rule

EVENT_HIGH_DENSITY

8

People density in the area, support regional rule

EVENT_STICK_UP

9

Sticking a note, support regional rule

EVENT_INSTALL_SCANNER

10

Installing card reader, support regional rule

EVENT_OPERATE_OVER_TIME

11

Operation timeout

EVENT_FACE_DETECT

12

Abnormal face detection

EVENT_LEFT

13

Unattended baggage

EVENT_TAKE

14

Object removal

EVENT_LEAVE_POSITION

15

Absence event

EVENT_TRAIL_INFO

16

Tailing

EVENT_HUMAN_ENTER

18

Human entrance

EVENT_FALL_DOWN_INFO

19

Falling down

EVENT_OBJECT_PASTE

20

Sticking script area

EVENT_FACE_CAPTURE_INFO

21

Normal face

EVENT_MULTI_FACES_INFO

22

Multiple faces

EVENT_AUDIO_ABNORMAL_INFO

23

Sudden change of sound intensity

EVENT_DETECT

24

VCA detection

EVENT_SUNGLASSES_FACE_INFO

25

Face with sunglasses

EVENT_CALLING_FACE_INFO

26

Person is making call

EVENT_VIOLENT_MOTION

27

Violent motion

EVENT_SAFETY_HELMET

28

Hart hat detection

Table 2 EVENT_VCA_DETECTION

Minor Type

Value

Description

EVENT_VCA_TRAVERSE_PLANE

1

Line crossing

EVENT_FIELD_DETECTION

2

Intrusion detection

EVENT_AUDIO_INPUT_ALARM

3

Audio loss detection

EVENT_SOUND_INTENSITY_ALARM

4

Sudden increase of sound increase/decrease detection

EVENT_FACE_DETECTION

5

Face detection

EVENT_VIRTUAL_FOCUS_ALARM

6

Defocus detection

EVENT_SCENE_CHANGE_ALARM

7

Scene change detection

EVENT_PIR_ALARM

8

PIR alarm

EVENT_ENTER_REGION

9

Region entrance

EVENT_EXIT_REGION

10

Region exiting

EVENT_LOITERING

11

Loitering

EVENT_GROUPDETECTION

12

People gathering in the area, support regional rule

EVENT_RAPIDMOVE

13

Fast moving

EVENT_PARK

14

Parking

EVENT_UNATTENDED_BAGGAGE

15

Unattended baggage

EVENT_ATTENDEDBAGGAGE

16

Object removal

EVENT_VEHICLE_DETECTION

17

Vehicle detection

Table 3 EVENT_STREAM_INFO

Minor Type

Value

Description

EVENT_STREAM_ID

0

Stream ID

EVENT_TIMING

1

Timing record

EVENT_MOTION_DETECT

2

Motion detection

EVENT_ALARM

3

Alarm record

EVENT_ALARM_OR_MOTION_DETECT

4

Alarm or motion detection

EVENT_ALARM_AND_MOTION_DETECT

5

Alarm and motion detection

EVENT_COMMAND_TRIGGER

6

Command triggering

EVENT_MANNUAL

7

Manual record

EVENT_BACKUP_VOLUME

8

Storage volume record

STREAM_EVENT_SEMAPHORE

9

Sensor alarm

STREAM_EVENT_HIDE

10

Video tempering

STREAM_EVENT_INVERSE

11

Driving in opposite directio

STREAM_EVENT_VIDEO_LOST

.

12

Video loss

STREAM_EVENT_WIRELESS_ALARM

13

Wirless alarm

STREAM_EVENT_PIR_ALARM

14

PIR alarm

STREAM_EVENT_CALLHELP_ALARM

15

Call for help alarm

STREAM_EVENT_FACESNAP

16

Face capture

STREAM_EVENT_FACE_DETECTION

17

Face detection

STREAM_EVENT_ITS_PLATE

18

Vehicle detection

STREAM_EVENT_PDC

19

People counting

STREAM_EVENT_SCENECHANGE_DETECTION

20

Scene change

STREAM_EVENT_DEFOCUS_DETECTION

21

Defocus detection

STREAM_EVENT_AUDIOEXCEPTION

22

Audio exception

VCA_EVENT_TRAVERSE_PLANE

23

Line crossing

VCA_EVENT_INTRUSION

24

Intrusion

VCA_EVENT_ENTER_AREA

25

Region entrance

VCA_EVENT_EXIT_AREA

26

Region exiting

VCA_EVENT_LOITER

27

Loitering detection

VCA_EVENT_HIGH_DENSITY

28

People gathering

VCA_EVENT_RUN

29

Fast moving

VCA_EVENT_PARKING

30

Illegal parking

VCA_EVENT_LEFT

31

Unattended baggage

VCA_EVENT_TAKE

32

Object removal

struStartTime

Start time of search, refer to the structure NET_DVR_TIME_SEARCH_COND for details.

struEndTime

Stop time of search, refer to the structure NET_DVR_TIME_SEARCH_COND for details.

byLockType

Whether to lock: 0xff-all, 0-no, 1-yes.

byRes
Reserved, set to 0.
uSeniorParam

Condition structure of searching for video files based on event/alarm, see details below:

byLen

Union size, which is 800 bytes.

struAlarmParam

Condition structure of searching for video files based on alarm input alarm, see details below:

wAlarmInNo

Alarm input No., "0xffff"-the following are invalid. For example, wAlarmInNo[0]==1&&wAlarmInNo[1]==2 indicates the alarm input event of alarm input No.1 and alarm input No.2.

byRes

Reserved, set to 0.

struMotionParam

Condition structure of searching for video files based on motion detection, see details below:

wMotDetChanNo

The channel No., "0xffff"-the following are invalid. For example,wMotDetChanNo[0]==1&&wMotDetChanNo[1]==2 indicates the motion detection event of channel No.1 and channel No.2.

byRes

Reserved, set to 0.

struVcaParam

Condition structure of searching for video files based on behavior analysis, see details below:

wChanNo

The event triggered channel No., "0xffff"-the following are invalid. For example, wChanNo[0]==1&&wChanNo[1]==2 indicates the behavior analysis event of channel No.1 and channel No.2.

byRuleID

Rule ID, 0xff-all

byRes

Reserved, set to 0.

struInquestParam

Condition structure of searching for video files based on inquest event, see details below:

byRoomIndex

The inquest room index No., starts from 1.

byRes

Reserved, set to 0.

struVCADetect VCA detection

Condition structure of searching for video files based on VCA detection, see details below:

byAll

0-Search by channel No., 1-Search in all channels.

byRes1

Reserved, set to 0.

wChanNo

VCA detection channel No., "0xffff"-the following are invalid. For example, wChanNo[0]==1&&wChanNo[1]==2 indicates the VCA detection of channel No.1 and channel No.2.

byRes

Reserved, set to 0.

struStreamIDParam

Condition structure of searching for video files with stream ID information, see details below:

struIDInfo

Stream ID information, and it is 72 bytes, refer to NET_DVR_STREAM_INFO for details.

dwCmdType

The external triggering type, which is used for NVR accessing to the cloud storage.

byBackupVolumeNum

The storage volume No., which is available for CVR.

byRes

Reserved, set to 0.

struTrialParam

Condition structure of searching for video files based on trial information, see details below:

byCaseNo

Case No.

byCaseName

Case name.

byLitigant1

Litigant No.1.

byLitigant2

Litigant No.2

byChiefJudge

Chief judge

byCaseType

Case type: 0-all, 1criminal case, 2-civil case.

byRes

Reserved, set to 0

struPosAlarm

Condition structure of searching for video files with POS information, see details below:

wChannel

Channel No., "0xffff"-the following are invalid. For example, wChannel[0]==1&&wChannel[1]==2 indicates the video with POS information of channel No.1 and channel No.2.

byAllChan

Whether to search in all channels: 0-no (wChannel is valid), 1-all channels (wChannel is invalid).

byCaseSensitive

Whether to enable case sensitive: 0-no, 1-yes.

byCombinateMode

The keyword combination mode: 0-or, 1-and.

byRes1

Reserved, set to 0.

sKeyWord

Search by keyword.

byRes

Reserved, set to 0.

struACSAlarm

Condition structure of searching for video files based on access control event, see details below:

dwMajor

Alarm/event major type, 0-all.

dwMinor

Alarm/event minor type, 0-all.

byCardNo

Card No.

byName

Name

byMACAddr

Physical MAC address.

byRes

Reserved, set to 0.

struIOTAlarm

Condition structure of searching for video files based on IoT device event, see details below:

wDeviceType

Device type: 0-access controller, 1-video intercom, 2-security control panel, 3-GJD security control panel, 4-Luminite security control panel, 5-OPTEX security control panel, 6-Detector

wEventType

Event searching sub type, it varies according to main type, 0xffff-all

wChannel

Channel No.

byAllChan

Search all channel: 0-no, the wChannel is valid, 1-all channel, the wChannel is invalid

byCaseSensitive

Case sensitivity or not: 1-no, 1-yes

byCombinateMode

Keyword combination mode: 0-or, 1-and

bySearchType

Search method: 1-according to video source, now the channel is video channel.

sKeyWord

Keyword

wZoneNo

Zone No., it is valid only when the wDeviceType values "2-security control panel" and the sub type wEventType values "1"

byRes

Reserved, set to 0.