文檔
聯絡我們
-
學生
-
老師
-
編程
-
-
-
-
- 將文字轉換為 DateTimeOffset 格式
- 以不同單位創建 DateTimeOffset
- 以 Unix 時間創建 DateTimeOffset
- 使用當前時間創建DateTimeOffset
- 將 DateTimeOffset 與新的協調世界時偏移量合併
- 設定協調世界時偏移量
- 將 DateTimeOffset 變更成字串格式
- 轉換DateTimeOffset為字串
- 將間距加到dateTimeOffset
- 計算兩個DateTimeOffsets之間的間距
- 檢查兩個DateTimeOffsets是否相同
- 以毫秒顯示DateTimeOffset
- 以其他格式顯示時間
- 檢查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 "}
輸出結果: