azavea / mask-to-polygons

Routines for extracting and working with polygons from semantic segmentation masks
Apache License 2.0
23 stars 9 forks source link

Upgraded from OpenCV 3.4.* to 4.1.* #13

Closed lmbak closed 4 years ago

lmbak commented 4 years ago

Upgraded to openCV 4.1. for use in rastervision to solve this dependency error. I checked all the cv2 functions in this repo via Python help(cv2.function) and compared them with the implementation in 3.4.. Only the cv2.findContours function seems to have changed. I changed the code accordingly.