from __future__ import print_function
import sys
import time
import cv2
from random import randint
from matplotlib import pyplot as plt
from tracker import *
tracker = EuclideanDistTracker()
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.legacy.TrackerBoosting_create()
elif trackerType == trackerTypes[1]:
tracker = cv2.legacy.TrackerMIL_create()
elif trackerType == trackerTypes[2]:
tracker = cv2.legacy.TrackerKCF_create()
elif trackerType
视频中固定区域定位追踪
最新推荐文章于 2024-09-10 11:58:50 发布