猫史档案馆


【Python作品分享】照相机【作品秀】

用户:品牌猫品牌猫查看:0 回复:1 评论:0 创建时间:2020-02-20T14:23:46


【作品展示】

center_image

 

【作品介绍】

这是一个人脸识别照相机

 

【作品源代码】

import codemao
import easygui


#开始进入Python的世界
print('照相机已开启,请等待摄像头开启,按回车拍照', '(出现乱码为正常现象)')
image = codemao.take_photos("enter_pressed")
image.open_image()
if easygui.ynbox('是否使用人脸识别?', 'Codemao', ('是', '否')):
    print('出现人脸,年龄', image.face_recognize("age"), '岁,', '性别', image.face_recognize("gender"))
    image.face_highlight().open_image()
    image.face_comment(("age", "emotion", "gender")).open_image()
else:
    print('程序运行结束')

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
星空之忆星空之忆

codemao库。。

点赞0


评论