Image Classifier: Running and Load
MakeCode Programming Tutorial
Extension link: https://github.com/KittenBot/pxt-koi2
Search for KOI2 in the search bar, select KOI 2.(KOI 2 has been approved by Microsoft)
The extension will be imported into your project.
Coding Blocks
Sample Program
Armourbit users need to use the corresponding initialization block
![](https://sharinghub-eng.kittenbot.hk/~gitbook/image?url=https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F6uJvpXC43onNIIwhMlWo%252Fuploads%252FPGyECwlPd2M3JqUBLDfO%252Fimage.png%3Falt%3Dmedia%26token%3D662ace3f-a8eb-4fbf-8a10-1d9643c88b1e&width=768&dpr=4&quality=100&sign=1ce25def&sv=1)
Sample Program Operations
KOI 2 will continously run the image classifier after model has been loaded.
A text message should appear when the model has been successfully loaded.
Press Button A on the Micro:bit to load the model.
Press Button B on the Micro:bit to show the classfied results and its similarity value on the Micro:bit.
Advanced Usage
Sample Program Operations
KOI 2 will continously run the image classifier after model has been loaded.
A text message should appear when the model has been successfully loaded.
Press Button A on the Micro:bit to load the model.
Press Button B on the Micro:bit to show the classfied results and its similarity value on the Micro:bit.
If the classified result is A, a heart icon is displayed on the Micro:bit. If the classified result is B, a smile icon is displayed on the Micro:bit.
Last updated