Closed Gaodelike closed 1 year ago
Hi -
Indeed, the code has been conceived with the library versions in the yml files on the main page of github.
From their website (https://docs.opencv.org/4.0.0/d4/d73/tutorial_py_contours_begin.html), it looks indeed like the first output has been dropped in v 4.
Best
Hi Nicolas, When running the script 0f_HeatMap_nClasses_Overall.py, an error occurred:
Then I checked the source code and found that the cv2.findContours() function has undergone some changes in opencv3 and 4. In opencv-python-4.4.0.42, the return value of this function is only two, and in the code of the script it seems Three return values are set, so I wonder if this script has not been transplanted from opencv3 to 4.
So I deleted the first return value a of cv2.findContours() in line 297 of the code:
After modification, it runs successfully and produces results, but I'm not familiar with opencv, so I want to confirm this problem, looking forward to your reply.
All the best.