Tool for extracting hard subtitles from videos.
Project description
rapid_videocr Package
1. Install package by pypi.
pip install rapid_videocr
2. Run by script.
- RapidVideOCR has the default
out_format
, which is one of['srt', 'txt', 'all']
, the default value isall
. - 📌
2.mp4
source: link
from rapid_videocr import RapidVideOCR
extractor = RapidVideOCR()
rgb_dir = 'TXTImages'
save_dir = 'result'
extractor(rgb_dir, save_dir)
3. Run by command line.
- Usage:
$ rapid_videocr -h usage: rapid_videocr [-h] [-i IMG_DIR] [-s SAVE_DIR] [-o {srt,txt,all}] optional arguments: -h, --help show this help message and exit -i IMG_DIR, --img_dir IMG_DIR The full path of mp4 video. -s SAVE_DIR, --save_dir SAVE_DIR The path of saving the recognition result. -o {srt,txt,all}, --out_format {srt,txt,all} Output file format. Default is "all"
- Example:
$ rapid_videocr -i TXTImages -s Results -o srt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for rapid_videocr-2.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f622a9a47c6bcb33a55283ab84c5ce3df3fea4da02680dcdfc709b757197d93 |
|
MD5 | 62ab26371482d7047c2db3d05af8566d |
|
BLAKE2b-256 | f6718ae4b505ee75d7fa892d2e8b26d7ec01f4c20ae3413dde271d0de8c93587 |