Yyt.Abp.HkSdk.DeepMind
1.0.2
dotnet add package Yyt.Abp.HkSdk.DeepMind --version 1.0.2
NuGet\Install-Package Yyt.Abp.HkSdk.DeepMind -Version 1.0.2
<PackageReference Include="Yyt.Abp.HkSdk.DeepMind" Version="1.0.2" />
<PackageVersion Include="Yyt.Abp.HkSdk.DeepMind" Version="1.0.2" />
<PackageReference Include="Yyt.Abp.HkSdk.DeepMind" />
paket add Yyt.Abp.HkSdk.DeepMind --version 1.0.2
#r "nuget: Yyt.Abp.HkSdk.DeepMind, 1.0.2"
#:package Yyt.Abp.HkSdk.DeepMind@1.0.2
#addin nuget:?package=Yyt.Abp.HkSdk.DeepMind&version=1.0.2
#tool nuget:?package=Yyt.Abp.HkSdk.DeepMind&version=1.0.2
Yyt.Abp.HkSdk.DeepMind
English Version
Overview
Yyt.Abp.HkSdk.DeepMind is a library that provides the functionality for .NET applications to interface with the Hikvision Super Brain ISAPI protocol, Version 1.0.2 added support for net8. Built with a modular architecture, it enables seamless integration into your existing projects. Maintained and supported by Patrick.Z, it streamlines routine development configurations in .NET applications and takes over heavy, tedious workloads for you.
Why Choose Yyt.Abp.HkSdk.DeepMind?
- Minimal Dependencies: Lightweight design with few external dependencies, keeps your project lean and efficient.
- Secure by Design: Security is prioritized from the design phase to reduce potential vulnerabilities.
- Highly Extensible: Easy to extend and customize to meet your specific business requirements.
- Battle-Tested: Proven stable and reliable through validation in multiple production projects.
Core Features
Compatible with Win32, Win64, Linux32, and Linux64 platforms.
Main Intelligent Application Features:
- Alarm Monitoring & Arm: Alarm monitoring and arming
- Face Comparison: Face comparison recognition
- Face Capture: Face snapshot capturing
- Human Body Target Recognition: Human body target detection
- Vehicle Detection: Vehicle detection
- Structured Retrieval: Structured data retrieval
- Log Management: Device log management
- Device Capability Set: Retrieve device capability information
Important Notes
**Platform & Network Requirements:** This library does not support ARM architecture platforms. The program and the monitoring device must be on the same network segment.
**Dependency Configuration:** MSBuild enables only direct dependencies by default. For transitive references, version 1.0.0 requires manually updating the
.csprojfile to enable transitive dependencies. This has been fixed in version 1.0.1.<PackageReference Include="Yyt.Abp.HkSdk.DeepMind" Version="1.0.0"> <PrivateAssets>none</PrivateAssets> <IncludeAssets>all</IncludeAssets> </PackageReference>
Code Integration Example
namespace Demo.HttpApi.Host
{
[DependsOn(
typeof(DeepinMindModule)
)]
public class DemoHttpApiHostModule : AbpModule
{
// config service & other
}
}
Code Usage Example
public class DemoService : IDemoService
{
private readonly IDeepinMindService _deepinMindService;
public DemoService(IDeepinMindService deepinMindService)
{
_deepinMindService = deepinMindService;
}
public ServiceResult<string> SetCtrlAlarmAsync(SetCtrlAlarmInput input)
{
var alarmResult = _deepinMindService.SetAlarm(new SetAlarmInput()
{
DeviceIp = "*.*.*.*",
UserId = Convert.ToInt32(token),
});
result.IsSuccess("布防成功!");
}
}
Configuration Example
appsettings.json:
{
"HKSdkDM": {
"SaveAlarmLog": false,
"StartAlarm": false,
"AlarmPushUrls": [
"http://**:**"
],
"AlarmTypes": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
30, 31, 32, 33, 54, 55, 66, 77, 83, 84,
90, 91, 92, 999
],
"ListenIp": "**"
}
}
Parameter Notes:
| Parameter | Description |
|---|---|
| StartAlarm | Whether to enable alarm reception |
| AlarmPushUrls | Alarm push URLs |
| AlarmTypes | Supported alarm types |
| ListenIp | Alarm receiving listen port |
Alarm Types:
| Code | Type |
|---|---|
| 0 | Face capture result upload |
| 1 | Face comparison result upload |
| 2 | Face detection alarm |
| 3 | ISAPI (protocol transparent transmission) alarm |
| 4 | Abnormal behavior analysis alarm |
| 5 | Passenger flow statistics alarm |
| 6 | Fire point detection alarm |
| 7 | Temperature alarm |
| 8 | AI video detection upload |
| 9 | AI image detection upload |
| 30 | Traffic capture result (old) |
| 31 | Traffic capture result (new) |
| 32 | TPS real-time vehicle passing |
| 33 | TPS statistics vehicle passing |
| 54 | Parking space detection |
| 55 | VQD alarm |
| 66 | Alarm host CID alarm |
| 77 | Video intercom event record |
| 83 | Access control host alarm |
| 84 | ID card swipe |
| 90 | Motion detection, video quality alarm |
| 91 | Motion detection, video quality alarm V30 |
| 92 | Motion detection, video quality alarm V40 |
| 999 | Others |
Chinese Version
概述
Yyt.Abp.HkSdk.DeepMind 提供了 .Net 程序对接海康超脑 ISAPI 协议功能,Version 1.0.2 增加了对net8的支持。代码采用了 Module 模块化设计,能无缝集成到项目中。该库由 Patrick.Z 提供支持,简化了 .Net 应用程序中的日常开发配置工作,为您分担繁重的工作。
为什么选择 Yyt.Abp.HkSdk.DeepMind?
- 极少依赖:轻量级设计,外部依赖少,保持项目精简高效
- 设计安全:从设计阶段就优先考虑安全性,减少潜在漏洞
- 可扩展定制:易于扩展和定制,满足特定业务需求
- 久经沙场:经过多个生产项目验证,稳定可靠
核心功能
兼容 Win32、Win64、Linux32、Linux64 平台。
主要智能应用功能包括:
- 报警监听、布防:报警监听和布防功能
- 人脸比对:人脸比对识别
- 人脸抓拍:人脸抓拍功能
- 人体目标识别:人体目标检测
- 车辆检测:车辆检测
- 结构化检索:结构化数据检索
- 日志管理:设备日志管理
- 获取设备能力集:获取设备能力信息
重要说明
**平台与网络要求:** 本库不支持 ARM 架构平台,程序和监控设备必须在同一网段。
**依赖配置:** 由于MSBuid默认启用直接依赖,所以如果类库存在传递引用时,1.0.0版本需要修改直接引用类库的csproj文件手动启用传递依赖,1.0.1版本已解决此问题。
<PackageReference Include="Yyt.Abp.HkSdk" Version="1.0.0"> <PrivateAssets>none</PrivateAssets> <IncludeAssets>all</IncludeAssets> </PackageReference>
代码模块集成示例
namespace Demo.HttpApi.Host
{
[DependsOn(
typeof(DeepinMindModule)
)]
public class DemoHttpApiHostModule : AbpModule
{
// config service & other
}
}
代码调用示例
public class DemoService : IDemoService
{
private readonly IDeepinMindService _deepinMindService;
public DemoService(IDeepinMindService deepinMindService)
{
_deepinMindService = deepinMindService;
}
public ServiceResult<string> SetCtrlAlarmAsync(SetCtrlAlarmInput input)
{
var alarmResult = _deepinMindService.SetAlarm(new SetAlarmInput()
{
DeviceIp = "*.*.*.*",
UserId = Convert.ToInt32(token),
});
result.IsSuccess("布防成功!");
}
}
配置示例
appsettings.json:
{
"HKSdkDM": {
"SaveAlarmLog": false,
"StartAlarm": false,
"AlarmPushUrls": [
"http://**:**"
],
"AlarmTypes": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
30, 31, 32, 33, 54, 55, 66, 77, 83, 84,
90, 91, 92, 999
],
"ListenIp": "**"
}
}
参数注释:
| 参数 | 说明 |
|---|---|
| StartAlarm | 是否开启接收报警 |
| AlarmPushUrls | 报警推送 URL |
| AlarmTypes | 支持报警类型 |
| ListenIp | 告警接收监听端口 |
报警类型:
| 代码 | 类型 |
|---|---|
| 0 | 人脸抓拍结果上传 |
| 1 | 人脸比对结果上传 |
| 2 | 人脸侦测报警 |
| 3 | ISAPI (协议透传) 报警 |
| 4 | 异常行为分析报警 |
| 5 | 客流量统计报警 |
| 6 | 火点检测报警 |
| 7 | 温度报警 |
| 8 | AI 上传视频检测 |
| 9 | AI 上图片检测 |
| 30 | 交通抓拍结果 (旧) |
| 31 | 交通抓拍结果 (新) |
| 32 | TPS 实时过车 |
| 33 | TPS 统计过车 |
| 54 | 停车场车位检测 |
| 55 | VQD 报警 |
| 66 | 报警主机 CID 报警 |
| 77 | 可视对讲事件记录 |
| 83 | 门禁主机报警 |
| 84 | 身份证刷卡 |
| 90 | 移动侦测、视频质量报警 |
| 91 | 移动侦测、视频质量报警 V30 |
| 92 | 移动侦测、视频质量报警 V40 |
| 999 | 其他 |
Document Version: v1.0
Created Date: July 2026
Author: Patrick.Z
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Volo.Abp.AspNetCore (>= 6.0.2)
- Volo.Abp.BackgroundWorkers (>= 6.0.2)
- Volo.Abp.Core (>= 6.0.2)
-
net8.0
- Volo.Abp.AspNetCore (>= 8.0.0)
- Volo.Abp.BackgroundWorkers (>= 8.0.0)
- Volo.Abp.Core (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.