Skip to content

bug in utils.py #476

@TyrionChou

Description

@TyrionChou

hi~,
there are some problems at shrink_poly function in utils.py.
for p in range(start, end + 1, r):
res.append([p, int(k1 * p + b1),
(p + 15), int(k1 * (p + 15) + b1),
(p + 15), int(k2 * (p + 15) + b2),
p, int(k2 * p + b2)])
this can cause inaccurate cutting of the last box.

and get_text_lines function in text_proposal_connector.py
lb_y, rb_y = self.fit_y(text_line_boxes[:,0], text_line_boxes[:, 3], x0 + offset, x1 - offset)
i think text_line_boxes[:,0] -> text_line_boxes[:,2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions