Information structure of video files searched by event.
struct{
WORD wMajorType;
WORD wMinorType;
NET_DVR_TIME_SEARCH struStartTime;
NET_DVR_TIME_SEARCH struEndTime;
NET_DVR_ADDRESS struAddr;
WORD wChan[MAX_CHANNUM_V40/*512*/];
BYTE byRes[256];
union{
BYTE byLen[800];
struct{
DWORD dwAlarmInNo;
BYTE byRes[796];
}struAlarmRet;
struct{
DWORD dwMotDetNo;
BYTE byRes[796];
}struMotionRet;
struct{
DWORD dwChanNo;
BYTE byRuleID;
BYTE byRes1[3];
BYTE byRuleName[NAME_LEN/*32*/];
NET_VCA_EVENT_UNION uEvent;
BYTE byRes[668];
}struVcaRet;
struct{
BYTE byRoomIndex;
BYTE byDriveIndex;
BYTE byRes1[6];
DWORD dwSegmentNo;
WORD wSegmetSize;
WORD wSegmentState;
BYTE byRes2[784];
}struInquestRet;
struct{
DWORD dwRecordType;
DWORD dwRecordLength;
BYTE byLockFlag;
BYTE byDrawFrameType;
BYTE byRes1[2];
BYTE byFileName[NAME_LEN/*32*/];
DWORD dwFileIndex;
BYTE byRes[752];
}struStreamIDRet;
struct{
DWORD dwChanNo;
BYTE byRes[796];
}struPosRet;
struct{
BYTE byRoomIndex;
BYTE byDriveIndex;
WORD wSegmetSize;
DWORD dwSegmentNo;
BYTE bySegmentState;
BYTE byCaseType;
BYTE byRes[2];
BYTE byCaseNo[CASE_NO_RET_LEN/*52*/];
BYTE byCaseName[CASE_NAME_RET_LEN/*64*/];
BYTE byLitigant1[LITIGANT_RET_LEN/*24*/];
BYTE byLitigant2[LITIGANT_RET_LEN/*24*/];
BYTE byChiefJudge[CHIEF_JUDGE_RET_LEN/*24*/];
BYTE byRes1[600];
}struTrialRet;
}uSeniorRet;
}NET_DVR_SEARCH_EVENT_RET_V50,*LPNET_DVR_SEARCH_EVENT_RET_V50;
Major 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_TRIAL_CASK = 6,
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_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_SUNGLASSES_FACE_INFO |
25 |
Face with sunglasses |
|
EVENT_CALLING_FACE_INFO |
26 |
Person is making call |
|
Minor Type |
Value |
Description |
|---|---|---|
|
EVENT_VCA_TRAVERSE_PLANE |
1 |
Line crossing detection |
|
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 direction |
|
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 |
Objet removal |
Start time of search, refer to the structure NET_DVR_TIME_SEARCH for details.
Stop time of search, refer to the structure NET_DVR_TIME_SEARCH for details.
Address information of video segment, which for cluster playback, refer to NET_DVR_ADDRESS for details.
Alarm triggered or event occurred channel No. 0xffff-the followings are invalid.
Reserved, set to 0.
Result union of searching for video files based on event/alarm, see details below:
Union size, it is 800 bytes.
Result structure of searching for video files based on alarm input alarm, see details below:
Result structure of searching for video files based on motion detection, see details below:
Result structure of searching for video files based on behavior analysis alarm, see details below:
Behavior analysis channel No.
Rule ID, 0xff-all rules
Reserved, set to 0.
Rule name.
Behavior analysis parameters, which depends on the parameter wMinorType, refer to the integration manual of behavior analysis applications for details.
Reserved, set to 0.
Result structure of searching for video files based on inquest event, see details below:
Inquest room No., starts from 1.
Recorder No., starts from 1.
Reserved, set to 0.
Video segment No. of this inquest, starts from 1.
Video segment size, unit: MB
Recording status: 0-normal, 1-exception, 2-unrecorded
Reserved, set to 0.
Result structure of searching for video files with stream ID information, see details below:
Recording types: 0-scheduled recording, 1-based on motion detection, 2-based on alarm input alarm, 3-based on alarm input alarm or motion detection, 4-based on alarm input alarm and motion detection, 5-based on command, 6-manual recording, 7-based on vibration alarm, 8-based on environment alarm, 9-based on VCA alarm (including driving in the opposite direction, line crossing, unattended baggage, object removal and so on), 10-based on video tampering alarm, 13-based on event (motion detection, PIR, wireless panic alarm, and so on), 24-by video montage.
Video file size.
Whether to lock: 0-no, 1-yes.
Whether to extract the frame when recording: 0-no, 1-yes.
Reserved, set to 0.
File name.
File index No. in storage volume.
Reserved, set to 0.
Result structure of searching for video files with POS information, see details below:
Result structure of searching for video files with trial information, see details below:
Inquest room No., starts from 1 .
Recorder No., starts from 1.
Video segment size, unit: MB.
Video segment No. in this inquest, starts from 1.
Recording status: 0-normal, 1-exception, 2-unrecorded.
Case type: 0-all, 1-criminal case, 2-civil case
Reserved, set to 0.
Case No.
Case name.
Litigant No.1.
Litigant No.2.
Chief judge
Reserved, set to 0.