Skip to main content

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 is all.
  • 📌 2.mp4 source: link
from rapid_videocr import RapidVideOCR

extractor = RapidVideOCR()

mp4_path = '2.mp4'
ocr_result = extractor(mp4_path, out_format='srt')
print(ocr_result)

3. Run by command line.

  • Usage:
    $ rapid_videocr -h
    usage: rapid_videocr [-h] [-mp4 MP4_PATH] [-o {srt,txt,all}]
    
    optional arguments:
    -h, --help            show this help message and exit
    -mp4 MP4_PATH, --mp4_path MP4_PATH
                            The full path of mp4 video.
    -o {srt,txt,all}, --out_format {srt,txt,all}
                            Output file format. Default is "all"
    
  • Example:
    $ rapid_videocr -o srt -mp4 2.mp4
    

4. Result.

  • Return value.
    [
        [0, '00:00:00,041', '00:00:00,416', '空间里面他绝对赢不了的'],
        [10, '00:00:00,458', '00:00:01,166', '我进去帮他'],
        [37, '00:00:01,583', '00:00:02,541', '你们接着善后']
    ]
    

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

If you're not sure about the file name format, learn more about wheel file names.

rapid_videocr-1.1.10-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file rapid_videocr-1.1.10-py3-none-any.whl.

File metadata

  • Download URL: rapid_videocr-1.1.10-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for rapid_videocr-1.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b5f9fc3b707ccef8ade55d1d116d50f7847d7599724e9e356bb9127c0a26b03c
MD5 c84be6ff2eec2ff0dc85c8ac0e0b8b19
BLAKE2b-256 26d1c35301ef2698887ae37a263e02962387d5452a8dd52c40bc0e787705b2b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page