Condition structure about searching videos by event.
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;
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
Motion detection
Alarm input
Behavior analysis
Inquest event (not support)
VCA detection
POS information
Trial case information (not support)
Access control event
Stream ID information
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:
|
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 |
|
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 |
|
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 |
Start time of search, refer to the structure NET_DVR_TIME_SEARCH_COND for details.
Stop time of search, refer to the structure NET_DVR_TIME_SEARCH_COND for details.
Whether to lock: 0xff-all, 0-no, 1-yes.
Condition structure of searching for video files based on event/alarm, see details below:
Union size, which is 800 bytes.
Condition structure of searching for video files based on alarm input alarm, see details below:
Condition structure of searching for video files based on motion detection, see details below:
Condition structure of searching for video files based on behavior analysis, see details below:
Condition structure of searching for video files based on inquest event, see details below:
Condition structure of searching for video files based on VCA detection, see details below:
Condition structure of searching for video files with stream ID information, see details below:
Stream ID information, and it is 72 bytes, refer to NET_DVR_STREAM_INFO for details.
The external triggering type, which is used for NVR accessing to the cloud storage.
The storage volume No., which is available for CVR.
Reserved, set to 0.
Condition structure of searching for video files based on trial information, see details below:
Condition structure of searching for video files with POS information, see details below:
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.
Whether to search in all channels: 0-no (wChannel is valid), 1-all channels (wChannel is invalid).
Whether to enable case sensitive: 0-no, 1-yes.
The keyword combination mode: 0-or, 1-and.
Reserved, set to 0.
Search by keyword.
Reserved, set to 0.
Condition structure of searching for video files based on access control event, see details below:
Condition structure of searching for video files based on IoT device event, see details below:
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
Event searching sub type, it varies according to main type, 0xffff-all
Channel No.
Search all channel: 0-no, the wChannel is valid, 1-all channel, the wChannel is invalid
Case sensitivity or not: 1-no, 1-yes
Keyword combination mode: 0-or, 1-and
Search method: 1-according to video source, now the channel is video channel.
Keyword
Zone No., it is valid only when the wDeviceType values "2-security control panel" and the sub type wEventType values "1"
Reserved, set to 0.