Skip to content

Forked from https://github.com/ucisysarch/opencvjs. Use n_make.py to build and link OpenCV and your project before compiling to javascript.

License

Notifications You must be signed in to change notification settings

biggzlar/opencv_js_compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opencv project to javascript compiler

Forked from opencvjs.

How to Build

  1. Get the source code
git clone https://github.com/biggzlar/opencv_js_compiler.git
cd opencv_js_compiler
git clone https://github.com/opencv/opencv
  1. Install emscripten. You can obtain emscripten by using Emscripten SDK.
./emsdk update
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
  1. Compile OpenCV and your source file.
  python n_make.py example/example.cpp
  1. Add the compiled javascript module to your .html file.
  <script type='text/javascript'>
    var Module = {
      preRun: [],
      postRun: []
    };
  </script>
  <script async src='example.js'></script>

About

Forked from https://github.com/ucisysarch/opencvjs. Use n_make.py to build and link OpenCV and your project before compiling to javascript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published