(self)
| 109 | |
| 110 | @property |
| 111 | def has_holes(self): |
| 112 | if self._has_holes is None: |
| 113 | if self._mask is not None: |
| 114 | self._polygons, self._has_holes = self.mask_to_polygons(self._mask) |
| 115 | else: |
| 116 | self._has_holes = False # if original format is polygon, does not have holes |
| 117 | return self._has_holes |
| 118 | |
| 119 | def mask_to_polygons(self, mask): |
| 120 | # cv2.RETR_CCOMP flag retrieves all the contours and arranges them to a 2-level |
nothing calls this directly
no test coverage detected