MCPcopy Index your code
hub / github.com/2234839/ai-nvr

github.com/2234839/ai-nvr @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,031 symbols 2,533 edges 88 files 537 documented · 52%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

JK NVR

AI 驱动的智能网络视频录像机,基于 Bun + Vue 3 构建。

功能

  • RTSP 摄像头接入,实时监控与录像
  • 变动检测、ROI 区域监控、越线检测
  • AI 场景分析(多模态 LLM)、CLIP 目标分类、语义搜索
  • 目标追踪、轨迹、热力图
  • 告警规则引擎 + 通知推送(Webhook / 钉钉 / 邮件)
  • PTZ 云台控制(ONVIF / TP-Link)
  • PWA 离线支持,中英双语

快速开始

git clone https://github.com/2234839/ai-nvr.git
cd jk
bun install
cd web && bun install && cd ..

cp nvr_config.yml.example nvr_config.yml
# 编辑 nvr_config.yml,填入摄像头 RTSP 地址等配置

bun run src/index.ts

访问 http://localhost:3100

配置

参考 nvr_config.yml.example

致谢

感谢 LINUX DO 社区的佬友们,这个项目的成长离不开社区的交流与支持。

License

MIT

Extension points exported contracts — how you extend this code

PtzDriverInstance (Interface)
PTZ 驱动统一接口 [4 implementers]
src/ptz/index.ts
FpsCounter (Interface)
帧率统计窗口
src/monitor.ts
DbRow (Interface)
数据库原始行
src/alert/storage.ts
Fmp4SegmentEntry (Interface)
fMP4 环形缓冲区中的一个 segment 条目
src/storage/fmp4-ring-buffer.ts
CameraState (Interface)
每个摄像头的变动检测状态
src/detection/motion.ts
InferenceRecord (Interface)
单次推理记录
src/ai/metrics.ts
DingTalkMessage (Interface)
钉钉机器人 markdown 消息请求体
src/notify/dingtalk.ts
DbRow (Interface)
数据库原始行类型
src/observer/storage.ts

Core symbols most depended-on inside this repo

push
called by 273
src/storage/fmp4-ring-buffer.ts
get
called by 268
src/storage/preferences.ts
set
called by 115
src/storage/preferences.ts
on
called by 79
src/event-bus.ts
delete
called by 71
src/storage/preferences.ts
query
called by 63
src/storage/events.ts
get
called by 54
src/runtime-config.ts
set
called by 49
src/config.ts

Shape

Method 590
Function 198
Interface 137
Class 106

Languages

TypeScript100%

Modules by API surface

src/camera/h264-fmp4-muxer.ts49 symbols
src/storage/tracks.ts46 symbols
src/ptz/index.ts43 symbols
src/storage/recorder.ts36 symbols
src/api/index.ts31 symbols
web/src/composables/useFmp4Stream.ts29 symbols
src/storage/storage-fs.ts24 symbols
web/src/services/ws-detect-cache.ts23 symbols
src/ai/clip-service.ts23 symbols
src/config.ts22 symbols
src/storage/events.ts21 symbols
src/storage/file-index.ts20 symbols

For agents

$ claude mcp add ai-nvr \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact