DEV Community

Cover image for Create simple Image Classification model / Pose detector model with Google Teachable Machine
Md. Sojibul Islam Rana
Md. Sojibul Islam Rana

Posted on

Create simple Image Classification model / Pose detector model with Google Teachable Machine

We are going to create a simple pose detector (thumbs up, victory and thumbs down) model with the help of google's teachable machine leaning website.

Open a web browser and goto this website : https://teachablemachine.withgoogle.com

Image description

You should see something like this webpage. Click on get started.

Image description

Select image project:
Image description

Choose standard image model:
Image description

You should see some sections including 2 class section a training section and a preview section.
Image description
Here the classes are the different types we want to recognise. In our case thumbs up, victory and thumbs down. You can change the names of classes according to your liking. I named the first class as "ThumbsUp".
Image description

Now, you should see expansion of ThumbsUp section similar to this:
Image description
Click on Hold to record to give image input to the model. There should be a pop up about accessing the webcam of your device. You should allow this to take your poses.

On holding the button, it will keep taking photos of your poses. When you are confident about the number in my case 300+ just let the button free.
Image description
These are the poses of ThumbsUp class.

Now you can do the same thing for the Victory pose, First rename if you want then take poses close to the first pose.
Image description

To create a new pose click add class button and rename the class
Image description then do same as previous.

Now, We have our classes. Goto the training portion.
Image description You can start training with the default value. If you want to change the default values. You can click the advance section. Here you can change several parameters. After you satisfied with the numbers. Click on training button. It will take some time. Keep patience.

Image description

Congratulations! Your model is ready to roll. Now the preview section will be expanded. Here you can check if your model is working or not.
Image description

Here is the working model that is giving me the exact pose.

Image description

Image description

Image description

You can also export the model by clicking Export Model in several format.
Image description

That's all for today. I hope this was helpful.

Top comments (2)

Collapse
 
sayma34 profile image
Sayma34

impressive!

Collapse
 
radiumsodium profile image
Md. Sojibul Islam Rana

Thanks