Hello developers, and welcome back.
In this video we're going to learn about Teachable Machine.
Go to Teachable Machine dot with google.com website.
And this is an amazing website for training a computer to recognize your own images, sounds and poses.
So Teachable Machine is a free web based tool developed by Google that makes it incredibly easy to create
machine learning models without writing any code.
Yes, you heard it right.
It's incredibly easy to create ML projects and models without writing any code.
It's designed for educators, students, artists, and anyone curious about AI.
You can create models for image projects, image classification and object detection, audio projects,
sound classifications, pose projects, body pose estimation, and for our application.
Now in this section we're going to use it for object detection.
So we're going to use like these modals to indicate for example hard disk and earphones and classify
them.
Okay.
So we're going to use this amazing website to train our models.
It's a very simple click.
Get started.
Of course you need to sign in with your Google account.
And here you can open an existing project from drive, or open an existing project from a file.
Or you can select Image Project, Audio Project, or Post project.
In this section we're going to use Image Image Project.
And here you can use standard Image model best for most uses color images 2 to 4 times to to to to for
export to TensorFlow TF Lite.
And this is our target to get the A flight models as we did in the previous sections.
And it's around five megabyte embedded image model.
It's a simple and it's um like a smaller export to TF Lite for microcontrollers TF Lite and TF dot js.
Okay, so it's very simple.
I'm going to use the standard.
And here we have two classes.
You can add much class as you want.
So uh here in this section we're gonna indicate and classify the images or detect objects uh, using
uh two classes the hard disk and earphones.
Okay.
So let me name this class as hard disk.
And the second one is earphones or AirPods.
And this is good okay.
So we have two classes hard disk and AirPods.
For the hard disk class we have a webcam and upload.
Also this is for the AirPods.
So you can open webcam and uh, start like training and visualizing the hard disk if you if you have
any hard disk.
Also you can train the model and upload the images from Google Drive or from your computer.
So we have two options webcam and upload.
I want from you to understand a very important thing.
If you choose webcam here I don't have webcam.
You need to point your webcam at the hard disk and take images from different different angles and different,
um, backgrounds.
Uh, smaller images, bigger big images.
Zoom into the hard disk and make zoom in, zoom out and vary your samples.
Hold your hard disk in different orientations, under different lighting, partially off camera and
alongside other projects.
Then hold the uh hold to record button to capture many images.
For example, 100 to to 200 per class is a good start, so we need to get 100 to 200 images for each
class.
Repeat the process with the airport class, Untangle them and untangle them.
Place them neatly.
Have just have just one earbuds in the in the frame and so on.
Okay.
So you you need to get different orientations, different lighting, partially off camera and alongside
with other objects in order to distinguish, um, that the objects.
So as I told you, you have two ways the webcam and upload you if you have pictures for your, uh,
hard disk or any class, you can upload them directly.
But for making things very fast and, uh, training the model, I'm gonna use the webcam.
As I told you, I don't have webcam.
I have I need to use my cell phone.
So, uh, go to this website.
Ah, I download the webcam for windows and download it, download the application from Play Store or
the App Store.
If you have a iPhone and run the application and you get like this.
Okay, so this is our, um, webcam.
My Android device is showing the hard disk and the earphones and the AirPods.
Okay, so those are the two objects I'm gonna detect.
So go to the webcam and here allow when while visiting the site.
And you can notice that everything is working fine.
Now in order to record and save images, you, um, you need to use hold to record.
So like this.
Okay, so hold to record.
I'm gonna I'm showing images like this.
You see, guys, how many images?
130 images.
And you can flip the hard disk like this.
Hold to record, change the directions and the zoom in.
Zoom out.
And here we go.
Now see you guys like this okay.
And different orientations okay.
Those are 527 images.
Those are good.
Okay, you see them guys?
It's good.
Save samples to drive.
If you want to save them to the drive and click okay.
So those are the images for the first hard disks uh, class.
Now let's use the same for the airports.
Click webcam and hold the camera hold to record and start recording.
Okay.
So those are the images.
And this is the EarPods.
And so okay make 360 and continue okay.
So here I'm getting the images continue.
And this is good okay.
So zoom in zoom out get different angles lighting and so on.
Oops it's 9914.
It's good.
Click x and here we go.