From 7a43eb391bdebda58a7e4183272f8793c89c97a3 Mon Sep 17 00:00:00 2001 From: ywkj Date: Sun, 26 Apr 2026 19:57:03 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20README=20=E5=8F=8D?= =?UTF-8?q?=E6=98=A0=E5=BD=93=E5=89=8D=E6=9E=B6=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 补充 detect-best-and-search、detect-best、rerank 命令 - 更新鉴权架构说明(auth-rt 统一鉴权) - 补充 sessionId 和 Langfuse 追踪说明 - 更新环境变量表 Co-Authored-By: Claude Opus 4.7 --- README.md | 112 +++++++++++++++++++++++++++--------------------------- 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/README.md b/README.md index d7904c4..e43dc1b 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,22 @@ -# video-product-snapshot — 视频商品截图 +# video-product-snapshot — 视频商品以图搜图 -检测视频中的电商商品,提取最佳商品画面,并通过图片搜索在 1688 找同款。 +从视频中提取最佳商品帧,以图搜图在 1688 找同款。 ## 工作原理 -1. 使用 `ffmpeg` 按配置间隔从视频抽帧 -2. 将每帧发给视觉模型,检测是否有商品并评分 -3. 选出置信度最高的帧作为最佳商品截图 -4. 可选:用这张截图调用图片搜索 API 找同款商品 +1. `ffmpeg` 按 0.5s 间隔抽帧(最多 60 帧) +2. 视觉质量预过滤(亮度/方差剔除模糊帧) +3. 容器/架子类产品检测 → 自动选择空载帧 +4. 视觉模型多帧对比排序,选出最佳商品帧 +5. 裁剪商品区域 → 上传 → 1688 图搜 +6. 后置过滤(视觉模型判断结果是否同款)→ rerank 排序 ## 安装 ```bash +./install.sh # 安装 auth-rt + 依赖 bun install -bun run build # 输出到 dist/run.js +bun run build # 输出到 dist/run.js ``` ## 使用方法 @@ -26,77 +29,74 @@ bun dist/run.js [options] | 命令 | 说明 | |------|------| -| `detect