人脸检测问题
LENOVO184 发布于2018-10 浏览:1582 回复:1
0
收藏
快速回复

import base64
from aip import AipFace

APP_ID = ''
API_KEY = ''
SECRET_KEY = ''

client = AipFace(APP_ID, API_KEY, SECRET_KEY)

image = base64.b64encode(open('./2.jpg', 'rb').read())
imageType = "BASE64"

def detect(self, image, image_type,landmark,options=None):
options = options or {}
data = {}
data['image'] = image
data['image_type'] = image_type
data.update(options)
return self._request(self.__detectUrl, json.dumps(data, ensure_ascii=False), {
'Content-Type': 'application/json',
})
print(client.detect(image, imageType))

我想实现的是人脸的检测误五官定位,大佬帮忙提点意见,谢谢!

收藏
点赞
0
个赞
共1条回复 最后由我是小丸子774回复于2018-11
#2我是小丸子774回复于2018-11

哪个平台?直接说问题

0
TOP
切换版块