Skip to content

Extract video hard subtitles and automatically generate corresponding srt files.

License

Notifications You must be signed in to change notification settings

SWHL/RapidVideOCR

Repository files navigation

 

PyPI SemVer2.0

简体中文 | English

Introduction

  • Video hard subtitle extraction, automatically generate the corresponding srt | txt file.

  • Supported subtitle languages: Chinese | English (For other supported languages, see: List of supported languages)

  • The advantages are as follows:

    • Faster extraction: Used in conjunction with VideoSubFinder software to extract key subtitle frames faster.
    • More accurate recognition: Use RapidOCR as the recognition library.
    • More convenient to use: pip can be installed directly and used.
  • For desktop EXE version, please go to RapidVideOCRDesktop.

  • If it helps you, please give a star ⭐.

Demo

Overall framework

flowchart LR
    A[/Video/] --Extract subtitle key frame--> B(VideoSubFinder) --OCR-->C(RapidVideOCR)
    C --Convert--> D[/"SRT | TXT"/]

Installation

pip install rapid_videocr

Usage

Note

The input image path of rapid_videocr must be the path of RGBImages or TXTImages output by VideoSubFinder software.

rapid_videocr -i RGBImages

Documentation

Full documentation can be found on docs, in Chinese.

Code Contributors

Contributing

  • Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
  • Please make sure to update tests as appropriate.

If you want to sponsor the project, you can directly click the Buy me a coffee image, please write a note (e.g. your github account name) to facilitate adding to the sponsorship list below.

License

This project is released under the Apache 2.0 license.