Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

this is from a previous api (now removed):

tracker = cv2.Tracker_create(tracker_type)

your "if some version" code unfortunately does not hide it from python's parser.

(you probably expected it to work like "conditional compilation", like in c++, but not so here)

remove the whole:

if int(minor_ver) < 3:

    tracker = cv2.Tracker_create(tracker_type)
else:

block, and fix indentation