{"id":13988805,"url":"https://github.com/SWHL/RapidVideOCR","last_synced_at":"2025-07-22T09:31:31.690Z","repository":{"id":40437591,"uuid":"405589029","full_name":"SWHL/RapidVideOCR","owner":"SWHL","description":"🎦 Extract video hard subtitles and automatically generate corresponding srt files. ","archived":false,"fork":false,"pushed_at":"2025-06-26T00:23:06.000Z","size":18662,"stargazers_count":413,"open_issues_count":2,"forks_count":50,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-26T01:25:59.865Z","etag":null,"topics":["ocr","subtitle","video","videosubfinder"],"latest_commit_sha":null,"homepage":"https://swhl.github.io/RapidVideOCR/docs","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SWHL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":"https://raw.githubusercontent.com/RapidAI/.github/6db6b6b9273f3151094a462a61fbc8e88564562c/assets/Sponsor.png"}},"created_at":"2021-09-12T08:34:03.000Z","updated_at":"2025-06-26T00:19:06.000Z","dependencies_parsed_at":"2024-06-27T21:04:44.033Z","dependency_job_id":"c4787fa3-08f8-484d-8754-1f3179397fb7","html_url":"https://github.com/SWHL/RapidVideOCR","commit_stats":{"total_commits":265,"total_committers":2,"mean_commits":132.5,"dds":"0.0037735849056603765","last_synced_commit":"320ab5b3798047f9a22d3eb6d32077525ba7c3fd"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/SWHL/RapidVideOCR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FRapidVideOCR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FRapidVideOCR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FRapidVideOCR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FRapidVideOCR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SWHL","download_url":"https://codeload.github.com/SWHL/RapidVideOCR/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FRapidVideOCR/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266465083,"owners_count":23933060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ocr","subtitle","video","videosubfinder"],"created_at":"2024-08-09T13:01:22.254Z","updated_at":"2025-07-22T09:31:31.677Z","avatar_url":"https://github.com/SWHL.png","language":"Python","funding_links":["https://raw.githubusercontent.com/RapidAI/.github/6db6b6b9273f3151094a462a61fbc8e88564562c/assets/Sponsor.png","https://www.buymeacoffee.com/SWHL"],"categories":["Python"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/SWHL/RapidVideOCR/main/assets/logo.png\" width=\"55%\" height=\"55%\"/\u003e\n\n\u003cdiv\u003e\u0026nbsp;\u003c/div\u003e\n\n\u003ca href=\"https://huggingface.co/spaces/SWHL/RapidVideOCR\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/%F0%9F%A4%97-Hugging Face Demo-blue\"\u003e\u003c/a\u003e\n\u003ca href=\"https://colab.research.google.com/github/SWHL/RapidVideOCR/blob/main/assets/RapidVideOCRDemo.ipynb\"\u003e\u003cimg src=\"https://colab.research.google.com/assets/colab-badge.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"\"\u003e\u003cimg src=\"https://img.shields.io/badge/Python-\u003e=3.6-aff.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"\"\u003e\u003cimg src=\"https://img.shields.io/badge/OS-Linux%2C%20Win%2C%20Mac-pink.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/rapid-videocr/\"\u003e\u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/rapid_videocr\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/SWHL/RapidVideOCR/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/SWHL/RapidVideOCR?color=ccf\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pepy.tech/project/rapid-videocr\"\u003e\u003cimg src=\"https://static.pepy.tech/personalized-badge/rapid-videocr?period=total\u0026units=abbreviation\u0026left_color=grey\u0026right_color=blue\u0026left_text=Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://semver.org/\"\u003e\u003cimg alt=\"SemVer2.0\" src=\"https://img.shields.io/badge/SemVer-2.0-brightgreen\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/psf/black\"\u003e\u003cimg src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"\u003e\u003c/a\u003e\n\n[简体中文](https://github.com/SWHL/RapidVideOCR/blob/main/docs/README_zh.md) | English\n\u003c/div\u003e\n\n### Introduction\n\n- Video hard subtitle extraction, automatically generate the corresponding `srt | ass | txt` file.\n- Supported subtitle languages: Chinese | English (For other supported languages, see: [List of supported languages](https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.1/doc/doc_ch/multi_languages.md#%E8%AF%AD%E7%A7%8D%E7%BC%A9%E5%86%99))\n- The advantages are as follows:\n    - **Faster extraction**: Used in conjunction with [VideoSubFinder](https://sourceforge.net/projects/videosubfinder/) software to extract key subtitle frames faster.\n    - **More accurate recognition**: Use [RapidOCR](https://github.com/RapidAI/RapidOCR) as the recognition library.\n    - **More convenient to use**: pip can be installed directly and used.\n\n- For desktop EXE version, please go to [RapidVideOCRDesktop](https://github.com/SWHL/RapidVideOCRDesktop).\n- If it helps you, please give a star ⭐.\n\n### [Online Demo](https://huggingface.co/spaces/SWHL/RapidVideOCR)\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/SWHL/RapidVideOCR/releases/download/v2.0.1/OnlineDemo.gif\" alt=\"Demo\" width=\"100%\" height=\"100%\"\u003e\n\u003c/div\u003e\n\n### Overall framework\n\n```mermaid\nflowchart LR\n    A[/Video/] --Extract subtitle key frame--\u003e B(VideoSubFinder) --OCR--\u003eC(RapidVideOCR)\n    C --Convert--\u003e D[/\"SRT | ASS | TXT\"/]\n```\n\n### Installation\n\n```bash\npip install rapid_videocr\n```\n\n### Usage\n\n\u003e [!NOTE]\n\u003e\n\u003e The input image path of `rapid_videocr` must be the path of **RGBImages** or **TXTImages** output by **VideoSubFinder** software.\n\n```bash\nrapid_videocr -i RGBImages\n```\n\nor python script:\n\n```python\nfrom rapid_videocr import RapidVideOCR, RapidVideOCRInput\n\ninput_args = RapidVideOCRInput(is_batch_rec=False)\nextractor = RapidVideOCR(input_args)\n\nrgb_dir = \"tests/test_files/RGBImages\"\nsave_dir = \"outputs\"\nsave_name = \"a\"\n\n# outputs/a.srt  outputs/a.ass  outputs/a.txt\nextractor(rgb_dir, save_dir, save_name=save_name)\n```\n\n### Documentation\n\nFull documentation can be found on [docs](https://swhl.github.io/RapidVideOCR/docs), in Chinese.\n\n### Code Contributors\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://github.com/SWHL/RapidVideOCR/graphs/contributors\"\u003e\n    \u003cimg src=\"https://contrib.rocks/image?repo=SWHL/RapidVideOCR\" width=\"20%\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### Contributing\n\n- Pull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n- Please make sure to update tests as appropriate.\n\n### [Sponsor](https://swhl.github.io/RapidVideOCR/docs/sponsor/)\n\nIf you want to sponsor the project, you can directly click the **Buy me a coffee** image, please write a note (e.g. your github account name) to facilitate adding to the sponsorship list below.\n\n\u003cdiv align=\"left\"\u003e\n  \u003ca href=\"https://www.buymeacoffee.com/SWHL\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/RapidAI/.github/main/assets/buymeacoffe.png\" width=\"30%\" height=\"30%\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n### License\n\nThis project is released under the [Apache 2.0 license](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSWHL%2FRapidVideOCR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSWHL%2FRapidVideOCR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSWHL%2FRapidVideOCR/lists"}