Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image = imread(file_name)
- image = np.mean(image, axis=2)
- h, theta, d = hough_line(image)
- angle = []
- for _, a, d in zip(*hough_line_peaks(h, theta, d)):
- angle.append(a)
- angle = [a * 180 / np.pi for a in angle]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement