googlecreativelab / teachablemachine-community

Example code snippets and machine learning code for Teachable Machine
https://g.co/teachablemachine
Apache License 2.0
1.47k stars 649 forks source link

Teachable machine with tensorflow.js model - jpg files for clasification instead of video stream from webcam #380

Open boylucky opened 2 months ago

boylucky commented 2 months ago

Hi all. 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. Do you have any experiences with it or any advice? I will appreciate it. Here is the sample. 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:

`

Teachable Machine Image Model

`