update README
This commit is contained in:
parent
eb29dd4d90
commit
c63e508623
12
README.md
12
README.md
@ -67,18 +67,18 @@ The OCR process runs in parallel and is CPU intensive. It takes 3 minutes on my
|
|||||||
## API
|
## API
|
||||||
|
|
||||||
```python
|
```python
|
||||||
videocr.get_subtitles(
|
get_subtitles(
|
||||||
video_path: str, lang='eng', time_start='0:00', time_end='',
|
video_path: str, lang='eng', time_start='0:00', time_end='',
|
||||||
conf_threshold=65, sim_threshold=90, use_fullframe=False)
|
conf_threshold=65, sim_threshold=90, use_fullframe=False)
|
||||||
```
|
```
|
||||||
Return the subtitles string in SRT format.
|
Return the subtitles string in SRT format.
|
||||||
|
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|
||||||
videocr.save_subtitles_to_file(
|
save_subtitles_to_file(
|
||||||
video_path: str, file_path='subtitle.srt', lang='eng', time_start='0:00',
|
video_path: str, file_path='subtitle.srt', lang='eng', time_start='0:00', time_end='',
|
||||||
time_end='', conf_threshold=65, sim_threshold=90, use_fullframe=False)
|
conf_threshold=65, sim_threshold=90, use_fullframe=False)
|
||||||
```
|
```
|
||||||
Write subtitles to `file_path`. If the file does not exist, it will be created automatically.
|
Write subtitles to `file_path`. If the file does not exist, it will be created automatically.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user