Classifier Model Training
Last updated
Last updated
Machine Learning may seem like a farfetched concept. AI Camera is already capable of Machine Learning features in the form of object classification. KOI can be trained to recognize objects.
In this section, we will learn how to use the Machine Learning feature to easily train a object classification model.
The trained model will be stored on an SD card, without an SD card we won’t be able to save this model.
Search "KOI" in the search bar.
Or copy and paste the following link to the search bar.
https://github.com/KittenBot/pxt-koi
Blocks for machine learning:
1: Download the program to the Micro:bit.
2: Put the first object in front of the camera and press B, slightly change angle and repeat about 3 times.
3: Press A to start training the next object.
4: Repeat the process until all objects have been analyzed.
5: Press A and B simultaneously to save the model.
Classifier Training (Extension0.5.7)
There may be updates to extensions periodically, please refer to the following link to update/downgrade your extension.
· A: This is because KOI has a longer boot time than Micro:bit. When the power is turned on, Micro:bit has already ran the code for KOI initialization before KOI is ready.
· Solution: Reset your Micro:bit after KOI has been turned on. (The trick is to let KOI power on completely before initialization.)
· A: No, KOI only works with 5V.
· A: The classifier hasn’t been reset.
· Solution: Run the block for classifier reset, KOI will display a success message.