Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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. 内嵌字幕提取

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