Android Question www.faceplusplus.com

btbb

Member
Licensed User
Longtime User
Hi all,

I'm trying to use the api at http://www.faceplusplus.com for face detection, but i fail with postfile.
Can someone help me with this?

I have tried with parameter "url" instead, and it works fine.

see this documentation: http://www.faceplusplus.com/detection_detect/

This is how i make postfile in b4a:

B4X:
job1.PostFile ("http://api.us.faceplusplus.com/v2/detection/detect?api_secret=XXXXXX&api_key=XXXXXX&attribute=gender,age&img[POST]=1.jpg",File.DirInternal ,"1.jpg")

Best Regards,
btbb
 

DonManfred

Expert
Licensed User
Longtime User
{
"face": [
{
"attribute": {
"age": {
"range": 7,
"value": 34
},
"gender": {
"confidence": 99.9999,
"value": "Male"
},
"glass": {
"confidence": 99.9378,
"value": "None"
},
"pose": {
"pitch_angle": {
"value": -2.4313999999999984e-06
},
"roll_angle": {
"value": 9.31118
},
"yaw_angle": {
"value": 7
}
},
"race": {
"confidence": 82.9761,
"value": "White"
},
"smiling": {
"value": 4.41213


}
},
"face_id": "01061e2f7a5c6dde6a3cf86d0de1538f",
"position": {
"center": {
"x": 54.661017,
"y": 50.847458
},
"eye_left": {
"x": 44.353305,
"y": 36.694068
},
"eye_right": {
"x": 71.329237,
"y": 41.116949
},
"height": 52.542373,
"mouth_left": {
"x": 44.562797,
"y": 68.794661
},
"mouth_right": {
"x": 65.555932,
"y": 71.011102
},
"nose": {
"x": 59.152797,
"y": 56.579661
},
"width": 51.694915
},
"tag": ""
}
],
"img_height": 118,
"img_id": "03564fc0a657ccd39dd8863bf903e8a1",
"img_width": 118,
"session_id": "xxxxxxxxxxxxxxxxxxxxxxxxx",
"url": null
}
 

Attachments

  • multipartpost_faceplusplus.zip
    11.2 KB · Views: 339
  • 18.jpg
    18.jpg
    2.8 KB · Views: 337
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Yesterday i figured out how to get all data from the json....

I like this api and i think i´ll investigate more time on it... Creating a person, set face(s) to this person and such... Maybe i extend my example and do a tutorial about how to use face++ in future :)
 
Upvote 0

bparent

Member
Licensed User
Longtime User
Yesterday i figured out how to get all data from the json....

I like this api and i think i´ll investigate more time on it... Creating a person, set face(s) to this person and such... Maybe i extend my example and do a tutorial about how to use face++ in future :)

Please do. That would be helpful.
 
Upvote 0
Top