2012-01-29
エンジニアサポート新年会 CROSS 2012でEmotivについてLTをしました
日本ではあまり使っている人を見ない筋電/脳波ヘッドセットのEmotiv EPOC neuroheadsetを使ってみた。デモはNodejsでデータ飛ばしてCanvasに描画した。視線の位置のxyが取れるのでそれを使った方が面白かったかなぁ。
ノンタッチUI時代とフロントエンドエンジニア (Using emotiv)
View more presentations from hagino 3000
JavaのコードはSDKのサンプルをベースにJSON作っただけ。状態を取る部分のコードは次の通り。
JSONObject currentState = new JSONObject(); Edk.INSTANCE.EE_EmoEngineEventGetEmoState(eEvent, eState); float timestamp = EmoState.INSTANCE.ES_GetTimeFromStart(eState); JSONArray actions = new JSONArray(); if (EmoState.INSTANCE.ES_ExpressivIsBlink(eState) == 1) { actions.put("Blink"); } if (EmoState.INSTANCE.ES_ExpressivIsLeftWink(eState) == 1) { actions.put("Left Wink"); } if (EmoState.INSTANCE.ES_ExpressivIsRightWink(eState) == 1) { actions.put("Right Wink"); } if (EmoState.INSTANCE.ES_ExpressivIsLookingLeft(eState) == 1) { actions.put("Looking Left"); } if (EmoState.INSTANCE.ES_ExpressivIsLookingRight(eState) == 1) { actions.put("Looking Right"); } if (EmoState.INSTANCE.ES_ExpressivIsLookingDown(eState) == 1) { actions.put("Looking Down"); } currentState.put("actions", actions); currentState.put("Excitement ShortTerm", EmoState.INSTANCE.ES_AffectivGetExcitementShortTermScore(eState)); currentState.put("Excitement LongTerm", EmoState.INSTANCE.ES_AffectivGetExcitementLongTermScore(eState)); currentState.put("Engagement Boredom", EmoState.INSTANCE.ES_AffectivGetEngagementBoredomScore(eState)); currentState.put("Frustration", EmoState.INSTANCE.ES_AffectivGetFrustrationScore(eState)); currentState.put("Meditation", EmoState.INSTANCE.ES_AffectivGetMeditationScore(eState)); send("state", currentState.toString());
トラックバック - http://d.hatena.ne.jp/hagino_3000/20120129/1327831498
リンク元
- 48 http://d.hatena.ne.jp/kaorun55/20111219/1324382913
- 45 http://www.google.co.jp/url?sa=t&rct=j&q=commonjs&source=web&cd=4&ved=0CEMQFjAD&url=http://d.hatena.ne.jp/hagino_3000/20100207/serverjs&ei=uEYlT_ryHuaMiALR4pS_Bw&usg=AFQjCNH-NtUzLjonu7l9frih7VvsJjXWMg&sig2=mRyVPY8El7qHWROIu4p_Bw&cad=rja
- 45 http://www.google.co.jp/url?sa=t&rct=j&q=javascript+メモリリーク&source=web&cd=2&ved=0CD4QFjAB&url=http://d.hatena.ne.jp/hagino_3000/20090316/1237134527&ei=gVknT7L6OueNmQXRhN3FAw&usg=AFQjCNGi_dTF5G5r0e
- 44 http://www.google.co.jp/url?sa=t&rct=j&q=キネクト マウス&source=web&cd=2&ved=0CDYQFjAB&url=http://d.hatena.ne.jp/hagino_3000/20110310/1299698106&ei=f04lT5PFKYKeiQLZzpTaBw&usg=AFQjCNHYux3Kz1hY0
- 43 http://www.google.co.jp/url?sa=t&rct=j&q=この操作を完了するのに十分な記憶領域がありませ??%
- 43 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCYQFjAA&url=http://d.hatena.ne.jp/hagino_3000/20110911/1315678818&ei=PR8mT4rZFo_JmAW2vbGuDA&usg=AFQjCNFOozYCR1zXoJ-S-GY_ym5LyW8wKw&sig2=0nYQ1G8PUwXegROx4J4QIA
- 35 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CC0QFjAB&url=http://d.hatena.ne.jp/hagino_3000/20120108/1326033792&ei=PR8mT4rZFo_JmAW2vbGuDA&usg=AFQjCNFCsT8FvzyVGgPYhzgP4hYZ5hzk1A&sig2=kpfuTxjFuQ5ZA1nW4tmYyA
- 33 http://node-js.info/?p=226
- 33 http://www.google.co.jp/url?sa=t&rct=j&q=javascript メモリリーク ie6&source=web&cd=2&ved=0CDoQFjAB&url=http://d.hatena.ne.jp/hagino_3000/20090316/1237134527&ei=lTMmT5z-OcjxmAWh77CuDA&usg=AFQjCNGi_d
- 28 http://www.google.co.jp/url?sa=t&rct=j&q=ie+メモリーリーク&source=web&cd=3&ved=0CE0QFjAC&url=http://d.hatena.ne.jp/hagino_3000/20090316/1237134527&ei=784lT9jWI5CWiQeLy9jKBA&usg=AFQjCNGi_dTF5G5r0



