# Machine Learning Blocks ## Start training model ![](img/M1.png) Click to enter the machine learning interface. ## Start recognition (computer camera) ![](img/M2.png) Enable the computer's camera to recognize using the trained model. ## Start recognition (robot camera) ![](img/M3.png) Turn on the robot's camera and start recognition. ## Stop Recognition ![](img/M4.png) Stop recognition and turn off the robot camera and computer's camera. ## Start Recognition (Web Camera) ![](img/M5.png) Enable an external network camera and start recognition. ## Recognition result is () ![](img/M6.png) Check whether the recognized result matches the selected category. ## Confidence of recognizing () ![](img/M7.png) Return the confidence score for the specified category. ## Example Train two machine learning models and use programming logic to make the character respond differently based on which model is successfully recognized. ## Operation Steps | ![](img/M8.gif) | ![](img/M9.gif) | | --- | --- | | Step 1: Connect ICRobot to the programming software (refer to AP/STA connection method). | Step 2: Add the Machine Learning Extension. | | ![](img/M10.gif) | ![](img/M11.png) | | Step 3: Click "Start Training Model" to select the training type: image recognition, gesture recognition, or pose recognition. | Step 4: Choose to Create a New Project or Import an Existing Project. | | ![](img/M12.png) | ![](img/M13.png) | | Step 5: Click the camera icon under each category to enable the corresponding camera. | Step 6: Continuously capture training images using the camera. | | ![](img/M14.png) | | | Step 7: Click the "Train Model" button to begin training.
If you want to save the project, click “Export Project” in the top-right corner.
Click "Use Model" in the bottom-right corner to return to the block programming interface. | | ## Demonstration ![](img/M15.gif)