Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 2.38 KB

File metadata and controls

64 lines (53 loc) · 2.38 KB

Docker Pulls Docker

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.

Image details

  • OpenCV Trunk from Build Date

Option 1. Build Docker Image

  • 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

Option 2. Pull image from Docker Hub

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

Important paths

  • 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

Further Details