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 calculate the "bezier_pts" and "rec" in annotations #58

Open
wufan-tb opened this issue Jan 26, 2024 · 1 comment
Open

How to calculate the "bezier_pts" and "rec" in annotations #58

wufan-tb opened this issue Jan 26, 2024 · 1 comment

Comments

@wufan-tb
Copy link

Hello, thanks for your great work. I wish train a model on my own dataset, yet I don't know how to generate them for I don't know how te get the "bezier_pts" and "rec" for one text instance. could you please tell me how to calculate them? Any help will be appreciated.

image

@jihuan1203
Copy link

rec 采用:if self.voc_size == 37:
            self.CTLABELS = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',
                             't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
        elif self.voc_size == 96:
            self.CTLABELS = [' ','!','"','#','$','%','&',''','(',')','*','+',',','-','.','/',
                             '0','1','2','3','4','5','6','7','8','9',':',';','<','=','>','?','@',
                             'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V',
                             'W','X','Y','Z','[','\',']','^','_','`','a','b','c','d','e','f','g','h','i','j','k','l',
                             'm','n','o','p','q','r','s','t','u','v','w','x','y','z','{','|','}','~'] bezier_pts参考ic15点生成

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

2 participants