It is currently Thu May 17, 2012 1:05 am



Post new topic Reply to topic  [ 4 posts ] 
iOS application using Face.com api 
Author Message

Joined: Fri Feb 03, 2012 9:08 pm
Posts: 0
Post 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-iphone
I 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?


Fri Feb 03, 2012 9:13 pm
Profile

Joined: Tue Dec 07, 2010 12:29 pm
Posts: 422
Post Re: iOS application using Face.com api
Hey Dan,

It sounds like a question you can ask the guy who contributed this wrapper library - if he offers any contact info, you should be able to see it on his github page.

A debug session would probably help too - if you hit anything in the API itself that isn't working properly, I'll be happy to try and give it a go.

Thanks,
Dan.


Sat Feb 04, 2012 6:12 am
Profile WWW

Joined: Wed Feb 01, 2012 12:42 pm
Posts: 0
Post Re: iOS application using Face.com api
Dan,

I am having the same issue you are. Could you please post to this thread any fixes Sergio identifies?

Thanks
James


Tue Feb 07, 2012 6:20 pm
Profile

Joined: Tue Dec 07, 2010 12:29 pm
Posts: 422
Post Re: iOS application using Face.com api
Sure thing - if he sends any corrections, we'll update both the lib and this thread.

Anyway, I just wanted to remind that he is a developer in the community like you guys and doesn't work for face.com, so if you need anything from him, please contact him directly through the github page.

Cheers,
Dan.


Wed Feb 08, 2012 3:36 am
Profile WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO