color detection using opencv python

前端 未结 3 889
误落风尘
误落风尘 2021-02-07 20:39

I am trying to run a script written using opencv in python which uses webcam to track colored objects (here the object is blue colored), which is also mentioned in opencv\'s doc

3条回答
  •  长发绾君心
    2021-02-07 21:07

    The range of blue color in HSV should be given as :

    lower_blue = np.array([110, 50, 50], dtype=np.uint8)
    upper_blue = np.array([130,255,255], dtype=np.uint8)
    

提交回复
热议问题