文档
-
学生
-
老师
-
编程
-
-
-
- 以 Unix 时间创建 DateTimeOffset
- 以不同单位创建 DateTimeOffset
- 以其他格式显示时间
- 以毫秒显示DateTimeOffset
- 使用当前时间创建DateTimeOffset
- 将 DateTimeOffset 与新的协调世界时偏移量合并
- 将 DateTimeOffset 变更成字串格式
- 将文字转换为 DateTimeOffset 格式
- 将间距加到dateTimeOffset
- 检查DateTimeOffset是否在正确的数据类型
- 检查两个DateTimeOffsets是否相同
- 计算两个DateTimeOffsets之间的间距
- 设定协调世界时偏移量
- 转换DateTimeOffset为字串
-
Print
检查是否蒙面
Face取得蒙面物品类型
{"blocks":"result "}
这积木是用作检测人是否蒙面。
参数:人工智能结果(Azure蒙面人脸检测)
输出:人工智能结果
示例代码:
这程式使用一个for循环显示多于一个人蒙面。此外程式使用「取得人脸」积木和「取得list的项目值索引值设为」积木来取得蒙面类型。
{"blocks":"index 0 MINUS 0 result 1 mainLayout result 0 index "}
{"blocks":"mainLayout mainScreen image result index face mainLayout 0 mainScreen 0 Main mainLayout image 0 https://image.shutterstock.com/image-photo/2-people-protective-masks-walking-260nw-1781747534.jpg result 0 image index 0 MINUS 0 result 1 mainLayout result 0 index mainLayout result image "}
输出结果: