查看: 14515|回复: 6

面部识别服务内测

[复制链接]
发表于 2012-5-26 16:39:19 | 显示全部楼层 |阅读模式
输入一个或者一组图片接口,即可返回图片中面部的坐标、性别、面部表情等信息。
  服务由 Face.com 提供的标准REST API 接口; 所以使用前需要先到 face.com注册一个账户,创建一个应用,获取api key 和 api secret 。
  face.com 接口识别的很准确,可以准确识别出李宇春的性别! :)
  演示地址:  http://sms.wanyi.im/?m=main&a=face  


【使用方法】

[code=PHP]$url = "http://weiping-face.stor.sinaapp.com/test.jpeg";
$api = new apibus();
$face = $api->load("face");
$obj = $face->detect("face.com api_key", "face.com api_secret", $url );   
print_r( $obj );[/code]


【方法说明】
detect:
检查图片中面部信息;成功返回面部信息数组及状态信息,失败返回 APIBusError。

[code=PHP]mix detect ( $api_key, $api_secret, $urls, $callback_url=null, $detector=null, $attributes=null )[/code]参数表
$api_key
Face.com  api_key。 在 face.com 免费注册即可获得。注册地址:  http://developers.face.com/signup/
示例:"919661221a5aa0d98aad20646dda8d30"

$api_secret
Face.com  api_secret。 在 face.com 免费注册即可获得。注册地址: http://developers.face.com/signup/
"3bc95c51122d0f5d839e2a42db92efd8"

$urls
照片地址。多个用 "," 分割。
示例:"http://image.xinmin.cn/2010/03/04/20100304095723420502.png"

$callback_url
回调地址;如果填写此参数,则采用异步方式检测图片,检测结果以POST方式发送到此地址。
推荐采用异步方式。
示例: "http://yoursitename.com/yourphp.php"

[code=PHP]$detector
Set the face detector work mode: Normal (default) or Aggressive. Aggressive mode may find a bit more faces, and is also slower. Usage of this detector counts as two Normal detections.

$attributes
Can be all, none or a list of specific comma-separated attributes (see list of available attributes on the return values page. Unless specified, it returns the default 3 attributes of gender, glasses and smiling. The face attribute, marking whether there's a face present is always returned.[/code]

返回值
面部信息数组及状态信息。若异步调用,返回回调地址及状态信息。
示例参考: http://sms.wanyi.im/?m=main&a=face
回复

使用道具 举报

发表于 2012-5-26 16:43:20 | 显示全部楼层
好牛叉,我刚刚用刘亦菲的图片测试了下,果然很准,等会用你的照片试试,看看是不是男的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-5-26 16:47:37 | 显示全部楼层
Free_小东 发表于 2012-5-26 16:43
好牛叉,我刚刚用刘亦菲的图片测试了下,果然很准,等会用你的照片试试,看看是不是男的 ...

干你妹
回复 支持 反对

使用道具 举报

发表于 2012-5-26 16:51:53 | 显示全部楼层
90_ 发表于 2012-5-26 16:47
干你妹

结果是,男人。准确率0.1%,疑似伪娘
回复 支持 反对

使用道具 举报

发表于 2012-5-27 04:27:30 | 显示全部楼层
不咋滴啊。
回复 支持 反对

使用道具 举报

发表于 2012-5-27 15:46:47 来自手机 | 显示全部楼层
学习中ing
回复 支持 反对

使用道具 举报

发表于 2012-6-1 11:08:17 | 显示全部楼层
{:soso_e128:}结果是,男人。准确率0.1%,疑似伪娘
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

指导单位

江苏省公安厅

江苏省通信管理局

浙江省台州刑侦支队

DEFCON GROUP 86025

旗下站点

邮箱系统

应急响应中心

红盟安全

联系我们

官方QQ群:112851260

官方邮箱:security#ihonker.org(#改成@)

官方核心成员

Archiver|手机版|小黑屋| ( 沪ICP备2021026908号 )

GMT+8, 2025-3-7 07:16 , Processed in 0.028624 second(s), 9 queries , Gzip On, MemCache On.

Powered by ihonker.com

Copyright © 2015-现在.

  • 返回顶部