Skip to content

Commit c339781

Browse files
committed
docs: add threshold paramter explaination
1 parent 3c3ee29 commit c339781

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ transition_detect <视频路径> [--save_clips_dir <输出目录>]
5959

6060
- `视频路径`:要处理的视频文件路径(必需)
6161
- `--save_clips_dir`:保存分割后视频片段的目录(可选)
62+
- `--threshold`: `float` 默认为0.2
63+
- 降低 threshold(如 0.3)→ 更敏感,检出更多转场(可能增加误报)。
64+
- 提高 threshold(如 0.7)→ 更严格,只保留高置信度转场(可能漏检)。
6265

6366
**示例**
6467

@@ -86,8 +89,9 @@ print(result.scenes) # 转场点列表
8689
print(result.predictions) # 预测结果
8790

8891
# 检测转场点并保存分割后的视频片段
92+
# threshold:0.2 默认值。
8993
output_dir = Path("outputs")
90-
result = model(video_path, save_video_clips_dir=output_dir)
94+
result = model(video_path, save_video_clips_dir=output_dir, threshold=0.2)
9195
```
9296

9397
**返回结果说明**

0 commit comments

Comments
 (0)