A
AC Question
I have been doing this tutorial: web address: msdn.microsoft.com/en-us/library/mt605324.aspx
I can get it working fine. But i am stuck on one point. I'm trying to expand it a little.
On this line:
//------------------------------- Face[] result = faceServiceClient.detect( params[0], true, // returnFaceId false, // returnFaceLandmarks null // returnFaceAttributes: a string like "age, gender" ); //-------------------------------
The line where it says null. I want to replace this, by getting the API to return both the age and gender of anyone in the photograph. How do i do this? I've been trying to figure it out for a few hours now. (i'm new to android programming)
It seems to be looking for an object of type: FaceAttributeType[] Which i think should contain the enum values. i've no idea how to wire this section. Can you help me please? Thanks
Conor
I can get it working fine. But i am stuck on one point. I'm trying to expand it a little.
On this line:
//------------------------------- Face[] result = faceServiceClient.detect( params[0], true, // returnFaceId false, // returnFaceLandmarks null // returnFaceAttributes: a string like "age, gender" ); //-------------------------------
The line where it says null. I want to replace this, by getting the API to return both the age and gender of anyone in the photograph. How do i do this? I've been trying to figure it out for a few hours now. (i'm new to android programming)
It seems to be looking for an object of type: FaceAttributeType[] Which i think should contain the enum values. i've no idea how to wire this section. Can you help me please? Thanks
Conor