You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]
The text was updated successfully, but these errors were encountered:
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]
The text was updated successfully, but these errors were encountered: