puzzledqs / BBox-Label-Tool

A simple tool for labeling object bounding boxes in images
MIT License
1.12k stars 562 forks source link

Does not display high resolution images #25

Open kerolos opened 6 years ago

kerolos commented 6 years ago

I have images with those size 1944, 2592. which part of the code should I modify for displaying the whole image? thanks in advance.

juzhitao commented 6 years ago

I have the same problem . do you resolve it ?

leyuan commented 6 years ago

Here is what I did for the code inside function load_dir, I need a larger container for my (832, 832) size image.

        self.img = Image.open(imagepath)
        self.tkimg = ImageTk.PhotoImage(self.img)
        width = max(self.tkimg.width(), 832)
        height = max(self.tkimg.height(), 832)
        self.mainPanel.config(width = width, height = height)
        self.mainPanel.create_image((width/2, height/2), image = self.tkimg)

@kerolos @juzhitao

toobaimt commented 6 years ago

I added scrolling in my fork to get around the issue: here Hope this helps! @kerolos @juzhitao

holak0 commented 6 years ago

any solution please for this problem because I have the same ????

toobaimt commented 6 years ago

@holak0 try this

Shomitg commented 6 years ago

@toobaimt this takes me to the same repo. Can you please point me to the forked repo that you mentioned with the aforementioned fix.

toobaimt commented 6 years ago

@Shomitg https://github.com/toobaimt/BBox-Label-Tool

Shomitg commented 6 years ago

Thanks @toobaimt but the issue still persists, not able to view the entire image of resolution 2346 × 186

toobaimt commented 6 years ago

@Shomitg the scrollbar doesn't help?

toobaimt commented 6 years ago

You might have to edit code a bit to accomodate bigger images

Shomitg commented 6 years ago

@toobaimt yeah I guess I'll have to edit the code. the scrollbar doesn't seem to be working.

sakthigeek commented 5 years ago

@toobaimt The scrollbar isn't working. @Shomitg Could you give the edited code to accomodate high res images?

HaveAGitGat commented 5 years ago

@toobaimt Thanks!

murtaza1514 commented 5 years ago

@toobaimt scroll bar is working but the next button isn't working. Can't go to the next image :p