Skip to content

Commit

Permalink
fix: Fixed issue #67
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL committed Oct 15, 2024
1 parent 296bb37 commit 05548d2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
rapid_videocr/video_sub_finder/libs
*.vscode
outputs

*.pyc

Expand Down
2 changes: 2 additions & 0 deletions rapid_videocr/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def __init__(
general_settings: Optional[str] = None,
num_threads: int = -1,
num_ocr_threads: int = 1,
**kwargs,
) -> None:
self.vsf = VideoSubFinder(
vsf_exe_path,
Expand Down Expand Up @@ -72,6 +73,7 @@ def __init__(
concat_batch=concat_batch,
out_format=out_format,
is_print_console=is_print_console,
**kwargs,
)
self.video_formats = [".mp4", ".avi", ".mov", ".mkv"]

Expand Down
2 changes: 1 addition & 1 deletion rapid_videocr/rapid_videocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __call__(
video_sub_finder_dir: Union[str, Path],
save_dir: Union[str, Path],
save_name: str = "result",
) -> None:
):
"""call
Args:
Expand Down
2 changes: 1 addition & 1 deletion rapid_videocr/video_sub_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(
general_settings: Optional[str] = None,
num_threads: int = 2,
num_ocr_threads: int = 1,
) -> None:
):
self.exe_path = vsf_exe_path
if self.exe_path is None:
raise ValueError("VSF Exe path must not be None.")
Expand Down

0 comments on commit 05548d2

Please sign in to comment.