Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/op200/simple_subtitle_ocr
A simple OCR program with GUI for hard subtitles extraction. 内嵌字幕提取
https://github.com/op200/simple_subtitle_ocr
hardsub ocr srt subtitle
Last synced: 4 days ago
JSON representation
A simple OCR program with GUI for hard subtitles extraction. 内嵌字幕提取
- Host: GitHub
- URL: https://github.com/op200/simple_subtitle_ocr
- Owner: op200
- License: gpl-3.0
- Created: 2024-05-14T01:19:27.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-12-10T12:07:29.000Z (23 days ago)
- Last Synced: 2024-12-26T22:14:27.542Z (7 days ago)
- Topics: hardsub, ocr, srt, subtitle
- Language: Python
- Homepage:
- Size: 162 KB
- Stars: 15
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 安装依赖
## 必要依赖库
```
pip install opencv-python
pip install pillow
pip install numpy
```
## 有两种OCR库可供选择
### 使用[PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR/) (默认)
先安装[飞桨](https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/pip/windows-pip.html)
再安装PaddleOCR
```
pip install paddleocr
```
### 使用[EasyOCR](https://github.com/JaidedAI/EasyOCR)
先安装[PyTorch](https://pytorch.org/)
再安装EasyOCR
```
pip install easyocr
```
***
# 运行程序
```
python SS_OCR.py
```
***
# 使用说明
详见[Wiki](https://github.com/op200/Simple_Subtitle_OCR/wiki)
***
# 原理
判断前后帧的边缘差值,高于阈值的帧将被OCR