文檔
聯絡我們
-
學生
-
老師
-
編程
-
-
-
-
- 將文字轉換為 DateTimeOffset 格式
- 以不同單位創建 DateTimeOffset
- 以 Unix 時間創建 DateTimeOffset
- 使用當前時間創建DateTimeOffset
- 將 DateTimeOffset 與新的協調世界時偏移量合併
- 設定協調世界時偏移量
- 將 DateTimeOffset 變更成字串格式
- 轉換DateTimeOffset為字串
- 將間距加到dateTimeOffset
- 計算兩個DateTimeOffsets之間的間距
- 檢查兩個DateTimeOffsets是否相同
- 以毫秒顯示DateTimeOffset
- 以其他格式顯示時間
- 檢查DateTimeOffset是否在正確的數據類型
-
Print
檢測人的情緒
Face取得情緒的強度
{"blocks":"face "}
這積木是用作檢測人的情緒。
參數:
- 人工智能結果(Azure人臉檢測)
情況:字串 (anger/contempt/fear/disgust/happiness/neutral/sadness/surprise)
輸出:螢幕項目
示例代碼:
使用「檢測圖像中的人臉」積木和「取得list的項目值索引值為0」積木來取得情緒強度。
{"blocks":"anger 0 result 0 anger "}
{"blocks":"mainLayout mainScreen image result anger face dateTimeOffset mainLayout 0 mainScreen 0 Main mainLayout image 0 https://thumbs.dreamstime.com/b/portrait-happy-older-white-man-wearing-glasses-handsome-red-174874786.jpg result 0 image anger 0 result 0 anger mainLayout anger: anger mainLayout result image "}
當設定為anger時的輸出結果:
當設定為contempt時的輸出結果:
當設定為fear時的輸出結果:
當設定為disgust時的輸出結果:
當設定為happiness時的輸出結果:
當設定為neutral時的輸出結果:
When setting it to neutral, the output:
當設定為saddness時的輸出結果:
當設定為surprise時的輸出結果: