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

Webworker #12

Open
jorgenskogmo opened this issue Mar 17, 2013 · 4 comments
Open

Webworker #12

jorgenskogmo opened this issue Mar 17, 2013 · 4 comments

Comments

@jorgenskogmo
Copy link

Hei Audun,

I was thinking, could a webworker version of the (sweet!) headtracker improve performance?

j.

@auduno
Copy link
Owner

auduno commented Mar 17, 2013

Hi,

that depends on what performance you're thinking of, how well it tracks faces or how fast it is?

It would maybe be possible to speed up tracking with web workers. I never tried implementing headtrackr for web workers, since it usually is not trivial to make the code parallelizable, and I don't have any experience with that kind of work.

When it comes to how well it manages to track faces, web workers wouldn't make a difference. To make it any better, I'd have to change the algorithm, and I haven't found any better algorithms that are fast and easy to implement so far.

-Audun

@jorgenskogmo
Copy link
Author

Hi,

Yes, it was the "speed up tracking with web workers" approach I was thinking about.
Will fiddle a bit ;-)

@auduno
Copy link
Owner

auduno commented Mar 19, 2013

You're welcome! :)
Just let me know if you have some questions, I don't know how easy the code is to understand always.

@sohaiba
Copy link

sohaiba commented Sep 16, 2014

Hi Jørgen and Audun,
We are currently using the head tracker as part of a real time application which requires displaying time-sensitive images alongside head tracking. Although we are using timers to display these images, it seems to us that the head tracker execution is prioritized due to the single threaded nature of JavaScript, resulting in delays of fifty milliseconds more than the desired time interval for each image display. We cannot afford that kind of delay associated with timers so we are considering the use of web workers to help us achieve an illusion of multi threading and thus reduce these time delays. Please let us know how successful your use of web workers with the head tracker was, what problems you had to overcome and if it helped you achieve what you wanted to do. If possible, please also suggest how we can achieve our goal using web workers with head tracker.
Thank you.

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

3 participants