Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to convert data to correspond pixel on screen #7

Open
peterwang1996 opened this issue Jul 13, 2019 · 0 comments
Open

How to convert data to correspond pixel on screen #7

peterwang1996 opened this issue Jul 13, 2019 · 0 comments

Comments

@peterwang1996
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant