There is a really good Edge Impulse demo about using WASM (Web Assembly) on web pages, to demonstrate to people who don’t have your microcontroller what it does but on a webpage. The demo is about shower sounds and is here
This feature is really useful and not as hard as it sounds (Assembly language is very scary and web assembly just sounds extra scary), since Edge Impulse makes the WASM and you just have to ask it to classify information.
Since Github allows WebPages (Gitpages), it is very easy and useful to test things out on a Github site. @janjongboom and I proved this worked in a very different thread here
I will put my demos about using WASM on my Gitpage here
var classifier = new EdgeImpulseClassifier();
// I think this line makes it private not public
// the following does not run
// let myImpulseProperties = await classifier.get_properties()
So I needed a way to see my students assignments, so I made it really easy to view using a single index.html file and the downloaded WASM 2 files from edge impulse. (Must be loaded to an https URL, the easiest way to do that is using github GITPAGES although they are a pain to setup.)
Presently the code is really raw, (I write messy code on a good day, so when I say it is raw it is a real mess ) but it is really useful to see what your are trying to work with. I was having troubles with inverting the left and the right side and this method really helped me. Here is a students webpage. His model tested with my shoe.
@janjongboom not sure if this is a feature or a bug, but with the multi object detection WASM if there is no new classification the results object is maintained from the last successful classification and not cleared.
Fine with that as a feature, but if I wanted to have the results object cleared after an unsuccessful classification, any suggestions how?
@Rocksetta, what do you mean? The WebAssembly package returns the old bounding boxes, that does not happen for me on the mobile client which uses the same WebAssembly build… Or are you not clearing the bounding boxes on the image?
I am still working on getting the bounding boxes in the correct place, that should be fun. That is not the issue. I will assume I have messed something up but I get these repeating results, until a new cup or pen has been found.