MCPcopy Create free account

hub / github.com/2234839/ai-nvr / functions

Functions788 in github.com/2234839/ai-nvr

MethodresizeImage
(img: Buffer)
src/ai/multimodal-analyzer.ts:255
MethodresizeImage
(img: Buffer)
src/ai/patrol.ts:206
FunctionresizeToBuffer
(img: Buffer, imageWidth: number)
src/ai/image-utils.ts:25
FunctionresolveConfirm
(result: boolean)
web/src/composables/useConfirm.ts:24
Methodroot
* 获取数据根目录
src/storage/storage-fs.ts:205
Methodscan
(dir: string, prefix: string)
src/storage/file-index.ts:254
Methodscan
(path: string)
src/storage/disk-usage.ts:199
FunctionsetBackendUrl
(url: string)
web/src/services/backend.ts:16
MethodsetClipEmbedding
设置 CLIP 图像嵌入向量(用于高精度 ReID)
src/storage/tracks.ts:251
MethodsetFfmpegPath
(path: string)
src/observer/engine.ts:50
MethodsetHomePosition
设置当前位置为初始位置
src/ptz/tplink-ptz.ts:160
MethodsetHomePosition
()
src/ptz/index.ts:128
MethodsetHomePosition
设置当前位为初始位置
src/ptz/index.ts:318
FunctionsetMany
(entries: Record<string, unknown>)
web/src/composables/usePreferences.ts:97
MethodsetPreset
ONVIF 独有:设置预置位
src/ptz/index.ts:155
MethodsetRecorder
(rec: { getContextFrames(cameraId: string, now: number, intervalMs: number, maxFrames?: number): Array<{ data:
src/ai/multimodal-analyzer.ts:115
MethodsetRecorder
(rec: Recorder)
src/observer/frame-prep.ts:34
MethodsetRecorder
(rec: Recorder)
src/observer/engine.ts:49
MethodsetRefImagesDir
(dir: string)
src/observer/engine.ts:51
MethodsetSaveSnapshot
设置快照保存回调
src/observer/result-processor.ts:49
MethodsetSemanticLabel
设置语义标签(CLIP 零样本分类结果)
src/storage/tracks.ts:243
FunctionsetSoundEvents
设置声音触发事件类型
web/src/composables/useNotification.ts:69
FunctionsetSoundVolume
设置声音音量 (0-100)
web/src/composables/useNotification.ts:63
FunctionsetVideo
设置 video 元素
web/src/composables/useFmp4Stream.ts:122
FunctionsetVisible
外部调用:设置当前视口可见状态
web/src/composables/useFmp4Stream.ts:797
Functionstart
(controller)
src/api/index.ts:790
Methodstart
启动所有摄像头
src/camera/manager.ts:61
Methodstart
()
src/camera/jpeg-extractor.ts:124
Methodstart
启动:订阅事件 + 根据模式初始化录制
src/storage/recorder.ts:118
Methodstart
启动定时清理(每小时执行一次)
src/storage/cleaner.ts:47
Methodstart
启动:初始化存储目录
src/storage/snapshots.ts:63
Methodstart
启动检测:监听检测帧事件
src/detection/motion.ts:55
Methodstart
()
src/ai/event-summarizer.ts:64
Methodstart
()
src/ai/recording-summarizer.ts:41
Methodstart
()
src/ai/track-activity.ts:83
Methodstart
()
src/ai/patrol.ts:99
Methodstart
启动监听
src/notify/dingtalk.ts:49
Methodstart
启动监听
src/notify/email.ts:58
Methodstart
启动监听
src/notify/webhook.ts:34
Methodstart
()
src/observer/scheduler.ts:49
Methodstart
()
src/observer/engine.ts:57
MethodstatRaw
* 获取文件 stat(原始 Stats 对象,异步)
src/storage/storage-fs.ts:187
Methodstate
获取当前连接状态
web/src/services/events.ts:92
Methodstop
停止引擎
src/alert/engine.ts:44
Methodstop
停止移动
src/ptz/tplink-ptz.ts:101
Methodstop
()
src/ptz/index.ts:91
Methodstop
停止移动
src/ptz/index.ts:258
Methodstop
()
src/camera/h264-fmp4-muxer.ts:641
Methodstop
停止所有摄像头
src/camera/manager.ts:112
Methodstop
()
src/camera/jpeg-extractor.ts:130
Methodstop
停止所有录像
src/storage/recorder.ts:178
Methodstop
停止定时清理
src/storage/cleaner.ts:55
Methodstop
()
src/ai/event-summarizer.ts:74
Methodstop
()
src/ai/recording-summarizer.ts:49
Methodstop
()
src/ai/track-activity.ts:104
Methodstop
()
src/ai/patrol.ts:111
Methodstop
()
src/observer/scheduler.ts:55
Methodstop
()
src/observer/engine.ts:62
Methodsubscribe
* 订阅指定摄像头的帧推送 * 连接后自动发送 subscribe 消息给后端,仅接收订阅的摄像头帧
web/src/services/events.ts:202
Functionsuccess
(message: string)
web/src/composables/useToast.ts:32
FunctiontakeDetections
(cameraId: string, lastVersion: number)
web/src/services/ws-detect-cache.ts:53
FunctiontakeFrame
(cameraId: string, lastVersion: number)
web/src/services/ws-frame-cache.ts:20
FunctiontakeLlmDescription
(cameraId: string)
web/src/services/ws-detect-cache.ts:196
FunctiontakeMatchSuggestions
(cameraId: string)
web/src/services/ws-detect-cache.ts:157
FunctiontakePatrolStatus
(cameraId: string)
web/src/services/ws-detect-cache.ts:279
FunctiontakeRuleMatch
(cameraId: string)
web/src/services/ws-detect-cache.ts:319
FunctiontakeRuleRegions
(cameraId: string)
web/src/services/ws-detect-cache.ts:237
MethodtakeSlot
并发槽位占用
src/observer/scheduler.ts:79
FunctiontakeZoneNotifications
(cameraId: string)
web/src/services/ws-detect-cache.ts:112
FunctiontoggleSound
切换声音开关
web/src/composables/useNotification.ts:57
MethodtouchSeen
* 批量更新已追踪目标的 lastSeen 和 cameraIds(轻量级,无图片处理) * 用于每帧活跃目标的元数据更新
src/storage/tracks.ts:173
MethodtryUpdateSnapshot
* 尝试为已有目标更新快照 * 当检测质量高于当前快照时才重新裁剪
src/storage/tracks.ts:195
Methodunlink
* 删除文件(异步,无磁盘统计、无索引)
src/storage/storage-fs.ts:180
Methodunregister
移除 PTZ 摄像头
src/ptz/index.ts:232
Methodupdate
更新检测线段
src/storage/cross-lines.ts:129
MethodupdateConfig
更新配置(配置变化时自动重启)
src/ai/multimodal-analyzer.ts:143
Methodupsert
添加或更新追踪标签
src/storage/track-labels.ts:59
FunctionuseCameraNameMap
(cameras: Ref<CameraInfo[]>)
web/src/composables/useCameraNameMap.ts:14
FunctionuseClock
()
web/src/composables/useClock.ts:38
FunctionuseFmp4Stream
(cameraId: Ref<string>)
web/src/composables/useFmp4Stream.ts:70
FunctionuseKeyboardShortcuts
()
web/src/composables/useKeyboard.ts:54
FunctionuseNotification
()
web/src/composables/useNotification.ts:44
FunctionuseToast
()
web/src/composables/useToast.ts:23
MethodvideoHeight
()
src/camera/h264-fmp4-muxer.ts:136
MethodvideoHeight
()
src/camera/h264-fmp4-muxer.ts:671
MethodvideoWidth
()
src/camera/h264-fmp4-muxer.ts:135
MethodvideoWidth
视频分辨率(从 moov 解析)
src/camera/h264-fmp4-muxer.ts:670
Functionwarning
(message: string)
web/src/composables/useToast.ts:34
← previous701–788 of 788, ranked by callers