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

Why is score greater than 1 when using lanms? #366

Open
LW-CVer opened this issue Nov 3, 2020 · 0 comments
Open

Why is score greater than 1 when using lanms? #366

LW-CVer opened this issue Nov 3, 2020 · 0 comments

Comments

@LW-CVer
Copy link

LW-CVer commented Nov 3, 2020

when adding the following code,the score is less than 0.5
for i, box in enumerate(boxes):
mask = np.zeros_like(score_map, dtype=np.uint8)
cv2.fillPoly(mask, box[:8].reshape((-1, 4, 2)).astype(np.int32) // 4, 1)
boxes[i, 8] = cv2.mean(score_map, mask)[0]
boxes = boxes[boxes[:, 8] > box_thresh]

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