Image Classifier: Running and Load

MakeCode Programming Tutorial

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

Sample Program

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.

  1. Press Button A on the Micro:bit to load the model.

  2. Press Button B on the Micro:bit to show the classfied results and its similarity value on the Micro:bit.

Advanced Usage

Sample Program

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.

  1. Press Button A on the Micro:bit to load the model.

  2. Press Button B on the Micro:bit to show the classfied results and its similarity value on the Micro:bit.

  3. 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