猫史档案馆


【Python作品分享】AI智能照片

用户:ZCH编程小贝壳ZCH编程小贝壳查看:0 回复:1 评论:0 创建时间:2020-06-14T21:08:02


【作品展示】

center_image

 

【作品介绍】

闲着没事,搞了个拍照的

还能测年龄、性别、情绪哦

看看你是不是男/女装大佬(doge)

 

【作品源代码】

import easygui
import codemao


easygui.msgbox('欢迎使用AI照片系统', 'Welcome', 'ok')
easygui.msgbox('按下空格拍摄')
image = codemao.take_photos("space_pressed")
if (easygui.ynbox('是否将照片保存?', 'Ask', ('是', '否')) == '是'):
    codemao.take_photos("space_pressed").save_to_desktop()
image.open_image()
print('智能识别:年龄', image.face_recognize("age"))
print('智能识别:性别', image.face_recognize("gender"))
print('智能识别:情绪', image.face_recognize("emotion"))

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
蒟蒻OIer1048576蒟蒻OIer1048576

垃圾水贴

点赞0


评论