Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to convert the data set format. #60

Open
DachengLiu1994 opened this issue Sep 14, 2018 · 5 comments
Open

How to convert the data set format. #60

DachengLiu1994 opened this issue Sep 14, 2018 · 5 comments

Comments

@DachengLiu1994
Copy link

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.

@MichalBusta
Copy link
Owner

@DachengLiu1994
Copy link
Author

Hi @MichalBusta Thank you for your reply.

Which program should I use?

thanks.

@DachengLiu1994
Copy link
Author

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

@mohammadSadeq
Copy link

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

@xxlxx1
Copy link

xxlxx1 commented Oct 18, 2018

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants