- 1. recognize speech in [LANGUAGE] for [TIMER] secs
- 2. speech recognition result
- 3. recognize printed [LANGUAGE] text after [TIMER] secs
- 4. recognize handwritten English text after [TIMER] secs
- 5. text recognition result
- 6. recognize[TYPE] in image after [TIMER] secs
- 7. [TYPE] recognition result
- 8. recognize people’s age after [TIMER] secs
- 9. age recognition result
- 10. recognize emotion after [TIMER] secs
- 11. emotion[TYPE]intensity
- 12. emotion is [TYPE] ?
- 13. recognize gender after [TIMER] secs
- 14. gender recognition result
- 15. recognize glasses type after [TIMER] secs
- 16. wearing [TYPE] ?
- 17. recognize smile score after [TIMER] secs
- 18. smile recognition result
- 19. recognize head gesture after [TIMER] secs
- 20. head [TYPE] angle (°)
1. recognize speech in [LANGUAGE] for [TIMER] secs
Recognizes speech in the specified language for 2, 5 or 10 seconds
How to use
When you run the block, the computer will record a voice and upload it to the Microsoft servers, and then the servers recognize the speech and return the speech recognition results to mblock. To use this block, please sign in to your mblock account first.
List of supported languages:
Example
After pressing the space key, say “Hello”. Your speech is recognized and the panda says “Hello” on the stage.
2. speech recognition result
Reports the speech recognition result
How to use
It is a reporter type block. A reporter block can be used in any script that requires data but cannot be used independently.
Select the checkbox next to the block to display the recognized speech.
3. recognize printed [LANGUAGE] text after [TIMER] secs
Recognizes a printed text in the specified language after 2, 5, or 10 seconds
How to use
Choose the language and time from the drop-down menus. After the specified time, the camera takes a photo and uploads it to the Microsoft servers, and the servers will recognize the photo and return the text recognition result to mblock. To use this block, sign in to mBlock 5 first. A camera is required.
Note: This block is only used to recognize printed texts, like text on books.
Example
After you press the space key, the printed text in English is recognized in two seconds, and then the panda will say the text recognition result.
4. recognize handwritten English text after [TIMER] secs
Recognizes handwritten English text after 2, 5, or 10 seconds
How to use
Choose the time from the drop-down menu. After a specified time, the camera takes a photo and upload it to the Microsoft servers, the servers will recognize the photo and return the text recognition result to mblock. To use this block, please sign in to your mblock account first, and a camera is required.
Example
After you press the space key, the handwritten English text is recognized and the panda will say the text recognition result.
5. text recognition result
Reports the text recognition result
How to use
It is a reporter type block. A reporter block can be used in any script that requires data but cannot be used independently.
Select the checkbox next to the block to display the text recognition result.
6. recognize[TYPE] in image after [TIMER] secs
After the specified time, recognizes the image and returns the image category, the image description, and the brand, celebrity, or landmark in the image
How to use
This block is used to recognize an image and return the image category, the image description, or the brand, celebrity, or landmark in the image.
To use this block, sign in to mBlock 5 first. A camera is required.
You can use the (image recognition) recognition result block to display the recognition result. Note that the same recognition type should be chosen in the two blocks.
Example
After you press the space key, the image is recognized after three seconds and the panda will describe the image.
Program:
Recognition result:
7. [TYPE] recognition result
Reports the recognized image category, image description, or brand, celebrity, or landmark in the image
How to use
It is a reporter type block. A reporter block can be used in any script that requires data but cannot be used independently.
Select the checkbox next to the block to display the specified recognition result.
8. recognize people’s age after [TIMER] secs
Recognizes people’s age after the specified time
How to use
Choose the time from the drop-down menu. After the specified time, the camera takes a photo and uploads it to the Microsoft servers, and the servers will recognize the photo and return the age recognition result to mblock. To use this block, sign in to mBlock 5 first. A camera is required.
Example
After you press the space key, the block starts recognizing people’s age after one second, and then the panda will say the age recognition result.
9. age recognition result
Reports the age recognition result
How to use
It is a reporter type block. A reporter block can be used in any script that requires data but cannot be used independently.
Select the checkbox next to the block to display the age recognition result.
10. recognize emotion after [TIMER] secs
Recognizes emotion after the specified time
How to use
The block is used to detect the happiness, neutral, surprise, sadness, anger, contempt, disgust, and fear emotion and return the emotion value.
Choose the time from the drop-down menu. After the specified time, the camera takes a photo and uploads it to the Microsoft servers, and the servers will recognize the photo and return the age recognition result to mblock. To use this block, sign in to mblock 5 first. A camera is required.
Example
When you click the green flag, the block starts recognizing emotion after three seconds, and then the panda will say the happiness value.
11. emotion[TYPE]intensity
Reports the emotion value (0-100)
How to use
It is a reporter type block. A reporter block can be used in any script that requires data but cannot be used independently.
Select the checkbox next to the block to display the emotion recognition result.
Choose the emotion type from the drop-down menu:
12. emotion is [TYPE] ?
Detects if you are in the specified emotion
Example
When you click the green flag, the block starts recognizing emotion after three seconds. If the detected emotion is happiness, the panda will say “So happy!”
13. recognize gender after [TIMER] secs
Detects gender (male or female) after the specified time
How to use
Choose the time from the drop-down menu. After the specified time, the camera takes a photo and uploads it to the Microsoft servers, the servers will recognize the photo and return the gender recognition result to mblock. To use this block, sign in to mblock 5 first. A camera is required.
Example
When you click the green flag, the block starts detecting gender after three seconds, and then the panda will say the gender recognition result.
14. gender recognition result
Reports the gender recognition result
How to use
It is a reporter type block. A reporter block can be used in any script that requires data but cannot be used independently.
Select the checkbox next to the block to display the gender recognition result.
15. recognize glasses type after [TIMER] secs
Detects the glasses type after the specified time
How to use
The block is used to detect the glasses type, including sunglasses, reading glasses, swimming goggles or no glasses.
Choose the time from the drop-down menu. After the specified time, the camera takes a photo and uploads it to the Microsoft servers, the servers will recognize the photo and return the glasses type recognition result to mblock. To use this block, sign in to mblock 5 first. A camera is required.
Example
When you click the green flag, the block starts detecting the glasses type after three seconds. If the recognition result is sunglasses, the panda will say “Cool!”.
16. wearing [TYPE] ?
Detects if you are wearing sunglasses, reading glasses, swimming goggles or no glasses
How to use
It is a boolean type block. It reports Ture if you are wearing the specified glasses, otherwise it reports False. A Boolean block must be put into the hexagonal slot of another block, and therefore cannot be used independently.
Choose the glasses type from the drop-down menu:
17. recognize smile score after [TIMER] secs
Detects smile score (0-100) after the specified time
How to use
Choose the time from the drop-down menu. After the specified time, the camera takes a photo and uploads it to the Microsoft servers, the servers will recognize the photo and return the smile score recognition result to mblock. To use this block, sign in to mblock 5 first. A camera is required.
Example
When you click the green flag, the block starts detecting the smile score after one second, and then the panda will say the smile recognition result.
18. smile recognition result
Reports the smile recognition result
How to use
It is a reporter type block. A reporter block can be used in any script that requires data but cannot be used independently.
Select the checkbox next to the block to display the smile recognition result.
19. recognize head gesture after [TIMER] secs
Detects the head gesture after the specified time
How to use
The block is used to detect the head pitch, yaw, or roll angle.
Value Range
Pitch: –90 to +90 degrees
Yaw: –180 to +180 degrees
Row: –90 to +90 degrees
Example
When you press the space key, the block starts detecting the head gesture after three seconds, and then the panda will say the pitch angle.
20. head [TYPE] angle (°)
Reports the head pitch, yaw or roll angle
How to use
It is a reporter type block. A reporter block can be used in any script that requires data but cannot be used independently.
Select the checkbox next to the block to display the specified angle.
Choose the angle type from the drop-down menu: