title: Want to detect single object like a tennis ball from the video file. AttributeError: module 'cv2' has no attribute 'TrackerBoosting_create'
body: <p>Here is my code for the project that I am developing</p>
  <pre><code>from __future__ import print_function
  import sys
  import cv2
  from random import randint
  import imutils
  from tkinter import Frame
  from tkinter import *
  
  v = cv2.VideoCapture(&quot;/home/innvonix/PycharmProjects/nsrk2/tennisv.mp4&quot;) # video
  
  trackerTypes = ['BOOSTING', 'MIL', 'KCF','TLD', 'MEDIANFLOW', 'GOTURN', 'MOSSE', 'CSRT']
  
  def createTrackerByName(trackerType):
    # Create a tracker based on tracker name
    if trackerType == trackerTypes[0]:
      tracker = cv2.TrackerBoosting_create()
    elif trackerType == trackerTypes[1]:
      tracker = cv2.TrackerMIL_create()
    elif trackerType == trackerTypes[2]:
      tracker = cv2.TrackerKCF_create()
    elif trackerType == trackerTypes[3]:
      tracker = cv2.TrackerTLD_create()
    elif trackerType == trackerTypes[4]:
      tracker = cv2.TrackerMedianFlow_create()
    elif trackerType == trackerTypes[5]:
      tracker = cv2.TrackerGOTURN_create()
    elif trackerType == trackerTypes[6]:
      tracker = cv2.TrackerMOSSE_create()
    elif trackerType == trackerTypes[7]:
      tracker = cv2.TrackerCSRT_create()
    else:
      tracker = None
      print('Incorrect tracker name')
      print('Available trackers are:')
      for t in trackerTypes:
        print(t)
  
  
  
    return tracker
  
  ret, frame = v.read()
  frame = imutils.resize(frame,width=600)
  cv2.imshow('Frame',frame)
  bb = cv2.selectROI('Frame',frame)
  tracker.init(frame,bb)
  </code></pre>
  <p>Here is the error that i am getting using the above code:</p>
  <blockquote>
  <pre><code>'boosting' : cv2.TrackerBoosting_create, AttributeError: module 'cv2' has no attribute 'TrackerBoosting_create'
  </code></pre>
  <p>Process finished with exit code 1</p>
  </blockquote>
  <p>Thanks in advance please help me with this friends...</p>