Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. image = imread(file_name)
  2. image = np.mean(image, axis=2)
  3.  
  4. h, theta, d = hough_line(image)
  5.  
  6. angle = []
  7.  
  8. for _, a, d in zip(*hough_line_peaks(h, theta, d)):
  9. angle.append(a)
  10.  
  11. angle = [a * 180 / np.pi for a in angle]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement