Skip to content

Extract Subtitles From Video 视频字幕提取 帧间差分法识别关键帧 OCR识别

License

Notifications You must be signed in to change notification settings

shawnsky/extract-subtitles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subtitles Extraction

This project is used to extract subtitles from the video. First, the key frames is extracted from the video, and then the subtitle area of the frame picture is cropped, and the text is recognized by the OCR. Extract key frames from Amanpreet Walia.

Getting Started

Install following dependences

Install Tesseract Ocr

Download and run it, select language support you want. Then modify the ../site-packages/pytesseract/pytesseract.py :

tesseract_cmd = 'X:\\Tesseract-OCR\\tesseract.exe' (your install path)

Run

λ python extract_subtitles.py <videopath> <Paremeter to select how many frames you want>

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Extract Subtitles From Video 视频字幕提取 帧间差分法识别关键帧 OCR识别

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages