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

CTPN difference between your repository and source version #16

Open
curme opened this issue Aug 30, 2017 · 2 comments
Open

CTPN difference between your repository and source version #16

curme opened this issue Aug 30, 2017 · 2 comments

Comments

@curme
Copy link

curme commented Aug 30, 2017

First of all, I must say, this is not a issue of your code.
Sorry for I do not find your personal email, so just release a issue here. Please just close it after you read, thanks.

I notice the CTPN code in your repository differing from the source version: https://github.com/tianzhi0549/CTPN.
The difference mainly exists in CTPN_ROOT/src/other.py -> draw_boxes() function.

I think you rewrite draw_boxes() to enable it to display rotated rectangle. But I still need to confirm it with you. Is this right?

Text lines detection coordinates result difference.
I just tested the same image on both your CTPN and the source version CTPN. In the step of detecting text lines, your CTPN returns boxes with 8 values for each box, like this:
[ 1.60000000e+01 1.61765766e+01 9.59000000e+02 7.64572601e+01
9.74919617e-01 2.58991048e-02 3.36731377e+01 3.87520103e+01]
However, the source version CTPN returns only 5 values for each box, like this:
[ 16. 16.17657661 959. 76.45726013 0.97491962]
2.1 Why source version CTPN lost last 3 values? (if you also don't pretty sure, please skip this question.)
2.2 Except draw_boxes(), these two copies of CTPN are almost the same, why the text_lines detecting results different. Do I miss any other difference?
2.3 for the box result: I know the box[0:2] and box[2:4] represent the coordinates of left-top-corner and right-bottom-corner respectively; what the rest 4 values box[4:8] means?

Thank you for your read and looking forward to your (and any friends who have the answers) reply deadly.

Best regards,
Hui

(Really glad to discuss with you in Chinese if you can.)
(Finally, your sample images are really classic.)

@bear63
Copy link
Owner

bear63 commented Nov 3, 2017

I use the previous version

@curme
Copy link
Author

curme commented Dec 8, 2017

thx

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