Giter Site home page Giter Site logo

knowledgepending / opencv-static-wasm-docker Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 128 KB

๐Ÿณ๐Ÿ“š๐Ÿ–ผ๏ธ The latest OpenCV built as a static C++ library for WASM

Dockerfile 100.00%
cpp opencv wasm webassembly library static-library docker dockerfile

opencv-static-wasm-docker's Introduction

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

opencv-static-wasm-docker's People

Contributors

knowledgepending avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

opencv-static-wasm-docker's Issues

Better tutorial

Can you please provide a better tutorial of how to use this image?
How can I use this container to link a simple C++ code to opencv and generate wasm as the output?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.