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

Cannot detect angles lower than 1° #13

Open
danielegts opened this issue May 22, 2018 · 1 comment
Open

Cannot detect angles lower than 1° #13

danielegts opened this issue May 22, 2018 · 1 comment

Comments

@danielegts
Copy link

danielegts commented May 22, 2018

Hello,
I did some experiments and it looks like this method can't detect skews below one degree. Could you confirm this?

This is the output for the testing image (I manually introduced a skew of -0.5°):

Angle bins: [[0.50279329608938206, 0.50279329608938206], [90.0, 90.0, 90.0, 90.0, 90.0, 90.0, 90.0, 90.0, 90.0, 90.0, 88.994413407821213, 90.0, 90.0, 88.994413407821213], [], [-88.994413407821227, -88.994413407821227, -88.994413407821227, -88.994413407821227]]
Estimated Angle: 90.0
Average Deviation from pi/4: 44.6480446927

This is the ouput with a non skewed image:
Image File: c:\users\dturato\appdata\local\temp\1\tmp7u2snw.png
Angle bins: [[], [90.0, 90.0, 90.0, 90.0, 90.0], [], []]
Estimated Angle: 90.0
Average Deviation from pi/4: 45.0

So it looks like is detecting something, but it is someway lost in the final computation of the angle single value.

@shizacat
Copy link

Hello,
yes, I also see that so.
Find this: What is the meaning of min_distance and min_angle in hough_line_peaks()?

Line from code:
hspace, angles, dists = hough_line(iden,theta=np.linspace(-np.pi/2,np.pi/2,1800)) # 0.1 degree resolution
Works perfect

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