{"id":14958141,"url":"https://github.com/daybreak-u/chineseocr_lite","last_synced_at":"2025-05-13T00:30:06.455Z","repository":{"id":37274365,"uuid":"243487250","full_name":"DayBreak-u/chineseocr_lite","owner":"DayBreak-u","description":"超轻量级中文ocr，支持竖排文字识别, 支持ncnn、mnn、tnn推理 ( dbnet(1.8M) + crnn(2.5M) + anglenet(378KB)) 总模型仅4.7M ","archived":false,"fork":false,"pushed_at":"2023-08-14T21:55:50.000Z","size":478874,"stargazers_count":12066,"open_issues_count":254,"forks_count":2280,"subscribers_count":241,"default_branch":"onnx","last_synced_at":"2025-04-09T17:16:22.366Z","etag":null,"topics":["ncnn","ocr","pytorch"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DayBreak-u.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-02-27T10:01:29.000Z","updated_at":"2025-04-09T07:13:26.000Z","dependencies_parsed_at":"2024-01-13T14:52:46.670Z","dependency_job_id":null,"html_url":"https://github.com/DayBreak-u/chineseocr_lite","commit_stats":null,"previous_names":["ouyanghuiyu/chineseocr_lite"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DayBreak-u%2Fchineseocr_lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DayBreak-u%2Fchineseocr_lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DayBreak-u%2Fchineseocr_lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DayBreak-u%2Fchineseocr_lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DayBreak-u","download_url":"https://codeload.github.com/DayBreak-u/chineseocr_lite/tar.gz/refs/heads/onnx","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250496090,"owners_count":21440225,"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":["ncnn","ocr","pytorch"],"created_at":"2024-09-24T13:16:20.053Z","updated_at":"2025-04-23T18:49:05.039Z","avatar_url":"https://github.com/DayBreak-u.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chineseocr_lite 的 onnx 推理, 部署简单\n\n## 原始项目分支（torch推理，ncnn推理等）：[master](https://github.com/ouyanghuiyu/chineseocr_lite/tree/master)\n\n## 环境\n- python3.6\n\n- linux/macos/windows\n\n## web服务启动\n``` Bash\ncd chineseocr_lite## 进入chineseocr目录\npython backend/main.py \n```\n\n## 识别结果展示\n![avatar](test_imgs/res.jpg)\n![avatar](test_imgs/res_2.jpg)\n\n## 参考\n1. TrWebOCR https://github.com/alisen39/TrWebOCR         \n\n## QQ群\n820075525\n\n### 以下范例项目是参考Python代码翻译为各种语言的Demo，仅供参考\n** 注意：以下各种demo均相互独立，只是同一个程序的不同版本 **\n#### **如果不想自己整合依赖库的话，以下demo的完整源码工程项目，请到Q群共享里自行下载**\n#### [C++ Demo](https://github.com/ouyanghuiyu/chineseocr_lite/tree/onnx/cpp_projects)\n* onnxruntime C++ demo，支持Windows、linux、macOS，目前仅支持cpu计算；\n* ncnn C++ demo，支持Windows、linux、macOS，分为cpu版与gpu版，gpu版使用ncnn+vulkan来支持gpu加速；\n* MNN C++ demo, 支持 windows、linux、macOs，目前仅支持cpu计算；\n\n#### [Jvm Demo](https://github.com/ouyanghuiyu/chineseocr_lite/tree/onnx/jvm_projects)\n* onnxruntime jvm demo: 以onnxruntime C++为基础，编译成jni供java或kotlin调用；\n* ncnn jvm demo: 以ncnn C++为基础，编译成jni供java或kotlin调用，同样分为cpu版与gpu版；\n\n#### [Android Demo](https://github.com/ouyanghuiyu/chineseocr_lite/tree/onnx/android_projects)\n* onnxruntime android demo: 以onnxruntime C++为基础，整合为一个独立的android模块供app调用；\n* ncnn jvm android demo: 以ncnn C++为基础，整合为一个独立的android模块供app调用，同样分为cpu版与gpu版；\n* MNN android demo: 以MNN C++为基础，整合为一个独立的android模块供app调用，支持cpu版本\n\n#### [.Net Demo](https://github.com/ouyanghuiyu/chineseocr_lite/tree/onnx/dotnet_projects)\n* onnxruntime c# demo:  完全以C#编写的onnxruntime demo;\n* onnxruntime vb.net demo: 完全以VB编写的onnxruntime demo;\n\n#### [字符检测ocr Demo](https://github.com/fanqie03/char-detection)\n* 根据本项目和CRNN原理，推到出每个字符的位置demo，包括将字符组合成单词。\n\n#### 第三方Demo\n* [TNN中文字符ocr](https://github.com/Tencent/TNN/#effect-example): 根据本项目，基于TNN实现的轻量级中文字符ocr demo，支持iOS和Android系统，凭借TNN优化的CPU(ARMv7、ARMv8)和GPU(OpenCL、Metal)后端加速模型计算。\n\n\n### Android识别展示\n![avatar](test_imgs/android/detect_IMEI.gif)\n![avatar](test_imgs/android/detect_id_card.gif)\n![avatar](test_imgs/android/detect_plate.gif)\n\n### .NetDemo识别展示\n![avatar](test_imgs/dotnet/OcrLiteOnnxCs.PNG)\n\n### 字符检测ocr Demo识别展示\n![avatar](test_imgs/o2-word.jpg)\n\n### 第三方 TNN Demo识别展示\n[![avatar](test_imgs/third_party/tnn_detect_camera.gif)](https://github.com/Tencent/TNN/#effect-example)\n[![avatar](test_imgs/third_party/tnn_detect_poster1.png)](https://github.com/Tencent/TNN/#effect-example)\n[![avatar](test_imgs/third_party/tnn_detect_poster2.png)](https://github.com/Tencent/TNN/#effect-example)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaybreak-u%2Fchineseocr_lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaybreak-u%2Fchineseocr_lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaybreak-u%2Fchineseocr_lite/lists"}