Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/2234839/ai-nvr
/ functions
Functions
788 in github.com/2234839/ai-nvr
⨍
Functions
788
◇
Types & classes
243
Method
resizeImage
(img: Buffer)
src/ai/multimodal-analyzer.ts:255
Method
resizeImage
(img: Buffer)
src/ai/patrol.ts:206
Function
resizeToBuffer
(img: Buffer, imageWidth: number)
src/ai/image-utils.ts:25
Function
resolveConfirm
(result: boolean)
web/src/composables/useConfirm.ts:24
Method
root
* 获取数据根目录
src/storage/storage-fs.ts:205
Method
scan
(dir: string, prefix: string)
src/storage/file-index.ts:254
Method
scan
(path: string)
src/storage/disk-usage.ts:199
Function
setBackendUrl
(url: string)
web/src/services/backend.ts:16
Method
setClipEmbedding
设置 CLIP 图像嵌入向量(用于高精度 ReID)
src/storage/tracks.ts:251
Method
setFfmpegPath
(path: string)
src/observer/engine.ts:50
Method
setHomePosition
设置当前位置为初始位置
src/ptz/tplink-ptz.ts:160
Method
setHomePosition
()
src/ptz/index.ts:128
Method
setHomePosition
设置当前位为初始位置
src/ptz/index.ts:318
Function
setMany
(entries: Record<string, unknown>)
web/src/composables/usePreferences.ts:97
Method
setPreset
ONVIF 独有:设置预置位
src/ptz/index.ts:155
Method
setRecorder
(rec: { getContextFrames(cameraId: string, now: number, intervalMs: number, maxFrames?: number): Array<{ data:
src/ai/multimodal-analyzer.ts:115
Method
setRecorder
(rec: Recorder)
src/observer/frame-prep.ts:34
Method
setRecorder
(rec: Recorder)
src/observer/engine.ts:49
Method
setRefImagesDir
(dir: string)
src/observer/engine.ts:51
Method
setSaveSnapshot
设置快照保存回调
src/observer/result-processor.ts:49
Method
setSemanticLabel
设置语义标签(CLIP 零样本分类结果)
src/storage/tracks.ts:243
Function
setSoundEvents
设置声音触发事件类型
web/src/composables/useNotification.ts:69
Function
setSoundVolume
设置声音音量 (0-100)
web/src/composables/useNotification.ts:63
Function
setVideo
设置 video 元素
web/src/composables/useFmp4Stream.ts:122
Function
setVisible
外部调用:设置当前视口可见状态
web/src/composables/useFmp4Stream.ts:797
Function
start
(controller)
src/api/index.ts:790
Method
start
启动所有摄像头
src/camera/manager.ts:61
Method
start
()
src/camera/jpeg-extractor.ts:124
Method
start
启动:订阅事件 + 根据模式初始化录制
src/storage/recorder.ts:118
Method
start
启动定时清理(每小时执行一次)
src/storage/cleaner.ts:47
Method
start
启动:初始化存储目录
src/storage/snapshots.ts:63
Method
start
启动检测:监听检测帧事件
src/detection/motion.ts:55
Method
start
()
src/ai/event-summarizer.ts:64
Method
start
()
src/ai/recording-summarizer.ts:41
Method
start
()
src/ai/track-activity.ts:83
Method
start
()
src/ai/patrol.ts:99
Method
start
启动监听
src/notify/dingtalk.ts:49
Method
start
启动监听
src/notify/email.ts:58
Method
start
启动监听
src/notify/webhook.ts:34
Method
start
()
src/observer/scheduler.ts:49
Method
start
()
src/observer/engine.ts:57
Method
statRaw
* 获取文件 stat(原始 Stats 对象,异步)
src/storage/storage-fs.ts:187
Method
state
获取当前连接状态
web/src/services/events.ts:92
Method
stop
停止引擎
src/alert/engine.ts:44
Method
stop
停止移动
src/ptz/tplink-ptz.ts:101
Method
stop
()
src/ptz/index.ts:91
Method
stop
停止移动
src/ptz/index.ts:258
Method
stop
()
src/camera/h264-fmp4-muxer.ts:641
Method
stop
停止所有摄像头
src/camera/manager.ts:112
Method
stop
()
src/camera/jpeg-extractor.ts:130
Method
stop
停止所有录像
src/storage/recorder.ts:178
Method
stop
停止定时清理
src/storage/cleaner.ts:55
Method
stop
()
src/ai/event-summarizer.ts:74
Method
stop
()
src/ai/recording-summarizer.ts:49
Method
stop
()
src/ai/track-activity.ts:104
Method
stop
()
src/ai/patrol.ts:111
Method
stop
()
src/observer/scheduler.ts:55
Method
stop
()
src/observer/engine.ts:62
Method
subscribe
* 订阅指定摄像头的帧推送 * 连接后自动发送 subscribe 消息给后端,仅接收订阅的摄像头帧
web/src/services/events.ts:202
Function
success
(message: string)
web/src/composables/useToast.ts:32
Function
takeDetections
(cameraId: string, lastVersion: number)
web/src/services/ws-detect-cache.ts:53
Function
takeFrame
(cameraId: string, lastVersion: number)
web/src/services/ws-frame-cache.ts:20
Function
takeLlmDescription
(cameraId: string)
web/src/services/ws-detect-cache.ts:196
Function
takeMatchSuggestions
(cameraId: string)
web/src/services/ws-detect-cache.ts:157
Function
takePatrolStatus
(cameraId: string)
web/src/services/ws-detect-cache.ts:279
Function
takeRuleMatch
(cameraId: string)
web/src/services/ws-detect-cache.ts:319
Function
takeRuleRegions
(cameraId: string)
web/src/services/ws-detect-cache.ts:237
Method
takeSlot
并发槽位占用
src/observer/scheduler.ts:79
Function
takeZoneNotifications
(cameraId: string)
web/src/services/ws-detect-cache.ts:112
Function
toggleSound
切换声音开关
web/src/composables/useNotification.ts:57
Method
touchSeen
* 批量更新已追踪目标的 lastSeen 和 cameraIds(轻量级,无图片处理) * 用于每帧活跃目标的元数据更新
src/storage/tracks.ts:173
Method
tryUpdateSnapshot
* 尝试为已有目标更新快照 * 当检测质量高于当前快照时才重新裁剪
src/storage/tracks.ts:195
Method
unlink
* 删除文件(异步,无磁盘统计、无索引)
src/storage/storage-fs.ts:180
Method
unregister
移除 PTZ 摄像头
src/ptz/index.ts:232
Method
update
更新检测线段
src/storage/cross-lines.ts:129
Method
updateConfig
更新配置(配置变化时自动重启)
src/ai/multimodal-analyzer.ts:143
Method
upsert
添加或更新追踪标签
src/storage/track-labels.ts:59
Function
useCameraNameMap
(cameras: Ref<CameraInfo[]>)
web/src/composables/useCameraNameMap.ts:14
Function
useClock
()
web/src/composables/useClock.ts:38
Function
useFmp4Stream
(cameraId: Ref<string>)
web/src/composables/useFmp4Stream.ts:70
Function
useKeyboardShortcuts
()
web/src/composables/useKeyboard.ts:54
Function
useNotification
()
web/src/composables/useNotification.ts:44
Function
useToast
()
web/src/composables/useToast.ts:23
Method
videoHeight
()
src/camera/h264-fmp4-muxer.ts:136
Method
videoHeight
()
src/camera/h264-fmp4-muxer.ts:671
Method
videoWidth
()
src/camera/h264-fmp4-muxer.ts:135
Method
videoWidth
视频分辨率(从 moov 解析)
src/camera/h264-fmp4-muxer.ts:670
Function
warning
(message: string)
web/src/composables/useToast.ts:34
← previous
701–788 of 788, ranked by callers