title: Tracking yellow color object with OpenCV python
body: <p>How can I track a yellow object in python using opencv? And, if possible, how can I get the position of the object?</p>
  
  <p>I've tried using the following method but i can't figure out how to lower and upper ranges work.</p>
  
  <pre><code>import numpy as np
  import cv2
  
  
  cap = cv2.VideoCapture(0)
  while True:
      screen =  np.array(ImageGrab.grab())
      ret, img = cap.read()
      hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
  
      #Help
      lower = np.array([])
      upper = np.array([])
  
      mask = cv2.inRange(hsv, lower, upper)
  
      cv2.imshow('screen', mask)
  
  
  
      if cv2.waitKey(25) &amp; 0xFF == ord('q'):
          cv2.destroyAllWindows()
          break
  </code></pre>
  
  <p>It should find yellow objects and possibly get their position.</p>