接口开发 face++人脸检测
来源:互联网 发布:三拼域名 不值钱 编辑:程序博客网 时间:2024/06/05 16:12
这篇博文主要介绍接口开发,face++,人脸检测的使用,小白作品,请多关照。
接口开发听起来那么晕乎,主要也就是个HTTP请求,
1.先封装HTTP请求函数
function https_request($url, $data = null){
$curl = curl_init();
curl_setopt($curl,CURLOPT_URL,$url);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);
if (!empty($data)){
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
}
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($curl);
curl_close($curl);
return $output;
}
2.看文档怎么发HTTP请求函数
大致一看 发请求 钓数据,把人家需要的参数api_key和api_secret传过去,然后就是自己需要的数据。
//请求地址
url = "https://api-cn.faceplusplus.com/facepp/v3/detect";
//图片地址
$image="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1185426988,1443915367&fm=200&gp=0.jpg";
//发给目标地址的数据
$data=array(
'api_key' =>"Dd470f7H63MplVdzauo1fHAQ2zQHtFrd",
'api_secret' =>"Z53F0FZihoS3emVE0qndC9Bw8B2NqOr9",
//需要的数据
'return_attributes'=>"beauty,gender,age,headpose,ethnicity",
//上传的人脸图片
'image_url' =>$image
);
$res = https_request($url,$data);//返回的结果
$res = json_decode($res,true);//转成数组数据
返回的数据文档里面写的很清楚
- 接口开发 face++人脸检测
- 人脸检测-- Face R-FCN + Face R-CNN
- OpenCV - 人脸检测(face detection) 代码
- Opencv face detection人脸检测
- beyond reality face 人脸检测
- 人脸检测--Scale-Aware Face Detection
- Python调用Face++人脸检测API
- NVIDIA Jetson TK1学习与开发(十):人脸检测(Face Detection)
- Android配置opencv开发环境并运行face-detection 人脸检测例程
- NVIDIA Jetson TK1学习与开发(十):人脸检测(Face Detection)
- face++人脸识别接口调用
- [PHP]如何使用Face++接口开发微信公共平台的人脸识别系统
- **微信公众号开发 Face++人脸识别, 简单接口,大神可绕路~**
- Android API教程:人脸检测(Face Detect)
- Face++离线版实现拍照进行人脸检测
- Android API教程:人脸检测(Face Detect)
- 人脸检测“A Fast and Accurate Unconstrained Face Detector”
- 人脸检测“Face detections without bells and whistles”
- 种子生长相关算法实现
- HALCON里几种数据类型详解
- 虚拟机安装Linux
- sql 计算两经纬度之间的距离
- spring boot整合RabbitMQ(Topic模式)
- 接口开发 face++人脸检测
- 常用的sharePreference工具类
- 汉诺塔的java递归实现
- 史上最盛大的黑科技年会前夕,阿里妹做了一个重大决定
- git第一次连接远程库出现无法添加到信任列表
- 【Selenium】13Frame
- 【学习笔记】C++字符串输入输出
- Linux查看CPU和内存使用情况
- 开发者分享 | 从零开始开发一个即时通讯项目