basic

command module
v0.0.0-...-11aba69 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

README

Basic

Basic example that reads frames from a connected webcam, and processes them using a wasmCV guest module compiled using TinyGo.

The host application is a Go application written using GoCV Go language wrappers for OpenCV and the Wazero WASM runtime.

Compile the guest module

$ cd modules/processor
$ tinygo build -o ../processor.wasm -target=wasm-unknown .
$ cd ../..

Run the host application

$ go run .
Defining host function...
Start reading device: /dev/video0

It will then capture each frame, display some stats, and them perform a gaussian blur on the source image.

Read frame 1
Cols: 640 Rows: 480 Type: 16
Frame complete

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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