Cart
 

Afective emotions in Emotiv Epoc+ with java

Home Forums Developer Forum Afective emotions in Emotiv Epoc+ with java

This topic contains 3 replies, has 4 voices, and was last updated by  Anthony Anson 1 month ago.

  • Author
    Posts
  • #266426

    Leal Daniel
    Participant

    Hello, I have a question:
    I’m trying to get the emotions like ExcitementShortTermScore,FrustrationScore,AffectivGetMeditationScore,EngagementBoredomScore and Stress using the EDK with Java. I’m using the code found on Github https://github.com/Emotiv/community-sdk/.

    Previously, I was able to get the emotions using the following code in Java:

    if (state == EdkErrorCode.EDK_OK.ToInt()) {
    int eventType = Edk.INSTANCE.IEE_EmoEngineEventGetType(eEvent);
    Edk.INSTANCE.IEE_EmoEngineEventGetUserId(eEvent, userID);
    // Log the EmoState if it has been updated
    if (eventType == Edk.IEE_Event_t.IEE_EmoStateUpdated.ToInt()) {
    Edk.INSTANCE.IEE_EmoEngineEventGetEmoState(eEvent, eState);
    EmoState.INSTANCE.ES_AffectivGetEngagementBoredomScore(eState));
    }
    }

    But with the new version of EDK I’m unable to get the score of the emotions because the method ES_AffectivGetEngagementBoredomScore(eState) doesn’t exits anymore.

    How can I archive with the new EDK?
    thanks for your feedback.

  • #274288

    ebsary lauren
    Participant

    nice post…

  • #274958

    Tien Phan
    Participant

    Hi

    Please use these API to get Performance metric (new name of Affectiv detection)
    https://github.com/Emotiv/community-sdk/blob/master/include/java/com/emotiv/Iedk/PerformanceMetrics.java

    You will need to activate license before getting this data

    • This reply was modified 1 month, 2 weeks ago by  Tien Phan.
  • #276089

    Anthony Anson
    Participant

    Informative Article.

You must be logged in to reply to this topic.