Use Recognition Features of AI Camera 2.0

Face recognition

With face recognition, you can use AI Camera 2.0 to learn or delete faces, and obtain the center coordinates (X, Y), width and height (W, H), confidence score, and emotions of a face using blocks on mBlock. This feature allows you to create projects such as a face-following car or a smart access control system.

Operation steps

  1. Tap the Face icon on the AI Camera 2.0 to start the face recognition feature.
    canera界面图.jpg
 
  1. Orient AI Camera 2.0 toward the face for recognition. For a new face, AI Camera 2.0 will frame it in white and display Unknown. The top menu shows available operations for the current face: Face Detection, Face Learning, and Emotion Recognition. You can tap the corresponding option or toggle the switch on the top left or right to switch between them.
人脸框选.jpg
 
Face learning

Aim the cross in the center of the screen at the face, then press the Learn button on the top of the device or tap the learning icon.

press the learn button.png
 

After learning, AI Camera 2.0 marks the face with a green box and displays it as Face1. The number following the name represents the recognition confidence. In the example below, the confidence is 0.89.

人脸学习1.jpg
 

Face deletion

Aim the cross on the screen at a learned face, and then press the Learn button or tap the forget icon. In the Confirm to forget? dialog box, tap Confirm.
人脸学习4.jpg
 

Face detection

Tap Face Detection or toggle the switch on top to the left to select Face Detection.
人脸学习5.jpg
 

Expression recognition

Tap Expression Recognition or toggle the switch to the right to select Expression Recognition.
人脸学习6.jpg

 

Coding block example

Face recognition blocks

9251f601-35c7-46c2-af82-ed25057e55fc.png
 
In this example, pressing button A triggers face recognition and renaming. Combined with emotion judgment, coordinate tracking, and screen feedback, it intuitively demonstrates the interaction process from face recognition and data binding to state awareness.
人脸识别案例积木块 英文.png

 

Color recognition

AI Camera 2.0 can learn and recognize colors. It can obtain information such as a color’s coordinates (X, Y), width and height (W, H), and quantity. This feature, together with the small balls included in the package, helps you create color-based sorting projects.

Operation steps

  1. Start the color recognition feature:

    Method 1: Tap the Color icon on the AI Camera 2.0 screen.

canera界面图.jpg
 
    Method 2: In mBlock’s General category, use the Start Blob Recognition block to start the feature.
颜色学习1.jpg
 
  1. Aim the cross in the center of the AI Camera 2.0 screen with the target color block. Press the Learn button or tap the color area. AI Camera 2.0 will automatically frame the block and display its L, A, and B values.
颜色学习3.jpg
颜色学习4.jpg
 

Color learning

Tap the learning icon in the upper right corner, and the device will learn the color block selected in the lower left corner. The block will be marked with a green box and assigned a color block ID.
颜色学习5.jpg
 

Color switching

Switch the color in the lower left corner. The device marks the new color block with a green frame and displays its color block ID.

Color deletion

Select the color block ID you want to delete in the lower right corner, then tap the forget icon in the upper right corner to remove that color.

Coding block example

In this example, AI Camera 2.0 can learn and recognize the colors of different balls within its field of view. Combined with LED light feedback and screen display, AI Camera 2.0 intuitively demonstrates the process from color recognition and data extraction to visual feedback.
颜色识别案例积木块 英文.png

 

Gesture recognition

AI Camera 2.0 comes with 12 built-in gestures and recognition cards to support gesture recognition. It provides the coordinates of each key point, enabling more advanced interactive features.

In addition to gesture recognition, AI Camera 2.0 also supports gesture learning, which allows you to create fun projects such as interactive robots.

dddc6d0b-925f-4ff7-b143-7d778dd04cad.png
 
 

Operation steps

  1. Start the gesture recognition feature:
  • Method 1: Tap the Gesture icon on the AI Camera 2.0 screen.
90d88c70-1e11-40cd-8cb1-83d0699ea97f.png
  • Method 2: In mBlock’s General category, use the Start Gesture Recognition block to start the feature.
  1. Use gesture recognition features.

Gesture recognition

In Gesture Recognition mode, AI Camera 2.0 can detect multiple gestures and display a hand keypoint map. You can turn keypoint detection on or off by tapping the upper-right corner icon.
手势识别1.jpg
手势识别2.jpg
 
 

Gesture learning

When AI Camera 2.0 detects a new gesture, a white box will appear. Press the Learn button on the device or tap the learning icon to save it. When the same gesture is detected again, AI Camera 2.0 will show a green box and the stored name (e.g., Hand ID1).
手势识别3.jpg
手势识别4.jpg

 

Gesture deletion

Make the gesture you want to delete and press the Learn button or tap the forget icon. The screen will prompt Confirm to forget?. Tap Confirm to delete the gesture.

Coding block example

Gesture recognition blocks
2025-09-04_180837.png
 
In this example, AI Camera 2.0 recognizes multiple gestures in real time in Gesture Recognition mode. Combined with on-screen display, LED lighting, and sound feedback, AI Camera 2.0 demonstrates the interaction process from gesture recognition and data extraction to multisensory interaction.
手势识别案例积木块 英文.png

 

Tag recognition

AI Camera 2.0 can recognize AprilTags, QR codes, and barcodes. For AprilTag recognition, AI Camera 2.0 can detect both the distance and rotation angle of an AprilTag relative to the camera. With tag recognition, you can create vision-based positioning projects.

Operation steps

  1. Start the tag recognition feature:
  • Method 1: Tap the Tag icon on the AI Camera 2.0 screen.
f7e464b1-d736-4178-bfba-420035f8f721.png
  • Method 2: In mBlock’s General category, use the Start Tag Recognition block to start the feature.
  1. Use tag recognition features.

AprilTag recognition

AI Camera 2.0 automatically marks all detected AprilTags with a white box, assigns them numbers, and retrieves their positions along with 3D data for spatial positioning.

标签识别1.jpg
 
QR code recognition

AI Camera 2.0 automatically selects all QR codes in view and displays the decoded information at the bottom of the screen.

标签识别2.jpg
 
Barcode recognition

AI Camera 2.0 automatically detects barcodes in view and shows the decoded result at the bottom of the screen. It also supports recording via barcode scanners.

标签识别3.jpg

Coding block example

Tag recognition blocks

2025-09-04_182212.png
 
In this example, AI Camera 2.0 performs AprilTag recognition and spatial positioning. Combined with 3D distance calculation, angle offset, and on-screen display, AI Camera 2.0 intuitively demonstrates the perception process from visual recognition and spatial awareness to data feedback.
标签识别案例积木块 英文.png
标签识别4.jpg
 

Object recognition

AI Camera 2.0 comes with a built-in large language model (LLM) and identification cards, supporting recognition of 80 types of objects. Additionally, AI Camera 2.0 can recognize the objects selected on the screen. Leveraging the object recognition feature, you can implement projects involving object classification and tracking.

Operation steps

  1. Start the object recognition feature:
  • Method 1: Tap the Object icon on the AI Camera 2.0 screen.
752610e5-91b2-4247-9798-d215b00be195.png
  • Method 2: In mBlock’s General category, use the Start Item Recognition block to start the feature.
  1. Use object recognition features.

Object recognition

Select Object Recognition and AI Camera 2.0 will mark the detected object with a green frame and display its name.

物体识别1.jpg
 
Object learning
Align the white box frame with the object, then press the Learn button or tap the learning icon to complete learning.
物体识别2.jpg
 
When a learned object is detected again, AI Camera 2.0 will display a green box and the recorded name, such as ID1 in this example.
物体识别3.jpg
 
Object deletion

Align the white box frame with the target object, press the Learn button or tap the forget icon in the upper right corner. The screen will prompt Confirm to forget?. Tap Confirm to delete the object.

物体识别4.jpg

 

Coding block example

Object recognition blocks
2025-09-04_185930.png

 

By using AI Camera 2.0 to recognize objects and identify coordinates, you can specify the conditions for determining whether different objects are close. In the following example, AI Camera 2.0 is used to determine whether a person and a mouse are close by acquiring their respective positions.

物体识别案例积木块 英文.png
物体识别5.jpg
 

Speech recognition

AI Camera 2.0 supports Chinese and English speech recognition. With this feature, you can create projects such as a voice assistant.

Operation steps

  1. Start the speech recognition feature:
  • Method 1: Tap the Speech icon on the AI Camera 2.0 screen.
0f1b3b4c-1f34-46e5-99f5-ba69793b1d80.png
  • Method 2: In mBlock’s General category, use the Start Speech Recognition block to start the feature.
  1. Use speech recognition features.

Speech recognition

In English or Chinese mode, speak in the selected language. AI Camera 2.0 will recognize your speech and display the detected text in English or Chinese at the bottom of the screen.

语音识别1.jpg
语音识别2.jpg
 
 

Speech learning

After a word or phrase is recognized, press the Learn button or tap the learning icon in the upper-right corner to save it. Tap the list in the lower right corner to view stored words.
语音识别3.jpg
语音识别4.jpg

 

Speech deletion

Tap the Delete icon next to a saved word. The screen will prompt Confirm to delete?. Tap Confirm to delete the word.
语音识别5.jpg

Coding block example

Speech recognition blocks
2025-09-05_104623.png
 
In this example, AI Camera 2.0 recognizes the keywords Turn on the light and Turn off the light. Combined with LED light feedback, this example demonstrates the process from speech recognition and command response to visual interaction.
英文案例 开灯.jpg
英文案例 关灯.jpg
 

Character recognition

AI Camera 2.0 supports character recognition (or OCR) of both Chinese and English. With this feature, you can create projects such as a smart parking system.

Operation steps

  1. Start the character recognition feature:
  • Method 1: Tap the OCR icon on the AI Camera 2.0 screen.
66cdfb49-9913-47ab-a6f7-d036d8ccefd9.png
  • Method 2: In mBlock’s General category, use the Start OCR block to start the feature.
  1. Use the character recognition feature. AI Camera 2.0 highlights detected Chinese or English characters with a green box, and the recognized text will be displayed in the upper-left corner of the box.
文字识别1.jpg

Coding block example

Character recognition blocks
2025-09-05_110140.png
In this example, AI Camera 2.0 recognizes characters in real time and determines its coordinates, which can be applied to smart parking projects.
文字识别案例积木块 英文.png
文字识别2.jpg
 

Posture recognition

AI Camera 2.0 comes with 12 built-in postures and recognition cards. The posture recognition feature provides the coordinates of each key point, enabling more precise interaction. With this feature, you can create motion-sensing robot projects, similar to the robots in the movie Real Steel.

Operation steps

  1. Start the posture recognition feature:
  • Method 1: Tap the Posture icon on the AI Camera 2.0 screen.
6c28beba-4008-4188-bcab-c6b273a8c1e9.png
  • Method 2: In mBlock’s General category, use the Start Posture Recognition block to start the feature.
  1. Use the posture recognition feature. Select Posture Recognition. AI Camera 2.0 can recognize 12 common postures and display a human skeleton model. You can turn skeleton point detection on or off by tapping the human icon in the upper-right corner.
姿态识别1.jpg

Coding block example

Posture recognition blocks
2025-09-05_112819.png
 
Recognizable postures
5032f5df-0b07-4455-9947-9757336b1868.png
 
0571ce73-4786-4ff0-b1e8-0c83859c53a2.png
 
In this example, AI Camera 2.0 captures the X-coordinates of both hands in real time by using posture keypoints. By adjusting LED brightness based on the horizontal distance, it demonstrates the process from motion capture and data processing to interactive feedback.
姿态识别案例积木块 英文.png
 
姿态识别2.jpg
 

Path recognition

AI Camera 2.0 supports path recognition based on learned line colors and can obtain the path offset.

Operation steps

  1. Start the path recognition feature:
  • Method 1: Tap the Line icon on the AI Camera 2.0 screen.
31439856-9bc9-4430-81f6-2f9a793d653c.png
  • Method 2: In mBlock’s General category, use the Start Line Recognition block to start the feature.
  1. Use line recognition features.

Line learning

Press the Learn button or tap the target position on the screen. AI Camera 2.0 will learn the LAB color threshold at that position, and an arrow in the center of the screen will indicate the forward direction.

路径识别1.jpg
路径识别2.png
 
 
Line switching
Tap the eye icon in the upper-right corner to enable or disable binarization. When binarization is enabled, the screen will display in black and white: white represents the learned line color, and black represents unlearned areas.
路径识别3.png
 

Line deletion

Tap Line in the lower right corner to view stored lines. Then tap the forget icon in the upper-right corner to delete a learned line, or overwrite it by learning a new one.

Coding block example

Path recognition blocks

2025-09-05_135104.png
 

By using CyberPi, AI Camera 2.0, and mBot 2, this example implements line-following control based on path offset. By adjusting wheel speed differences, this example demonstrates the autonomous driving process from line recognition and offset detection to automatic correction.

路径识别案例积木块 英文.png

Taking photos and videos

AI Camera 2.0 also supports taking photos and videos. You can take photos or record videos using the Camera feature and preview or view them in the Photos library.

6250d289-b0ad-4465-a545-077734427dcb.png

 

To import photos to your computer for model training, follow these steps:

  1. Connect it to your computer using a USB cable.
  2. Press and hold the Learn button on AI Camera 2.0 and
  3. When a new drive appears on your computer, release the Learn button.

The computer will recognize a drive of approximately 8 GB containing all photos and videos. You can copy and use them directly.

AI Camera 2.0 must be connected to Wi-Fi to display the correct time. If Wi-Fi is not connected, photo timestamps may default to the initial time of 1970.

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

Comments

1 comment
  • これらの機能を日本語に対応していただけるとありがたいです!

    0

Please sign in to leave a comment.