How Can We Help?

Cognitive Services

Cognitive Services

The Cognitive Services extension provides more image, sound, and knowledge functions for sprites, which allows you to have more fun with stage programming.

Note: To use the Cognitive Services extension, ensure that your PC is equipped with a camera or connected to an external one and that the camera is working properly.

If your camera doesn’t work properly, refer to “What If My Camera or Microphone Doesn’t Work Properly When I Use mBlock 5?” to solve the problem.

Add the Cognitive Services extension

1. Click the Sprites tab and click + extension at the bottom of the blocks area.

2. On the Extension center page that appears, click + Add at the bottom of Cognitive Services.

After being added, the extension and its blocks are displayed in the blocks area.

Use the Cognitive Services blocks

Try to use the Cognitive Services blocks.

Create a project and program Panda to recognize your happy emotion.

(1) Program Panda as follows:

With this program, Panda recognizes your emotion for two seconds after you click the green flag.

(2) Let’s make Panda react to your happy emotion. Program Panda as follows:

With this program, Panda recognizes that you are happy and says “You are happy” when the happiness value is greater than 10.

(3) Now, execute the script. When you click the green flag, the recognition window is displayed, and Panda recognizes your emotion in two seconds. The recognition result is displayed on the stage. The value 50 indicates that you are happy, and Panda says “You are happy!”

image