Skip to content

πŸ³πŸ“šπŸ–ΌοΈ The latest OpenCV built as a static C++ library for WASM

Notifications You must be signed in to change notification settings

KnowledgePending/OpenCV-Static-WASM-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

πŸ³πŸ“šπŸ–ΌοΈ The latest OpenCV built as a static C++ library for WASM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published