Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def hls_select(img, thresh=(0, 255)):
- hls = cv2.cvtColor(img, cv2.COLOR_RGB2HLS)
- s_channel = hls[:,:,2]
- binary_output = np.zeros_like(s_channel)
- binary_output[(s_channel > thresh[0]) & (s_channel <= thresh[1])] = 1
- return binary_output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement