Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uint8
- ---------------------------------------------------------------------------
- NameError Traceback (most recent call last)
- <ipython-input-63-33c069b700f4> in <module>()
- 121 return line_img
- 122
- --> 123 ht=hough_lines(reg,1,np.pi/180,1,25,10)
- 124 plt.imshow(ht)
- 125 plt.show()
- <ipython-input-63-33c069b700f4> in hough_lines(reg, rho, theta, threshold, min_line_len, max_line_gap)
- 118 lines = cv2.HoughLinesP(reg, rho, theta, threshold, minLineLength=min_line_len, maxLineGap=max_line_gap)
- 119 line_img = np.zeros((reg.shape[0], reg.shape[1], 3), dtype=np.uint8)
- --> 120 draw_lines(line_img, lines)
- 121 return line_img
- 122
- <ipython-input-63-33c069b700f4> in draw_lines(masked, lines, color, thickness)
- 100 for line in lines:
- 101 for x1,y1,x2,y2 in line:
- --> 102 cv2.line(line_image,(x1,y1),(x2,y2),(255,0,0),10)
- 103 color_edges = np.dstack((edges, edges, edges))
- 104 lines_edges = cv2.addWeighted(color_edges, 0.8, line_image, 1, 0)
- NameError: name 'line_image' is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement