> 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/educational-kit-sets/micro-bit-inventor-education-kit/micro-bit-inventor-kit-koi-2-upgrade/ai-traffic-management.md).

# AI Traffic Management

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

### Building Instructions

[Building Instructions Download](https://drive.google.com/drive/folders/1vPB1nm2KgCbI8fHl_VWVD3YiAxTgYQWc?usp=sharing)

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

### Sample Program

#### Training Program

{% embed url="<https://makecode.microbit.org/_7p29783HXLK3>" %}

[Sample Program](https://makecode.microbit.org/_7p29783HXLK3)

#### 主程式

{% embed url="<https://makecode.microbit.org/_Mo3Ufe7gmDwT>" %}

[Sample Program](https://makecode.microbit.org/_Mo3Ufe7gmDwT)

### Model Instructions

First, use the training program to create an image classifier model.&#x20;

Press Button A to train samples of the Elderly Octopus and Children Octopus.&#x20;

Press Button B to train samples of the Adult Octopus and background.&#x20;

Press Button A+B to save the Model.

Then use the main program to recognize. Press the Sugar Button to recognize, if an Elderly Octopus or a Children Octopus is detected, a longer countdown time is given.
