-
Notifications
You must be signed in to change notification settings - Fork 27
feat: VFT enable on windows #163
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
base: main
Are you sure you want to change the base?
Conversation
| if (!model.CaptureMethodVisible) | ||
| backend = ""; | ||
|
|
||
| if (OperatingSystem.IsWindows() && address == "HTC Multimedia Camera" && string.IsNullOrEmpty(backend)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not how you're supposed to set the backend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm aware the current solution is hacky. The main issue I encountered was that the OpenCV backend is preferred over the VFT backend. I can play with the factory all I want but Babballonia will still prefer OpenCV over ViveFacialTracker on Windows at least.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to select the VFT capture with the preferred backend dropdown.
| } | ||
| else if (OperatingSystem.IsWindows()) | ||
| { | ||
| return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what is supposed to set the capture backend, if this returns true then it gets added as a valid backend, but I'm not sure what address resolves to. If we have to, we can change this to also pass in the full name of the camera.

Adds a native library to enable the Vive Facial Tracker on Windows. Currently non-functional as the stream data is not aligned (stride issue maybe?) and babbleonia only gets a single frame of data.