TypeError: 'upper_body_only' is an Unexpected Keyword Argument in mediapipe.Pose

The error "TypeError: init() got an unexpected keyword argument 'upper_body_only'" arises because the mp_pose.Pose class constructor in older versions of Mediapipe doesn't support the 'upper_body_only' parameter. This parameter has been removed in newer versions.

To resolve this, try the following:

  1. Remove the 'upper_body_only' parameter: Simply remove this parameter from your code if you're not specifically needing it.

  2. Upgrade your mediapipe library: Installing the latest version of mediapipe might introduce the 'upper_body_only' parameter in the mp_pose.Pose class. You can upgrade using pip:

pip install --upgrade mediapipe

By implementing one of these solutions, you should be able to use the mp_pose.Pose class effectively for full-body pose tracking in your project.

TypeError: 'upper_body_only' is an Unexpected Keyword Argument in mediapipe.Pose

原文地址: https://www.cveoy.top/t/topic/j87I 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录