aleju / imgaug

Image augmentation for machine learning experiments.
http://imgaug.readthedocs.io
MIT License
14.44k stars 2.45k forks source link

how to project bboxes on croped/padded images? #148

Open tsycnh opened 6 years ago

tsycnh commented 6 years ago

I see the bboxes can be projected to rescaled images. But for croped or padded images, there is no way out.

I have an image augmented by padding, crop, rescale ... then I can get one augmented bbox. Is it possible to get the original bbox position by the augmented bbox?

KuznetsovIllya commented 4 years ago

@tsycnh See the first "Simle example" in the docs. Is that what you are looking for?