1. keep recognizing[type] for [time] secs

AI  Service - 图1

Starts to recognize the specified language for the specified period

How to Use

Note: To use the speech recognition function, you need to sign in to mBlock 5 and use a microphone.
This block provides four language options. Click to select one.

AI  Service - 图2

Example

Press the space key and say something in English. One second after you press the space key, your speech is recognized for two seconds and the panda on the stage says the words recognized.

AI  Service - 图3


2. speech recognition result

AI  Service - 图4

Reports the speech recognized

How to Use

This is a reporter block that must be used in combiantion with another block requiring data.
You can select the check box on the left of this block to view the recognized speech on the stage.

AI  Service - 图5
AI  Service - 图6


3. read [text] aloud

AI  Service - 图7

Reads the specified text aloud

How to Use

This block supports Chinese, English, and Traditional Chinese texts.
Enter a text and execute this block. The text is read aloud.
You can use the following blocks to set the type of the speaker and the speaking speech, tone, and volume.
AI  Service - 图8
AI  Service - 图9

Example

When you press the space key, the text “Merry Christmas” is read aloud.
AI  Service - 图10


4. read [text] aloud until done

AI  Service - 图11

Reads the whole entered text aloud before executing the subsequent block(s)

How to Use

The subsequent block(s) are not executed until the entered text is completely read aloud.

Example

Press the space key, and say something in English. When you press the space key, the text “start to recognize the speech” is read aloud. Then, your English speech is recognized for two seconds, and the panda on the stage says the speech recognized.

AI  Service - 图12


5. speaker’s voice: [per]

AI  Service - 图13

Sets the type of the speaker

How to Use

This block provides four speaker type options, namely standard male, standard female, emtional male, and emotional female. Click to select one.

AI  Service - 图14

Example

When you press the space key, the speaker’s voice is set to the emotional female type to read the text “happy birthday” aloud.

AI  Service - 图15


6. set [type] to [num]

AI  Service - 图16

Sets the speaking speed, tone, or volume

How to Use

This block allows you to set the speaking speed, tone, or volume to a value ranging from 0 to 15.

Example

When you press the space key, the text “happy birthday” is read aloud in an emotional female’s voice with the tone of 15.

AI  Service - 图17


7. recognize [langType] printed text after[time]secs

AI  Service - 图18

Starts to recognize the specified printed text after the specified period

How to Use

Note: To use the text recognition function, you need to sign in to mBlock 5 and use a camera.
This block provides multiple language and time options. Click to select a language and a period.

AI  Service - 图19

Example

Two seconds after you press the space key, the printed text in Chinese and English is recognized and read aloud.

AI  Service - 图20


8. recognize text on image, image address: [url]

AI  Service - 图21

Recognizes the text on the specified online image

How to Use

Enter the URL addrress of image on which the text is to be recognized. This block supports the PNG and JPG images.
You can view the URL address of an online image as follows:
Right-click the image and choose Open Link in a New Tab from the shortcut menu that appears.
The URL address displayed in the address box on the opened tab is the address of the image.

Examle

When you click the green flag, the text on the specified online image is recognized and read aloud.

AI  Service - 图22


9. recognize handwritten text after[time]secs

AI  Service - 图23

Recognizes the specified handwritten text after the specified period

How to Use

Note: To use the handwritten text recognition function, you need to sign in to mBlock 5 and use a camera.
This block provides three time options. Click to select one.
To ensure that the text can be correctly recognized, use a neat handwritten text. It is recommended that you use a text that is written on a solid color background.

Example

Two seconds after you click the green flag, the handwritten text is recognized and read aloud.

AI  Service - 图24 AI  Service - 图25


10. text recognition result

AI  Service - 图26

Reports the recognized text

How to Use

This is a reporter block that must be used in combiantion with another block requiring data.
You can select the check box on the left of this block to view the recognized text on the stage.

AI  Service - 图27

AI  Service - 图28


11. recognize license plate after[time] secs

AI  Service - 图29

Recognizes a license plate after the specified peirod

How to Use

The number and type of a license plate can be recognized.
The type of a license plate is indicated by color, which may be blue, green, or yellow. For example, the color yellow usually indicates a large-sized vehicle, such as engineering truck or truck, a motorbycle, or a learner-driven vehicle.

Example

Five seconds after you click the green flag, the license plate is recognized, and its number is read aloud.

AI  Service - 图30


12. recognition result[type]

AI  Service - 图31

Reports the number or type of the recognized license plate

How to Use

This is a reporter block that must be used in combiantion with another block requiring data.
You can select the check box on the left of this block to view the number or type of the recognized license plate on the stage.

AI  Service - 图32
AI  Service - 图33

The type of a license plate is indicated by color, which may be blue, green, or yellow. For example, the color yellow usually indicates a large-sized vehicle, such as engineering truck or truck, a motorbycle, or a learner-driven vehicle.

Example

Five seconds after you click the green flag, the license plate is recognized and its type is read aloud.
AI  Service - 图34


13. recognize [type] after[time]secs

AI  Service - 图35

Starts to recognize an image of the specified type after the specified period

How to Use

Note: To use the image recognition function, you need to sign in to mBlock 5 and use a camera.
This block provides seven type options, including general item, vehicle, logo, animal, plant, position, and landmark. Click to select one.

Type description

AI  Service - 图36

Example

Two seconds after you press the space key, the program starts to recognize the plant and read the name of the plant recognized aloud.

AI  Service - 图37 AI  Service - 图38


14. image recognition result

AI  Service - 图39

Reports information about the recognized image

How to Use

This is a reporter block that must be used in combiantion with another block requiring data.
You can select the check box on the left of this block to view information about the recognized image on the stage.

AI  Service - 图40
AI  Service - 图41


15. recognize hand gesture after[time] secs

AI  Service - 图42

Starts to recognize a hand gesture after the specified period

How to Use

Note: To use the human body recognition function, you need to sign in to mBlock 5 and use a camera.

Names and examples of some hand gestures
AI  Service - 图43

Example

Five seconds after you press the space key, your hand gesture is recognized, and the panda on the stage says the recognized hand gesture.

AI  Service - 图44 AI  Service - 图45

Information displayed on the stage
AI  Service - 图46


16. hand gesture recognition result

AI  Service - 图47

Reports the recognized hand gesture

How to Use

This is a reporter block that must be used in combiantion with another block requiring data.
You can select the check box on the left of this block to view the name of the recognized hand gesture on the stage.

AI  Service - 图48
AI  Service - 图49


17. recognize body feature after[time]secs

AI  Service - 图50

Starts to recognize the feature of the captured person after the specified period

How to Use

Note: To use the human body recognition function, you need to sign in to mBlock 5 and use a camera.
The following table lists the body features that can be recognized and the corresponding recognition results.
AI  Service - 图51

Example

Two seconds after you press the space key, body features are recognized and the panda on the stage says the recognized upper garment color.
AI  Service - 图52


18. body feature recognition result: [type]

AI  Service - 图53

Reports the recognized body feature

How to Use

This is a reporter block that must be used in combiantion with another block requiring data.
You can select the check box on the left of this block to view the recognized body feature on the stage.

AI  Service - 图54
Click to select a feature type from the drop-down list box.
The following table lists the body features that can be recognized and the corresponding recognition results.
AI  Service - 图55


19. recognize emotion after [time] secs

AI  Service - 图56

Starts to recognize an emotion after the specified period

How to Use

Note: To use the human body recognition function, you need to sign in to mBlock 5 and use a camera.
This block can be used to recognize humans’ anger, disgust, happiness, sadness, surprise, or no emotion, and it returns the degree (0–100) of the recognized emotion.

Example

Two seconds after you press the space key, emotions are recognized and the panda on the stage says the degree of happiness.
AI  Service - 图57


20. emotion [type]intensity

AI  Service - 图58

Reports the degree of the recognized emotion

How to Use

This is a reporter block that must be used in combiantion with another block requiring data.
You can select the check box on the left of this block to view the degree of the recognized emotion on the stage.
AI  Service - 图59
The value ranges from 0 to 100.
Click to select an emotion type from the drop-down list box.


21. emotion is [type] ?

AI  Service - 图60

Determines whether the specified emotion is recognized

Example

Two seconds after you press the space key, emotions are recognized. If happiness is recognized, the panda on the stage says “I’m happy!”

AI  Service - 图61


22. measure[time] pedestrian volume

AI  Service - 图62

Starts to count people in the captured image after the specified period

How to Use

Note: To use the human body recognition function, you need to sign in to mBlock 5 and use a camera.
Click to select a time period from the drop-down list box.
AI  Service - 图63

Example

Two seconds after you press the space key, people in the captured image is counted and the count value is read aloud.
AI  Service - 图64


23. pedestrian volume result

AI  Service - 图65

Reports the number of people counted in the capture image

How to Use

This is a reporter block that must be used in combiantion with another block requiring data.
You can select the check box on the left of this block to view the number of people counted in the captured image on the stage.

AI  Service - 图66
AI  Service - 图67


24. recognize key body point after[time] secs

AI  Service - 图68

Starts to recognize key body points after the specified period and returns the x- or y-coordinate of the specified key body point

How to Use

Note: To use the human body recognition function, you need to sign in to mBlock 5 and use a camera.
This block can be use to recognize 14 key body points, such as nose and neck, and returns the x- or y-coordinate of the specified key body point in the captured image.
The following figure shows the x- and y-coordinates of a captured image.
AI  Service - 图69

Example

Two seconds after you press the space key, key body points are recognized and the panda on the stage says the y-coordinate of the nose.

AI  Service - 图70


25. key point [point]’s [coordinate]

AI  Service - 图71

Reports the x- or y-coordinate of the specified recognized key body point

How to Use

This is a reporter block that must be used in combiantion with another block requiring data.
You can select the check box on the left of this block to view the x- or y-coordinate of the specified recognized key body point on the stage.

AI  Service - 图72

The following figure shows the x- and y-coordinates of a captured image.
AI  Service - 图73


26. [type] text:[text]

AI  Service - 图74

Performs lexical or sentiment analysis on the entered text

How to Use

This block can be used to perform lexical or sentiment analysis on the entered text, and it returns the analysis result.

Lexical analysis

Related block: AI  Service - 图75

The following figure shows some lexical types.
AI  Service - 图76

Sentiment analysis

For sentiment analysis, this block may returns positive, negative, or neutral.

Example

After you press the space key, lexical analysis is performed on the first entered word and the panda on the stage says the part of the speech of the first word.
AI  Service - 图77

AI  Service - 图78


27. lexical analysis result: part of speech of the[number] vocabulary

AI  Service - 图79

Reprots the part of speech of the specified word

How to Use

This is a reporter block that must be used in combiantion with another block requiring data.
You can select the check box on the left of this block to view the the part of speech of the specified word on the stage.
AI  Service - 图80

AI  Service - 图81

The following figure shows some lexical types.
AI  Service - 图82



28. sentiment analysis result

AI  Service - 图83

Reprots the sentiment of the specified word

How to Use

This is a reporter block that must be used in combiantion with another block requiring data.
You can select the check box on the left of this block to view the the sentiment of the specified word on the stage.
The sentiment of a word may be positive, negative, or neutral.
AI  Service - 图84

AI  Service - 图85


29. semantic similarity analysis text1: [text_1] text2: [text_2]

AI  Service - 图86

Analyzes the sematic similarity between two texts

How to Use

This block can be used to analyze the semantic similarity between two entered texts. The returned value ranges from 0 to 100. A greater value indicates higher semantic similarity.

Example

After you press the space key, semantic similarity between the two entered texts is analyzed and the panda on the stage says the analysis result.
AI  Service - 图87


30. semantic similarity analysis result

AI  Service - 图88

Reprots the semantic similarity between two entered texts

How to Use

This is a reporter block that must be used in combiantion with another block requiring data.
You can select the check box on the left of this block to view the semantic similarity between two entered texts on the stage.
The returned value ranges from 0 to 100.

AI  Service - 图89
AI  Service - 图90