CV之FR:基于paddlehub 框架利用mobile_mask人工智能算法实现人脸口罩图像识别(二分类识别,可结合无人机可,实现实时检测实时警告提醒)案例应用
2023-09-14 09:04:43 时间
CV之FR:基于paddlehub 框架利用mobile_mask人工智能算法实现人脸口罩图像识别(二分类识别,可结合无人机可,实现实时检测实时警告提醒)案例应用
目录
基于paddlehub 框架利用mobile_mask人工智能算法实现人脸口罩图像识别(二分类识别,可结合无人机可,实现实时检测实时警告提醒)
相关文章
CV之FR:基于paddlehub 框架利用mobile_mask人工智能算法实现人脸口罩图像识别(二分类识别,可结合无人机可,实现实时检测实时警告提醒)案例应用
CV之FR:基于paddlehub 框架利用mobile_mask人工智能算法实现人脸口罩图像识别(二分类识别,可结合无人机可,实现实时检测实时警告提醒)代码实现
基于paddlehub 框架利用mobile_mask人工智能算法实现人脸口罩图像识别(二分类识别,可结合无人机可,实现实时检测实时警告提醒)
输出结果
实现代码
参考文章:CV:基于人工智能算法实现人脸口罩的实时检测(结合无人机可,实现实时警告提醒)——代码
更新中……
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
image_str='test1011' # test010 test101
test_img_path = ["./%s.jpg"%(image_str)]
img = mpimg.imread(test_img_path[0])
# 展示待预测图片
plt.imshow(img)
plt.axis('off')
plt.show()
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import paddlehub as hub
module = hub.Module(name="ultra_light_fast_generic_face_detector_1mb_640")
# 待预测图片
test_img_path = ["./crowd1.jpg"]
img = mpimg.imread(test_img_path[0])
# 展示待预测图片
plt.imshow(img)
plt.axis('off')
plt.title('Face mask detection based on artificial intelligence algorithm by Jason Niu')
plt.show()
input_dict = {"image": test_img_path}
# execute predict and print the result
results = module.face_detection(data=input_dict)
for result in results:
print(result)
# 预测结果展示
img = mpimg.imread("./face_detector_640_predict_output/crowd1.jpg")
plt.imshow(img)
plt.axis('off')
plt.title('Face mask detection based on artificial intelligence algorithm by Jason Niu')
plt.show()
相关文章
- php变色列表案例
- 在手写数字识别的例子中_关于人脸识别的案例
- html小案例
- Thinkphp5学习013-项目案例-编辑学生的控制器部分代码
- Repo【案例解析】爱彼迎Airbnb设计细节解析-细节与核心功能至上
- C# 崩溃异常中研究页堆布局的案例分享
- 机器学习案例——鸢尾花数据集分析
- 【愚公系列】2023年01月 .NET CORE工具案例-RedLock.net实现分布式锁
- 「Go」接口 interface: 一个案例说清用法和注意
- MongoDB模糊查询操作案例详解(类关系型数据库的 like 和 not like)
- PHP的CURL方法curl_setopt()函数案例介绍(抓取网页,POST数据)详解编程语言
- 深入剖析MySQL:实用案例分析探究数据库技术(mysql案例分析)
- AJAX级联下拉框的简单实现案例
- 递归案例分享