Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

Error 'module' object has no attribute 'TrackerMIL_create'

$
0
0
OpenCV 3.4 Python 2.7 My code: import cv2 import numpy as np from datetime import datetime import time now = datetime.now() i=0 cap= cv2.VideoCapture(0); fourcc = cv2.VideoWriter_fourcc(*'XVID') out= cv2.VideoWriter('videos/'+str(now)+'.avi', fourcc,20.0,(480,640)) tracker=cv2.TrackerMIL_create() bbox = (100,100,200,200) ret, frame = cap.read() ok=tracker.init(frame,bbox) My error: Traceback (most recent call last): File "test.py", line 17, in tracker=cv2.TrackerMIL_create() AttributeError: 'module' object has no attribute 'TrackerMIL_create' hellp me plese. i'm use python 2.7 because others versions not work in my windows 7

Viewing all articles
Browse latest Browse all 2088

Trending Articles