aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.37k stars 646 forks source link

How to obtain the coordinates of the ABCNet bouding box #411

Closed xcharxlie closed 3 years ago

xcharxlie commented 3 years ago

It's a general question. Once the ABCNet is well trained and it could somehow detect the texts with a bouding box. Is there any chance I could get the coordinates of its vertexes? Any build-in functions could come in handy?

Yuliang-Liu commented 3 years ago

Do you mean you want to decode the bezier control points into the coordinates of the points of the boundary? Please refer to the build-in function https://github.com/aim-uofa/AdelaiDet/blob/master/adet/evaluation/text_evaluation.py#L248-L258.

xcharxlie commented 3 years ago

Yeah this may also help. I also find that the resulting file produced by evaluation also gives the coordinates of the polygon. Are they also the points of the boundary?

Yuliang-Liu commented 3 years ago

@xcharxlie Yes.