Deploy and Train General Models

AI Camera 2.0 supports smart recognition using custom models.

1. Preparations

2. Train custom models

Step 1: Create a training project

  1. Log in to the mTraining web platform.
  2. Choose Training Projects > New Project.
57df53fb-1011-43dc-a75a-c15f9c0a1011.png

 

  1. Set the project name, select the task type, and click Start Training.
    • Image Detection (identify object locations)
    • Image Classification (identify object categories)
mTraining3 英文版.jpg

 

Step 2: Build a dataset

  1. Open the project you just created and choose Select Dataset > Create New Dataset.
e6b5ba03-5a43-475b-bc16-24505c171e57.jpg
798726a4-5212-463e-a33c-0ece16e10a32.jpg

 

  1. Specify Dataset Name and select Dataset Type (must match the project type), and then click Create Dataset.
mTraining6 英文版.jpg

 

  1. Prepare images using one of the following methods:

Method 1: Upload from your computer – click Upload Images to import local files.

Method 2: Capture images with the device: 

   a. Click Device Collection.

   b. In the Device Collection section on the left, select Training Set and click Generate QR Code.

mTraining7 英文版.jpg
mTraining8 英文版.jpg

 

    c. On AI Camera 2.0, tap Self-trained Model, or use the corresponding coding block to start this feature.
6c57cf8f-d3d3-4ddf-8fb0-4ea76688aa44.png

 

    d. Click Collect Image and scan the QR code on mTraining to open the photo capture interface. (Note: QR codes are valid for 5 minutes; refresh if expired.)
mTraining9.jpg

 

   e. Aim AI Camera 2.0 at the target and use the Photo function. When the text Uploaded is displayed in the lower left corner, the image has been successfully uploaded.
MVIMG_20250703_160552.jpg

 

Step 3: Annotate data

  1. In the dataset page, click Annotate Data to enter the image annotation interface.
5250acff-6fe5-4a5e-ab1c-ab87dac12cdb.jpg

 

  1. Click Add Label and create the required categories (e.g., Dog, Cat, Car).

df30153b-fe2b-45eb-8fcd-93ce4d9441cf.jpg

 

  1. Annotate each image:
    • Object Detection: Draw a box around the target, select the label, and click Save Annotation.
    • Image Classification: Assign a label to the entire image.

Once all images are labeled and categorized, the dataset annotation is complete.

431b06cd-4292-4155-b0a4-c4f6b9acf55a.jpg

 

Step 4: Train the model

  1. Click Training Projects, bind the annotated dataset to your project, and click Confirm.
      The system will display an overview of the dataset.
mTraining19 英文版.jpg

 

  1. Click Create Training Task and set the following parameters:
    • Name: training task name
    • Batch Size: recommended 8–16
    • Epochs: typically 50–200
    • Maximum Learning Rate: 0.001 by default

Click Create Task to start training after all parameters are set.

mTraining18 英文版.jpg

 

Step 5: Deploy the model

  1. Select the trained model and click Deploy to generate a QR code.
mTraining20 英文版.jpg
5b195ba9-7fed-4898-8b98-bb2392cdd374.png
mTraining21 英文版.jpg

 

2. On AI Camera 2.0, tap Self-trained Model and click Deploy Model.
mTraining26.jpg
 
  1. Scan the QR code to automatically download the trained model.

mTraining22 英文版.jpg
mTraining23.jpg

 

3. Use and manage models

Use models

Go to the model detection page to recognize learned objects.

670bbfc1-4a5a-4018-acc5-a98b9bfa9d46.jpg

 

Manage models

In My Models view, you can view all models and click Edit to deploy or delete a model.

mTraining25.jpg
mTraining26.jpg

 

Coding block example: Cat & dog detection with distance alert

通用模型英文积木块1.png

 

通用模型英文积木块2.png
 

This example uses AI Camera 2.0 to recognize cats and dogs. By combining coordinate analysis with light alerts, this example demonstrates the intelligent perception process from object detection and distance analysis to status feedback.

通用模型案例积木块 英文.png

 

6c8877a7-86dd-49ee-a942-ea75f8821aa0.png

 

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.