当前位置:   article > 正文

CV Zone 中 PoseDetector 类的用法_cvzone官网

cvzone官网

介绍

CVZone是一个计算机视觉和深度学习的Python库,旨在提供一些用于计算机视觉任务的便捷工具和实用函数。CVZone库提供了一系列方便易用的功能,包括人脸检测、手势识别、姿势估计和表情识别等。

CVZone官网:https://www.computervision.zone/

GitHub地址:GitHub - cvzone/cvzone: This is a Computer vision package that makes its easy to run Image processing and AI functions. At the core it uses OpenCV and Mediapipe libraries.

PoseDetector 类

PoseDetector 类使用 mediapipe 库估计人体的姿势点。以下是封装的函数及用法:

1、初始化函数

定义:def __init__(self, mode=False, smooth=True, detectionCon=0.5, trackCon=0.5)

源代码:

  1. def __init__(self, mode=False, smooth=True,
  2. detectionCon=0.5, trackCon=0.5):
  3. """
  4. :param mode: In static mode, detection is done on each image: slower
  5. :param upBody: Upper boy only flag
  6. :param smooth: Smoothness Flag
  7. :param detectionCon: Minimum Detection Confidence Threshold
  8. :param trackCon: Minimum Tracking Confidence Threshold
  9. """
  10. self.mode = mode
  11. self.smooth = smooth
  12. self.detectionCon = detectionCon
  13. self.trackCon = trackCon
  14. self.mpDraw = mp.soluti
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/在线问答5/article/detail/886454
推荐阅读
相关标签
  

闽ICP备14008679号