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

quad invalid with vertex num less then 4 #102

Open
keithyh opened this issue Nov 2, 2019 · 1 comment
Open

quad invalid with vertex num less then 4 #102

keithyh opened this issue Nov 2, 2019 · 1 comment

Comments

@keithyh
Copy link

keithyh commented Nov 2, 2019

用预训练模型会报这个警告信息,但是检测文本效果还可以(_act.jpg文件会找到所有文本区域,但是_predict.jpg会漏掉不少文本区域),请问这个警告信息是什么意思呢

@misotrnka
Copy link

I've noticed that this happens a lot when there are disjoint areas of text in the image.

For example, in this image, the algorithm cannot match the beginning of the second line with its end, because there are two disjoint regions. So some of the quadrangles are actually triangles, with two of the four points in [0, 0] (because this is how the array was initialized).

011 jpg_quads

As a workaround, you can alter the region_neighbor method in nms to be more forgiving (wider j_min, j_max and i_m).

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