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

Increase canvas size to match video element, improve quality? #153

Open
risoms opened this issue Jun 22, 2018 · 2 comments
Open

Increase canvas size to match video element, improve quality? #153

risoms opened this issue Jun 22, 2018 · 2 comments

Comments

@risoms
Copy link

risoms commented Jun 22, 2018

Hello, I’m wondering if it’s possible to increase the canvas size (right now at 300x150 pixels) to match the video element used for face detection. If it is possible, does this provide any better estimate accuracy? The reason I ask is that I’m working with a webcam with 4K resolution and it would seem like a waste to not make the most of the resolution.

@FilipChalupa
Copy link

With that kind of resolution you would need very fast CPU. Some image computations are better done on smaller resolution.

@andrevenancio
Copy link

It depends @risoms.

If we're talking about real time face detection it will be slower because there are more pixels to analyse, but if you're analysing a video and extracting x,y coordinates to a "animation" array, then 4k will improve the accuracy.

clmtrackr uses WebGL to analyse the frames of the video element. so they are rendered on the GPU instead of the CPU.

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