-
Notifications
You must be signed in to change notification settings - Fork 125
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
How can I draw correct circle for face landmark at Portrait mode? #38
Comments
did you find any solution on this? i'm having the same problem |
I gave up using this library. |
I managed to fix this issue; just 4 years after. If you go through the instructions provided in #5 That's because the author has pushed a "simplified version" of DlibWrapper class, so I had to go through the previous commit history and I found it (the one in May 2016). First and foremost, replace the entirety of your DlibWrapper.mm file to the following:
I applied the changes made in the comments in issue #5 so that now it supports portrait mode. Next change you need to make is...
BE AWARE! There are TWO captureOutput(s) — you must choose the one which has NO code inside of the function block except for a simple print line. Then you wanna add the following inside the function: So the final version of SessionHandler's captureOutput function will look like the following:
BOOM. All issues have been resolved. OH BY THE WAY, add Hope that helps, I know maybe I'm a little too late now that the Vision framework/ARKit framework is out, but in the case you're writing C++ code in tandem with Swift and want to import these stuff from C++ side too using Objective-C++ — this is a tutorial for you! John Seong |
Never mind — you're supposed to add |
ANOTHER UPDATE - just replace the whole captureOutput to the following:
You also have to tinker with changing the .map part to |
I can't draw correct circle at Portrait mode.
I find shape, but not circle, just line. like this.
How can I draw correct circle for face landmark at Portrait mode?
I only fixed two things.
I checked #5 but I can't understand this problem.
My Environment
MacOS Catalina 10.15.2
Xcode 11.3.1
iPhone7 (iOS 13.3.1
commit version 748f2ea
The text was updated successfully, but these errors were encountered: