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

Using in iOS app #11

Closed
tveritinova opened this issue May 8, 2017 · 1 comment
Closed

Using in iOS app #11

tveritinova opened this issue May 8, 2017 · 1 comment
Labels

Comments

@tveritinova
Copy link

Hello!

Can I use this library in iOS application? If yes, how?

@cheind
Copy link
Owner

cheind commented May 9, 2017

Hi! I'm not really familiar with iOS, but I'd say this should be possible.

One way to go about it is to use iOS built-in face detection and then run DEST on rectangles provided by iOS to regress the landmarks. To make this work you will need to train DEST on typical rectangles provided by the face detection algorithm. This could be accomplished by running the face detection of iOS (maybe in simulation on a Mac) on all training and test images to provide rough estimates of faces. Then train DEST on these images / rectangles. The resulting regressor is stored as file that can be uploaded to the mobile phone (and is binary portable). Finally wrap the core of DEST using your language of choice on iOS. I'm pretty sure that Swift allows you to call C++ code from within Swift.

Alternatively, you can use OpenCV on iOS and use the pretrained model files.

@cheind cheind added the question label May 9, 2017
@cheind cheind closed this as completed Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants