Customizing the CN Tracker
In this tutorial you will learn how to
- Set custom parameters for CN tracker.
- Use your own feature-extractor function for the CN tracker.
This document contains tutorial for the cv::TrackerKCF.
Source Code
#include <opencv2/core/utility.hpp>
#include <opencv2/tracking.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
# <>
#
;
;
( , , & );
( , ** ){
(<){
<<
<< ;
;
}
;
;
:: ;
. = :: | ::;
. = ;
. = ;
. = ;
<> = ::();
->();
:: = [];
();
>> ;
=(,);
(.== || .==)
;
->(,);
();
( ;; ){
>> ;
(.== || .==)
;
->(,);
( , , ( , , ), , );
(,);
(()==);
}
;
}
( , , & ){
[];
;
=;
(.<){.=;.+=.;}
(.<){.=;.+=.;}
(.+.>.).=.-.;
(.+.>.).=.-.;
(.>.).=.;
(.>.).=.;
=().();
(,, );
,, , ;
=.-.;
=(.+.>.?.+.-.:);
=.-.;
=(.+.>.?.+.-.:);
(,,,,,,);
(, [], ,,,);
(, [], ,,,);
(,,);
=/-;
}