
iOS application using Face.com api
I want to use the face recognition API in an iOS app so I downloaded the code from
https://github.com/sergiomtzlosa/faceWrapper-iphoneI setup everything that needs to be sent, including the array of users I want to identify.
After the first run it recognized the face locations, faces.detect works.
After the response I get this response too:
facebook.get
Code:
photos = (
);
status = success;
usage = {
limit = 5000;
remaining = 4999;
"reset_time" = 1328317176;
"reset_time_text" = "Sat, 04 Feb 2012 00:59:36 +0000";
used = 1;
};
}
When trying to use faces.recognize in order to recognize people in the photo I changed object.wantRecognition to YES throughout the code (I think 2 locations).
When running the code now I only get the facebook.get response mentioned above and don't seem to get any response for faces.recognize.
When trying to debug, I discovered that the relevant delegate is
Code:
- (void)controllerDidRecognizeFaceItemWithObject:(NSDictionary *)faces postImageTag:(int)tag
but it isn't called. I saw that this is what is supposed to call it:
Code:
[FaceWrapper instance] detectFaceWithFWObject:object
runInBackground:NO
completionData:^(NSDictionary *response, int tagImagePost)
{
//PARSE THE RESPONSE AND CALL "controllerDidRecognizeFaceItemWithObject"
}
So it seems that
Code:
detectFaceWithFWObject:object
never gets to that final block.
Any ideas why this isn't working?