{"id":28122717,"url":"https://github.com/webarkit/opencv-em","last_synced_at":"2025-05-14T08:14:28.489Z","repository":{"id":42653399,"uuid":"310616364","full_name":"webarkit/opencv-em","owner":"webarkit","description":"A simple utility script to build OpenCV static libs with Emscripten","archived":false,"fork":false,"pushed_at":"2025-01-22T16:23:17.000Z","size":74,"stargazers_count":19,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-22T17:28:14.308Z","etag":null,"topics":["emscripten","hacktoberfest","opencv","opencvjs","wasm"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webarkit.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-11-06T14:16:48.000Z","updated_at":"2024-09-30T20:58:56.000Z","dependencies_parsed_at":"2023-02-10T06:45:24.587Z","dependency_job_id":"4e364f8f-ca9a-4745-9f63-a5e44a6b3d0f","html_url":"https://github.com/webarkit/opencv-em","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webarkit%2Fopencv-em","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webarkit%2Fopencv-em/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webarkit%2Fopencv-em/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webarkit%2Fopencv-em/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webarkit","download_url":"https://codeload.github.com/webarkit/opencv-em/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101541,"owners_count":22014909,"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":["emscripten","hacktoberfest","opencv","opencvjs","wasm"],"created_at":"2025-05-14T08:14:26.497Z","updated_at":"2025-05-14T08:14:28.477Z","avatar_url":"https://github.com/webarkit.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opencv-em\n\nA simple script utility to build with Emscripten OpenCV static libs. You can build the libs by yourself or grab them from a [Release](https://github.com/webarkit/opencv-em/releases)\nThis project serves to build the OpenCV libraries for [WebARKitLib](https://github.com/webarkit/WebARKitLib/tree/dev), but it can be customized to suit your specific needs.\n\n## Building OpenCV with Emscripten\n\nIf you want to build the libs, you need Emscripten. Install the emsdk as suggested in the [Emscripten website](https://emscripten.org/docs/getting_started/downloads.html). Then you can clone this repository:\n\n```\ngit clone https://github.com/webarkit/opencv-em.git\n```\n\nyou need also to init the OpenCV submodule:\n\n```\ngit submodule update --init\n```\nThen you can run the build script (./build.sh) with either `linux` or `emscripten` configuration. \nNote: If you'd like the include file structure to mimic a default OpenCV installation inside the generated archive for emscripten, you'll need to do both and start with a linux build:\n\n```\n./build.sh linux\n```\nThen, move on to the emscripten build:\n```\n./build.sh emscripten\n```\n\n## Pre-built binaries\n\nYou don't need to build the libs you can grab from [Releases](https://github.com/webarkit/opencv-em/releases)\n\n## Use of pre-built binaries\n\nYou can use FetchContent in a cmake project (CMakeLists.txt):\n\n```cmake\ninclude(FetchContent)\n\nFetchContent_Declare(\n  build_opencv\n URL https://github.com/webarkit/opencv-em/releases/download/0.1.6/opencv-4.10.0.zip\n)\n\nFetchContent_MakeAvailable(build_opencv)\n```\n\nor you can use [curl](https://github.com/curl/curl) or [bootstrapping](https://github.com/corporateshark/bootstrapping) to download the package and make it available to your project.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebarkit%2Fopencv-em","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebarkit%2Fopencv-em","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebarkit%2Fopencv-em/lists"}