fix: detect
This commit is contained in:
parent
a63a58253e
commit
92db62869a
|
|
@ -22,8 +22,8 @@ from python_core.utils.logger import logger
|
||||||
scene_detect = typer.Typer(help="场景检测工具 - 重构版")
|
scene_detect = typer.Typer(help="场景检测工具 - 重构版")
|
||||||
console = Console()
|
console = Console()
|
||||||
|
|
||||||
@scene_detect.command("split")
|
@scene_detect.command("detect")
|
||||||
def split(
|
def detect(
|
||||||
video_path: Path = typer.Argument(..., help="视频文件路径"),
|
video_path: Path = typer.Argument(..., help="视频文件路径"),
|
||||||
detector_type: DetectorType = typer.Option(DetectorType.CONTENT, "--detector", "-d", help="检测器类型"),
|
detector_type: DetectorType = typer.Option(DetectorType.CONTENT, "--detector", "-d", help="检测器类型"),
|
||||||
threshold: float = typer.Option(30.0, "--threshold", "-t", help="检测阈值"),
|
threshold: float = typer.Option(30.0, "--threshold", "-t", help="检测阈值"),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue