shannanyinxiang / SPTS

Official implementation of SPTS: Single-Point Text Spotting (ACM MM 2022 Oral)
137 stars 12 forks source link

How to generate the "rec" in annotation? #15

Closed littlesheep111 closed 3 months ago

littlesheep111 commented 5 months ago

Hi,

I want to use my own data to train, however, I don't know how to annotate the "rec". Anyone can help me?

In icdar2013 dataset, the annotation is like: 'rec': [52, 73, 82, 69, 68, 78, 69, 83, 83, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96], 'rec_string': 'Tiredness'. I think that '52' is for 'T', '73' is for 'i', etc. However, I don't know the vocabulary exactly.

Thanks.

littlesheep111 commented 5 months ago

I have solved this problem. However, I wonder how to get the 'bezier_pts'?

shannanyinxiang commented 4 months ago

The generation of 'bezier_pts' follows ABCNet. This repo provides the bezier-curve generation script.