Question: I need to solve this error from this code below: Attribute error: mp . solutions has no atrribute poselandmarks Please help mp _ drawing =

I need to solve this error from this code below: "Attribute error: mp.solutions has no atrribute poselandmarks" Please help
mp_drawing = mp.solutions.drawing_utils
mp_drawing_styles = mp.solutions.drawing_styles
mp_holistic = mp.solutions.pose
mp_pose = mp.solutions.poselandmarks(image, results.pose_landmarks, mp_holistic.POSE_CONNECTIONS, mp_drawing.DrawingSpec(color=(0,230,230), thickness=2, circle_radius=2), mp_drawing.DrawingSpec(color=(230,0,0), thickness=2, circle_radius=2))
###import images
train_main = cv2.imread("train.jpg", cv2.IMREAD_COLOR)
plt.imshow(train_main)
track = cv2.imread("image/track.jpg", cv2.IMREAD_COLOR)
track_main =cv2.resize(track ,(500,600))
plt.imshow(track_main)
coin_main = cv2.imread("coin.jpg", cv2.IMREAD_COLOR)
coin_main=cv2.flip(coin_main, 1)
plt.imshow(coin_main )
player = cv2.imread("Cat.PNG", cv2.IMREAD_COLOR)
player=cv2.flip(player,1)
plt.imshow(player )
player_short = cv2.imread("Cat.PNG", cv2.IMREAD_COLOR)
player_short=cv2.flip(player_short, 1)
plt.imshow(player_short )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!