joaofaro / KCFcpp

C++ Implementation of KCF Tracker
BSD 3-Clause "New" or "Revised" License
895 stars 446 forks source link

Is there any way to make prediction for just one rect? #5

Closed strgrb closed 7 years ago

ujsyehao commented 7 years ago

what is prediction?can you exactly describe the problem?

strgrb commented 7 years ago

There is no problem now. I misunderstood the part describing a correlation filter, I wanted to find a way to use the classifier to predict any one rect given by hand instead of fitering the neighboring area, which is not necessary. Thank you very much.

ujsyehao commented 7 years ago

OK, can you tell me how to run the program ?should i use g++?

strgrb commented 7 years ago

just use cmake, there is already a CMakeLists.txt in the project. be sure to install opencv first, there may be some include problems with different opencv version, just fix it.

ujsyehao commented 7 years ago

I have installed it and follow the instructions, but when I run ./KCF hog command , nothing happened, the output.txt has nothing , so if I want to have the result https://www.youtube.com/watch?v=sZXKnPUhAi8, should I change the program?

strgrb commented 7 years ago

read src/runtracker.cpp then you will get what you want. I modified it to capture video from camera in my laptop, and I did not try the origin code.