Metadata-Version: 2.1
Name: rapid-videocr
Version: 1.1.2
Summary: RapidVideOCR
Home-page: https://github.com/SWHL/RapidVideOCR.git
Author: SWHL
Author-email: liekkaskono@163.com
License: Apache-2.0
Keywords: rapidocr,videocr,subtitle
Platform: Any
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rapidocr-onnxruntime
Requires-Dist: tqdm (>=4.52.0)

## rapid_videocr Package
<p>
    <a href=""><img src="https://img.shields.io/badge/Python->=3.7,<=3.10-aff.svg"></a>
    <a href=""><img src="https://img.shields.io/badge/OS-Linux%2C%20Win%2C%20Mac-pink.svg"></a>
</p>


### 1. Install package by pypi.
```bash
$ pip install rapid_videocr
```

### 2. Run by script.
```python
from rapid_videocr import RapidVideOCR

extractor = RapidVideOCR()
mp4_path = 'assets/test_video/2.mp4'
ocr_result = extractor(mp4_path)
print(ocr_result)
```

### 3. Run by command line.
```bash
$ rapid_videocr --mp4_path xxx.mp4
```

### 4. Result.
- Return value.
    ```text
    [
        [0, '00:00:00,041', '00:00:00,416', '空间里面他绝对赢不了的'],
        [10, '00:00:00,458', '00:00:01,166', '我进去帮他'],
        [37, '00:00:01,583', '00:00:02,541', '你们接着善后']
    ]
    ```

