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

Threshold of the aspect ratio. #15

Closed
siyuada opened this issue Nov 1, 2019 · 2 comments
Closed

Threshold of the aspect ratio. #15

siyuada opened this issue Nov 1, 2019 · 2 comments

Comments

@siyuada
Copy link

siyuada commented Nov 1, 2019

Hi, thanks to your work. I wanna test my data with your method. while I noticed in the paper mentioned using aspect ratio to ensure the rectangle is "thin enough", and also use it as threshold to get line output.

However, I didn't find "aspect ratio" in your code, I think it is related to "region2rect" function in squeeze/kernel.cpp, while it is just set to True.
// return rect.width/(rect.l_max-rect.l_min)<0.3; return true;

If I wanna test or evalute the result, should I change the return condition?
Really thanks.

@cherubicXN
Copy link
Owner

Hi, you do not need to change the c++ code. The "aspect ratio" criterion is moved to the output function. The details can be seen in line 30 and 31 of this file.

You can save the results by modifying the code for your own purpose.

@siyuada
Copy link
Author

siyuada commented Nov 7, 2019

Get it! Thanks

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