hcnetsdk-java

海康网络HCNetSDK二次封装的Java库

License

License

Categories

Categories

Java Languages Net
GroupId

GroupId

com.github.lkqm
ArtifactId

ArtifactId

hcnetsdk-java
Last Version

Last Version

0.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

hcnetsdk-java
海康网络HCNetSDK二次封装的Java库
Project URL

Project URL

https://github.com/lkqm/hcnetsdk-java
Source Code Management

Source Code Management

https://github.com/lkqm/hcnetsdk-java

Download hcnetsdk-java

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.lkqm/hcnetsdk-java/ -->
<dependency>
    <groupId>com.github.lkqm</groupId>
    <artifactId>hcnetsdk-java</artifactId>
    <version>0.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.lkqm/hcnetsdk-java/
implementation 'com.github.lkqm:hcnetsdk-java:0.0.5'
// https://jarcasting.com/artifacts/com.github.lkqm/hcnetsdk-java/
implementation ("com.github.lkqm:hcnetsdk-java:0.0.5")
'com.github.lkqm:hcnetsdk-java:jar:0.0.5'
<dependency org="com.github.lkqm" name="hcnetsdk-java" rev="0.0.5">
  <artifact name="hcnetsdk-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.lkqm', module='hcnetsdk-java', version='0.0.5')
)
libraryDependencies += "com.github.lkqm" % "hcnetsdk-java" % "0.0.5"
[com.github.lkqm/hcnetsdk-java "0.0.5"]

Dependencies

compile (2)

Group / Artifact Type Version
com.sun.jna : jna jar 3.0.9
net.java.dev.jna : jna jar 3.2.1

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.16

test (1)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar 5.7.0

Project Modules

There are no modules declared in this project.

hcnetsdk

海康网络HCNetSDK二次封装的Java库.

<dependency>
    <groupId>com.github.lkqm</groupId>
    <artifactId>hcnetsdk-java</artifactId>
    <version>0.0.5</version>
</dependency>

支持: JDK1.7+

例子

HikDevice device = new HikDevice(hcnetsdk, ip, port, user, password);
device.opsForMaintain().reboot();

核心

  • HikDevice: 面向对象方式操作设备.
  • HikDeviceTemplate: 封装底层sdk提供便捷对设备的操作.
  • DispatchMessageCallback: 事件分发的消息处理回调.
  • JnaPathUtils: 约定大于配置的本地依赖库加载.

功能

  • 登录 (login)
  • 注销 (logout)
  • 执行操作 (doAction)
  • 获取错误 (lastError)
  • 布防 (setupDeploy)
  • 透传 (passThrough)
  • 设备配置 (getNvrConfig, setNvrConfig)
  • 修改密码 (modifyPassword)
  • 本地功能 (opsForSdk)
  • 设备维护 (opsForMaintain): 升级、重启、校时、配置文件.
  • 云台控制 (opsForPtz)
  • ...

事件

DispatchMessageCallback通过事件分发处理回调消息, 提供特定事件的抽象处理类:

  • 人脸抓拍事件: AbstractFaceSnapHandler
  • 刷证事件: AbstractFreshCardHandler

Versions

Version
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1