cgvict / roLabelImg

Label Rotated Rect On Images for training
824 stars 223 forks source link

Loading the image will auto rotated #18

Open JanusTan opened 3 years ago

JanusTan commented 3 years ago

When I used roLabelImg to label the OCR pictures, I found it will automatically rotate the original image. Meanwhile, it is difficult to label the originally rotated photos. Could you please add a rotating selection(0°, 180°, 270°,90°) and save the rotated images & their boxes information?

lllukehuang commented 3 years ago

When I used roLabelImg to label the OCR pictures, I found it will automatically rotate the original image. Meanwhile, it is difficult to label the originally rotated photos. Could you please add a rotating selection(0°, 180°, 270°,90°) and save the rotated images & their boxes information?

Hi @JanusTan , I found the same question recently, and this may cause a big impact on annotations' correctness. Noting the similarities between the roLabelimg and the Labelimg, I tried to find an answer to this question in the relevant community of the Labelimg. Fortunately, I did find one solution of it.

You can find some more wonderful discussions in https://github.com/tzutalin/labelImg/issues/198 , and here I just paste the solution itself:

On Linux : exiftran -ai *.jpeg exiftran On Windows: JPEG Autorotate