使用手册
-
学生
-
老师
-
编程
-
-
-
- 以 Unix 时间创建 DateTimeOffset
- 以不同单位创建 DateTimeOffset
- 以其他格式显示时间
- 以毫秒显示DateTimeOffset
- 使用当前时间创建DateTimeOffset
- 将 DateTimeOffset 与新的协调世界时偏移量合并
- 将 DateTimeOffset 变更成字串格式
- 将文字转换为 DateTimeOffset 格式
- 将间距加到dateTimeOffset
- 检查DateTimeOffset是否在正确的数据类型
- 检查两个DateTimeOffsets是否相同
- 计算两个DateTimeOffsets之间的间距
- 设定协调世界时偏移量
- 转换DateTimeOffset为字串
-
Print
计算多少人有不同情绪和值
FaceDetectionResult数情绪数值的人数
{"blocks":"Emotion.Anger faceDetectionResult 0 "}
这积木是用作计算多少人有不同情绪。
参数:
- 人工智能结果(Azure人脸辨识)
情况: - 愤怒(预设)/鄙视/厌恶/恐惧/幸福/自然/悲伤/惊喜。
- 数字(预设:0)
输出:人工智能结果
示例代码:
{"blocks":"mainLayout mainScreen image result anger dateTimeOffset mainLayout 0 mainScreen 0 Main mainLayout image 0 https://i.imgur.com/s7XDaUi.jpg result 0 image anger 0 Emotion.Anger result 0 mainLayout anger: anger mainLayout result image "}
当数值设为0时的输出结果:
当数值设为1时的输出结果:
參考:
- 这个例子中使用的图片:
https://i.imgur.com/s7XDaUi.jpg
- 这个例子中使用的图片: