Sign inSign up

bryankp/opencv-static-wasm

By bryankp

•Updated over 6 years ago

🐳📚🖼️ The latest OpenCV built as a static C++ library for WASM

Image
0

10K+

bryankp/opencv-static-wasm repository overview

⁠OpenCV Static WASM Docker⁠

Docker Pulls

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

Tag summary

Content type

Image

Digest

Size

929.9 MB

Last updated

over 6 years ago

docker pull bryankp/opencv-static-wasm