{"id":13442780,"url":"https://github.com/RapidAI/RapidOCR","last_synced_at":"2025-03-20T15:30:51.998Z","repository":{"id":39372934,"uuid":"326610757","full_name":"RapidAI/RapidOCR","owner":"RapidAI","description":"Awesome OCR multiple programing languages toolkits based on ONNXRuntime, OpenVION and PaddlePaddle. （将PaddleOCR模型做了转换，采用ONNXRuntime推理，速度很快）","archived":false,"fork":false,"pushed_at":"2024-10-17T02:18:19.000Z","size":18972,"stargazers_count":2899,"open_issues_count":5,"forks_count":353,"subscribers_count":44,"default_branch":"main","last_synced_at":"2024-10-17T13:31:12.878Z","etag":null,"topics":["chineseocr","crnn","dbnet","easyocr","ocr","onnxocr","onnxruntime","openvino","paddleocr","rapidocr"],"latest_commit_sha":null,"homepage":"https://rapidai.github.io/RapidOCRDocs","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/RapidAI.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},"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://rapidai.github.io/RapidOCRDocs/sponsor/"}},"created_at":"2021-01-04T08:02:09.000Z","updated_at":"2024-10-17T12:19:58.000Z","dependencies_parsed_at":"2022-07-11T02:51:20.431Z","dependency_job_id":"27f78ac5-be74-4d79-8e13-23248e824718","html_url":"https://github.com/RapidAI/RapidOCR","commit_stats":{"total_commits":916,"total_committers":12,"mean_commits":76.33333333333333,"dds":0.4606986899563319,"last_synced_commit":"3f749446d69fb7df1ff7a39d23130dbc4e9c8299"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidOCR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidOCR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidOCR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidOCR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RapidAI","download_url":"https://codeload.github.com/RapidAI/RapidOCR/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221761769,"owners_count":16876664,"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","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":["chineseocr","crnn","dbnet","easyocr","ocr","onnxocr","onnxruntime","openvino","paddleocr","rapidocr"],"created_at":"2024-07-31T03:01:50.575Z","updated_at":"2025-03-20T15:30:51.985Z","avatar_url":"https://github.com/RapidAI.png","language":"Python","funding_links":["https://rapidai.github.io/RapidOCRDocs/sponsor/","https://www.buymeacoffee.com/SWHL"],"categories":["Table of Contents","Python","光学字符识别OCR","Uncategorized","Table of content"],"sub_categories":["AI - Computer Vision","网络服务_其他","Uncategorized","AI Computer Vision"],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/RapidOCR_LOGO_white.png\"  width=\"55%\" height=\"55%\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/RapidAI/RapidOCR/main/assets/RapidOCR_LOGO.png\"  width=\"55%\" height=\"55%\"\u003e\n    \u003cimg alt=\"Shows an illustrated sun in light mode and a moon with stars in dark mode.\" src=\"https://raw.githubusercontent.com/RapidAI/RapidOCR/main/assets/RapidOCR_LOGO.png\"\u003e\n  \u003c/picture\u003e\n\n\u003cdiv\u003e\u0026nbsp;\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003cb\u003e\u003cfont size=\"4\"\u003e\u003ci\u003eOpen source OCR for the security of the digital world\u003c/i\u003e\u003c/font\u003e\u003c/b\u003e\n\u003c/div\u003e\n\u003cdiv\u003e\u0026nbsp;\u003c/div\u003e\n\n\u003ca href=\"https://huggingface.co/spaces/SWHL/RapidOCRDemo\" 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://www.modelscope.cn/studios/RapidAI/RapidOCRDemo\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/魔搭-Demo-blue\"\u003e\u003c/a\u003e\n\u003ca href=\"https://aistudio.baidu.com/app/highcode/33121\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/百度AI%20Studio-Demo-blue\"\u003e\u003c/a\u003e\n\u003ca href=\"https://colab.research.google.com/github/RapidAI/RapidOCR/blob/main/assets/RapidOCRDemo.ipynb\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/RapidAI/RapidOCR/main/assets/colab-badge.svg\" alt=\"Open in Colab\"\u003e\u003c/a\u003e\n\u003ca href=\"\"\u003e\u003cimg src=\"https://img.shields.io/badge/Python-\u003e=3.6,\u003c3.13-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://github.com/RapidAI/RapidOCR/graphs/contributors\"\u003e\u003cimg src=\"https://img.shields.io/github/contributors/RapidAI/RapidOCR?color=9ea\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pepy.tech/project/rapidocr\"\u003e\u003cimg src=\"https://static.pepy.tech/personalized-badge/rapidocr?period=total\u0026units=abbreviation\u0026left_color=grey\u0026right_color=blue\u0026left_text=Downloads%20rapidocr\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pepy.tech/project/rapidocr_onnxruntime\"\u003e\u003cimg src=\"https://static.pepy.tech/personalized-badge/rapidocr_onnxruntime?period=total\u0026units=abbreviation\u0026left_color=grey\u0026right_color=blue\u0026left_text=Downloads%20Ort\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pepy.tech/project/rapidocr_openvino\"\u003e\u003cimg src=\"https://static.pepy.tech/personalized-badge/rapidocr_openvino?period=total\u0026units=abbreviation\u0026left_color=grey\u0026right_color=blue\u0026left_text=Downloads%20Vino\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pepy.tech/project/rapidocr_paddle\"\u003e\u003cimg src=\"https://static.pepy.tech/personalized-badge/rapidocr_paddle?period=total\u0026units=abbreviation\u0026left_color=grey\u0026right_color=blue\u0026left_text=Downloads%20Paddle\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/rapidocr/\"\u003e\u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/rapidocr\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/RapidAI/RapidOCR/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/RapidAI/RapidOCR?color=ccf\"\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[简体中文](./docs/README_zh.md) | English\n\u003c/div\u003e\n\n### Introduction\n\n💖 Introducing the foremost multi-platform, multi-lingual OCR tool that boasts unparalleled speed, expansive support, and complete openness. This exceptional software is entirely free and renowned for facilitating swift offline deployments. Core to its efficiency is the ONNXRuntime inference engine, offering 4 to 5 times the speed of PaddlePaddle's engine while ensuring no memory leaks.\n\n🦜 **Supported Languages**: It inherently supports Chinese and English, with self-service conversion required for additional languages. Please refer [here](https://rapidai.github.io/RapidOCRDocs/blog/2022/09/28/%E6%94%AF%E6%8C%81%E8%AF%86%E5%88%AB%E8%AF%AD%E8%A8%80/) for specific language support details.\n\n🔎 **Rationale**: Acknowledging the limitations in [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR)'s architecture, we embarked on a mission to simplify OCR inference across diverse platforms. This endeavor culminated in converting PaddleOCR's model to the versatile ONNX format and seamlessly integrating it into Python, C++, Java, and C# environments.\n\n🎓 **Etymology**: Derived from its essence, RapidOCR embodies lightness, velocity, affordability, and intelligence. Rooted in deep learning, this OCR technology underscores AI's prowess and emphasizes compact models, prioritizing swiftness without compromising efficacy.\n\n😉 **Usage Scenarios**:\n\n- **Instant Deployment**: If the pre-existing models within our repository suffice, simply leverage RapidOCR for swift deployment.\n- **Customization**: In case of specific requirements, refine PaddleOCR with your data and proceed with RapidOCR deployment, ensuring tailored results.\n\nIf our repository proves beneficial to your endeavors, kindly consider leaving a star ⭐ on GitHub to show your appreciation. It means the world to us!\n\n### Visualization ([more](https://rapidai.github.io/RapidOCRDocs/visualization/))\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/demo.gif\" alt=\"Demo\" width=\"100%\" height=\"100%\"\u003e\n\u003c/div\u003e\n\n### Installation\n\n```bash\npip install rapidocr\n```\n\n### Usage\n\n```python\nfrom rapidocr import RapidOCR\n\nengine = RapidOCR()\n\nimg_url = \"https://github.com/RapidAI/RapidOCR/blob/main/python/tests/test_files/ch_en_num.jpg?raw=true\"\nresult = engine(img_url)\nprint(result)\n\nresult.vis()\n```\n\n### Documentation\n\nFull documentation can be found on [docs](https://rapidai.github.io/RapidOCRDocs/), in Chinese.\n\n### Who use?\n\nUsed by [link](https://github.com/RapidAI/RapidOCR/discussions/286)\n\n### Acknowledgements\n\n- Many thanks to [DeliciaLaniD](https://github.com/DeliciaLaniD) for fixing the misplaced start position of scan animation in ocrweb.\n- Many thanks to [zhsunlight](https://github.com/zhsunlight) for the suggestion about parameterized call GPU reasoning and the careful and thoughtful testing.\n- Many thanks to [lzh111222334](https://github.com/lzh111222334) for fixing some bugs of rec preprocessing under python version.\n- Many thanks to [AutumnSun1996](https://github.com/AutumnSun1996) for the suggestion in the [#42](https://github.com/RapidAI/RapidOCR/issues/42).\n- Many thanks to [DeadWood8](https://github.com/DeadWood8) for providing the [document](https://rapidai.github.io/RapidOCRDocs/install_usage/rapidocr_web/nuitka_package) which packages rapidocr_web to exe by Nuitka.\n- Many thanks to [Loovelj](https://github.com/Loovelj) for fixing the bug of sorting the text boxes. For details see [issue 75](https://github.com/RapidAI/RapidOCR/issues/75).\n\n### 🎖 Code Contributors\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://github.com/RapidAI/RapidOCR/graphs/contributors\"\u003e\n    \u003cimg src=\"https://contrib.rocks/image?repo=RapidAI/RapidOCR\u0026max=400\u0026columns=20\" width=\"70%\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### [Sponsor](https://rapidai.github.io/RapidOCRDocs/sponsor/)\n\n\u003e [!IMPORTANT]\n\u003e\n\u003e If 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\u003e\n\u003e \u003cdiv align=\"left\"\u003e\n\u003e \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\u003e \u003c/div\u003e\n\n|                                                                    Sponsor                                                                     |                                                                       Applied Products                                                                        |\n| :-------: | :----------: |\n| \u003ca href=\"https://github.com/cuiliang\" title=\"cuiliang\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1972649?v=4\" width=65 height=65\u003e\u003c/a\u003e  | \u003ca href=\"https://getquicker.net/\" title=\"Quicker\"\u003e\u003cimg src=\"https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/Quicker.jpg\" width=65 height=65\u003e\u003c/a\u003e |\n| \u003ca href=\"https://github.com/Eunsolfs\" title=\"Eunsolfs\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/53815751?v=4\" width=65 height=65\u003e\u003c/a\u003e |                                                                               -                                                                               |\n\n### Citation\n\nIf you find this project useful in your research, please consider cite:\n\n```bibtex\n@misc{RapidOCR 2021,\n    title={{Rapid OCR}: OCR Toolbox},\n    author={RapidAI Team},\n    howpublished = {\\url{https://github.com/RapidAI/RapidOCR}},\n    year={2021}\n}\n```\n\n### ⭐️ Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/RapidAI/RapidOCR.svg)](https://starchart.cc/RapidAI/RapidOCR)\n\n### License\n\nThe copyright of the OCR model is held by Baidu, while the copyrights of all other engineering scripts are retained by the repository's owner.\n\nThis project is released under the [Apache 2.0 license](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRapidAI%2FRapidOCR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRapidAI%2FRapidOCR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRapidAI%2FRapidOCR/lists"}