SkillAgentSearch skills...

Hardsub2SRT

Get subtitles from a hardsubbed video using OCR

Install / Use

/learn @iWumboUWumbo2/Hardsub2SRT
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Hardsub2SRT

Tested on Linux with WSL2

Requirements are opencv for C++ (Install it with your package manager). Compile threshold.cc with the following command

g++ -O3 -std=c++11 threshold.cc `pkg-config --cflags --libs opencv4` -o threshold

Python requirements are easyocr, jellyfish, srt

To install python requirements navigate to code directory and run this command: pip install -r requirements.txt

If you encounter problems with installing PyTorch (a dependency of easyocr) please visit the website here https://pytorch.org/get-started/locally/ and follow the given instructions to install PyTorch, and then run the command above once again.

Also ffmpeg must be installed

I'll probably convert the bash script to python and also may convert threshold to python but I'm worried about the performance hit. Had to use easyOCR instead of tesseract cause tesseract was just not as accurate.

Here's the link to the tesseract code if you can fix it. https://pastebin.com/7ja1NQeP. I assume it would be more performant.

Related Skills

View on GitHub
GitHub Stars5
CategoryContent
Updated2y ago
Forks3

Languages

Python

Security Score

55/100

Audited on Aug 10, 2023

No findings