目标检测-人脸人体人手-通用领域

我要开发同款
匿名用户2024年07月31日
20阅读
所属分类ai、NanoDet、pytorch、通用目标检测、cv
开源地址https://modelscope.cn/models/iic/cv_nanodet_face-human-hand-detection
授权协议Apache License 2.0

作品详情

目标检测-人脸人体人手-通用领域

这是一个人脸、人体、人手三合一检测模型

模型描述

利用NanoDet,进行人脸、人体、人手的检测

使用方式和范围

如何使用

在ModelScope框架上,提供图片,得到识别的结果

代码范例

from modelscope.outputs import OutputKeys
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks

face_human_hand_detection = pipeline(Tasks.face_human_hand_detection, model='damo/cv_nanodet_face-human-hand-detection')
result_status = face_human_hand_detection('data/test/images/face_human_hand_detection.jpg')
labels = result_status[OutputKeys.LABELS]
boxes = result_status[OutputKeys.BOXES]
scores = result_status[OutputKeys.SCORES]

输出结果示例如下:

labels = [2, 1, 0]

boxes = [[78, 282, 240, 504], [127, 87, 332, 370], [0, 0, 367, 639]]

scores = [0.8202137351036072, 0.8987470269203186, 0.9679114818572998]

labels为类别,0代表人体,1代表人脸,2代表人手,

boxes为和labels对应的检测框的坐标,中间4个数字代表检测框的坐标,分别代表左上角的x,左上角的y,右下角的x,右下角的y

scores为对应的置信度分数

引用

@misc{=nanodet,
    title={NanoDet-Plus: Super fast and high accuracy lightweight anchor-free object detection model.},
    author={RangiLyu},
    howpublished = {\url{https://github.com/RangiLyu/nanodet}},
    year={2021}
}
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论