longcw / opencv_js_with_wechat_qrcode

Home Page:https://longcw.github.io/opencv_js_example/test.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build

  1. Install EMSDK following https://docs.opencv.org/3.4/d4/da1/tutorial_js_setup.html
  2. Clone the modified opencv and opencv_contrib
    cd /path/to/work_dir
    git clone -b feat/wechat_qrcode_js https://github.com/longcw/opencv.git
    git clone -b feat/wechat_qrcode_js https://github.com/longcw/opencv_contrib.git
  3. Build
    cd /path/to/work_dir
    emcmake python ./opencv/platforms/js/build_js.py build_js --build_test --cmake_option="-DOPENCV_EXTRA_MODULES_PATH=/path/to/work_dir/opencv_contrib/modules"
  4. Download models from https://github.com/WeChatCV/opencv_3rdparty/

Example

This repo includes a built opencv.js and a test script in example.

Try it online: https://longcw.github.io/opencv_js_example/test.html, or locally:

cd example
python -m http.server 8000
# Run the example in http://0.0.0.0:8000/test.html

About

https://longcw.github.io/opencv_js_example/test.html


Languages

Language:HTML 50.7%Language:JavaScript 49.3%