Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 924 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 924 Bytes
  1. clone this repo

  2. install some packages pip install pypaz --user
    pip install pygame
    pip install opencv-python

  3. IoTtalk

    http://7.iottalk.tw:7788/connection open project "try", password: 123

    register a bulb by your own

  4. execute
    python DAI.py
    register your emotion model

    六個emotion,分別是happy、sad、surprise、angry、disgust、fear。(neutral無音效)

    可以自行設定DAI.py裡的 time_slot、emotion_count。

    1. emotion音效: 每(time_slot)秒判斷一次情緒,當情緒數量達(emotion_count)次會播出相對應的音效。播完音效後,所有情緒數量重置。
    2. emotion轉換燈泡: 每(time_slot)秒判斷一次情緒,不同的情緒對應到不同的燈泡顏色。

[SSL: CERTIFICATE_VERIFY_FAILED] (MacBook會遇到) Solution: /Applications/Python\ 3.10/Install\ Certificates.command