DEV Community

Discussion on: Finger Detection and Tracking using OpenCV and Python

Collapse
 
databits profile image
Mitch

Update this line...
From:
_, cont, hierarchy = cv2.findContours(thresh, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

To:
cont, hierarchy = cv2.findContours(thresh, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

That should fix the issue for CV 4.5

Collapse
 
mrcomnguoi profile image
MrComNguoi

Thank you, it works

Some comments have been hidden by the post's author - find out more