> For the complete documentation index, see [llms.txt](https://sharinghub-eng.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub-eng.kittenbot.hk/programming-platforms/kittenblock/kittenblock-functions-and-features/kittenbot-extensions/machine-learning/machine-learning-5-image-classification.md).

# Machine Learning 5 Image Classification

Images can be classified using ML5’s built-in model.

### Loading the extension for Machine Learning 5

Open up the extension page.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/add.png)

Select Machine Learning 5.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ml5.png)

New programming blocks will be added.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ml6.png)

If your computer has a low specification(e.g. lacks a discrete GPU), its performance maybe enhanced by using CPU mode.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ml14.png)

### Classifying Images

Upload the pictures onto Kittenblock.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ml7.png)

Hide the pictures.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ml8.png)

Start programming the main character.

MobileNet has better performance but needs an internet connection, MobileNetLocal does not need an internet connection but it is not as powerful.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ml9.png)

Unhide the picture you wish to classify.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ml10.png)

Example 1: Recognizing pictures

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ml11.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ml12.png)

MobileNet is only able to recognize objects that are commonly seen.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ml13.png)

### References

```
https://www.hellotech.com/blog/whats-a-gpu-what-gpu-do-you-have

By Prathyush Thomas - Own work, GFDL 1.2, https://commons.wikimedia.org/w/index.php?curid=37417848

By User:Magicwolf - https://i.imgur.com/jn0fLtw.jpg, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=5110106

By Psihopat - Own work, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=12724979
```
