feat(v3): 人物模块重构 - 大模型结构化特征值替代 OpenCV 帧定位。prompt 增加 person_appearances(uid+7特征+action)并重写合并 prompt(稳定特征优先比对);gemini 透传特征字段;oracle_db events/people 加 person_appearances_json/features_json/display_uid + _merge_features;video_processor 去 cv2 改 ffprobe 校验、_store_result 聚合 uid 特征落 people、删缩略图/事件截图;person_service 聚合特征后基于特征文本 LLM 合并;api_gateway 删 3 个图接口;NAS 镜像+DDL 加新字段;fam-ui 特征卡替代头像、事件时间线人物特征块
This commit is contained in:
@@ -155,6 +155,7 @@ CREATE TABLE IF NOT EXISTS sync_events (
|
||||
ts VARCHAR(32) COMMENT '事件时间点(文本)',
|
||||
description TEXT COMMENT '事件描述',
|
||||
person_list_json LONGTEXT COMMENT '涉及人物 JSON 数组(字符串或标签)',
|
||||
person_appearances_json LONGTEXT COMMENT '该时刻人物结构化特征 JSON([{uid,features,action}])',
|
||||
is_attention_event TINYINT(1) DEFAULT 0 COMMENT 'AI 判断是否为关注事件',
|
||||
updated_at VARCHAR(32),
|
||||
synced_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
@@ -170,6 +171,8 @@ CREATE TABLE IF NOT EXISTS sync_people (
|
||||
first_seen VARCHAR(32) COMMENT '首次出现时间',
|
||||
appearances INT DEFAULT 0 COMMENT '出现次数',
|
||||
source VARCHAR(20) DEFAULT 'llm' COMMENT 'llm / manual(manual 优先不被覆盖)',
|
||||
features_json LONGTEXT COMMENT '人物结构化特征 JSON(性别/年龄/身形/发型/衣着/面部/辨识)',
|
||||
display_uid VARCHAR(100) COMMENT '大模型给的人物 UID(与 label 一致时冗余)',
|
||||
updated_at VARCHAR(32),
|
||||
synced_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
INDEX idx_label (label),
|
||||
|
||||
Reference in New Issue
Block a user