{"id":22111734,"url":"https://github.com/agentmaker/agentclpr","last_synced_at":"2025-06-28T16:40:34.566Z","repository":{"id":40608536,"uuid":"411201382","full_name":"AgentMaker/AgentCLPR","owner":"AgentMaker","description":"Chinese license plate recognition","archived":false,"fork":false,"pushed_at":"2021-11-13T05:14:06.000Z","size":9434,"stargazers_count":28,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T04:41:38.987Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/AgentMaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-28T08:38:47.000Z","updated_at":"2023-10-24T04:36:32.000Z","dependencies_parsed_at":"2022-08-24T23:41:27.330Z","dependency_job_id":null,"html_url":"https://github.com/AgentMaker/AgentCLPR","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentMaker%2FAgentCLPR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentMaker%2FAgentCLPR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentMaker%2FAgentCLPR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentMaker%2FAgentCLPR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AgentMaker","download_url":"https://codeload.github.com/AgentMaker/AgentCLPR/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227543361,"owners_count":17785195,"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":[],"created_at":"2024-12-01T10:51:52.450Z","updated_at":"2025-06-28T16:40:34.548Z","avatar_url":"https://github.com/AgentMaker.png","language":"Python","readme":"# AgentCLPR\n\n![GitHub forks](https://img.shields.io/github/forks/AgentMaker/AgentCLPR)\n![GitHub Repo stars](https://img.shields.io/github/stars/AgentMaker/AgentCLPR)\n![Pypi Downloads](https://pepy.tech/badge/agentclpr)\n![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/AgentMaker/AgentCLPR?include_prereleases)\n![GitHub](https://img.shields.io/github/license/AgentMaker/AgentCLPR) \n\n## 简介\n\n* 一个基于 [ONNXRuntime](https://github.com/microsoft/onnxruntime)、[AgentOCR](https://github.com/AgentMaker/AgentOCR) 和 [License-Plate-Detector](https://github.com/zeusees/License-Plate-Detector) 项目开发的中国车牌检测识别系统。\n\n## 车牌识别效果\n\n* 支持多种车牌的检测和识别（其中单层车牌识别效果较好）：\n\n    * 单层车牌：\n\n        ![](https://img-blog.csdnimg.cn/e5801d1a4d394d8ba7b50bed4b0a6b55.png)\n\n            [[[[373, 282], [69, 284], [73, 188], [377, 185]], ['苏E05EV8', 0.9923506379127502]]]\n            [[[[393, 278], [318, 279], [318, 257], [393, 255]], ['VA30093', 0.7386096119880676]]]\n            [[[[[487, 366], [359, 372], [361, 331], [488, 324]], ['皖K66666', 0.9409016370773315]]]]\n            [[[[304, 500], [198, 498], [199, 467], [305, 468]], ['鲁QF02599', 0.995299220085144]]]\n            [[[[309, 219], [162, 223], [160, 181], [306, 177]], ['使198476', 0.9938704371452332]]]\n            [[[[957, 918], [772, 920], [771, 862], [956, 860]], ['陕A06725D', 0.9791222810745239]]]\n\n    * 双层车牌：\n    \n        ![](https://ai-studio-static-online.cdn.bcebos.com/4e34243377b8461e90ae4a5b5b63577d2d1434b2811245a1a6ea86a76752f0e6)\n\n            [[[[399, 298], [256, 301], [256, 232], [400, 230]], ['浙G66666', 0.8870148431461757]]]\n            [[[[398, 308], [228, 305], [227, 227], [398, 230]], ['陕A00087', 0.9578166644088313]]]\n            [[[[352, 234], [190, 244], [190, 171], [352, 161]], ['宁A66666', 0.9958433652812175]]]\n        \n## 快速使用\n\n* 快速安装\n\n    ```bash\n    # 安装 AgentCLPR\n    $ pip install agentclpr\n\n    # 根据设备平台安装合适版本的 ONNXRuntime\n\n    # CPU 版本（推荐非 win10 系统，无 CUDA 支持的设备安装）\n    $ pip install onnxruntime\n\n    # GPU 版本（推荐有 CUDA 支持的设备安装）\n    $ pip install onnxruntime-gpu\n\n    # DirectML 版本（推荐 win10 系统的设备安装，可实现通用的显卡加速）\n    $ pip install onnxruntime-directml\n\n    # 更多版本的安装详情请参考 ONNXRuntime 官网\n    ```\n\n* 简单调用：\n\n    ```python\n    # 导入 CLPSystem 模块\n    from agentclpr import CLPSystem\n\n    # 初始化车牌识别模型\n    clp = CLPSystem()\n\n    # 使用模型对图像进行车牌识别\n    results = clp('test.jpg')\n    ```\n\n* 服务器部署：\n\n    * 启动 AgentCLPR Server 服务\n\n        ```shell\n        $ agentclpr server\n        ```\n\n    * Python 调用\n\n        ```python\n        import cv2\n        import json\n        import base64\n        import requests\n\n        # 图片 Base64 编码\n        def cv2_to_base64(image):\n            data = cv2.imencode('.jpg', image)[1]\n            image_base64 = base64.b64encode(data.tobytes()).decode('UTF-8')\n            return image_base64\n\n        # 读取图片\n        image = cv2.imread('test.jpg')\n        image_base64 = cv2_to_base64(image)\n\n        # 构建请求数据\n        data = {\n            'image': image_base64\n        }\n\n        # 发送请求\n        url = \"http://127.0.0.1:5000/ocr\"\n        r = requests.post(url=url, data=json.dumps(data))\n\n        # 打印预测结果\n        print(r.json())\n        ```\n\n## Contact us\nEmail : [agentmaker@163.com]()\u003cbr\u003e\nQQ Group : 1005109853\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentmaker%2Fagentclpr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagentmaker%2Fagentclpr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentmaker%2Fagentclpr/lists"}