티스토리 뷰

카테고리 없음

EMOTIVE_EEG + UNITY (Git)

잉_민 2024. 7. 31. 14:59

https://ing-min.tistory.com/191

 

EEG -Emotive EPOC x _ UNITY _ADD훈련

https://emotiv.gitbook.io/cortex-api/bci/training training - Cortex API However, note that for the facial expression detection, only these actions can be trained: "neutral", "surprise", "frown", "smile", "clench". emotiv.gitbook.io https://github.com/Emoti

ing-min.tistory.com

 

 

유니티에서 이모티브사의 eeg를 구현하기 위해서 git에서 기본 example을 다운 받으면 된다.

 

1.원하는 경로에

 

git clone https://github.com/Emotiv/cortex-example.git
cd cortex-example
git submodule update --init

 

https://github.com/Emotiv/cortex-example 

 

GitHub - Emotiv/cortex-example: Example with Cortex V2/V3 API

Example with Cortex V2/V3 API. Contribute to Emotiv/cortex-example development by creating an account on GitHub.

github.com

 

다운 받아지면 unity 폴더를 유니티에서 실행하면 된다. (버전 맞춰서 여는 걸 추천)

 

>>   Unity에서 Emotiv Cortex를 사용하는 방법을 데모하는 2가지 예시 Scene.

      1.  데이터 구독 및 마커 삽입 데모를 목표로 하는 EmotivUnityPlugin씬

      2.  SimpleExample씬으로 단순한 UI이지만 데모 데이터 구독마커 삽입 및 훈련 mentalcommand 데이터를 제공.

 

2. 데스크탑에서 이모티브 런처를 다운받고 , 로그인

동글 usb를 컴퓨터 본체에 꽂고, 전원 키고, 블루투스 연결

런처의 버전을 알아야한다.

 

 

데이터 구독  마커 삽입 데모를 목표로 하는 EmotivUnityPlugin씬

1. . 유니티에서. AppConfig.cs 코드 수정. id,password

(client id password는 사이트에서 인증키 발급받아야한다.)

 

 

이게 잘 설정되었으면. 플레이 버튼을 누르면

승인이 나고 기기연결을 할수있다. 런처가 꼭 켜져있어야함.

 

2, eeg 착용

이게 100센트가 되도록 식염수 잘 뿌려서 머리에 밀착시킨다. 

 

3. 선택

data subscribe

 

 

(5)구독을 하면 아래와 같이 값이 뜬다. 이거를 csv 파일로 저장하고 내보내려면...?    >> 다음과제.

 

 

*SimpleExample씬으로 단순한 UI이지만 데모 데이터 구독, 마커 삽입  훈련 mentalcommand 데이터 받기 (이게 값 받기 더 좋은 것 같다.)

1. SimpleExample.cs

 

2. 실행 (맞게 id password 작성했다면 승인남.)

a.create session 은 headset ID 

런처에 보면 연결된 디바이스 뜬다. create session. 누르면

 활성화된다. 

여기서 구독하고싶은 data subscribe하고 , 레코딩하면된다. (이름 설정해줘야 찾을 수 있다. )

train은 잘 모르겠다. 

콘솔을 잘 확인할것.

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/09   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함