Cartucho / OpenLabeling

Label images and video for Computer Vision applications
Apache License 2.0
926 stars 266 forks source link

PASCAL_VOC XML reporting wrong image size #52

Open calebjacksonhoward opened 5 years ago

calebjacksonhoward commented 5 years ago

The XML files output from OpenLabeling are off by a pixel in x and y for many of the images. (This caused tensorflow to crash out reporting a size mismatch when I was running with dhSegment.)

Cartucho commented 5 years ago

So I should add 1 to x and 1 to y, right? In Pascal VOC the 0,0 index corresponds to the 1,1 index

calebjacksonhoward commented 5 years ago

Not in all cases. Sometimes the resolution was correct, and sometimes it was off.

Cartucho commented 5 years ago

so you think it is a rounding error?

Cartucho commented 5 years ago

Do you think you could provide me a concrete example? So that I can try to figure out what is going on (:

calebjacksonhoward commented 5 years ago

It does act like a roundoff error. I will see if I can come up with an example. Unfortunately, the documents I'm working with are the proprietary property of a client, so I can't just send you the failure I experienced.

Cartucho commented 5 years ago

I understand (: