This Docker Image allows for OpenCV C++ applications to be brought to the web by providing OpenCV as a static library compiled for WASM.
Simply use the Emscripten toolchain along with path for the static library when compiling your application.
- OpenCV Trunk from Build Date
- From within the directory of the Dockerfile execute the following command to build the image
docker build -t opencv-static-wasm .
- To run with bash and a shared volume
docker run -v <host_path>:<container_path> -ti opencv-static-wasm:latest bash
- Go to the repository page bryankp/opencv-static-wasm
- Pull the latest image
docker pull bryankp/opencv-static-wasm:latest
- To run with bash and a shared volume
docker run -v <host_path>:<container_path> -ti bryankp/opencv-static-wasm:latest bash
- The Emscripten toolchain is located at
/emsdk_portable/emscripten/sdk/cmake/Modules/Platform/Emscripten.cmake
- The static library is located at
/src/opencv/static_wasm
- Emscripten base image by trzeci.
- Official OpenCV Linux Build Docs