DB icon indicating copy to clipboard operation
DB copied to clipboard

how can I covert gt.mat to gt.txt in SynthText dataset?

Open aswa123 opened this issue 3 years ago • 3 comments

@MhLiao Thank you.

aswa123 avatar Mar 10 '22 07:03 aswa123

Hi!

I wrote my own sampling and gt.mat parsing script to transform the labels to the format that suits the specific project.

You can load the gt mat file using: mat = scipy.io.loadmat('gt.mat')

Load it and explore it. There are various ways you can rewrite the labels to suit your project.

shervin-gohari avatar Mar 11 '22 09:03 shervin-gohari

@shervin-gohari Thank you

aswa123 avatar Mar 13 '22 12:03 aswa123

I tried this code but I got error. https://blog.csdn.net/qq_39529154/article/details/108689908 I try this code to convert into TotalText Dataset so I can use in my project but I have error like "TypeError: object of type 'numpy.float32' has no len() Some pictures will report this error"

aswa123 avatar Mar 13 '22 12:03 aswa123