aim-uofa / AdelaiDet

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

Generating Bezier curve from bounding boxes with only 4 corners #92

Closed JianYang93 closed 4 years ago

JianYang93 commented 4 years ago

Hi, from what I understand, to generate a Bezier curve for one side of the text region, we need at least 4 points. Therefore we would need 8 points in total for a text instance. In the paper, the author mentioned that Total-Text has GT of 10 annotated points and CTW1500 has GT of 14 annotated points.

I am wondering how can I get Bezier curves for a text instance which only has a bounding box with 4 corner points, which is common in ICDAR datasets. How can I train my one model with only bounding box annotations?

Thanks in advance!

Yuliang-Liu commented 4 years ago

@JianYang93 Sure you can. We have provided our generating annotation for ICDAR-2017 MLT, which is generated based on all 4-corner-points bounding boxes. Actually, we simply interpolate two control points in two trisection of the long side. You can refer to the example about how we achieve this. You can find the link in the abcnet homepage or here.

Below shows the example result: 0001

You're welcome. I hope this could help.

JianYang93 commented 4 years ago

@Yuliang-Liu Great! This is exactly what I want to know! Thank you very much!