1 Star 0 Fork 46

张志成/SpringBoot对接集成大华人脸门禁闸机sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ReadMe_PleaseReadFirst.txt 37.69 KB
一键复制 编辑 原始数据 按行查看 历史
怪侠沈剑心 提交于 2021-08-08 17:03 . feat:初始化项目
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
【Overview】
1. Java library path: src\main\java\com\netsdk\lib
NetSDKLib.java Java library
ToolKits.java Tools file
Utils.java Load different dynamic libraries according to different platforms
All SDK callbacks are child threads.
Do not refresh the UI or do some time-consuming operations in the callback.
It is recommended that the callback function object be written as a global static to prevent it from being recycled by the system.
2. Dynamic library path:
libs\win32 win32 dynamic library
libs\win64 win64 dynamic library
libs\linux32 linux32 dynamic library
libs\linux64 linux64 dynamic library
libs\mac64 mac64 dynamic library
The lib package needs to be added to the resource resource
You need to add the name of the C dynamic library that needs to be loaded under different platforms in dynamic-lib-load.xml.
run_win32.bat win32 run script, run jar package, corresponding to jdk 1.6, this script specifies jdk
run_win64.bat win64 run script, run jar package, corresponding to jdk 1.8, this script specifies jdk
The graphical interface is not supported in the Linux environment;
only the streaming function is supported (only the corresponding code stream information can be printed on the console);
3. Chinese and English configuration files: res\
4. Demo path:
Attendance machine: src\main\java\com\netsdk\demo\frame\Attendance
Active registration: src\main\java\com\netsdk\demo\frame\AutoRegister
Face recognition: src\main\java\com\netsdk\demo\frame\FaceRecognition
Face to open the door: src\main\java\com\netsdk\demo\frame\Gate
Alarm monitoring: src\main\java\com\netsdk\demo\frame\AlarmListen.java
Capture picture: src\main\java\com\netsdk\demo\frame\CapturePicture.java
Device control: src\main\java\com\netsdk\demo\frame\DeviceControl.java
Device search and initialization: src\main\java\com\netsdk\demo\frame\DeviceSearchAndInit.java
Download the video: src\main\java\com\netsdk\demo\frame\DownLoadRecord.java
PTZ: src\main\java\com\netsdk\demo\frame\PTZControl.java
Real-time preview: src\main\java\com\netsdk\demo\frame\RealPlay.java
Intercom: src\main\java\com\netsdk\demo\frame\Talk.java
Intelligent transportation: src\main\java\com\netsdk\demo\frame\TrafficEvent.java
Thermal imaging: src\main\java\com\netsdk\demo\frame\ThermalCamera.java
VTO:src\main\java\com\netsdk\demo\VTO
Dot matrix screen configuration: src\main\java\com\netsdk\demo\frame\FaceRecognition\matrixScreen.java
Dynamic ring host: src\main\java\com\netsdk\demo\frame\scada\SCADADemo.java
The above is the interface realization of the function, the interface realization path: src\main\java\com\netsdk\demo\module\
5. Run the jar package: target\
6. Development Tools Ecplise
7. Error code corresponding file: src\main\java\com\netsdk\common\ErrorCode.java
8. package.bat pom.xml packaging script
9. Version 5.4.0 of jna.jar
///////////////////////////////////////////////// /////////////////
[Device search and initialization]
1. Function summary:
Device search and device initialization functions.
2. The NetSDK interfaces involved in the demo are as follows:
1) Device multicast and broadcast search
Start search interface: CLIENT_StartSearchDevices
Stop search interface: CLIENT_StopSearchDevices
2) Device IP unicast search
Start search interface: CLIENT_SearchDevicesByIPs
Stop search interface: CLIENT_StopSearchDevices
3. Matters needing attention:
CLIENT_SearchDevicesByIPs interface searches at most 256 devices each time
4. Related interfaces:
CLIENT_Init initialize NetSDK
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
fSearchDevicesCB device search callback
///////////////////////////////////////////////// /////////////////
【Active Registration】
1. Function summary:
Active registration is mainly used to log in to devices in batches.
This demo integrates real-time preview, talkback, and picture capture functions.
2. The NetSDK interfaces involved in the demo are as follows:
1) Active registration function
Open the service interface: CLIENT_ListenServer
Stop service interface: CLIENT_StopListenServer
2) Active registration login/logout function
Login interface: CLIENT_LoginWithHighLevelSecurity
Logout interface: CLIENT_Logout
3) Real-time preview function
Start preview interface: CLIENT_RealPlayEx
Stop preview interface: CLIENT_StopRealPlayEx
4) Snapshot function
Set the snapshot callback interface: CLIENT_SetSnapRevCallBack
Remote snapshot interface: CLIENT_SnapPictureEx
5) Intercom function
Set mode interface: CLIENT_SetDeviceMode
Start talk interface: CLIENT_StartTalkEx
Stop talkback interface: CLIENT_StopTalkEx
PC recording interface: CLIENT_RecordStart
End the recording interface of the PC: CLIENT_RecordStop
Send the received sound card data detected by the local PC to the device interface: CLIENT_TalkSendData
Send the received voice data from the device to the SDK decoding and playback interface: CLIENT_AudioDecEx
6) Configure the device to actively register information
[1]IP login/logout device function
Login interface: CLIENT_LoginWithHighLevelSecurity
Logout interface: CLIENT_Logout
[2] Registration information configuration function
Get the active registration information of the device: CLIENT_GetNewDevConfig CLIENT_ParseData Corresponding command: NetSDKLib.CFG_CMD_DVRIP
Set the active registration information of the device: CLIENT_PacketData CLIENT_SetNewDevConfig Corresponding command: NetSDKLib.CFG_CMD_DVRIP
3. Matters needing attention:
1) After receiving the device information reported by the device through opening the service, you need to log in to the device.
The difference between the active registration login device and the general IP login device is: the device ID and the login method tcpSpecCap are different when entering the parameters.
2) The active registration information of the configuration device can be set through this Demo or through the Web.
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_SetAutoReconnect Set the reconnection callback fHaveReConnect. When the device is disconnected, it will send a heartbeat packet to the device and automatically connect to the device. When the reconnection is successful, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
fServiceCallBack The callback to start the service, used to receive the device information registered by the device
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
【Face Recognition】
1. Function summary:
Face device function, mainly used for IVSS, IPC-FR, IPC-FD (only support face detection events)
Contains functions: 1) Add, delete, and modify the face database
2) Add, delete, modify and check personnel
3) Control deployment and withdrawal according to face library
4) Face recognition and face detection events
5) Real-time preview
2. The NetSDK interfaces involved in the demo are as follows:
1) Face library function
Query face database interface: CLIENT_FindGroupInfo
Add face library interface: CLIENT_OperateFaceRecognitionGroup corresponds to enumeration EM_OPERATE_FACERECONGNITION_GROUP_TYPE.NET_FACERECONGNITION_GROUP_ADD
Modify the face library interface: CLIENT_OperateFaceRecognitionGroup corresponds to the enumeration EM_OPERATE_FACERECONGNITION_GROUP_TYPE.NET_FACERECONGNITION_GROUP_MODIFY
Delete face library interface: CLIENT_OperateFaceRecognitionGroup corresponds to the enumeration EM_OPERATE_FACERECONGNITION_GROUP_TYPE.NET_FACERECONGNITION_GROUP_DELETE
2) Personnel function
Query personnel information interface: CLIENT_StartFindFaceRecognition CLIENT_DoFindFaceRecognition CLIENT_StopFindFaceRecognition
Add personnel information interface: CLIENT_OperateFaceRecognitionDB corresponding enumeration EM_OPERATE_FACERECONGNITIONDB_TYPE.NET_FACERECONGNITIONDB_ADD
Modify the personnel information interface: CLIENT_OperateFaceRecognitionDB corresponds to the enumeration EM_OPERATE_FACERECONGNITIONDB_TYPE.NET_FACERECONGNITIONDB_MODIFY
Delete personnel information interface: CLIENT_OperateFaceRecognitionDB corresponding enumeration EM_OPERATE_FACERECONGNITIONDB_TYPE.NET_FACERECONGNITIONDB_DELETE
The queried person picture is an address, you can use the download interface to download: CLIENT_DownloadRemoteFile
3) Dispatching and disarming functions
Configure control interface by face library: CLIENT_FaceRecognitionPutDisposition
Removal of control interface by face database: CLIENT_FaceRecognitionDelDisposition
4) Face recognition and face detection event function
Smart subscription interface: CLIENT_RealLoadPictureEx
Stop subscribing interface: CLIENT_StopLoadPic
Face recognition event: NetSDKLib.EVENT_IVS_FACERECOGNITION
Face detection event: NetSDKLib.EVENT_IVS_FACEDETECT
5) Real-time preview function
Display rule box interface: CLIENT_RenderPrivateData
Start preview interface: CLIENT_RealPlayEx
Stop preview interface: CLIENT_StopRealPlayEx
3. Matters needing attention:
1) Face images only support JPG format
IPC supports pictures up to 128KB
IVSS supports pictures up to 256KB
2) IPC-FD does not support face recognition events, only face detection events
3) The maximum number of face libraries supported by IPC is 5
The maximum number of face databases supported by IVSS is 20
4) Query of personnel information
[1] First call CLIENT_StartFindFaceRecognition to get the query handle
[2] On the basis of [1], the query is cycled according to the offset, and the maximum number of each query is 20
[3] Call CLIENT_StopFindFaceRecognition to close the query
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_SetAutoReconnect Set the reconnect callback fHaveReConnect. When the device is disconnected, it will send a heartbeat packet to the device and automatically connect to the device. When the reconnection is successful, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
fAnalyzerDataCallBack subscribes to callbacks to receive face recognition and face detection events
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
[Face opens the door](The main adaptation equipment is ASI equipment)
1. Function summary:
The main functions are: access control events
Add, delete, modify, check, and empty cards
Adding, deleting, modifying, and clearing of faces (the MD5 for face query is MD5, not picture address and picture information, so the realization of face query is meaningless and is not provided)
2. The NetSDK interfaces involved in the demo are as follows:
1) Access control incident
Start subscription interface: CLIENT_RealLoadPictureEx
Unsubscribe interface: CLIENT_StopLoadPic
Access control event: NetSDKLib.EVENT_IVS_ACCESS_CTL
2) Card and face operation
Add card information: the corresponding command in the CLIENT_ControlDevice interface: CtrlType.CTRLTYPE_CTRL_RECORDSET_INSERT The record set type entered in the parameter: EM_NET_RECORD_TYPE.NET_RECORD_ACCESSCTLCARD
Modify card information: The corresponding command in the CLIENT_ControlDevice interface: CtrlType.CTRLTYPE_CTRL_RECORDSET_UPDATE The record set type entered in the parameter: EM_NET_RECORD_TYPE.NET_RECORD_ACCESSCTLCARD
Delete card information: The corresponding command in the CLIENT_ControlDevice interface: CtrlType.CTRLTYPE_CTRL_RECORDSET_REMOVE The record set type entered in the parameter: EM_NET_RECORD_TYPE.NET_RECORD_ACCESSCTLCARD
Clear card information: the corresponding command in the CLIENT_ControlDevice interface: CtrlType.CTRLTYPE_CTRL_RECORDSET_CLEAR The record set type entered in the parameter: EM_NET_RECORD_TYPE.NET_RECORD_ACCESSCTLCARD
Query card information: [1] Call CLIENT_FindRecord to obtain the query handle [2] Call CLIENT_FindNextRecord to cyclically query [3] When the query is over, call CLIENT_FindRecordClose to close the query
Add face: the corresponding command in the CLIENT_FaceInfoOpreate interface: EM_FACEINFO_OPREATE_TYPE.EM_FACEINFO_OPREATE_ADD
Modify the face: the corresponding command in the CLIENT_FaceInfoOpreate interface: EM_FACEINFO_OPREATE_TYPE.EM_FACEINFO_OPREATE_UPDATE
Delete face: the corresponding command in the CLIENT_FaceInfoOpreate interface: EM_FACEINFO_OPREATE_TYPE.EM_FACEINFO_OPREATE_REMOVE
Clear face: the corresponding command in the CLIENT_FaceInfoOpreate interface: EM_FACEINFO_OPREATE_TYPE.EM_FACEINFO_OPREATE_CLEAR
3. Matters needing attention:
Query card information is cyclically query based on the number of queries each time (unlike face recognition, which is based on offset)
4. Related interfaces:
CLIENT_Init initialize NetSDK
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
fAnalyzerDataCallBack subscribes to callbacks and receives access control events
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
【Dual Channel Preview】
1. Function summary:
The main functions are: dual-channel real-time preview
2. The NetSDK interfaces involved in the demo are as follows:
1) Real-time preview function
Start preview interface: CLIENT_RealPlayEx
Stop preview interface: CLIENT_StopRealPlayEx
3. Matters needing attention:
nothing
4. Related interfaces:
CLIENT_Init initialize NetSDK
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
【PTZ control】
1. Function summary:
The main functions are: real-time preview, remote capture, eight-direction control, zoom, zoom, iris
2. The NetSDK interfaces involved in the demo are as follows:
1) Real-time preview function
Start preview interface: CLIENT_RealPlayEx
Stop preview interface: CLIENT_StopRealPlayEx
2) Remote capture
Set the snapshot callback interface: CLIENT_SetSnapRevCallBack
Command interface for issuing snapshots: CLIENT_SnapPictureEx
3) Eight directions control, zoom, zoom, iris
The CLIENT_DHPTZControlEx interface is the same, but the corresponding commands are different. Please refer to the Demo for details. The details are written in the Demo.
3. Matters needing attention:
nothing
4. Related interfaces:
CLIENT_Init initialize NetSDK
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
fSnapRev Snapshot callback, used to receive picture information
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
【Download video】
1. Function summary:
The main functions are: download video by time, download video by file, set the stream type of download video, and query video
2. The NetSDK interfaces involved in the demo are as follows:
1) Set the stream type of the downloaded video
Interface: CLIENT_SetDeviceMode Corresponding command: EM_USEDEV_MODE.NET_RECORD_STREAM_TYPE
2) Download by time
Start download interface: CLIENT_DownloadByTimeEx
Stop download interface: CLIENT_StopDownload
3) Download by file
Query recording interface: CLIENT_QueryRecordFile
Start download interface: CLIENT_DownloadByTimeEx
Stop download interface: CLIENT_StopDownload
3. Matters needing attention:
1) Download the video format as dav
2) To download by file, first query the video file, and then call the download by time interface to download the video
4. Related interfaces:
CLIENT_Init initialize NetSDK
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
fTimeDownLoadPosCallBack download callback, used to receive the progress of downloading video
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
【smart transportation】
1. Function summary:
The main functions are: real-time preview, manual capture, gate opening, intelligent subscription to traffic events
2. The NetSDK interfaces involved in the demo are as follows:
1) Real-time preview function
Start preview interface: CLIENT_RealPlayEx
Stop preview interface: CLIENT_StopRealPlayEx
2) Manual capture
CLIENT_ControlDeviceEx corresponding command: CtrlType.CTRLTYPE_MANUAL_SNAP
3) Opening gates at entrances and exits
CLIENT_ControlDeviceEx corresponding command: CtrlType.CTRLTYPE_CTRL_OPEN_STROBE
4) Subscribe to traffic events
Start subscription interface: CLIENT_RealLoadPictureEx
Stop subscribing interface: CLIENT_StopLoadPic
3. Matters needing attention:
Calling the manual capture interface will trigger the manual capture event
4. Related interfaces:
CLIENT_Init initialize NetSDK
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
fAnalyzerDataCallBack subscribes to callbacks to receive various events of intelligent transportation
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
////////////////////////////////////////////////// /////////////////
【Voice Intercom Function】
1. Function summary:
The main functions are: direct intercom, forward mode intercom
2. The NetSDK interfaces involved in the demo are as follows:
1) Set device intercom mode: CLIENT_SetDeviceMode
You need to set up several intercom modes before intercom:
Set the corresponding command of the voice intercom encoding format: NetSDKLib.EM_USEDEV_MODE.NET_TALK_ENCODE_TYPE
The corresponding command for setting the voice intercom parameters: NetSDKLib.EM_USEDEV_MODE.NET_TALK_SPEAK_PARAM
Set whether the intercom is in forwarding mode. Corresponding command: NetSDKLib.EM_USEDEV_MODE.NET_TALK_TRANSFER_MODE
The corresponding command to set the forwarding channel in forwarding mode: NetSDKLib.EM_USEDEV_MODE.NET_TALK_TALK_CHANNEL
2) Send the user's audio data to the device: CLIENT_TalkSendData
3) Decoding the audio data sent by the device: CLIENT_AudioDecEx
4) Initiate a voice intercom request to the device: CLIENT_StartTalkEx
Intercom callback implements the pfAudioDataCallBack interface
In the callback, byAudioFlag is 0 for CLIENT_TalkSendData, and for 1 CLIENT_AudioDecEx to process audio data
5) Start recording on PC: CLIENT_RecordStart
6) End the recording on the PC: CLIENT_RecordStop
7) Stop voice intercom: CLIENT_StopTalkEx
3. Matters needing attention:
All SDK callbacks are child threads, and JNA is a weak reference. It is recommended that the callback function object be written as a global static to prevent it from being recycled by the system
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
【Equipment control function】
1. Function summary:
The main functions are: set restart, get device current time, set device time
2. The NetSDK interfaces involved in the demo are as follows:
1) Device control: CLIENT_ControlDevice
When the control type (parameter emType) is CtrlType.CTRLTYPE_CTRL_REBOOT, a device restart command is issued
2) Set the current time of the device: CLIENT_SetupDeviceTime
3) Query the current time of the device: CLIENT_QueryDeviceTime
3. Matters needing attention:
Nothing
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
【Capture function】
1. Function summary:
The main functions are: real-time preview, capture (including local capture, remote capture and timing capture)
2. The NetSDK interfaces involved in the demo are as follows:
1) Real-time preview function
Start preview interface: CLIENT_RealPlayEx
Stop preview interface: CLIENT_StopRealPlayEx
2) Snapshot function
Local capture: CLIENT_CapturePictureEx
Set the snapshot callback: CLIENT_SetSnapRevCallBack
Callback to implement the fSnapRev interface
Remote snapshot, timing snapshot, stop timing snapshot: CLIENT_SnapPictureEx
Capture mode: -1: means stop capturing, 0: request one frame (remote capture), 1: means send request regularly
3. Matters needing attention:
Local capture requires real-time preview first
All SDK callbacks are child threads, and JNA is a weak reference. It is recommended that the callback function object be written as a global static to prevent it from being recycled by the system
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
CLIENT_SetAutoReconnect Set the reconnect callback fHaveReConnect. When the device is disconnected, it will send a heartbeat packet to the device and automatically connect to the device. When the reconnection is successful, the callback will receive a message
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
【Alarm monitoring function】
1. Function summary:
The main functions are: external alarm, motion detection, video occlusion, video loss, hard disk full, hard disk failure alarm report
2. The NetSDK interfaces involved in the demo are as follows:
1) Set alarm callback: CLIENT_SetDVRMessCallBack
Callback implements the fMessCallBack interface
2) Subscribe to the alarm to the device: CLIENT_StartListenEx
3) Stop subscribing to the alarm: CLIENT_StopListen
3. Matters needing attention:
All SDK callbacks are child threads, and JNA is a weak reference. It is recommended that the callback function object be written as a global static to prevent it from being recycled by the system
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
CLIENT_SetAutoReconnect Set the reconnect callback fHaveReConnect. When the device is disconnected, it will send a heartbeat packet to the device and automatically connect to the device. When the reconnection is successful, the callback will receive a message
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
【Attendance machine function】
1. Function summary:
The main functions are: access control event information display
Add/delete/update/get/query of personnel record set
Add/delete/acquire fingerprint record set by user ID
Get/delete through fingerprint ID fingerprint record set
Fingerprint collection function
2. The NetSDK interfaces involved in the demo are as follows:
1) Upload intelligent analysis data in real time: CLIENT_RealLoadPictureEx
Callback implements the fAnalyzerDataCallBack interface
2) Stop uploading intelligent analysis data: CLIENT_StopLoadPic
3) Newly added user for attendance: CLIENT_Attendance_AddUser
4) Attendance to obtain individual user information: CLIENT_Attendance_GetUser
5) Attendance modification user information: CLIENT_Attendance_ModifyUser
6) Attendance delete user: CLIENT_Attendance_DelUser
7) Retrieve user information for attendance: CLIENT_Attendance_FindUser
8) Insert fingerprint data by user ID: CLIENT_Attendance_InsertFingerByUserID
9) Find all fingerprint data under the user by user ID: CLIENT_Attendance_GetFingerByUserID
10) Delete all fingerprint data under a single user: CLIENT_Attendance_RemoveFingerByUserID
11) Get fingerprint data through fingerprint ID: CLIENT_Attendance_GetFingerRecord
12) Delete fingerprint data by fingerprint ID: CLIENT_Attendance_RemoveFingerRecord
13) Device control: CLIENT_ControlDeviceEx
The fingerprint collection command is issued when the control type (parameter emType) is CtrlType.CTRLTYPE_CTRL_CAPTURE_FINGER_PRINT
3. Matters needing attention:
All SDK callbacks are child threads, and JNA is a weak reference. It is recommended that the callback function object be written as a global static to prevent it from being recycled by the system
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
【Thermal imaging function】
1. Function summary:
The main functions are: temperature measurement point parameter query, temperature measurement item parameter query, thermal imaging temperature query, temperature distribution data acquisition and storage
2. The NetSDK interfaces involved in the demo are as follows:
1) Query the parameter value of the temperature measurement point: CLIENT_QueryDevInfo
Corresponding enumeration: NetSDKLib.EM_QUERY_DEV_INFO.RADIOMETRY_POINT_TEMPER
2) Query the parameter value of the temperature measurement item: CLIENT_QueryDevInfo
Corresponding enumeration: NetSDKLib.EM_QUERY_DEV_INFO.RADIOMETRY_TEMPER
3) Query thermal imaging temperature (enumeration value is NetSDKLib.EM_FIND.RADIOMETRY):
Start query: CLIENT_StartFind
Continue to query: CLIENT_DoFind
End query: CLIENT_StopFind
4) Acquisition of temperature distribution data
Subscription: CLIENT_RadiometryAttach
Notification to start getting heat map data: CLIENT_RadiometryFetch
Heat map data decompression and conversion: CLIENT_RadiometryDataParse
Unsubscribe: CLIENT_RadiometryDetach
3. Matters needing attention:
All SDK callbacks are child threads, and JNA is a weak reference. It is recommended that the callback function object be written as a global static to prevent it from being recycled by the system
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
CLIENT_SetAutoReconnect Set the reconnect callback fHaveReConnect. When the device is disconnected, it will send a heartbeat packet to the device and automatically connect to the device. When the reconnection is successful, the callback will receive a message
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
[Dot matrix screen download function]
old demo :
1. Function summary: Dot matrix screen information delivery
2. The NetSDK interfaces involved in the demo are as follows:
1) Interface for issuing dot matrix screen information: CLIENT_ControlDevice
Corresponding enumeration: CTRLTYPE_CTRL_SET_PARK_INFO
3. Matters needing attention:
All SDK callbacks are child threads, and JNA is a weak reference. It is recommended that the callback function object be written as global static to prevent it from being recycled by the system
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
CLIENT_SetAutoReconnect Set the reconnect callback fHaveReConnect. When the device is disconnected, it will send a heartbeat packet to the device and automatically connect to the device. When the reconnection is successful, the callback will receive a message
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
new demo :
1. Function summary: Dot matrix screen information delivery
2. The NetSDK interfaces involved in the demo are as follows:
1) Interface for issuing dot matrix screen information: CLIENT_ControlDeviceEx
Corresponding enumeration: CTRLTYPE_CTRL_SET_PARK_INFO
3. Matters needing attention:
All SDK callbacks are child threads, and JNA is a weak reference. It is recommended that the callback function object be written as global static to prevent it from being recycled by the system
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
CLIENT_SetAutoReconnect Set the reconnect callback fHaveReConnect. When the device is disconnected, it will send a heartbeat packet to the device and automatically connect to the device. When the reconnection is successful, the callback will receive a message
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
【VTO function】
1. Function summary:
The main functions are: card operation, door opening and closing, voice call, streaming, fingerprint collection, event reporting
2. The NetSDK interfaces involved in the demo are as follows:
1) Query
CLIENT_FindRecordClose //End query
CLIENT_FindRecord//Start query record
CLIENT_FindNextRecord//Query record
CLIENT_QueryDevState//Get fingerprint information
2) Card operation
CLIENT_ControlDevice//Card information operation
CLIENT_FaceInfoOpreate//Face operation
3) Open and close
CLIENT_ControlDeviceEx//Open and close the door
4) Voice call
CLIENT_SetDeviceMode// Set voice intercom encoding format
CLIENT_SetDeviceMode// Set voice intercom propaganda parameters, set whether the voice intercom is in forwarding mode
CLIENT_StartTalkEx//Start voice call
CLIENT_StopTalkEx//Stop talking
5) Pull flow
CLIENT_RealPlayEx//Real-time preview
CLIENT_StopRealPlayEx//Stop preview
6) Collect fingerprints
CLIENT_SetDVRMessCallBack//Set callback function
CLIENT_StartListenEx//Subscribe to alarm information, obtain fingerprint data through fingerprint events
7) Incident reporting
CLIENT_StartListenEx//Subscribe to common alarm events
CLIENT_RealloadPicEx//Subscribe to smart alarm events
3. Matters needing attention:
All SDK callbacks are child threads, and JNA is a weak reference. It is recommended that the callback function object be written as a global static to prevent it from being recycled by the system
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
CLIENT_SetAutoReconnect Set the reconnect callback fHaveReConnect. When the device is disconnected, it will send a heartbeat packet to the device and automatically connect to the device. When the reconnection is successful, the callback will receive a message
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
[Passenger flow statistics function]
1. Function summary:
The main functions are: passenger flow statistics
2. The NetSDK interfaces involved in the demo are as follows:
1) Customer flow statistics subscription: CLIENT_AttachVideoStatSummary
2) Cancel customer traffic statistics subscription: CLIENT_DetachVideoStatSummary
3) Device control interface: CLIENT_ControlDevice
Corresponding enumeration value: CtrlType.CTRLTYPE_CTRL_CLEAR_SECTION_STAT
4) Passenger flow statistics interface callback: fVideoStatSumCallBack
3. Matters needing attention:
All SDK callbacks are child threads, and JNA is a weak reference. It is recommended that the callback function object be written as a global static to prevent it from being recycled by the system
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
CLIENT_SetAutoReconnect Set the reconnect callback fHaveReConnect. When the device is disconnected, it will send a heartbeat packet to the device and automatically connect to the device. When the reconnection is successful, the callback will receive a message
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
///////////////////////////////////////////////// /////////////////
[Dynamic ring host function]
1. Function summary:
The main functions are: obtain equipment information, obtain equipment point information, subscribe to monitoring point alarms, subscribe to monitoring point information, and subscribe to common alarms.
2. The NetSDK interfaces involved in the demo are as follows:
1) Obtain device information:
CLIENT_QueryDevState Get the ID of the external device connected to the current host
2) Obtain equipment point information:
CLIENT_SCADAGetAttributeInfo Get device point information
3) Subscribe to the monitoring point alarm:
CLIENT_SCADAAlarmAttachInfo Subscribe to monitoring point alarm information
CLIENT_SCADAAlarmDetachInfo Unsubscribe from monitoring point alarm information
4) Subscribe to monitoring point information: fVideoStatSumCallBack
CLIENT_SCADAAttachInfo Subscribe to monitoring point information
CLIENT_SCADADetachInfo cancel monitoring point information subscription
5) Subscribe to common alarms
CLIENT_SetDVRMessCallBack Set alarm callback function interface
CLIENT_StartListenEx subscription alarm extension interface
CLIENT_StopListen stop subscribing to alarms
3. Matters needing attention:
All SDK callbacks are child threads, and JNA is a weak reference. It is recommended that the callback function object be written as a global static to prevent it from being recycled by the system
4. Related interfaces:
CLIENT_Init initializes NetSDK and sets the disconnection callback fDisConnect. When the device is disconnected, the callback will receive a message
CLIENT_SetNetworkParam Set login network environment
CLIENT_SetAutoReconnect Set the reconnect callback fHaveReConnect. When the device is disconnected, it will send a heartbeat packet to the device and automatically connect to the device. When the reconnection is successful, the callback will receive a message
CLIENT_Cleanup release NetSDK cache
CLIENT_LogOpen open log
CLIENT_LogClose close log
CLIENT_LoginWithHighLevelSecurity login
CLIENT_Logout logout
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/menglong_is_really_stupid/ibms-dahua.git
[email protected]:menglong_is_really_stupid/ibms-dahua.git
menglong_is_really_stupid
ibms-dahua
SpringBoot对接集成大华人脸门禁闸机sdk
master

搜索帮助