Example #1
0
    def __remove_out_of_image(cls,
                              img_aug_polys: ImgAugPolygons,
                              fully: bool = True,
                              partly: bool = False) -> ImgAugPolygons:
        result = img_aug_polys.copy()
        result.remove_out_of_image(fully=fully, partly=partly)

        return result
Example #2
0
    def __clip_out_of_image(cls,
                            img_aug_polys: ImgAugPolygons) -> ImgAugPolygons:
        result = img_aug_polys.copy()
        result.clip_out_of_image()

        return result