version('cvzone')=1.5.0 the code is below:
while True:
success, img = cap.read()
img= detector.findHands(img)
lmlist,_=detector.findPosition(img)
cv2.imshow("Image", img)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
I did a lot of projects recently with cvzone and noticed that they recently updated the library with a critical update for their guides.
The problem: cvzone have updated their library with the HandTrackingModule on Aug 31, 2021 (you can watch the commits here) and removed the findPosition function since version 1.5.0.
The solution: downgrade the cvzone package version from 1.5.0 to 1.4.1 and it should work.
For example in Pycharm:
Good luck!