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
个赞
请登录后评论
TOP
切换版块
哪个平台?直接说问题