{"id":19025646,"url":"https://github.com/seanchas116/wasm-face-detection","last_synced_at":"2025-10-10T10:40:52.399Z","repository":{"id":39208507,"uuid":"243968777","full_name":"seanchas116/wasm-face-detection","owner":"seanchas116","description":"Face Detection using dlib/OpenCV in WebAssembly","archived":false,"fork":false,"pushed_at":"2023-03-02T19:30:58.000Z","size":93287,"stargazers_count":25,"open_issues_count":13,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-01T02:44:04.083Z","etag":null,"topics":["dlib","emscripten","face-detection","opencv","webassembly"],"latest_commit_sha":null,"homepage":"https://seanchas116.github.io/wasm-face-detection/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seanchas116.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":"2020-02-29T12:54:59.000Z","updated_at":"2025-04-01T22:38:29.000Z","dependencies_parsed_at":"2024-11-08T20:46:16.141Z","dependency_job_id":"74717b77-d375-4972-974c-a669b4169709","html_url":"https://github.com/seanchas116/wasm-face-detection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seanchas116/wasm-face-detection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanchas116%2Fwasm-face-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanchas116%2Fwasm-face-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanchas116%2Fwasm-face-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanchas116%2Fwasm-face-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seanchas116","download_url":"https://codeload.github.com/seanchas116/wasm-face-detection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanchas116%2Fwasm-face-detection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003545,"owners_count":26083595,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dlib","emscripten","face-detection","opencv","webassembly"],"created_at":"2024-11-08T20:44:14.219Z","updated_at":"2025-10-10T10:40:52.381Z","avatar_url":"https://github.com/seanchas116.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wasm-face-detection\nFace Detection using dlib/OpenCV in WebAssembly\n\n[Try](https://seanchas116.github.io/wasm-face-detection/)\n\n## Prerequisites\n\n* cmake\n* Install emscripten with [emsdk](https://github.com/emscripten-core/emsdk)\n  * Activate emscripten installation with `source /path/to/emsdk/emsdk_env.sh`\n\n## Run\n\n```\nnpm install\nnpm run configure:cpp\nnpm run build:cpp\nnpm run serve\n```\n\n## How to build OpenCV 4.2.0 for Emscripten (with contrib)\n\n* `git clone git@github.com:opencv/opencv.git`\n* `git clone git@github.com:opencv/opencv_contrib.git`\n* `cd opencv`\n* Edit `opencv/platforms/js/build_js.py`\n\n```\ndiff --git a/platforms/js/build_js.py b/platforms/js/build_js.py\nindex 10e04ea020..52747c31d2 100644\n--- a/platforms/js/build_js.py\n+++ b/platforms/js/build_js.py\n@@ -78,6 +78,8 @@ class Builder:\n \n     def get_cmake_cmd(self):\n         cmd = [\"cmake\",\n+               \"-DCMAKE_INSTALL_PREFIX=install\",\n+               \"-DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules\",\n                \"-DENABLE_PIC=FALSE\", # To workaround emscripten upstream backend issue https://github.com/emscripten-core/emscripten/issues/8761\n                \"-DCMAKE_BUILD_TYPE=Release\",\n                \"-DCMAKE_TOOLCHAIN_FILE='%s'\" % self.get_toolchain_file(),\n@@ -123,7 +125,7 @@ class Builder:\n                \"-DBUILD_opencv_gapi=OFF\",\n                \"-DBUILD_opencv_ml=OFF\",\n                \"-DBUILD_opencv_photo=ON\",\n-               \"-DBUILD_opencv_imgcodecs=OFF\",\n+               \"-DBUILD_opencv_imgcodecs=ON\",\n                \"-DBUILD_opencv_shape=OFF\",\n                \"-DBUILD_opencv_videoio=OFF\",\n                \"-DBUILD_opencv_videostab=OFF\",\n@@ -132,10 +134,11 @@ class Builder:\n                \"-DBUILD_opencv_stitching=OFF\",\n                \"-DBUILD_opencv_java=OFF\",\n                \"-DBUILD_opencv_java_bindings_generator=OFF\",\n-               \"-DBUILD_opencv_js=ON\",\n+               \"-DBUILD_opencv_js=OFF\",\n                \"-DBUILD_opencv_python2=OFF\",\n                \"-DBUILD_opencv_python3=OFF\",\n                \"-DBUILD_opencv_python_bindings_generator=OFF\",\n+               \"-DBUILD_opencv_dnn_objdetect=OFF\",\n                \"-DBUILD_EXAMPLES=OFF\",\n                \"-DBUILD_PACKAGE=OFF\",\n                \"-DBUILD_TESTS=OFF\",\n```\n\n* `python ./platforms/js/build_js.py build_wasm --build_wasm --emscripten_dir=/path/to/emscripten --config_only`\n* `cd build_wasm`\n* `emmake make`\n* `emmake make install`\n* OpenCV lib and headers are installed in `build_wasm/install` diretory\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanchas116%2Fwasm-face-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseanchas116%2Fwasm-face-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanchas116%2Fwasm-face-detection/lists"}