jiahansu / gazejs Goto Github PK
View Code? Open in Web Editor NEWGazeJS project hosts an implementation of the JavaScript bindings for Tobii Gaze SDK
License: Other
GazeJS project hosts an implementation of the JavaScript bindings for Tobii Gaze SDK
License: Other
I'm very Beginner....
Please help!!
I don't know how to use this.
When I use this ,arise error.「Cannot find module 'myclass'」
what should I do?please help ....
First I would like to thank you for this package. It is really helpful to be able to integrate my EyeX with my js project.
I am wondering how I should calibrate the eye tracker. Should I do this from the Tobii software before running my js project, or is there a way to access the calibration procedure from within gazejs. I notice that the calibration file in the Tobii folder is empty.
The following sequence of steps does not work:
Invocation of start() after stop() throws an exception. Reason is that start() checks the status of the tracker and throws 'Illegal status to start tracker' if the status is not INIT.
I tried to modify the start() function as follows:
start: function() {
if (this.status === module.exports.INITED || this.status === module.exports.STOPPED) {
var eventLoopErrorCode = new bridjs.NativeValue.uint32(),
self = this;
Now I get an exception from bridjs:
[2015-07-21 09:18:20.019] [INFO] TobiiGazeImpl - OnConnect
C:\Users\thomas.kern\work\webstorm\ww2015-app-polymer1.0\node_modules\gazejs\node_modules\bridjs\lib\bridjs.js:366
throw new BridjsException("Buffer was allocated: " + this.
^
Error: Buffer was allocated: undefined
at _bridjs_impl_update_buffer (C:\Users\thomas.kern\work\webstorm\ww2015-app-polymer1.0\node_modules\gazejs\node_modules\bridjs\lib\bridjs.js:366:27)
at _bridjs_impl_update_buffer (C:\Users\thomas.kern\work\webstorm\ww2015-app-polymer1.0\node_modules\gazejs\node_modules\bridjs\lib\bridjs.js:312:35)
at Array.<anonymous> (C:\Users\thomas.kern\work\webstorm\ww2015-app-polymer1.0\node_modules\gazejs\node_modules\bridjs\lib\utils.js:77:34)
at onDone (C:\Users\thomas.kern\work\webstorm\ww2015-app-polymer1.0\node_modules\gazejs\node_modules\bridjs\lib\function_callback_wrapper.js:61:45)
My modification worked for bridjs 1.7.3. I only have this problem with bridjs 2.x.
Hi there,
I'm trying to get your demo app to run locally and running into some issues. It seems like the app is able to connect to the eye tracker - it's able to console.log
the OnConnect and OnStart hooks just fine. But something goes wrong right after that:
λ node app
[2017-05-18 14:01:24.265] [DEBUG] TobiiGazeImpl - Tobii EyeTracker Model name: tobii-ttp://is404-100107615293
[2017-05-18 14:01:24.268] [DEBUG] TobiiGazeImpl - Tobii Gaze SDK version: 4.1.0.806
[2017-05-18 14:01:24.269] [DEBUG] TobiiGazeImpl - runEventLoop++
[2017-05-18 14:01:24.269] [DEBUG] TobiiGazeImpl - runEventLoop--
[2017-05-18 14:01:24.488] [INFO] TobiiGazeImpl - OnConnect
Library version: undefined
Model name: tobii-ttp://is404-100107615293
OnConnect
[2017-05-18 14:01:24.497] [DEBUG] TobiiGazeImpl - OnStart
OnStart
[2017-05-18 14:01:24.506] [DEBUG] TobiiGazeImpl - OnDeviceInof, serial number = IS404-100107615293
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
exception at handle frame Error decoding xds message
[2017-05-18 14:01:24.878] [DEBUG] TobiiGazeImpl - OnStop
OnStop
[2017-05-18 14:01:24.879] [INFO] TobiiGazeImpl - Release eyeTracker: < Pointer: 0,000,02A,970,CEA,230 >
[2017-05-18 14:01:24.881] [DEBUG] TobiiGazeImpl - onDisconnection
[2017-05-18 14:01:24.883] [DEBUG] TobiiGazeImpl - gaze.runEventLoop() returned
[2017-05-18 14:01:24.884] [DEBUG] TobiiGazeImpl - Release EyeTracker done
Could you help me figure out what's going on here? I did some research on the Tobii developer forums, and it looks like they have deprecated their Gaze SDK - does that mean it's no longer possible to use gazejs?
Thank you!
Nathaniel
Hi,
I tried to use your node package but it looks like the binding with bridjs need to be update for the latest version of the gaze sdk?
[2015-11-15 20:10:26.842] [DEBUG] TobiiGazeImpl - Tobii EyeTracker Model name: t
et-tcp://127.0.0.1
[2015-11-15 20:10:26.850] [DEBUG] TobiiGazeImpl - Tobii Gaze SDK version: ...
Library version: undefined
Model name: tet-tcp://127.0.0.1
[2015-11-15 20:10:26.983] [DEBUG] TobiiGazeImpl - runEventLoop++
[2015-11-15 20:10:26.986] [DEBUG] TobiiGazeImpl - runEventLoop--
[2015-11-15 20:10:27.000] [DEBUG] TobiiGazeImpl - gaze.runEventLoop() returned
I used: Tobii Gaze SDK C API 4.1.0 Win64 (http://developer.tobii.com/?wpdmdl=131)
Alternatively, can you send me the link of the gaze sdk version that you have been using (4.03)?
Thanks a lot!
--Henri
Hi
I'm using the package with my Tobii Eye Tracker 4C. I ran using the sample code in README.md and it worked with output as follow:
{
left: { x: 0.35557255148887634, y: 0.5967899560928345 },
right: { x: 0.33398452401161194, y: 0.5947821736335754 },
prefered: { x: 0.34477853775024414, y: 0.595786064863205 },
timeSeconds: 8.643278199015185
}
It changes when I‘m moving fixation point on screen, so I'm sure the data is valid. The only question I'm facing is how can I convert the data to match the pixels on screen. I don't know what should I do to finish the conversion, or I should use a different API. I tried to search but find nothing useful. So is there any advise for the problem? Thx and RSVP.
C:\tt>node test
C:\tt\node_modules\gazejs\lib\eyelink\gaze_tracker_impl.js:43
micro =new eyetypes.MICRO(), hookFunctions = new core_expt.HOOKFCNS2();
^
TypeError: core_expt.HOOKFCNS2 is not a constructor
at Object. (C:\tt\node_modules\gazejs\lib\eyelink\gaze_tracker_impl.js:43:55)
at runFactory (C:\tt\node_modules\amdefine\amdefine.js:183:30)
at define (C:\tt\node_modules\amdefine\amdefine.js:277:13)
at Object. (C:\tt\node_modules\gazejs\lib\eyelink\gaze_tracker_impl.js:37:1)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.