import cv2
import numpy as np

device = cv2.VideoCapture(0)

while True :

     ret ,frame = device.read()

     hsv =cv2.cvtColor(frame,cv2.COLOR_BGR2HSV)


     lower_range = np.array([110,50,50])

	 upper_range = np.array([130,255,255])  # np.array([HUE,SATURATION,VALUE])
     mask =cv2.inRange(hsv,lower_range,upper_range)  # mask is the range filter and filter is used only  blue color
     result1 =cv2.bitwise_and(frame,frame,mask=mask )
     cv2.imshow("Show ",mask)
     cv2.imshow("result",result1)
     cv2.imshow("show1",frame)

    if cv2.waitKey(1) == 13 :
        break
device.release()

cv2.destroyAllWindows()
