赞
踩
CVZone是一个计算机视觉和深度学习的Python库,旨在提供一些用于计算机视觉任务的便捷工具和实用函数。CVZone库提供了一系列方便易用的功能,包括人脸检测、手势识别、姿势估计和表情识别等。
CVZone官网:https://www.computervision.zone/
PoseDetector 类使用 mediapipe 库估计人体的姿势点。以下是封装的函数及用法:
定义:def __init__(self, mode=False, smooth=True, detectionCon=0.5, trackCon=0.5)
源代码:
- def __init__(self, mode=False, smooth=True,
- detectionCon=0.5, trackCon=0.5):
- """
- :param mode: In static mode, detection is done on each image: slower
- :param upBody: Upper boy only flag
- :param smooth: Smoothness Flag
- :param detectionCon: Minimum Detection Confidence Threshold
- :param trackCon: Minimum Tracking Confidence Threshold
- """
-
- self.mode = mode
- self.smooth = smooth
- self.detectionCon = detectionCon
- self.trackCon = trackCon
-
- self.mpDraw = mp.soluti

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。