Relative Content

Tag Archive for javascripttensorflow

Teachable Machine from Google with tensorflow.js model – jpg files for clasification instead of video stream from webcam

I would like to ask you if somebody have experience with Google Teachable Machine model of tenworflow.js . The complete code to use is generated on Google Teachalbe machine, that is not a problem. But I tried to modify it to clasify image in form of jpg file instead of clasifying of webcam stream. I did not succeed with canvas and also not with img elements. Do you have any experiences with it or any advice? I will appreciate it. Here is how the standard javascript from Teachable Machine looks like and where I would like to modify the part which is clasifying the webcam stream to clasify the static jpg file which I would provide (with the webcam stream it works perfect). Thanks in advance for your help and comments: