BBox-Label-Tool icon indicating copy to clipboard operation
BBox-Label-Tool copied to clipboard

Could I expand loaded image size?

Open 89douner opened this issue 6 years ago • 4 comments

When I draw a bounding box in main.py, the ROI the boudning box applied is a little small. I just wanna increase the loaded image size for more accurate bounding box. is there a tool or method in main.py program? (or do I write some code for this?

89douner avatar Aug 07 '18 05:08 89douner

You mean something like zoom in?

enriqueav avatar Aug 07 '18 05:08 enriqueav

exactly, that's what I want!

89douner avatar Aug 07 '18 06:08 89douner

You may resize the (PIL) image right before putting it in the main panel. Around line 173:

self.img = self.img.resize((self.img.size[0]*2, self.img.size[1]*2), Image.ANTIALIAS)

This will mess with coordinates of bounding boxes though.

enriqueav avatar Aug 07 '18 06:08 enriqueav

Hm.. I just wanna use "ctrl + mouse wheel " for zoom. Anyway, Thanks !

89douner avatar Aug 07 '18 06:08 89douner