Update py_colorspaces.rst
mask = cv2.inRange(hsv, lower_green, upper_green) to mask = cv2.inRange(hsv, lower_blue, upper_blue)
This commit is contained in:
parent
73ba435610
commit
c52a3f7634
@ -58,7 +58,7 @@ Below is the code which are commented in detail :
|
|||||||
upper_blue = np.array([130,255,255])
|
upper_blue = np.array([130,255,255])
|
||||||
|
|
||||||
# Threshold the HSV image to get only blue colors
|
# Threshold the HSV image to get only blue colors
|
||||||
mask = cv2.inRange(hsv, lower_green, upper_green)
|
mask = cv2.inRange(hsv, lower_blue, upper_blue)
|
||||||
|
|
||||||
# Bitwise-AND mask and original image
|
# Bitwise-AND mask and original image
|
||||||
res = cv2.bitwise_and(frame,frame, mask= mask)
|
res = cv2.bitwise_and(frame,frame, mask= mask)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user