Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nihui/ncnn-webassembly-scrfd
Deploy SCRFD, an efficient high accuracy face detection approach, in your web browser with ncnn and webassembly
https://github.com/nihui/ncnn-webassembly-scrfd
artificial-intelligence chrome cross-platform edge face-alignment face-detection firefox ncnn neural-network scrfd webassembly
Last synced: 4 days ago
JSON representation
Deploy SCRFD, an efficient high accuracy face detection approach, in your web browser with ncnn and webassembly
- Host: GitHub
- URL: https://github.com/nihui/ncnn-webassembly-scrfd
- Owner: nihui
- Created: 2021-05-14T09:00:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-27T03:27:20.000Z (over 1 year ago)
- Last Synced: 2024-11-02T02:33:38.704Z (11 days ago)
- Topics: artificial-intelligence, chrome, cross-platform, edge, face-alignment, face-detection, firefox, ncnn, neural-network, scrfd, webassembly
- Language: C++
- Homepage: https://nihui.github.io/ncnn-webassembly-scrfd
- Size: 2.54 MB
- Stars: 52
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ncnn - ncnn-webassembly-scrfd
README
# ncnn-webassembly-scrfd
open https://nihui.github.io/ncnn-webassembly-scrfd and enjoy
# build and deploy
1. Install emscripten
```shell
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install 3.1.28
./emsdk activate 3.1.28source emsdk/emsdk_env.sh
```2. Download and extract ncnn webassembly package
```shell
wget https://github.com/Tencent/ncnn/releases/download/20230223/ncnn-20230223-webassembly.zip
unzip ncnn-20230223-webassembly.zip
```3. Build four WASM feature variants
```shell
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DWASM_FEATURE=basic ..
make -j4
cmake -DCMAKE_TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DWASM_FEATURE=simd ..
make -j4
cmake -DCMAKE_TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DWASM_FEATURE=threads ..
make -j4
cmake -DCMAKE_TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DWASM_FEATURE=simd-threads ..
make -j4
```4. Deploy the *.data *.js *.wasm and *.html files to your web server