emilianavt / OpenSeeFace

Robust realtime face and facial landmark tracking on CPU with Unity integration
BSD 2-Clause "Simplified" License
1.46k stars 152 forks source link

enable use of the --fps option on non Windows systems and set the OpenCV buffer size to 1 frame #31

Closed autumn-puffin closed 3 years ago

autumn-puffin commented 3 years ago

This should allow Linux users to change the fps of webcam capture, and reduces latency for the OpenCV V4L backend. Doesn't seem to have any issues on Linux, and though I don't have a Windows machine to test it on, I'm pretty sure it'll still work fine.

emilianavt commented 3 years ago

Thank you, that looks very useful! I'll merge it after I get a chance to try it out on both systems.

Is there a specific reason the use_dshowcapture argument was removed in one place though?

Edit: Oh, I see, it shouldn't be necessary so it's fine not to pass it.