clmtrackr
clmtrackr copied to clipboard
Increase canvas size to match video element, improve quality?
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.
With that kind of resolution you would need very fast CPU. Some image computations are better done on smaller resolution.
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.