Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in utils.py #476

Open
TyrionChou opened this issue Dec 31, 2020 · 0 comments
Open

bug in utils.py #476

TyrionChou opened this issue Dec 31, 2020 · 0 comments

Comments

@TyrionChou
Copy link

TyrionChou commented Dec 31, 2020

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant