【人脸识别】GridFace,识别中更为细致的二次校正。旷视科技

Papaer:GridFace: Face Rectification via Learning Local Homography Transformations

论文链接: https://arxiv.org/pdf/1808.06210v1.pdf

旷视科技,ECCV-2018 paper。

STN网络用在识别网络中,主要用于做一个二次校正。

但是直接用STN学习可能会有扭曲

这篇paper的主要思想是把人脸切成不同的grid,分别做stn变换,相当于一个更细致的二次对齐的过程。

问题思考:

文章其实做的很细致。paper的初衷在于align的效果可能并不是非常好,所以这里要一个二次校正。

那么真正去思考如何提升align的过程是不是更好一些呢。而且gridface的计算量,其实是不可忽视的。那么实际应用中,其实有一个更好的align可能也能达到同样的效果。


Introduction

先看文章的整体效果,可以看到对于大角度得到了一个很好的改善。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
使用Python调用旷视科技人脸识别API实现人脸识别的步骤如下: 1. 在旷视科技平台注册账号,创建应用,获取App ID和API Key。 2. 安装Python的requests库,用于发送HTTP请求和接收响应。 3. 使用requests库发送HTTP POST请求到旷视科技人脸识别API,需要传递相应的参数,包括App ID、API Key、待识别的图片等。例如: ``` import requests api_key = 'YOUR_API_KEY' api_secret = 'YOUR_API_SECRET' image_file = 'YOUR_IMAGE_FILE' url = 'https://api-cn.faceplusplus.com/facepp/v3/detect' data = { 'api_key': api_key, 'api_secret': api_secret, 'image_file': open(image_file, 'rb'), 'return_attributes': 'gender,age,smiling,emotion,ethnicity,beauty,skinstatus' } response = requests.post(url, files=data) ``` 其,YOUR_API_KEY和YOUR_API_SECRET是通过旷视科技平台获取的,YOUR_IMAGE_FILE是待识别的图片的文件路径。 4. 解析返回的JSON格式响应,得到识别结果。例如: ``` import json result = json.loads(response.text) faces = result['faces'] for face in faces: attributes = face['attributes'] gender = attributes['gender']['value'] age = attributes['age']['value'] smiling = attributes['smile']['value'] emotion = attributes['emotion']['value'] ethnicity = attributes['ethnicity']['value'] beauty = attributes['beauty'] skinstatus = attributes['skinstatus'] print('Gender:', gender) print('Age:', age) print('Smiling:', smiling) print('Emotion:', emotion) print('Ethnicity:', ethnicity) print('Beauty:', beauty) print('Skin Status:', skinstatus) ``` 其,通过faces获取到识别出来的人脸信息,通过attributes获取到人脸的属性信息,包括性别、年龄、微笑程度、情绪、人种、美丑分值、皮肤状态等。 需要注意的是,使用旷视科技平台的人脸识别API需要申请开通并获取相应权限,同时需要遵循相关法律法规和隐私保护原则。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值