dengdan / seglink

An Implementation of the seglink alogrithm in paper Detecting Oriented Text in Natural Images by Linking Segments
GNU General Public License v3.0
495 stars 178 forks source link

Meet a question. #43

Open Polaris-SDU opened 6 years ago

Polaris-SDU commented 6 years ago

Hello, I have benefited greatly from this open source project. Thank you for this elegant code, but I am puzzled by the following code.

"points_in_bbox_mask = points_in_bbox_mask.intersection(config.default_anchor_center_set)" ( in ~/seglink/tf_extended/seglink.py)

According the upper code, I think we can only find default box/anchor which center is in the edge of the word bounding box not inside the word bounding box.
But a default box is labeled as positive iff (1) the center of the box is inside the word bounding box according the paper. Could you help me solve the problem. Thank you in advance~@dengdan

dengdan commented 6 years ago

The border_width = -1 means filling the bbox with color = bbox_idx values, instead of drawing empty bboxes on the mask. https://github.com/dengdan/seglink/blob/cc36732d78a637ac10587c11befe19944ec1c1ea/tf_extended/seglink.py#L294

Polaris-SDU commented 6 years ago

Thank you for your help~ @dengdan I ignored the argument "border_width = -1" early.