acl21/Selfie_Filters_OpenCV

Issue in shades.py with OpenCV 4.1.1 with fix

Avkash opened this issue · 0 comments

With OpenCV 4.1.1 you need to change shades.py as below:

Line 48-49
(_, cnts, _) = cv2.findContours(blueMask.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)

Changed to:
(cnts, _) = cv2.findContours(blueMask.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)