Intermediate Tutorial
Introduction¶
This article is aimed towards helping beginner Python programmers to quickly start using the RapidVideOCR subtitle extraction tool
Supported operating systems: Windows | Mac | Linux
Environment Configuration¶
1. Install VideoSubFinder (used for extracting subtitle keyframes)¶
[RapidVideOCR extras] VideoSubFinder subtitle keyframe extraction tutorial
2. Install python(used for running RapidVideOCR)¶
Tip
Disclaimer: Some of the following images are from 终极保姆教's tutorial on installing Python_3.10.7
1. Download the Python installer¶
Open the official Python website → https://www.python.org, and select the installer for your own operating system (VideoSubFinder is currently only available for Windows)

2. Find the version you want¶
Take Python 3.10.7 for example, if the download speed is too slow you can join the RapidVideOCR QQ group: (706807542) to download the files.

3. After the download is complete, double-click to open the exe and start the installation¶
Click Customize installation and select the installation location. Also, remember to check the last item Add Python 3.10 to PATH

4. Click Next¶

5. Check the installation path¶

6. Click install, and wait for the installation to finish¶

7. Press Win + r
input cmd
, and press Enter to open the command prompt¶

8. Enter python and see if an output something similar to the following image appears. If so, then the installation was successful¶

9. Add the Scripts
directory to the environment variables¶
-
Press
Win + q
enterEdit the system
→ Click Edit the system environment variables -
Click Environment Variables → User variables → Path → Edit
-
Create a new entry for the Script directory under the Python installation directory, as shown in the image below, and remember to click save.

3. Install RapidVideOCR¶
1. Press Win + r
input cmd
, and press Enter to open the command prompt¶

2. Install rapid_videocr
¶

3. To test whether the installation was successful, enter rapid_videocr -h
¶

4. Command line usage¶
Press Win + r
input cmd
, and press Enter to open the command prompt
RGBImages
is generated by VideoSubFinder and its output path can be customized, for example: G:\ProgramFiles\_self\RapidVideOCR\test_files\RGBImages
and so on.

5. Script usage¶
- Create a new TXT file on the desktop and name it
rapid_videocr.py
. Note that the file extension is changed to*.py
. -
Open
rapid_videocr.py
with Notepad and copy the following code into it -
Change
rgb_dir
to the path to theRGBImages
directory generated by VideoSubFinder。 -
Press
Win + r
and open the command prompt, and run the following commands