This guide explains how to use the Microsoft Cognitive Services extension in mBlock v3.4.1 for face, emotion, text, and speech recognition.
This document introduces the Microsoft Cognitive Services extension available in mBlock version 3.4.1. It details how to access and utilize the extension's blocks for face recognition, emotion recognition, text recognition, and speech-to-text conversion via API keys.
The guide covers the specific function blocks for starting and stopping these recognition processes, as well as blocks for receiving and interpreting results such as face positions, detected emotions, and recognized text. It also provides programming examples demonstrating real-time face detection, age estimation, emotion detection, and speech recognition. This manual is written in Chinese.
The Microsoft Cognitive Services Face API is used to detect faces and their locations in video.
The Emotion API can identify eight common expressions including anger, contempt, neutral, fear, disgust, happiness, sadness, and surprise.
The video transparency must be set to 50% because the Scratch brush color is too pale.