要使用OpenCV集成的跟踪器,必须安装opencv-contrib-python包
不能使用命令
pip list opencv_contrib_python-3.4.2.16-cp37-cp37m-win_amd64.whl
否则即使提示安装成功了,在运行项目的时候依然会提示
AttributeError: module ‘cv2.cv2’ has no attribute ‘TrackerCSRT_create’
要使用命令
pip install --user opencv_contrib_python-3.4.2.16-cp37-cp37m-win_amd64.whl