feat: 三層階梯式 frame 取樣 + 純 Rust 運鏡分析 + pHash 去重
Phase correlation 運鏡分析 (camera_motion.rs): - ffmpeg pipe 抽幀 → 灰階 256x256 → rustfft 相位相關估 pan/tilt - 徑向功率譜估 zoom、極座標相位相關估 rotation - 中位數去噪 + none/low/high 分級 - samples_for_level: none=1, low=2, high=4 pHash 去重 (frame_dedup.rs): - 64-bit pHash (DCT 低頻) + hamming<=8 + 時間間隔去重 - scene extract 後對 jpg 去重: 387 → 317 (移除 70) 三層取樣 (scene_vlm.rs process_interval): - L0 moment=10s 保底 (SCENE_VLM_MOMENT_SEC) - L1 每個 cut 保底 1 張 (不設上限) - L2 運鏡依 level 增採, 運動路徑均勻取樣 + blurdetect 資料結構: - SceneFrame.camera_motion + selection_reason CameraMotion*/CutBaseline - VLM truncated (finish_reason=length) salvage 部分 JSON summary 其他: - face dedup 改用 per-library output dir - max_tokens 2048→4096 - config 5 項 (moment_sec/camera_motion_enabled/phash_hamming/time_gap/k) - Cargo.toml +image/ndarray/rustfft 驗證: 17e230cc force re-run → Selected 387 frames, CAM-MOTION 分析執行, pHash dedup 387→317, RESUME force=true carried over 0
This commit is contained in:
@@ -18,6 +18,11 @@ once_cell = "1.19"
|
||||
libc = "0.2"
|
||||
dotenv = "0.15"
|
||||
|
||||
# Image processing (camera motion + pHash dedup)
|
||||
image = "0.25"
|
||||
ndarray = "0.16"
|
||||
rustfft = "6"
|
||||
|
||||
# CLI
|
||||
clap = { version = "4", features = ["derive"] }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user