clovaai / CLEval

CLEval: Character-Level Evaluation for Text Detection and Recognition Tasks
MIT License
184 stars 28 forks source link

[question] calculate Pseudo-Character Center(PCC) positions #4

Closed riku0325 closed 4 years ago

riku0325 commented 4 years ago

I have a question about eq.1 of your paper.

(mistake) CodeCogsEqn (In my opinion) CodeCogsEqn-2

Is this correct?

chunchet-ng commented 4 years ago

HI there,

Yes. I noticed the same issue as yours.

The code implementation also does not match the equation in the paper, specifically on line 158 and 159 of box_types.py.

The correct implementation should be:

x = p1[0] + unit_x * i - unit_x / 2 y = p1[1] + unit_y * i - unit_y / 2

or

x = p1[0] * (1- (2*i-1)/(2*length)) + p2[0] * (2*i-1)/(2*length) y = p1[1] * (1- (2*i-1)/(2*length)) + p2[1] * (2*i-1)/(2*length)

Let me know if i made any mistakes.