Endre Simo fa686a7849 Doc update
2021-11-21 21:18:05 +02:00
2020-12-19 14:04:09 +02:00
2021-09-02 17:49:28 +03:00
2021-09-01 16:28:18 +03:00
2020-06-13 08:58:34 +03:00
2020-12-07 21:54:46 +02:00
2021-09-02 17:49:28 +03:00
2020-12-07 21:57:11 +02:00
2020-05-01 07:44:02 +03:00
2020-08-28 08:44:05 +03:00
2020-04-29 07:47:58 +03:00
2020-05-03 16:12:39 +03:00
2020-04-09 12:02:49 +03:00
2020-04-27 12:48:36 +03:00
2021-11-21 21:18:05 +02:00
2020-05-02 20:04:50 +03:00

pigo-wasm-demos

License

Pigo Wasm demos

This repository is a collection of Webassembly demos running in real time and using the Pigo face detection library, showcasing various potential use cases. It is continuously updated.

Install

Notice: at least Go 1.13 is required in order to run the demos!

$ go get -u -v github.com/esimov/pigo-wasm-demos 

Run

Running the demo is as simple as typing a single line of command. This will build the package and produce an executable WebAssembly file which can be served over a http server. A new tab will be opened automatically in the user's default browser.

Demos

Masquerade

$ make demo1

pigo_wasm_masquarade

Key bindings:

q - Show/hide detected face marker
z - Show/hide pupils
w - Show/hide eye mask
s - Show/hide mouth mask
e - Select the next eye mask
d - Select the previous eye mask
r - Select the next mouth mask
f - Select the previous mouth mask
x - Show the detected face coordinates

Faceblur

$ make demo2

pigo_wasm_faceblur

Key bindings:

f - Show/hide detected face marker
s - Show/hide pupils
b - Enable/disable face blur
] - Increase the blur radius
[ - Decrease the blur radius

Pixelate

$ make demo3

pigo_wasm_pixelate

Key bindings:

f - Show/hide detected face marker
s - Show/hide pupils
= - Increase the number of colors
- - Decrease the number of colors
] - Increase the cells size
[ - Decrease the cells size

Face triangulator

$ make demo4

pigo_wasm_triangulate

Key bindings:

f - Show/hide detected face marker
s - Show/hide pupils
= - Increase the number of triangles
- - Decrease the number of triangles
] - Increase the threshold
[ - Decrease the threshold
1 - Increase the stroke size
0 - Decrease the stroke size

Triangulated facemask

$ make demo5

facemask

This demo is meant to be a proof of concept for an idea of generating personalized triangulated face masks. The orange dot at the bottom of the screen is showing up when the head alignment is the most appropriate for making a screen capture and this is when the head is aligned perpendicular (+/- a predefined threshold). This demo can be expanded way further.

Key bindings:

f - Show/hide detected face marker
s - Show/hide pupils
= - Increase the number of triangles
- - Decrease the number of triangles
] - Increase the threshold
[ - Decrease the threshold
1 - Increase the stroke size
0 - Decrease the stroke size

Author

License

Copyright © 2020 Endre Simo

This software is distributed under the MIT license. See the LICENSE file for the full license text.

Description
展示 Pigo 人脸检测库的 Webassembly 演示。
Readme MIT 16 MiB
Languages
Go 98.1%
HTML 0.9%
Makefile 0.6%
CSS 0.4%