DeepTextSpotter icon indicating copy to clipboard operation
DeepTextSpotter copied to clipboard

How to convert the data set format.

Open DachengLiu1994 opened this issue 6 years ago • 5 comments

Thanks for sharing the codes!I have a problems : I use the ICDAR-2013 data set. Now my data look like this:

120,49,546,49,546,157,120,157,PROPER 121,163,549,163,549,327,121,327,FOOD 122,329,546,329,546,434,122,434,PRONTO How to convert the data set to the appropriate format,like this: 0 0.5203125 0.21458333333333332 0.5325 0.135 0 PROPER 0 0.5234375 0.5104166666666666 0.535 0.205 0 FOOD 0 0.521875 0.7947916666666667 0.53 0.13125 0 PRONTO Could you give me some advice,thanks.

DachengLiu1994 avatar Sep 14 '18 01:09 DachengLiu1994

#53 - https://github.com/MichalBusta/dataset_conversions

MichalBusta avatar Sep 14 '18 09:09 MichalBusta

Hi @MichalBusta Thank you for your reply.

Which program should I use?

thanks.

DachengLiu1994 avatar Sep 15 '18 06:09 DachengLiu1994

I use the convert_gt2.py to convert the data set,but failed.

DachengLiu1994 avatar Sep 15 '18 07:09 DachengLiu1994

@DachengLiu1994 I recommend you to use cv2.minAreaRect()

mohammadSadeq avatar Sep 20 '18 19:09 mohammadSadeq

@mohammadSadeq After i trying, i think cv2.minAreaRect() is not right. The result angle is from -90 to 90, and we need -pi/2 to pi/2, and we need x y w h is by images real x an y. So https://github.com/MichalBusta/dataset_conversions in dup_boxes_icdar17.py is the right one.

xxlxx1 avatar Oct 18 '18 08:10 xxlxx1