The face++ mainly realizes the human face scanning, locates the facial features position. Judge the degree of smile, age, etc.
Realize face recognition and so on.
Download Address: http://www.faceplusplus.com.cn
The following are notes for using this class library
//
Rootviewcontroller.m
Faceplusplusdemo_and_sdk
//
Created by Lihao on 14-3-26.
Copyright (c) 2014 Lihao All rights reserved.
//
#import "RootViewController.h"
#import "Apikey+apisecret.h"
#import "FaceppAPI.h"
@interface Rootviewcontroller ()
{
UIImage * _image;
UIImage * _IMAGE2;
}
@property (nonatomic,retain) Uiimageview * ImageView;
@end
@implementation Rootviewcontroller
-(void) dealloc{
[Self.imageview release];
[Super Dealloc];
}
-(ID) Initwithnibname: (NSString *) Nibnameornil Bundle: (NSBundle *) Nibbundleornil
{
self = [super Initwithnibname:nibnameornil Bundle:nibbundleornil];
if (self) {
Custom initialization
_image = [UIImage imagenamed:@ "face.jpg"];
_image2 = [UIImage imagenamed:@ "5e151821891.jpg"];
}
return self;
}
-(void) viewdidload
{
[Super Viewdidload];
Do no additional setup after loading the view.
Add to the Uiimageview, easy to frame the face and so on
Self.imageview = [[Uiimageview alloc]initwithframe:cgrectmake (0, _image.size.height/(_image.size.width/150) )];
[_imageview Setimage:_image];
[Self.view Addsubview:_imageview];
[_imageview release];
UIButton * Firstbutton = [UIButton Buttonwithtype:uibuttontypesystem];
[Firstbutton Setframe:cgrectmake (10, 200, 150, 30)];
[Firstbutton Setbackgroundcolor:[uicolor Yellowcolor]];
[Firstbutton settitle:@ "/detection/detect" forstate:uicontrolstatenormal];
[Firstbutton addtarget:self Action: @selector (Firstbuttonclick:) forcontrolevents:uicontroleventtouchupinside];
[Self.view Addsubview:firstbutton];
UIButton * Secondbutton = [UIButton Buttonwithtype:uibuttontypesystem];
[Secondbutton Setframe:cgrectmake (10, 250, 150, 30)];
[Secondbutton Setbackgroundcolor:[uicolor Yellowcolor]];
[Secondbutton settitle:@ "/detection/landmark" forstate:uicontrolstatenormal];
[Secondbutton addtarget:self Action: @selector (Secondbuttonclick:) forcontrolevents:uicontroleventtouchupinside];
[Self.view Addsubview:secondbutton];
UIButton * Thirdbutton = [UIButton Buttonwithtype:uibuttontypesystem];
[Thirdbutton Setframe:cgrectmake (10, 300, 150, 30)];
[Thirdbutton Setbackgroundcolor:[uicolor Yellowcolor]];
[Thirdbutton settitle:@ "/group/create/delete" forstate:uicontrolstatenormal];
[Thirdbutton addtarget:self Action: @selector (Thirdbuttonclick:) forcontrolevents:uicontroleventtouchupinside];
[Self.view Addsubview:thirdbutton];
UIButton * Forthbutton = [UIButton Buttonwithtype:uibuttontypesystem];
[Forthbutton setframe:cgrectmake (10, 350, 150, 30)];
[Forthbutton Setbackgroundcolor:[uicolor Yellowcolor]];
[Forthbutton settitle:@ "/person/create/delete" forstate:uicontrolstatenormal];
[Forthbutton addtarget:self Action: @selector (Forthbuttonclick:) forcontrolevents:uicontroleventtouchupinside];
[Self.view Addsubview:forthbutton];
UIButton * Fifthbutton = [UIButton Buttonwithtype:uibuttontypesystem];
[Fifthbutton Setframe:cgrectmake (10, 400, 150, 30)];
[Fifthbutton Setbackgroundcolor:[uicolor Yellowcolor]];
[Fifthbutton settitle:@ "/per/add/rem/face" forstate:uicontrolstatenormal];
[Fifthbutton addtarget:self Action: @selector (Fifthbuttonclick:) forcontrolevents:uicontroleventtouchupinside];
[Self.view Addsubview:fifthbutton];
UIButton * Sixbutton = [UIButton Buttonwithtype:uibuttontypesystem];
[Sixbutton Setframe:cgrectmake (10, 450, 150, 30)];
[Sixbutton Setbackgroundcolor:[uicolor Yellowcolor]];
[Sixbutton settitle:@ "/person/get_info" forstate:uicontrolstatenormal];
[Sixbutton addtarget:self Action: @selector (Sixbuttonclick:) forcontrolevents:uicontroleventtouchupinside];
[Self.view Addsubview:sixbutton];
UIButton * Sevenbutton = [UIButton Buttonwithtype:uibuttontypesystem];
[Sevenbutton Setframe:cgrectmake (10, 500, 150, 30)];
[Sevenbutton Setbackgroundcolor:[uicolor Yellowcolor]];
[Sevenbutton settitle:@ "/person/set_info" forstate:uicontrolstatenormal];
[Sevenbutton addtarget:self Action: @selector (Sevenbuttonclick:) forcontrolevents:uicontroleventtouchupinside];
[Self.view Addsubview:sevenbutton];
UIButton * Eightbutton = [UIButton Buttonwithtype:uibuttontypesystem];
[Eightbutton Setframe:cgrectmake (170, 200, 140, 30)];
[Eightbutton Setbackgroundcolor:[uicolor Yellowcolor]];
[Eightbutton settitle:@ "/group/add_person" forstate:uicontrolstatenormal];
[Eightbutton addtarget:self Action: @selector (Eightbuttonclick:) forcontrolevents:uicontroleventtouchupinside];
[Self.view Addsubview:eightbutton];
UIButton * Ninebutton = [UIButton Buttonwithtype:uibuttontypesystem];
[Ninebutton Setframe:cgrectmake (170, 250, 140, 30)];
[Ninebutton Setbackgroundcolor:[uicolor Yellowcolor]];
[Ninebutton settitle:@ "/group/remove/etc" forstate:uicontrolstatenormal];
[Ninebutton addtarget:self Action: @selector (Ninebuttonclick:) forcontrolevents:uicontroleventtouchupinside];
[Self.view Addsubview:ninebutton];
UIButton * Tenbutton = [UIButton