Ask Your Question

Revision history [back]

Problem with Opencv 3.2.0 to use the TLD tracker example.

I managed to implement the OpenCV 3.2.0 library on Visual Studio 2015 under Windows 7 64bits (https: //www.youtube.com/watch? V = gXzsh ...), I can see the video stream of My camera thanks to the function included in it but when I take the test program give by OpenCV to use the tracker and more particularly the TLD. (http://docs.opencv.org/trunk/d2/d0a/tutorial_introduction_to_tracker.html) I have several errors:

-Error (active) identifier "Tracker" not defined 24

-Error (active) a name followed by '::' must be a class or namespace name 24

-Error C2065 'Tracker': identifier not declared 24

-Error C2923 'cv :: Ptr': 'Tracker' is not a valid model argument for parameter 'T' 24

-Error C2653 'TrackerKCF': is not a class name or a namespace 24

-Error C3861 'create': identifier not found 24

-Error C2514 'cv :: Ptr': class has no constructor 24

-Error (active) identifier "selectROI" not defined 30

-Error C3861 'selectROI': identifier not found 30

-Error C2678 '->' binary: no operator found accepting a left-hand operand of type 'cv :: Ptr' (or there is no acceptable conversion) 35

-C2039 'init' error: is not a member of 'cv :: Ptr' 35

-Error C2678 '->' binary: no operator found accepting a left-hand operand of type 'cv :: Ptr' (or there is no acceptable conversion) 45

-Error C2039 'update': is not a member of 'cv :: Ptr' 45

I saw that I missed the file tracker.hpp so I added it thanks to the source code on the OpenCV master by adding also other file with the same method but in the end I always have errors:

-LNK2001

-LNK1120

Did I do something wrong when adding OpenCV 3.2.0 or something ?? Thank you for your help.

click to hide/show revision 2
No.2 Revision

updated 2017-05-24 04:23:23 -0600

berak gravatar image

Problem with Opencv 3.2.0 to use the TLD tracker example.

I managed to implement the OpenCV 3.2.0 library on Visual Studio 2015 under Windows 7 64bits (https: //www.youtube.com/watch? V = gXzsh ...), I can see the video stream of My camera thanks to the function included in it but when I take the test program give by OpenCV to use the tracker and more particularly the TLD. (http://docs.opencv.org/trunk/d2/d0a/tutorial_introduction_to_tracker.html) I have several errors:

-Error (active) identifier "Tracker" not defined 24

24 -Error (active) a name followed by '::' must be a class or namespace name 24

24 -Error C2065 'Tracker': identifier not declared 24

24 -Error C2923 'cv :: Ptr': 'Tracker' is not a valid model argument for parameter 'T' 24

24 -Error C2653 'TrackerKCF': is not a class name or a namespace 24

24 -Error C3861 'create': identifier not found 24

24 -Error C2514 'cv :: Ptr': class has no constructor 24

24 -Error (active) identifier "selectROI" not defined 30

30 -Error C3861 'selectROI': identifier not found 30

30 -Error C2678 '->' binary: no operator found accepting a left-hand operand of type 'cv :: Ptr' (or there is no acceptable conversion) 35

35 -C2039 'init' error: is not a member of 'cv :: Ptr' 35

35 -Error C2678 '->' binary: no operator found accepting a left-hand operand of type 'cv :: Ptr' (or there is no acceptable conversion) 45

45 -Error C2039 'update': is not a member of 'cv :: Ptr' 45

45

I saw that I missed the file tracker.hpp so I added it thanks to the source code on the OpenCV master by adding also other file with the same method but in the end I always have errors:

-LNK2001

-LNK1120

-LNK2001

-LNK1120

Did I do something wrong when adding OpenCV 3.2.0 or something ?? Thank you for your help.