I'm getting this error when I tried to use OpenCV for a project.
File "/Users/alex/opt/anaconda3/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/Users/alex/opt/anaconda3/lib/python3.8/multiprocessing/pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "/Users/alex/Desktop/CLAM/CLAM/wsi_core/WholeSlideImage.py", line 481, in process_coord_candidate
if WholeSlideImage.isInContours(cont_check_fn, coord, contour_holes, ref_patch_size):
File "/Users/alex/Desktop/CLAM/CLAM/wsi_core/WholeSlideImage.py", line 345, in isInContours
if cont_check_fn(pt):
File "/Users/alex/Desktop/CLAM/CLAM/wsi_core/util_classes.py", line 86, in __call__
if cv2.pointPolygonTest(self.cont, points, False) >= 0:
cv2.error: OpenCV(4.5.2) :-1: error: (-5:Bad argument) in function 'pointPolygonTest'
> Overload resolution failed:
> - Can't parse 'pt'. Sequence item with index 0 has a wrong type
> - Can't parse 'pt'. Sequence item with index 0 has a wrong type
What does this error mean? I'm quite new to python so please educate me. Thank you!
Here's the project link
https://github.com/mahmoodlab/CLAM#wsi-segmentation-and-patching