From: burun Date: Thu, 27 Nov 2014 07:00:40 +0000 (+0200) Subject: Update py_colorspaces.rst X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~2818^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c52a3f7634717ebf474f39b47883a055c45ef9f2;p=platform%2Fupstream%2Fopencv.git Update py_colorspaces.rst mask = cv2.inRange(hsv, lower_green, upper_green) to mask = cv2.inRange(hsv, lower_blue, upper_blue) --- diff --git a/doc/py_tutorials/py_imgproc/py_colorspaces/py_colorspaces.rst b/doc/py_tutorials/py_imgproc/py_colorspaces/py_colorspaces.rst index 565afc6..88c41b8 100644 --- a/doc/py_tutorials/py_imgproc/py_colorspaces/py_colorspaces.rst +++ b/doc/py_tutorials/py_imgproc/py_colorspaces/py_colorspaces.rst @@ -58,7 +58,7 @@ Below is the code which are commented in detail : 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)