From c013f815183c0295873465c7bb1d62a7a4a48bac Mon Sep 17 00:00:00 2001 From: yu <43624848+leey611@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:34:28 -0500 Subject: [PATCH 1/2] fix example links from ima_ml to ml5 tm example --- docs/reference/iframes/image-classifier-tm/index.html | 2 +- docs/reference/image-classifier-tm.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/reference/iframes/image-classifier-tm/index.html b/docs/reference/iframes/image-classifier-tm/index.html index 398e7bc..419321f 100644 --- a/docs/reference/iframes/image-classifier-tm/index.html +++ b/docs/reference/iframes/image-classifier-tm/index.html @@ -16,7 +16,7 @@ > diff --git a/docs/reference/image-classifier-tm.md b/docs/reference/image-classifier-tm.md index 2080aad..19573ea 100644 --- a/docs/reference/image-classifier-tm.md +++ b/docs/reference/image-classifier-tm.md @@ -21,7 +21,7 @@ It provides the following functionalities: ## Quick Start -Run and explore a pre-built example! [This Image + Teachable Machine example](https://editor.p5js.org/ima_ml/sketches/vOSSEZwGf) classifies the content of an image from the webcam feed using a Teachable Machine model. +Run and explore a pre-built example! [This Image + Teachable Machine example](https://editor.p5js.org/ml5/sketches/VvGXajA36) classifies the content of an image from the webcam feed using a Teachable Machine model. @@ -31,7 +31,7 @@ Run and explore a pre-built example! [This Image + Teachable Machine example](ht ### p5 sketches -- [Image + Teachable Machine Video](https://editor.p5js.org/ima_ml/sketches/vOSSEZwGf): Classify the content of an image from the webcam feed using a Teachable Machine model. +- [Image + Teachable Machine Video](https://editor.p5js.org/ml5/sketches/VvGXajA36): Classify the content of an image from the webcam feed using a Teachable Machine model. ### Video Tutorials @@ -39,7 +39,7 @@ Run and explore a pre-built example! [This Image + Teachable Machine example](ht ## Step-by-Step Guide -Now, let's together build the [Image + Teachable Machine Video example](https://editor.p5js.org/ima_ml/sketches/vOSSEZwGf) from scratch, and in the process, learn how to use the Image + Teachable Machine model. +Now, let's together build the [Image + Teachable Machine Video example](https://editor.p5js.org/ml5/sketches/VvGXajA36) from scratch, and in the process, learn how to use the Image + Teachable Machine model. ### Create a new project @@ -168,7 +168,7 @@ Now, we can display the classification result on the canvas. ### Run your sketch -Congratulations! You have successfully built the Image + Teachable Machine Video example. Press the `run` button to see the code in action. You can also find the [complete code](https://editor.p5js.org/ima_ml/sketches/vOSSEZwGf) in the p5.js web editor. +Congratulations! You have successfully built the Image + Teachable Machine Video example. Press the `run` button to see the code in action. You can also find the [complete code](https://editor.p5js.org/ml5/sketches/VvGXajA36) in the p5.js web editor. ?> If you have any questions or spot something unclear in this step-by-step code guide, we'd love to hear from you! Join us on [Discord](https://discord.com/invite/3CVauZMSt7) and let us know how we can make it better. From ec823ebffc49d4e2b35ed8600a66b804436187cc Mon Sep 17 00:00:00 2001 From: Alan Ren <10086000+alanvww@users.noreply.github.com> Date: Fri, 6 Dec 2024 18:04:32 -0500 Subject: [PATCH 2/2] Matching the example iframe with the web editor example --- .../iframes/image-classifier-tm/ready.html | 3 +- .../iframes/image-classifier-tm/script.js | 58 ++++++++++--------- 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/docs/reference/iframes/image-classifier-tm/ready.html b/docs/reference/iframes/image-classifier-tm/ready.html index cb7434f..21e1c86 100644 --- a/docs/reference/iframes/image-classifier-tm/ready.html +++ b/docs/reference/iframes/image-classifier-tm/ready.html @@ -18,7 +18,8 @@