wasm

command
v1.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 2 Imported by: 0

README

WASM (Webassembly) integration

Important notice: in order to run the Webassembly demo at least Go 1.13 is required!

Starting from v1.4.0 Pigo has been ported to Webassembly 🎉. This proves the library real time performance capabilities.

This also means that for real time face detection it's not needed anymore to run the library in a Python environment as a shared library. For more details check the project description from the Readme file and also read this blog post for a more detailed explanation.

How to run it?

In order to run the WASM demo is as simple as to type the make command inside the wasm folder. This will build the wasm file and at the same time will start a new webserver. That's all. It will automatically open a new page in your default browser under the following address: http://localhost:5000/.

In case the lib.wasm is not getting generated automatically you can build it yourself by running the following command:

$ GOOS=js GOARCH=wasm go build -o lib.wasm wasm.go

Supported keys:

s - Show/hide pupils
c - Circle through the detection shape types (rectangle|circle|ellipse)
f - Show/hide facial landmark points (hidden by default)

Demos

For Webassembly related demos using the Pigo library check this separate repo:

https://github.com/esimov/pigo-wasm-demos

License

Copyright © 2019 Endre Simo

Documentation

Rendered for js/wasm
The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL