Skip to content

iensu/wasm-cam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WASM-Cam

Playing around with the web-cam using WASM.

This version uses web-sys to access DOM elements directly in the Rust code.

Run the app

  1. ./build.sh
  2. ./start.sh
  3. Navigate to http://localhost:8080

You can modify the wasm-cam configuration from the browser console with the following methods:

  • webCam.setSquareSize(size: number) Changes the size of each pixel square, can be 4, 8, 16 or 32
  • webCam.setTransformation(transform: string) Changes the transform, can be pixelate, greyscale or indentity which leaves the picture unmodified.