wkentaro / imgviz

Image Visualization Tools (object detection, semantic and instance segmentation)

Home Page:https://imgviz.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Position deviation of boxes due to image padding

jshi31 opened this issue · comments

Hi, thanks for the convenient visualization tool. I just find a bug for drawing multiple boxes.

The problem is caused by the image padding for out of boundary text,

src = np.pad(
. When drawing multiple boxes sequentially, the first box has caption out of image boundary, then it will pad the image, then the image shape changes, which is incorrect to draw the second box.

Thanks for the report. #29 should fix this issue.