chengzhengxin / sdm

Supervised Descent Method Apply to Face Alignment, and Head Pose Estimation with Linear Regression. It is cross-platfrom, easily compile in windows, ubuntu, even in Android & iOS.
448 stars 197 forks source link

Errors in IOS #2

Closed skyRino closed 7 years ago

skyRino commented 7 years ago

Great job first, but when i added the src codes in my ios project, there are some errors

it shows that:

ld: 26 duplicate symbols for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Could you please tell me that why the src can not work well.

thx!

skyRino commented 7 years ago

BTW, my environment is Xcode8, OS X 10.11.6

chengzhengxin commented 7 years ago

Have you added the OpenCV2.framework to your ios project? And can you esaily read camera with OpenCV in iOS?

skyRino commented 7 years ago

Yes, I added the framework and I can detect the face from camera in my framework with OpenCV.

chengzhengxin commented 7 years ago

Can I have a look your ViewController.mm?

chengzhengxin commented 7 years ago

1.Copy "haar_roboman_ff_alt2.xml" & "roboman-landmark-model.bin" to your iOS Project.

2.Add the OpenCV2.framework to you iOS Project, make sure you can easily read camera and show frame with OpenCV.

3.Copy the include folder under src folder to you iOS Project source code, just copy, not anything else.

4.And then "#include "include/ldmarkmodel.h"" in your .mm file, make sure not in .h file, use it like test_model.cpp, Compile & enjoy it.

skyRino commented 7 years ago

ok, thank you, i will try it.

chengzhengxin commented 7 years ago

Ok, Can you guarantee non-commercial use? If yes, I can share my iOS project to you later.

skyRino commented 7 years ago

I rebuild a new project and setup as the guide but the errors are still there.

I can guarantee non-commercial use. I just use this for academic research cause I am a PHD student.

Thanks a lot for your kindness.

chengzhengxin commented 7 years ago

what's your email address?

cpfe532 commented 7 years ago

Hi RoboPai, I got the same problem when compiling the project based on your instruction. I am not for commercial purpose also. May I have the project also? I would like to see the performance on mobile devices. Thanks.