An open API service indexing awesome lists of open source software.

https://github.com/kalwalt/wasm-akaze-example

A simple test to build a Wasm example with akaze and Rust
https://github.com/kalwalt/wasm-akaze-example

akaze cv rust wasm wasm-akaze webar

Last synced: 3 months ago
JSON representation

A simple test to build a Wasm example with akaze and Rust

Awesome Lists containing this project

README

        

# WASM AKAZE EXAMPLE

I'm testing akaze from the [cv crate](https://github.com/rust-cv/cv) with rustwasm. I'ts a work in progress, you can test it locally for now.

## Instructions

If you want to test locally on your machine just run:
```
cd www
npm install
```
and run a local server.
If you make changes, you need to install [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/):

`curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh`

run the 🛠️ `wasm-pack build` command and then the steps below:

```
cd www
npm install
```

and run a local server.

## Live example
Check the live [example](https://kalwalt.github.io/wasm-akaze-example/www)

## 🔋 Batteries Included

* [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) for communicating
between WebAssembly and JavaScript.
* [`console_error_panic_hook`](https://github.com/rustwasm/console_error_panic_hook)
for logging panic messages to the developer console.
* [`wee_alloc`](https://github.com/rustwasm/wee_alloc), an allocator optimized
for small code size.
* image
* imageproc
* rust-cv
* web-sys