SHARE
TWEET

Untitled

a guest Jun 18th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top