YCG09 / chinese_ocr

CTPN + DenseNet + CTC based end-to-end Chinese OCR implemented using tensorflow and keras
Apache License 2.0
2.73k stars 1.08k forks source link

How to understand the line-nms? #367

Open lhao0301 opened 3 years ago

lhao0301 commented 3 years ago

I find that the line-nms delete some boxes. It seems a little confusing. The left-top and right-top point are used as left-top and right-bottom point , respectively. The x-coordinate of left-bottom point is used as confidence. It is a little difficult to understand it.

https://github.com/YCG09/chinese_ocr/blob/9af64905f7e1a226d902feac5c0dfd64399ce6b2/ctpn/lib/text_connector/detectors.py#L42