SUBSCRIBE_CALLBACK¶
Callback Definition¶
1 | |
Function Description¶
The analysis data uploaded when the subscribed intelligent event occurs is called back.
Parameter Description¶
| Parameters | Type | Remark |
|---|---|---|
| lUserIDin | LONG | User ID, the return value of NET_SDK_Login or NET_SDK_LoginEx. |
| dwCommandout | DWORD | Smart event type, refer to NET_SDK_SMART_EVENT_TYPE. |
| pBufout | char* | The data returned. |
| dwBufLenout | DWORD | The length of the returned data. |
| pUserin | void* | User-defined parameters are passed in when setting the callback function. |
Return Value¶
None
Remarks¶
Depending on the dwCommand, the corresponding data structure is as follows:
| dwCommand macro definition | dwCommand corresponding value | dwCommand meaning | Data structure definition |
|---|---|---|---|
| NET_SDK_SMART_EVENT_TYPE_OSC | 5 | Object guarding detection event (IPC only) | NET_SDK_IVE_OSC_T |
| NET_SDK_SMART_EVENT_TYPE_AVD | 6 | Video abnormality diagnosis function detection (IPC only) | NET_SDK_IVE_AVD_T |
| NET_SDK_SMART_EVENT_TYPE_VFD | 12 | Face detection (IPC only) | NET_DVR_IVE_VFD_RESULT_HEAD_T+[NET_DVR_IVE_VFD_RESULT_DATA_INFO_T+source image]+[NET_DVR_IVE_VFD_RESULT_FACE_DATA_INFO_T+face image+face feature value]+...+[NET_DVR_IVE_VFD_RESULT_FACE_DATA_INFO_T+face image+face feature value] |
| NET_SDK_SMART_EVENT_TYPE_CDD | 13 | Crowd density detection (IPC only) | _ |
| NET_SDK_SMART_EVENT_TYPE_IPD | 14 | Personnel intrusion (IPC only) | _ |
| NET_SDK_SMART_EVENT_TYPE_CPC | 15 | People counting (IPC only) | _ |
| NET_SDK_SMART_EVENT_TYPE_FACE_MATCH | 16 | Face matching | NVR NET_SDK_IVE_FACE_MATCH_T+ snap picture + NET_SDK_AVPSTORE_FACE_ABSTRACT_INFO + NET_DVR_IVE_VFD_RESULT_FACE_DATA_INFO_T+ target picture + NET_SDK_TLV_BUFFER_DESC+ background picture |
| NET_SDK_SMART_EVENT_TYPE_FACE_MATCH_FOR_IPC | 17 | Face matching (IPC only) | NET_SDK_IVE_BASE_INFO+ NET_SDK_IVE_PICTURE_INFO + fullPicture + NET_SDK_IVE_PICTURE_INFO + snapPicture |
| NET_SDK_SMART_EVENT_TYPE_PEA_FOR_IPC | 18 | Cross-border detection and area intrusion detection (IPC only) | NET_SDK_IVE_PEA_T |
| NET_SDK_SMART_EVENT_TYPE_TRAJECT | 19 | Target tracking trajectory | NET_SDK_TRAIECT_RECT |
| NET_SDK_SMART_EVENT_TYPE_VEHICE | 20 | License plate recognition (IPC only) | NET_SDK_IVE_VEHICE_HEAD_INFO + NET_SDK_IVE_VEHICE_ITEM_INFO + fullPicture + [NET_SDK_IVE_VEHICE_ITEM_INFO + snapPicture]*count |
| NET_SDK_SMART_EVENT_TYPE_AOIENTRY | 21 | Entering area event detection (IPC only) | NET_SDK_EVENT + NET_SDK_IVE_PICTURE_INFO + fullPicture + [NET_SDK_IVE_PICTURE_INFO + snapPicture]*count |
| NET_SDK_SMART_EVENT_TYPE_AOILEAVE | 22 | Leaving area event detection (IPC only) | NET_SDK_EVENT + NET_SDK_IVE_PICTURE_INFO + fullPicture + [NET_SDK_IVE_PICTURE_INFO + snapPicture]*count |
| NET_SDK_SMART_EVENT_TYPE_PASSLINE | 23 | Passing line statistics | NET_SDK_IVE_PASSLINECOUNT_T + NET_SDK_IVE_PICTURE_INFO + fullPicture + [NET_SDK_IVE_PICTURE_INFO + snapPicture]*count |
| NET_SDK_SMART_EVENT_TYPE_TRAFFIC | 24 | Traffic statistics, (specified area, IPC only) | NET_SDK_IVE_TRAFFIC_T + NET_SDK_IVE_EventData_T + fullPicture + [NET_SDK_IVE_EvenTargetData_T+ snapPicture]*count |
| NET_SDK_SMART_EVENT_TYPE_PEA_TARGET | 25 | Cross-border detection and regional intrusion detection, with target capture related information | NET_SDK_EVENT + NET_SDK_IVE_PICTURE_INFO + fullPicture + [NET_SDK_IVE_PICTURE_INFO + snapPicture]*count |
| NET_SDK_SMART_EVENT_TYPE_VSD | 26 | Video secondary structuring. | NET_SDK_IVE_VSD_HEAD_INFO + NET_SDK_IVE_PICTURE_INFO + fullPicture + [NET_SDK_IVE_VSD_TARGET_INFO + snapPicture]*count |
| NET_SDK_SMART_EVENT_TYPE_NVR_VEHICLE | 29 | Vehicle license plate event, with snapshot information (NVR only) | VEHICE_PLATE_INFO + NET_SDK_IVE_PICTURE_INFO + fullPicture + [NET_SDK_IVE_PICTURE_INFO + snapPicture] |
| NET_SDK_SMART_EVENT_TYPE_NVR_AOIENTRY | 30 | Entering the area, with snapshot information (NVR only) | NET_SDK_EVENT + NET_SDK_IVE_PICTURE_INFO + fullPicture + [NET_SDK_IVE_PICTURE_INFO + snapPicture]*count |
| NET_SDK_SMART_EVENT_TYPE_NVR_AOILEAVE | 31 | Leaving the area, with snapshot information (NVR only) | NET_SDK_EVENT + NET_SDK_IVE_PICTURE_INFO + fullPicture + [NET_SDK_IVE_PICTURE_INFO + snapPicture]*count |
| NET_SDK_SMART_EVENT_TYPE_PVD | 32 | Illegal parking detection, with snapshot information. | NET_SDK_EVENT + NET_SDK_IVE_PICTURE_INFO + fullPicture + [NET_SDK_IVE_PICTURE_INFO + snapPicture]*count |
| NET_SDK_SMART_EVENT_TYPE_LOITER | 33 | Loitering detection, with snapshot information. | NET_SDK_EVENT + NET_SDK_IVE_PICTURE_INFO + fullPicture + [NET_SDK_IVE_PICTURE_INFO + snapPicture]*count |
| NET_SDK_SMART_EVENT_TYPE_ASD | 34 | Abnormal sound. | NET_SDK_EVENT + NET_SDK_AUDIO_ABNORMAL_INFO_T*count |
| NET_SDK_SMART_EVENT_TYPE_BINOCULARCOUNT | 35 | Binocular statistics. | NET_SDK_EVENT + [NET_SDK_TLV_BUFFER_DESC + NET_SDK_IVE_BINOCULARCOUNT_T] + [NET_SDK_TLV_BUFFER_DESC+ NET_SDK_IVE_BINOCULARCOUNT_INFO_Tn] + [NET_SDK_TLV_BUFFER_DESC + (NET_SDK_IVE_BINOCULARCOUNT_RULE_T + rulePointNumANET_SDK_IVE_POINT_T + rulePointNumBNET_SDK_IVE_POINT_T)n] + [NET_SDK_TLV_BUFFER_DESC + NET_SDK_IVE_IMAGEDESC_T] + [NET_SDK_TLV_BUFFER_DESC + fullPicture] |