Create simple Image Classification model / Pose detector model with Google Teachable Machine
Tags: machinelearning, imageclassification, posedetection, ai
Published: 2023-11-26 16:05:56

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d9ngbrczc5k0crmid67e.png)

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/339q9locx0z9s6k9i6pi.png)

Select image project: 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gdlo85f8an8pjclndq2t.png)

Choose standard image model: 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cbsidboyn5e0arqxc9ly.png)

You should see some sections including  2 class section a training section and a preview section. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lml0j2zq2t13xymdwmf7.png)
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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eccmhr68bo4siggchclq.png)

Now, you should see expansion of ThumbsUp section similar to this: 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iwqeq05q7wjpt570n4s1.png)
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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6spb6rj0wkqrqjm735ry.png)
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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zpj2fll5k4a7qrw25frh.png)

To create a new pose click add class button and rename the class 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ycajw184ro86icct5vvy.png) then do same as previous.

Now, We have our classes. Goto the training portion. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d6m4xe9fpwr9c84o2cex.png) 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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ew4pux4iqzoxkhxlveda.png)

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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kf8yrnzvhasj59clf1ew.png)

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wut25nrbovhyhuyvg23s.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tuv1a6pxvx239s3zq644.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ifjnrcjvsu6zeecgioxh.png)

You can also export the model by clicking Export Model in several format. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jix8lup7ktlow0q5hqae.png)


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