Fix variable names in python color spaces tutorial
authorValentin Tsatskin <val@valtsatskin.com>
Thu, 3 Sep 2015 19:45:36 +0000 (15:45 -0400)
committerValentin Tsatskin <val@valtsatskin.com>
Thu, 3 Sep 2015 19:45:36 +0000 (15:45 -0400)
doc/py_tutorials/py_imgproc/py_colorspaces/py_colorspaces.markdown

index 1418ef9..8fbd8dc 100644 (file)
@@ -62,7 +62,7 @@ while(1):
     upper_blue = np.array([130,255,255])
 
     # 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
     res = cv2.bitwise_and(frame,frame, mask= mask)