{"id":13445321,"url":"https://github.com/Sg4Dylan/ncnn-webassembly-ocrlite","last_synced_at":"2025-03-20T21:30:21.010Z","repository":{"id":91499610,"uuid":"369221093","full_name":"Sg4Dylan/ncnn-webassembly-ocrlite","owner":"Sg4Dylan","description":"Deploy OcrLite in your web browser with ncnn and webassembly","archived":false,"fork":false,"pushed_at":"2021-05-24T07:08:49.000Z","size":7236,"stargazers_count":22,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-01T05:13:22.031Z","etag":null,"topics":[],"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/Sg4Dylan.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":"2021-05-20T13:39:37.000Z","updated_at":"2024-01-04T16:57:49.000Z","dependencies_parsed_at":"2024-01-16T02:56:06.687Z","dependency_job_id":null,"html_url":"https://github.com/Sg4Dylan/ncnn-webassembly-ocrlite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sg4Dylan%2Fncnn-webassembly-ocrlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sg4Dylan%2Fncnn-webassembly-ocrlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sg4Dylan%2Fncnn-webassembly-ocrlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sg4Dylan%2Fncnn-webassembly-ocrlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sg4Dylan","download_url":"https://codeload.github.com/Sg4Dylan/ncnn-webassembly-ocrlite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221807657,"owners_count":16883630,"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-07-31T05:00:30.688Z","updated_at":"2025-03-20T21:30:21.000Z","avatar_url":"https://github.com/Sg4Dylan.png","language":"C++","funding_links":[],"categories":["Application projects"],"sub_categories":["Wasm"],"readme":"# ncnn-webassembly-ocrlite\n\n### Requirements\n\n - [ncnn webassembly](https://github.com/Tencent/ncnn/releases/download/20210507/ncnn-20210507-webassembly.zip)\n - [opencv-mobile webassembly 3.4.13](https://github.com/nihui/opencv-mobile/releases/)\n\n### Build\n\n1. Install emscripten\n\n```\ngit clone https://github.com/emscripten-core/emsdk.git\ncd emsdk\n./emsdk install 2.0.8\n./emsdk activate 2.0.8\n./emsdk_env.sh\n```\n\n2. Download and extract ncnn \u0026 OpenCV\n\n```\nDirectory Tree\n\n├─assets\n├─demo\n├─include\n├─ncnn-static\n│  └─webassembly\n│      ├─basic\n│      ├─simd\n│      ├─simd-threads\n│      └─threads\n├─opencv-static\n│  └─webassembly\n│      ├─bin\n│      ├─include\n│      ├─lib\n│      └─share\n└─src\n```\n\nand  \n\nGet missing `opencv2/imgcodecs.hpp` [Link](https://gitee.com/benjaminwan/ocr-lite-ncnn/attach_files/573151/download/opencv-3.4.13-staticLib.7z)   \nPath: `opencv-static/webassembly/include/opencv2`\n\n\n3. Build\n\n```\nmkdir build\ncd build\ncmake -DCMAKE_TOOLCHAIN_FILE=/PATH_TO_EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Release -DOCR_STATIC=ON ..\nmake\n```\n\n### Demo\n\n`demo/index.html`\n\n![Demo](https://i.imgur.com/r05UJbi.png)\n\n`demo/arknights.html`\n\n![Demo-ArkNights-HR](https://i.imgur.com/Qh5ugyL.jpg)\n\n### References\n\n - [chineseocr_lite](https://github.com/DayBreak-u/chineseocr_lite)\n - [ncnn-webassembly-yolov5](https://github.com/nihui/ncnn-webassembly-yolov5)\n - [ncnn-webassembly-nanodet](https://github.com/nihui/ncnn-webassembly-nanodet)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSg4Dylan%2Fncnn-webassembly-ocrlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSg4Dylan%2Fncnn-webassembly-ocrlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSg4Dylan%2Fncnn-webassembly-ocrlite/lists"}