Giter Site home page Giter Site logo

gazeplay / tobiistreamengineforjava Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 8.0 90.12 MB

This project allows to use the Tobii Core SDK Stream Engine API in Java language through the Java Native Interface (JNI)

License: GNU General Public License v3.0

C++ 2.09% C 93.08% Java 2.96% QMake 0.82% CMake 0.30% Shell 0.75%

tobiistreamengineforjava's People

Contributors

cruede avatar kuhlkrein avatar loic-vial avatar noars avatar schwabdidier avatar yannrobert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tobiistreamengineforjava's Issues

LocalAppData returns Null on Linux

Here is the output when running on Ubuntu 18.10:

2020-01-26 18:41:47,453 INFO  net.gazeplay.commons.gaze.devicemanager.GazeDeviceManagerFactory - Eye-tracker = tobii_eyeX_4C
2020-01-26 18:41:47,459 INFO  tobii.Tobii - Tobii: Loading needed libraries using directory null/TobiiStreamEngineForJava
2020-01-26 18:41:47,460 INFO  tobii.Tobii - Tobii: Copying /lib/tobii/x64/libtobii_jni_stream_engine.so into null/TobiiStreamEngineForJava
2020-01-26 18:41:47,467 INFO  tobii.Tobii - Tobii: Loading library /home/dev/repos/GazePlay/null/TobiiStreamEngineForJava/lib/tobii/x64/libtobii_jni_stream_engine.so

Also, within IntelliJ I can see the following:
Screenshot from 2020-01-26 18-55-39

It appears that this is stemming from here

LocalAppData is not present on Linux, unlike Windows. This SO answer gives a good solution, but I haven't tried it yet.

Unique Eye Position

To give more accessibility to this project we should find a way to access the position of both eye separatly, for people using eye-tracking with one eye.

For now this function is integrated in some Tobii software for windows, but not for Linux.

get the GazePosition

in some cases, i can't access to the GazePosition because the librairy is call 2 times at the same time, so we have a concurrency.

Problem with pom.xml

I hope you guys can help me. When I use the project in Netbeans it works and prints out the gaze position in a extra window when I run the TobiiDemo class. But when I click on clean and build, the jar in the target folder does nothing. The class by itself in another project without the gaze function works fine. Any idea how to fix that?

Creation of the MacOS Librairies

In order to be used with a MacOS device we need to generate the libraries compatible to MacOS and to add the corresponding load inside the Tobii.Java class (in the MacOS TODO section)

Not a issue but a question, and i also didnt knew where to put it

Hello, I am a master's research student at the University of Coimbra currently doing some researcher with Tobii 4c eye-tracker. I have a question regarding whether you needed any kind of license to obtain the coordinates of the gaze. I'm currently trying to play with it in MatLab but every type of data regarding gaze seems to be limited with Tobi Pro SDK. Did you use Tobii Pro SDK?

Thanks for your time

NullPointerException when executing a runnable jar of the project

Hello, I am using a runnable jar file in order to trigger the recording of the sensor. Until now, i had no problem but recently i got the following error

Tobii: Copying /lib/tobii/x64/tobii_stream_engine.dll into C:\Users\Kurit\AppData\Local/.tobiiStreamEngineForJava
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:208)
at java.base/java.nio.file.Files.copy(Files.java:3112)
at tobii.Tobii.copyResourceIntoDir(Tobii.java:112)
at tobii.Tobii.loadTobiiLibraries(Tobii.java:74)
at tobii.Tobii.loadNeededLibraries(Tobii.java:44)
at tobii.Tobii.loadIfNotLoaded(Tobii.java:33)
at tobii.Tobii.gazePosition(Tobii.java:19)
at tobii.TobiiDemo.main(TobiiDemo.java:38)

I understand that when running the runnable, the code is somehow not detecting the connected eye-tracker, I am not sure what I did to trigger this, but the device only seems to work when i start the java code from Eclipse, while the execution of the Jar file won't trigger the eye-tracker to start recording.

Thank you in advance for your help and time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.