mirror of
https://github.com/YaoFANGUK/video-subtitle-remover.git
synced 2026-04-14 00:17:32 +08:00
Some checks failed
Docker Build and Push / check-secrets (push) Successful in 2s
Docker Build and Push / build-and-push (cpu, latest) (push) Has been skipped
Docker Build and Push / build-and-push (cuda, 11.8) (push) Has been skipped
Docker Build and Push / build-and-push (cuda, 12.6) (push) Has been skipped
Docker Build and Push / build-and-push (cuda, 12.8) (push) Has been skipped
Docker Build and Push / build-and-push (directml, latest) (push) Has been skipped
Build Windows CPU / build (push) Has been cancelled
Build Windows CUDA 11.8 / build (push) Has been cancelled
Build Windows CUDA 12.6 / build (push) Has been cancelled
Build Windows CUDA 12.8 / build (push) Has been cancelled
Build Windows DirectML / build (push) Has been cancelled
- 自适应采样间隔:根据视频帧率调整(60fps+→4, 30fps+→3, 低帧率→2) - filter_and_merge_intervals 复杂度从 O(n²) 优化为 O(n log n) - detect_subtitle 区域过滤:单区域快速路径,多区域匹配即停 - 插值逻辑改用 zip 预计算 max_gap,更高效 - SubtitleDetectMode 枚举值改为英文key,通过翻译系统显示本地化名称 - 7种语言文件添加 SubtitleDetectMode 翻译(中/繁/英/日/韩/越/西) - 旧配置值自动迁移兼容 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
398 B
Python
20 lines
398 B
Python
from enum import Enum, unique
|
|
|
|
@unique
|
|
class InpaintMode(Enum):
|
|
"""
|
|
图像重绘算法枚举
|
|
"""
|
|
STTN_AUTO = "sttn-auto"
|
|
STTN_DET = "sttn-det"
|
|
LAMA = "lama"
|
|
PROPAINTER = "propainter"
|
|
OPENCV = "opencv"
|
|
|
|
@unique
|
|
class SubtitleDetectMode(Enum):
|
|
"""
|
|
字幕检测算法枚举
|
|
"""
|
|
PP_OCRv5_MOBILE = "PP_OCRv5_MOBILE"
|
|
PP_OCRv5_SERVER = "PP_OCRv5_SERVER" |