{"id":18273619,"url":"https://github.com/rapidai/rapidocrncnnlibtest","last_synced_at":"2026-03-19T03:38:35.294Z","repository":{"id":109928705,"uuid":"553402287","full_name":"RapidAI/RapidOcrNcnnLibTest","owner":"RapidAI","description":"rapid ocr ncnn lib test","archived":false,"fork":false,"pushed_at":"2022-10-20T02:10:09.000Z","size":10013,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T03:41:29.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","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":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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-18T06:51:20.000Z","updated_at":"2025-01-17T06:21:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"f36abb87-9e30-48bb-9bef-4f7154b4b248","html_url":"https://github.com/RapidAI/RapidOcrNcnnLibTest","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/RapidAI/RapidOcrNcnnLibTest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidOcrNcnnLibTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidOcrNcnnLibTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidOcrNcnnLibTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidOcrNcnnLibTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RapidAI","download_url":"https://codeload.github.com/RapidAI/RapidOcrNcnnLibTest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RapidAI%2FRapidOcrNcnnLibTest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28597630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-05T12:07:05.637Z","updated_at":"2026-01-20T06:32:16.782Z","avatar_url":"https://github.com/RapidAI.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RapidOcrNcnnLibTest\n\n### Project下载\n\n* 整合好源码和依赖库的完整工程项目，可以在Release中下载\n* 可到Q群共享内下载: Project_RapidOcrNcnnLibTest.7z\n* 群号码请到主项目查看：https://github.com/RapidAI/RapidOCR\n* C lib 编译：https://github.com/RapidAI/RapidOcrNcnn/releases\n\n### 介绍\n\n* 本项目为RapidOcrNcnn 动态运行库的调用范例。\n\n### 依赖项下载\n\n1. 下载OcrLib，[下载地址](https://github.com/RapidAI/RapidOcrNcnn/releases)\n\n* 文件名：平台-clib-.7z，\n* 注意：如果想使用GPU版，请先安装vulkan，参考[编译说明](https://github.com/RapidAI/RapidOcrNcnn/blob/main/BUILD.md)\n* 把压缩包解压到OcrLib目录，windows平台需要注意目录层次，解压后目录结构如下\n\n```\nOcrLib\n├── Darwin-CLIB-CPU\n│ ├── OcrLibConfig.cmake\n│ ├── include\n│ └── lib\n├── Darwin-CLIB-GPU\n│ ├── OcrLibConfig.cmake\n│ ├── include\n│ └── lib\n├── Linux-CLIB-CPU\n│ ├── OcrLibConfig.cmake\n│ ├── include\n│ └── lib\n├── Linux-CLIB-GPU\n│ ├── OcrLibConfig.cmake\n│ ├── include\n│ └── lib\n├── OcrLibWrapper.cmake\n├── win-CLIB-CPU-Win32\n│ ├── OcrLibConfig.cmake\n│ ├── bin\n│ ├── include\n│ └── lib\n├── win-CLIB-GPU-Win32\n│ ├── OcrLibConfig.cmake\n│ ├── bin\n│ ├── include\n│ └── lib\n├── win-CLIB-CPU-x64\n│ ├── OcrLibConfig.cmake\n│ ├── bin\n│ ├── include\n│ └── lib\n└── win-CLIB-GPU-x64\n    ├── OcrLibConfig.cmake\n    ├── bin\n    ├── include\n    └── lib\n```\n\n### 编译环境\n\n1. Windows 10 x64 + vs2019 + cmake(请自行安装)\n2. macOS 10.15\n3. Linux Ubuntu 1804 x64\n\n### 编译说明\n\n* windows双击build.bat，Linux\u0026Mac ./build.sh\n* 选择编译选项\n* 按照编译完成的提示运行run-test脚本查看测试结果\n\n### 注意事项for windows\n\n* 如果是直接从github点击\"download zip\"按钮下载的代码，文件默认格式是Linux的\n* 此时，需要把工程内的所有bat文件用UE等文本编辑器改为windows格式\n\n### Windows调试运行\n\n* 下载范例项目工程自带的dll是Release版，不能用于调试运行\n* 调试运行需要debug版的onnxruntime + opencv，并编译成debug版的Ocr库，根据需要自行编译x64或x86版\n* 把debug版的Ocr库替换到OcrLib文件夹中\n* 双击generate-vs-project.bat，选择2)Debug，生成对应的build-win-vsxxx-xx文件夹\n* 进入生成的文件夹，打开OcrLibTest.sln\n* 右边解决方案管理器，选中OcrLibTest，右键-\u003e设为启动项目，并生成(查看输出log，确保生成成功)\n* 把OcrLib里对应的dll文件，例RapidOcrOnnx.dll复制到build-win-vsxxx-xx文件夹\\Debug，跟上一步生成的OcrLibTest.exe放在一起\n* 把resource文件夹里的images文件夹和models文件夹复制到build-win-vsxxx-xx文件夹\n* 工具栏，点击绿色三角号启动\"本地Windows调试器\"\n* 第一次运行的话，查看左下角，等待加载各dll符号，网络不好的话，要等挺久的","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapidai%2Frapidocrncnnlibtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frapidai%2Frapidocrncnnlibtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapidai%2Frapidocrncnnlibtest/lists"}