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.
1.
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.)
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.
1. 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.)