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

Meet a question. #43

Open
Polaris-SDU opened this issue Sep 26, 2018 · 2 comments
Open

Meet a question. #43

Polaris-SDU opened this issue Sep 26, 2018 · 2 comments

Comments

@Polaris-SDU
Copy link

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
Copy link
Owner

dengdan commented Sep 26, 2018

The border_width = -1 means filling the bbox with color = bbox_idx values, instead of drawing empty bboxes on the mask.

util.img.draw_contours(bbox_mask, bbox_cnts, -1, color = bbox_idx, border_width = - 1)

@Polaris-SDU
Copy link
Author

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

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

2 participants