Coder Social home page Coder Social logo

jousenzhou / opencv-wasm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yaniswang/opencv-wasm

0.0 0.0 0.0 1.57 MB

使用OpenCV在前端进行人脸检测的实践

Home Page: https://tidusinspira.github.io/opencv-wasm/

HTML 14.83% JavaScript 85.17%

opencv-wasm's Introduction

使用OpenCV在前端进行人脸检测的实践

预览

https://tidusinspira.github.io/opencv-wasm/

运行

php -S 0.0.0.0:9999 或 放在nginx、apache等其他web服务器里运行

构建过程

安装Emscripten SDK

git clone https://github.com/juj/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh

获取OpenCV

wget https://github.com/opencv/opencv/archive/3.4.1.zip
unzip 3.4.1.zip
cd opencv-3.4.1
# 将OpenCV编译为WASM版本
python ./platform/js/build_js.py build_wasm --build_wasm

# 编译后的文件将生成在build_wasm/bin目录内,得到需要的opencv_js.wasm和opencv.js文件

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.