BTW, if this helps, once I’d registered for FacePlusPlus API, my code looks like this (written in Python)
import unirest, json
facepp_url = 'http://api.us.faceplusplus.com/detection/detect?&attribute=glass,pose,gender,age,race,smiling&api_key=your_api_key_here&api_secret=your_secret_here'
img_url = 'http://path_to_image_on_my_server'
response = unirest.get(facepp_url+"&url="+img_url)
r = response.raw_body
q = json.loads(r)
# then do what you want with the JSON!
As mentioned above, if for whatever reason the US servers don’t work, I just swap the ‘us’ for ‘cn’ in the URL.
I still haven’t resolved this issue. My workaround was to use the FacePlusPlus native API – it’s free to register and use the service. http://www.faceplusplus.com/api-overview
I have had code running from the FPP API for the past couple of weeks, uploading images every couple of seconds, without problems. If the US servers don’t work (http://api.us.faceplusplus.com) you can always just switch to the Chinese ones (http://api.cn.faceplusplus.com). My code is in Python and seems to work with both the unrest library (which you’ll already be using through Mashape) and also Requests (which is just a bit tidier!).
No. You could break your video into a series of images though, if you didn’t need it to be real-time.
can this api be used for videos?
BTW, if this helps, once I’d registered for FacePlusPlus API, my code looks like this (written in Python)
As mentioned above, if for whatever reason the US servers don’t work, I just swap the ‘us’ for ‘cn’ in the URL.
Hope this helps! 😃
I still haven’t resolved this issue. My workaround was to use the FacePlusPlus native API – it’s free to register and use the service.
http://www.faceplusplus.com/api-overview
I have had code running from the FPP API for the past couple of weeks, uploading images every couple of seconds, without problems. If the US servers don’t work (http://api.us.faceplusplus.com) you can always just switch to the Chinese ones (http://api.cn.faceplusplus.com). My code is in Python and seems to work with both the unrest library (which you’ll already be using through Mashape) and also Requests (which is just a bit tidier!).
I’m having this issue too…
Any word on whether this will be resolved? I’m still having this issue.
Thanks for sharing that email! I wonder if we can use the Chinese server for the time being…
From FACE++ support team:
Hi, rafael.
Sorry, it seems that some error happens on our American server,
Others have found the same problem with yours.
We are still working on this problem.
I will send you an e-mail after the problem is resolved.
Regards.
I have the same issue. JPG and PNG do not work – although exactly the same images on the same servers did work last week!