Coder Social home page Coder Social logo

Comments (3)

DaniZz avatar DaniZz commented on July 19, 2024

edit:

I guess this is the culprit

        sample = self._tracker.get_frame()
        t1 = time.time()
        # put the sample in the Queue
        queue.put(sample)
        # release the Threading Lock
        self._lock.release()
        # Update the newest frame
        self._newestframe = copy.deepcopy(sample)
        # Calculate the clock difference
        self._clockdiff = sample['time'] - t1

from pygaze.

DaniZz avatar DaniZz commented on July 19, 2024

I still have no idea about that 'time', but I managed to convert the timestamp from string format into unix timestamp format :)

thanks to this:
http://stackoverflow.com/questions/26161156/python-converting-string-to-timestamp-with-microseconds

from pygaze.

esdalmaijer avatar esdalmaijer commented on July 19, 2024

To provide some general information on this:

The way gaze recordings and events in an experiment are generally compared and matched is NOT through comparing timestamps. The ideal way is to use the log function of the EyeTracker class at the moment that your experiment changes, for example directly after calling the show function of a Display object. In this way, there is a log message in the gaze data file at the time of your screen update.

The reason for this, is that clocks on different devices do not necessarily run at the same pace. In other words: There is a drift in the difference between the two clocks. This means a direct comparison of the timestamps on both devices is not necessarily valid.

As for the trackertime, this is what the device (or the computer running the server that talks to the device) reports as its timestamps. They are useful, because the device is where your gaze data comes from. Timestamps in tracker time are thus the most precise indication of what gaze behaviour happened when. With the EyeTracker.log function, you can add a trigger/event/message (different people use different terms) to your eye data file, which will then also be assigned a timestamp in tracker time.

from pygaze.

Related Issues (20)

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.