I am using aug = iaa.Affine(rotate=(-45, 45)) to augment my images and their bounding boxes.
The bounding boxes on original nonaugmented images are drawn as tight as possible.
I am taking following steps to generated bounding boxes for augmented images. However, the resulted bounding box is not as tight as what "best practice" is recommending.
Are there any ways to improve this and have tighter and more accurate bounding boxes for augmented images?
get bounding boxes coordinates and write into array
I am using aug = iaa.Affine(rotate=(-45, 45)) to augment my images and their bounding boxes.
The bounding boxes on original nonaugmented images are drawn as tight as possible.
I am taking following steps to generated bounding boxes for augmented images. However, the resulted bounding box is not as tight as what "best practice" is recommending.
Are there any ways to improve this and have tighter and more accurate bounding boxes for augmented images?
get bounding boxes coordinates and write into array
pass the array of bounding boxes coordinates to the imgaug library
apply augmentation on image and on the bounding boxes
disregard bounding boxes which have fallen out of image pane
clip bounding boxes which are partially outside of image pane