python - how to reduce usage aws rekogniton api usage
问题描述
I have created some application that uses aws rekognition service,
I am doing this via boto3 python library
here is sample code
try:
aws_res = rek_client.search_faces_by_image(CollectionId='inspact',
Image={
'Bytes': image_base64},
MaxFaces=1,
FaceMatchThreshold=95,
QualityFilter='HIGH'
)
except IndexError as e:
print(e)
error = 'Unknown face'
return make_response(error, 400)
I suspect that API usage that I log in python and face API usage on aws never matches at all ,there is always 30-40% difference, so my question is there anything in code that I'm missing that I have to wrap to make it efficient
解决方案
推荐阅读
- java - Android 检查来自 TextWatcher 的 EditText 文本
- css - 如何在主页上的 Wordpress Avada 主题(事件日历)中删除边框?
- java - 如何将多对多映射为嵌套嵌入对象
- python - 存储 numpy 数组及其对应的键
- c# - 自定义授权属性实现
- mysql - MySQL - REGEX 从字符串中搜索单词和匹配的单词应该是 alnum 或 numeric
- opencart - 如何在 OpenCart 中定义变量?
- css - 灯箱背景模糊的问题?
- excel - 将 PowerPoint 本机表格复制到 Outlook 电子邮件的正文
- java - java.sql.SQLException:接近“on”:语法错误问题