abhineet123 / mtf Goto Github PK
View Code? Open in Web Editor NEWModular Tracking Framework
Home Page: http://webdocs.cs.ualberta.ca/~vis/mtf/
License: BSD 3-Clause "New" or "Revised" License
Modular Tracking Framework
Home Page: http://webdocs.cs.ualberta.ca/~vis/mtf/
License: BSD 3-Clause "New" or "Revised" License
I have such warnings as below during compilation. Please decide if it matters, or they can be ignored.
Scanning dependencies of target opentld
Building CXX object ThirdParty/TLD/CMakeFiles/opentld.dir/src/mftracker/BB.cpp.o
Building CXX object ThirdParty/TLD/CMakeFiles/opentld.dir/src/mftracker/BBPredict.cpp.o
Building CXX object ThirdParty/TLD/CMakeFiles/opentld.dir/src/mftracker/FBTrack.cpp.o
Building CXX object ThirdParty/TLD/CMakeFiles/opentld.dir/src/mftracker/Lk.cpp.o
Building CXX object ThirdParty/TLD/CMakeFiles/opentld.dir/src/mftracker/Median.cpp.o
Building CXX object ThirdParty/TLD/CMakeFiles/opentld.dir/src/Clustering.cpp.o
Building CXX object ThirdParty/TLD/CMakeFiles/opentld.dir/src/DetectionResult.cpp.o
Building CXX object ThirdParty/TLD/CMakeFiles/opentld.dir/src/DetectorCascade.cpp.o
Building CXX object ThirdParty/TLD/CMakeFiles/opentld.dir/src/EnsembleClassifier.cpp.o
Building CXX object ThirdParty/TLD/CMakeFiles/opentld.dir/src/ForegroundDetector.cpp.o
Building CXX object ThirdParty/TLD/CMakeFiles/opentld.dir/src/MedianFlowTracker.cpp.o
/home/kamil/dev/MTF/ThirdParty/TLD/src/MedianFlowTracker.cpp: In member function ‘void tld::MedianFlowTracker::track(const cv::Mat&, const cv::Mat&, cv::Rect*)’:
/home/kamil/dev/MTF/ThirdParty/TLD/src/MedianFlowTracker.cpp:67:39: warning: narrowing conversion of ‘prevBB->cv::Rect_::x’ from ‘int’ to ‘float’ inside { } [-Wnarrowing]
float bb_tracker[] = {prevBB->x, prevBB->y, prevBB->width + prevBB->x - 1, prevBB->height + prevBB->y - 1};
~~~~~~~~^
/home/kamil/dev/MTF/ThirdParty/TLD/src/MedianFlowTracker.cpp:67:50: warning: narrowing conversion of ‘prevBB->cv::Rect_::y’ from ‘int’ to ‘float’ inside { } [-Wnarrowing]
float bb_tracker[] = {prevBB->x, prevBB->y, prevBB->width + prevBB->x - 1, prevBB->height + prevBB->y - 1};
~~~~~~~~^
/home/kamil/dev/MTF/ThirdParty/TLD/src/MedianFlowTracker.cpp:67:79: warning: narrowing conversion of ‘((prevBB->cv::Rect_::width + prevBB->cv::Rect_::x) - 1)’ from ‘int’ to ‘float’ inside { } [-Wnarrowing]
float bb_tracker[] = {prevBB->x, prevBB->y, prevBB->width + prevBB->x - 1, prevBB->height + prevBB->y - 1};
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/home/kamil/dev/MTF/ThirdParty/TLD/src/MedianFlowTracker.cpp:67:111: warning: narrowing conversion of ‘((prevBB->cv::Rect_::height + prevBB->cv::Rect_::y) - 1)’ from ‘int’ to ‘float’ inside { } [-Wnarrowing]
float bb_tracker[] = {prevBB->x, prevBB->y, prevBB->width + prevBB->x - 1, prevBB->height + prevBB->y - 1};
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
When compiling MTF with Ubuntu 16.10 gcc version 6.2.0 20161005
a couple of following errors crashes the compilation process
error: call of overloaded ‘abs(...)’ is ambiguous
The following patch fixes it:
diff --git a/ThirdParty/MIL/src/cv_onlineboosting.cpp b/ThirdParty/MIL/src/cv_onlineboosting.cpp
index 43acc31..f66337d 100644
--- a/ThirdParty/MIL/src/cv_onlineboosting.cpp
+++ b/ThirdParty/MIL/src/cv_onlineboosting.cpp
@@ -1871,7 +1871,7 @@ namespace cv
int myTarget = static_cast<int>(sign(combinedDecision));
m_pseudoTarget[curBaseClassifier] = myTarget;
- float myImportance = ::abs(combinedDecision);
+ float myImportance = ::fabs(combinedDecision);^M
m_pseudoLambda[curBaseClassifier] = myImportance;
baseClassifier[curBaseClassifier]->trainClassifier(image, ROI, myTarget, myImportance, m_errorMask);
diff --git a/ThirdParty/TLD/src/mftracker/BBPredict.cpp b/ThirdParty/TLD/src/mftracker/BBPredict.cpp
index 6f08b51..a666974 100644
--- a/ThirdParty/TLD/src/mftracker/BBPredict.cpp
+++ b/ThirdParty/TLD/src/mftracker/BBPredict.cpp
@@ -30,9 +30,7 @@
#endif
#include "mtf/ThirdParty/TLD/mftracker/BBPredict.h"
-
#include <cmath>
-
#include "mtf/ThirdParty/TLD/mftracker/Median.h"
/**
@@ -41,7 +39,7 @@
*/
float getBbWidth(float *bb)
{
- return abs(bb[2] - bb[0] + 1);
+ return fabs(bb[2] - bb[0] + 1);^M
}
/**
* Returns hight of Boundingbox.
@@ -49,7 +47,7 @@ float getBbWidth(float *bb)
*/
float getBbHeight(float *bb)
{
- return abs(bb[3] - bb[1] + 1);
+ return fabs(bb[3] - bb[1] + 1);^M
}
/**
* Calculates the new (moved and resized) Bounding box.
To get exact errors I need to recompile the project without the patch.
After fixing #2, with same configuration I bumped on another error:
Scanning dependencies of target extractPatch
[ 94%] Building CXX object CMakeFiles/extractPatch.dir/Examples/cpp/extractPatch.cc.o
[ 94%] Linking CXX executable extractPatch
[ 94%] Built target extractPatch
Scanning dependencies of target createMosaic
[ 95%] Building CXX object CMakeFiles/createMosaic.dir/Examples/cpp/createMosaic.cc.o
[ 95%] Linking CXX executable createMosaic
CMakeFiles/createMosaic.dir/Examples/cpp/createMosaic.cc.o: In functionmtf::TrackerBase* mtf::getTracker<mtf::MCPCA, mtf::Spline>(char const*, mtf::MCPCA::ParamType const*, mtf::Spline::ParamType const*)': createMosaic.cc:(.text._ZN3mtf10getTrackerINS_5MCPCAENS_6SplineEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE[_ZN3mtf10getTrackerINS_5MCPCAENS_6SplineEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE]+0x2397): undefined reference to
mtf::FeatureTrackerParams::FeatureTrackerParams(int, int, int, int, bool, mtf::FeatureTrackerParams::DetectorType, mtf::FeatureTrackerParams::DescriptorType, bool, int, double, bool, bool, double, int, bool, bool, bool, bool)'
createMosaic.cc:(.text._ZN3mtf10getTrackerINS_5MCPCAENS_6SplineEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE[_ZN3mtf10getTrackerINS_5MCPCAENS_6SplineEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE]+0x23d5): undefined reference tomtf::SIFTParams::SIFTParams(int, int, double, double, double)' createMosaic.cc:(.text._ZN3mtf10getTrackerINS_5MCPCAENS_6SplineEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE[_ZN3mtf10getTrackerINS_5MCPCAENS_6SplineEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE]+0x2446): undefined reference to
mtf::FeatureTrackermtf::Spline::FeatureTracker(mtf::FeatureTrackerParams const*, mtf::SIFTParams const*, mtf::FLANNCVParams const*, mtf::SSMEstimatorParams const*, mtf::SplineParams const*)'
There is much more of the undefined references here, and this is just the beginning of the error message.
This happend with following cmake output:
-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- random
-- filesystem
-- system
-- Getting Eigen headers from: /usr/include/eigen3
-- Getting OpenCV headers from: /usr/local/include;/usr/local/include/opencv
-- Using OpenCV libraries: opencv_calib3d;opencv_core;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_shape;opencv_stitching;opencv_superres;opencv_video;opencv_videoio;opencv_videostab;opencv_aruco;opencv_bgsegm;opencv_bioinspired;opencv_ccalib;opencv_datasets;opencv_dnn;opencv_dpm;opencv_face;opencv_freetype;opencv_fuzzy;opencv_line_descriptor;opencv_optflow;opencv_phase_unwrapping;opencv_plot;opencv_reg;opencv_rgbd;opencv_saliency;opencv_stereo;opencv_structured_light;opencv_surface_matching;opencv_text;opencv_tracking;opencv_xfeatures2d;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto
-- Getting Boost headers from: /usr/include
-- Getting Boost libraries from: /usr/lib/x86_64-linux-gnu
-- Using Boost libraries: /usr/lib/x86_64-linux-gnu/libboost_random.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_system.so
-- DFT disabled
-- PFSL3 disabled
-- Getting ViSP headers from: /usr/local/include;/usr/local/include;/usr/local/include/opencv;/usr/include/libxml2;/usr/include
-- Using ViSP libraries: visp_vs;visp_visual_features;visp_vision;visp_tt_mi;visp_tt;visp_me;visp_mbt;visp_klt;visp_blob;visp_sensor;visp_robot;visp_io;visp_gui;visp_detection;visp_core;visp_ar
-- GOTURN disabled
-- Xvision disabled
-- Enabled third party trackers: DSST/src/DSST;KCF/src/KCF;CMT/src/CMT;RCT/src/RCT;TLD/src/TLD;Struck/src/Struck;MIL/src/MIL;FRG/src/FRG;ViSP/src/ViSP
-- DFM disabled
-- Feature based grid tracker disabled
-- RegNet disabled
-- FLANN based NN is disabled
-- PYTHON_INCLUDE_DIRS: /usr/include/python2.7
-- PYTHON_LIBRARIES: /usr/lib/x86_64-linux-gnu/libpython2.7.so
-- Could NOT find Matlab (missing: Matlab_INCLUDE_DIRS Matlab_MEX_LIBRARY Matlab_MEX_EXTENSION MEX_COMPILER MX_LIBRARY)
-- Matlab not found so mexMTF is disabled
If Matlab is installed but not detected, mexMTF can be compiled by running the command in 'mtf_mex_cmd.txt' at the MATLAB prompt after:
* removing all semi colons
* replacing all occurences of the type '-l' with ''
* replacing all occurences of the type '-l-L' with '-L'
-- MTF_COMPILETIME_FLAGS: -std=c++11
-- MTF_RUNTIME_FLAGS: -Wfatal-errors;-Wno-write-strings;-Wno-unused-result;-Wformat=0;-std=c++11;-O3;-msse2
-- MTF_DEFINITIIIONS: NDEBUG;EIGEN_NO_DEBUG;DISABLE_DFT;DISABLE_PFSL3;DISABLE_GOTURN;DISABLE_XVISION;DISABLE_DFM;DISABLE_GRID_FEAT;DISABLE_REGNET;DISABLE_FLANN;DISABLE_HDF5;DISABLE_SPI
-- CMAKE_CXX_FLAGS: -fopenmp
-- CMAKE_C_FLAGS:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kamil/dev/MTF/build_nn_feat
I am just trying to use your stuff, so I thought to run testMTF which looks like some HelloWorld looking at the name.
thats the result:
kamil@kamil-VirtualBox ~/dev/MTF/build $ /usr/local/bin/testMTF
/usr/local/bin/testMTF: error while loading shared libraries: libmtf_test.so: cannot open shared object file: No such file or directory
I have build the project with default values (so with FLANN, third party etc.) The cmake ..
on below
kamil@kamil-VirtualBox ~/dev/MTF/build $ cmake ..
-- The C compiler identification is GNU 6.2.0
-- The CXX compiler identification is GNU 6.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0")
-- Found OpenCV: /usr/local (found version "3.2.0")
-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- random
-- filesystem
-- system
-- Getting Eigen headers from: /usr/include/eigen3
-- Getting OpenCV headers from: /usr/local/include;/usr/local/include/opencv
-- Using OpenCV libraries: opencv_calib3d;opencv_core;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_shape;opencv_stitching;opencv_superres;opencv_video;opencv_videoio;opencv_videostab;opencv_aruco;opencv_bgsegm;opencv_bioinspired;opencv_ccalib;opencv_datasets;opencv_dnn;opencv_dpm;opencv_face;opencv_freetype;opencv_fuzzy;opencv_line_descriptor;opencv_optflow;opencv_phase_unwrapping;opencv_plot;opencv_reg;opencv_rgbd;opencv_saliency;opencv_stereo;opencv_structured_light;opencv_surface_matching;opencv_text;opencv_tracking;opencv_xfeatures2d;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto
-- Getting Boost headers from: /usr/include
-- Getting Boost libraries from: /usr/lib/x86_64-linux-gnu
-- Using Boost libraries: /usr/lib/x86_64-linux-gnu/libboost_random.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_system.so
-- DFT disabled
-- PFSL3 disabled
-- Getting ViSP headers from: /usr/local/include;/usr/local/include;/usr/local/include/opencv;/usr/include/libxml2;/usr/include
-- Using ViSP libraries: visp_vs;visp_visual_features;visp_vision;visp_tt_mi;visp_tt;visp_me;visp_mbt;visp_klt;visp_blob;visp_sensor;visp_robot;visp_io;visp_gui;visp_detection;visp_core;visp_ar
-- GOTURN disabled
-- Xvision disabled
-- Enabled third party trackers: DSST/src/DSST;KCF/src/KCF;CMT/src/CMT;RCT/src/RCT;TLD/src/TLD;Struck/src/Struck;MIL/src/MIL;FRG/src/FRG;ViSP/src/ViSP
-- DFM disabled
-- OpenCV nonfree module not found so disabling the feature based grid tracker
-- RegNet disabled
-- Checking for module 'flann'
-- Found flann, version 1.8.4
-- FLANN_ROOT:
-- Found FLANN: /usr/local/lib/libflann_cpp.so
-- FLANN found (include: /usr/local/include, lib: optimized;/usr/local/lib/libflann_cpp.so;debug;/usr/local/lib/libflann_cpp.so)
-- Found HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libsz.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.8.16")
-- Found HDF5 headers at: /usr/include/hdf5/serial
-- Found HDF5 C++ libraries: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libsz.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.12+", minimum required is "2.7")
-- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.12")
-- Found NumPy: /home/kamil/.local/lib/python2.7/site-packages/numpy/core/include (found version "1.11.2")
-- PYTHON_INCLUDE_DIRS: /usr/include/python2.7
-- PYTHON_LIBRARIES: /usr/lib/x86_64-linux-gnu/libpython2.7.so
-- Could NOT find Matlab (missing: Matlab_INCLUDE_DIRS Matlab_MEX_LIBRARY Matlab_MEX_EXTENSION MEX_COMPILER MX_LIBRARY)
-- Matlab not found so mexMTF is disabled
If Matlab is installed but not detected, mexMTF can be compiled by running the command in 'mtf_mex_cmd.txt' at the MATLAB prompt after:
* removing all semi colons
* replacing all occurences of the type '-l' with ''
* replacing all occurences of the type '-l-L' with '-L'
-- MTF_COMPILETIME_FLAGS: -std=c++11
-- MTF_RUNTIME_FLAGS: -Wfatal-errors;-Wno-write-strings;-Wno-unused-result;-Wformat=0;-std=c++11;-O3;-msse2
-- MTF_DEFINITIIIONS: NDEBUG;EIGEN_NO_DEBUG;DISABLE_DFT;DISABLE_PFSL3;DISABLE_GOTURN;DISABLE_XVISION;DISABLE_DFM;DISABLE_FEAT;DISABLE_REGNET;DISABLE_SPI
-- CMAKE_CXX_FLAGS: -fopenmp
-- CMAKE_C_FLAGS:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kamil/dev/MTF/build
However the result of make install
makes me thinking sth might gone wrong. Take a look at Set runtime path of "/usr/local/lib/libmtf.so" to ""
lines. Shoudn't the runtime path be different from an empty string?
kamil@kamil-VirtualBox ~/dev/MTF/build $ sudo make install
[sudo] password for kamil:
Makefile:240: warning: overriding recipe for target 'all'
Makefile:127: warning: ignoring old recipe for target 'all'
Built target frg
Built target cmt
Built target cvblobs
Built target opentld
Built target struck
Built target mil
Built target mtf_test
[ 2%] Built target frg
[ 5%] Built target cmt
[ 9%] Built target cvblobs
[ 17%] Built target opentld
[ 23%] Built target struck
[ 25%] Built target mil
[ 90%] Built target mtf
[ 91%] Built target pyMTF
[ 92%] Built target mtf_test
[ 93%] Built target testMTF
[ 94%] Built target extractPatch
[ 95%] Built target createMosaic
[ 97%] Built target trackUAVTrajectory
[ 98%] Built target runMTF
[100%] Built target generateSyntheticSeq
[100%] Built target all
Built target mtf
Built target testMTF
Built target extractPatch
Built target createMosaic
Built target trackUAVTrajectory
Built target runMTF
Built target generateSyntheticSeq
Built target pyMTF
Built target FragTrack
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/bin/runMTF
-- Set runtime path of "/usr/local/bin/runMTF" to ""
-- Installing: /usr/local/bin/trackUAVTrajectory
-- Set runtime path of "/usr/local/bin/trackUAVTrajectory" to ""
-- Installing: /usr/local/bin/extractPatch
-- Set runtime path of "/usr/local/bin/extractPatch" to ""
-- Installing: /usr/local/bin/generateSyntheticSeq
-- Set runtime path of "/usr/local/bin/generateSyntheticSeq" to ""
-- Installing: /usr/local/bin/createMosaic
-- Set runtime path of "/usr/local/bin/createMosaic" to ""
-- Installing: /usr/local/lib/python2.7/dist-packages/pyMTF.so
-- Set runtime path of "/usr/local/lib/python2.7/dist-packages/pyMTF.so" to ""
-- Installing: /usr/local/bin/testMTF
-- Set runtime path of "/usr/local/bin/testMTF" to ""
-- Installing: /usr/local/lib/libmtf_test.so
-- Set runtime path of "/usr/local/lib/libmtf_test.so" to ""
-- Installing: /usr/local/lib/libmtf.so
-- Set runtime path of "/usr/local/lib/libmtf.so" to ""
-- Up-to-date: /usr/local/include
-- Installing: /usr/local/include/mtf
-- Installing: /usr/local/include/mtf/pipeline.h
-- Installing: /usr/local/include/mtf/mtf.h
-- Installing: /usr/local/include/mtf/mtf_src.h
-- Installing: /usr/local/include/mtf/TrackerBase.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Installing: /usr/local/include/mtf/ThirdParty
-- Installing: /usr/local/include/mtf/ThirdParty/DSST
-- Installing: /usr/local/include/mtf/ThirdParty/DSST/Params.h
-- Installing: /usr/local/include/mtf/ThirdParty/DSST/wrappers.h
-- Installing: /usr/local/include/mtf/ThirdParty/DSST/sse.hpp
-- Installing: /usr/local/include/mtf/ThirdParty/DSST/DSST.h
-- Installing: /usr/local/include/mtf/ThirdParty/DSST/HOG.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Up-to-date: /usr/local/include/mtf/ThirdParty
-- Installing: /usr/local/include/mtf/ThirdParty/KCF
-- Installing: /usr/local/include/mtf/ThirdParty/KCF/KCF.h
-- Installing: /usr/local/include/mtf/ThirdParty/KCF/defines.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Up-to-date: /usr/local/include/mtf/ThirdParty
-- Installing: /usr/local/include/mtf/ThirdParty/CMT
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/Matcher.h
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/getopt
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/getopt/getopt.h
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/Consensus.h
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/Fusion.h
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/fastcluster
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/fastcluster/fastcluster.h
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/CMT.h
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/gui.h
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/common.h
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/Tracker.h
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/logging
-- Installing: /usr/local/include/mtf/ThirdParty/CMT/logging/log.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Up-to-date: /usr/local/include/mtf/ThirdParty
-- Installing: /usr/local/include/mtf/ThirdParty/RCT
-- Installing: /usr/local/include/mtf/ThirdParty/RCT/RCT.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Up-to-date: /usr/local/include/mtf/ThirdParty
-- Installing: /usr/local/include/mtf/ThirdParty/TLD
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/mftracker
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/mftracker/BB.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/mftracker/Median.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/mftracker/BBPredict.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/mftracker/FBTrack.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/mftracker/Lk.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/TLD.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/VarianceFilter.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/Clustering.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/NNClassifier.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/IntegralImage.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/NormalizedPatch.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/DetectionResult.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/TLDUtil.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/MedianFlowTracker.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/ForegroundDetector.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/DetectorCascade.h
-- Installing: /usr/local/include/mtf/ThirdParty/TLD/EnsembleClassifier.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Up-to-date: /usr/local/include/mtf/ThirdParty
-- Installing: /usr/local/include/mtf/ThirdParty/Struck
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/Config.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/HaarFeatures.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/HistogramFeatures.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/MultiFeatures.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/Features.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/Rect.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/Sample.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/Tracker.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/HaarFeature.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/Sampler.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/LaRank.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/ImageRep.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/Kernels.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/RawFeatures.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/GraphUtils
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/GraphUtils/GraphUtils.h
-- Installing: /usr/local/include/mtf/ThirdParty/Struck/Struck.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Up-to-date: /usr/local/include/mtf/ThirdParty
-- Installing: /usr/local/include/mtf/ThirdParty/MIL
-- Installing: /usr/local/include/mtf/ThirdParty/MIL/cv_onlineboosting.h
-- Installing: /usr/local/include/mtf/ThirdParty/MIL/cv_onlinemil.h
-- Installing: /usr/local/include/mtf/ThirdParty/MIL/MIL.h
-- Installing: /usr/local/include/mtf/ThirdParty/MIL/object_tracker.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Up-to-date: /usr/local/include/mtf/ThirdParty
-- Installing: /usr/local/include/mtf/ThirdParty/FRG
-- Installing: /usr/local/include/mtf/ThirdParty/FRG/Fragments_Tracker.hpp
-- Installing: /usr/local/include/mtf/ThirdParty/FRG/emd.hpp
-- Installing: /usr/local/include/mtf/ThirdParty/FRG/vot.hpp
-- Installing: /usr/local/include/mtf/ThirdParty/FRG/FRG.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Up-to-date: /usr/local/include/mtf/ThirdParty
-- Installing: /usr/local/include/mtf/ThirdParty/ViSP
-- Installing: /usr/local/include/mtf/ThirdParty/ViSP/ViSP.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Installing: /usr/local/include/mtf/Macros
-- Installing: /usr/local/include/mtf/Macros/common.h
-- Installing: /usr/local/include/mtf/Macros/register.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Installing: /usr/local/include/mtf/Config
-- Installing: /usr/local/include/mtf/Config/datasets.h
-- Installing: /usr/local/include/mtf/Config/parameters.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Installing: /usr/local/include/mtf/Utilities
-- Installing: /usr/local/include/mtf/Utilities/objUtils.h
-- Installing: /usr/local/include/mtf/Utilities/excpUtils.h
-- Installing: /usr/local/include/mtf/Utilities/graphUtils.h
-- Installing: /usr/local/include/mtf/Utilities/warpUtils.h
-- Installing: /usr/local/include/mtf/Utilities/netUtils.h
-- Installing: /usr/local/include/mtf/Utilities/inputUtils.h
-- Installing: /usr/local/include/mtf/Utilities/miscUtils.h
-- Installing: /usr/local/include/mtf/Utilities/histUtils.h
-- Installing: /usr/local/include/mtf/Utilities/spiUtils.h
-- Installing: /usr/local/include/mtf/Utilities/imgUtils.h
-- Installing: /usr/local/include/mtf/Utilities/preprocUtils.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Installing: /usr/local/include/mtf/AM
-- Installing: /usr/local/include/mtf/AM/AMParams.h
-- Installing: /usr/local/include/mtf/AM/NCC.h
-- Installing: /usr/local/include/mtf/AM/SPSS.h
-- Installing: /usr/local/include/mtf/AM/IlluminationModel.h
-- Installing: /usr/local/include/mtf/AM/SSIM.h
-- Installing: /usr/local/include/mtf/AM/ZNCC.h
-- Installing: /usr/local/include/mtf/AM/MCPCA.h
-- Installing: /usr/local/include/mtf/AM/MI.h
-- Installing: /usr/local/include/mtf/AM/DFM.h
-- Installing: /usr/local/include/mtf/AM/SSD.h
-- Installing: /usr/local/include/mtf/AM/MCSPSS.h
-- Installing: /usr/local/include/mtf/AM/MCSCV.h
-- Installing: /usr/local/include/mtf/AM/GB.h
-- Installing: /usr/local/include/mtf/AM/CCRE.h
-- Installing: /usr/local/include/mtf/AM/LRSCV.h
-- Installing: /usr/local/include/mtf/AM/AppearanceModel.h
-- Installing: /usr/local/include/mtf/AM/MCZNCC.h
-- Installing: /usr/local/include/mtf/AM/MCSSD.h
-- Installing: /usr/local/include/mtf/AM/MCSAD.h
-- Installing: /usr/local/include/mtf/AM/NSSD.h
-- Installing: /usr/local/include/mtf/AM/MCSSIM.h
-- Installing: /usr/local/include/mtf/AM/PCA.h
-- Installing: /usr/local/include/mtf/AM/MCMI.h
-- Installing: /usr/local/include/mtf/AM/MCRSCV.h
-- Installing: /usr/local/include/mtf/AM/LSCV.h
-- Installing: /usr/local/include/mtf/AM/LKLD.h
-- Installing: /usr/local/include/mtf/AM/MCCCRE.h
-- Installing: /usr/local/include/mtf/AM/MCRIU.h
-- Installing: /usr/local/include/mtf/AM/RBF.h
-- Installing: /usr/local/include/mtf/AM/SumOfAMs.h
-- Installing: /usr/local/include/mtf/AM/SCV.h
-- Installing: /usr/local/include/mtf/AM/MCNCC.h
-- Installing: /usr/local/include/mtf/AM/SSDBase.h
-- Installing: /usr/local/include/mtf/AM/PGB.h
-- Installing: /usr/local/include/mtf/AM/MCLSCV.h
-- Installing: /usr/local/include/mtf/AM/RSCV.h
-- Installing: /usr/local/include/mtf/AM/KLD.h
-- Installing: /usr/local/include/mtf/AM/SAD.h
-- Installing: /usr/local/include/mtf/AM/ImageBase.h
-- Installing: /usr/local/include/mtf/AM/NGF.h
-- Installing: /usr/local/include/mtf/AM/RIU.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Installing: /usr/local/include/mtf/SSM
-- Installing: /usr/local/include/mtf/SSM/SSMEstimatorParams.h
-- Installing: /usr/local/include/mtf/SSM/HomographyEstimator.h
-- Installing: /usr/local/include/mtf/SSM/LieAffine.h
-- Installing: /usr/local/include/mtf/SSM/SSMEstimator.h
-- Installing: /usr/local/include/mtf/SSM/LieHomography.h
-- Installing: /usr/local/include/mtf/SSM/StateSpaceModel.h
-- Installing: /usr/local/include/mtf/SSM/AffineEstimator.h
-- Installing: /usr/local/include/mtf/SSM/Affine.h
-- Installing: /usr/local/include/mtf/SSM/Isometry.h
-- Installing: /usr/local/include/mtf/SSM/CBH.h
-- Installing: /usr/local/include/mtf/SSM/Spline.h
-- Installing: /usr/local/include/mtf/SSM/TPS.h
-- Installing: /usr/local/include/mtf/SSM/SL3.h
-- Installing: /usr/local/include/mtf/SSM/ASRT.h
-- Installing: /usr/local/include/mtf/SSM/Translation.h
-- Installing: /usr/local/include/mtf/SSM/LieIsometry.h
-- Installing: /usr/local/include/mtf/SSM/ProjectiveBase.h
-- Installing: /usr/local/include/mtf/SSM/Similitude.h
-- Installing: /usr/local/include/mtf/SSM/IST.h
-- Installing: /usr/local/include/mtf/SSM/Homography.h
-- Installing: /usr/local/include/mtf/SSM/AST.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Installing: /usr/local/include/mtf/SM
-- Installing: /usr/local/include/mtf/SM/PF.h
-- Installing: /usr/local/include/mtf/SM/CompositeSM.h
-- Installing: /usr/local/include/mtf/SM/opencv2
-- Installing: /usr/local/include/mtf/SM/opencv2/core
-- Installing: /usr/local/include/mtf/SM/opencv2/core/internal.hpp
-- Installing: /usr/local/include/mtf/SM/FALK.h
-- Installing: /usr/local/include/mtf/SM/NN.h
-- Installing: /usr/local/include/mtf/SM/SearchMethod.h
-- Installing: /usr/local/include/mtf/SM/CascadeParams.h
-- Installing: /usr/local/include/mtf/SM/HESM.h
-- Installing: /usr/local/include/mtf/SM/CascadeSM.h
-- Installing: /usr/local/include/mtf/SM/ICLKParams.h
-- Installing: /usr/local/include/mtf/SM/RegNetParams.h
-- Installing: /usr/local/include/mtf/SM/ESMParams.h
-- Installing: /usr/local/include/mtf/SM/GridTrackerFlowParams.h
-- Installing: /usr/local/include/mtf/SM/GridBase.h
-- Installing: /usr/local/include/mtf/SM/PyramidalParams.h
-- Installing: /usr/local/include/mtf/SM/GridTrackerCV.h
-- Installing: /usr/local/include/mtf/SM/RKLTParams.h
-- Installing: /usr/local/include/mtf/SM/IALK.h
-- Installing: /usr/local/include/mtf/SM/GridTracker.h
-- Installing: /usr/local/include/mtf/SM/PyramidalSM.h
-- Installing: /usr/local/include/mtf/SM/FLANNCVParams.h
-- Installing: /usr/local/include/mtf/SM/NT
-- Installing: /usr/local/include/mtf/SM/NT/PF.h
-- Installing: /usr/local/include/mtf/SM/NT/FALK.h
-- Installing: /usr/local/include/mtf/SM/NT/NN.h
-- Installing: /usr/local/include/mtf/SM/NT/SearchMethod.h
-- Installing: /usr/local/include/mtf/SM/NT/AESM.h
-- Installing: /usr/local/include/mtf/SM/NT/RegNet.h
-- Installing: /usr/local/include/mtf/SM/NT/IALK.h
-- Installing: /usr/local/include/mtf/SM/NT/ESM.h
-- Installing: /usr/local/include/mtf/SM/NT/GNN.h
-- Installing: /usr/local/include/mtf/SM/NT/GridTrackerFlow.h
-- Installing: /usr/local/include/mtf/SM/NT/FCSD.h
-- Installing: /usr/local/include/mtf/SM/NT/RKLT.h
-- Installing: /usr/local/include/mtf/SM/NT/ICLK.h
-- Installing: /usr/local/include/mtf/SM/NT/FCLK.h
-- Installing: /usr/local/include/mtf/SM/NNParams.h
-- Installing: /usr/local/include/mtf/SM/LineTracker.h
-- Installing: /usr/local/include/mtf/SM/FCLKParams.h
-- Installing: /usr/local/include/mtf/SM/PFParams.h
-- Installing: /usr/local/include/mtf/SM/FLANNParams.h
-- Installing: /usr/local/include/mtf/SM/ESM.h
-- Installing: /usr/local/include/mtf/SM/FeatureTracker.h
-- Installing: /usr/local/include/mtf/SM/GNN.h
-- Installing: /usr/local/include/mtf/SM/PyramidalTracker.h
-- Installing: /usr/local/include/mtf/SM/CompositeBase.h
-- Installing: /usr/local/include/mtf/SM/HACLK.h
-- Installing: /usr/local/include/mtf/SM/GridTrackerFlow.h
-- Installing: /usr/local/include/mtf/SM/GNNParams.h
-- Installing: /usr/local/include/mtf/SM/FGNN.h
-- Installing: /usr/local/include/mtf/SM/RKLT.h
-- Installing: /usr/local/include/mtf/SM/FESMBase.h
-- Installing: /usr/local/include/mtf/SM/ParallelSM.h
-- Installing: /usr/local/include/mtf/SM/CascadeTracker.h
-- Installing: /usr/local/include/mtf/SM/ESMH.h
-- Installing: /usr/local/include/mtf/SM/IALK2.h
-- Installing: /usr/local/include/mtf/SM/FALKParams.h
-- Installing: /usr/local/include/mtf/SM/ICLK.h
-- Installing: /usr/local/include/mtf/SM/FESM.h
-- Installing: /usr/local/include/mtf/SM/FCLK.h
-- Installing: /usr/local/include/mtf/SM/FeatureBase.h
-- Installing: /usr/local/include/mtf/SM/ParallelTracker.h
-- Installing: /usr/local/include/mtf/SM/IALKParams.h
-- Installing: /usr/local/include/mtf/SM/ParallelParams.h
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/mtf
-- Installing: /usr/local/include/mtf/Test
-- Installing: /usr/local/include/mtf/Test/Diagnostics.h
-- Installing: /usr/local/include/mtf/Test/DiagBase.h
-- Installing: /usr/local/lib/libcmt.so
-- Set runtime path of "/usr/local/lib/libcmt.so" to ""
-- Installing: /usr/local/lib/libopentld.so
-- Set runtime path of "/usr/local/lib/libopentld.so" to ""
-- Installing: /usr/local/lib/libcvblobs.so
-- Installing: /usr/local/lib/libstruck.so
-- Set runtime path of "/usr/local/lib/libstruck.so" to ""
-- Installing: /usr/local/lib/libmil.so
-- Set runtime path of "/usr/local/lib/libmil.so" to ""
-- Installing: /usr/local/lib/libfrg.so
-- Set runtime path of "/usr/local/lib/libfrg.so" to ""
this link: http://webdocs.cs.ualberta.ca/~vis/mtf/html/namespaceutils.html cannot be opened
maybe the permission of some files on the server is not set properly
Hi, I seem to be getting this error when I try to install MTF but I can't seem to figure out what may be causing this.
/usr/bin/ld: cannot find -lQt5::Core
/usr/bin/ld: cannot find -lQt5::Gui
/usr/bin/ld: cannot find -lQt5::Widgets
/usr/bin/ld: cannot find -lQt5::Test
/usr/bin/ld: cannot find -lQt5::Concurrent
/usr/bin/ld: cannot find -lQt5::OpenGL
collect2: error: ld returned 1 exit status
ThirdParty/FRG/CMakeFiles/frg.dir/build.make:211: recipe for target 'ThirdParty/FRG/libfrg.so' failed
make[2]: *** [ThirdParty/FRG/libfrg.so] Error 1
CMakeFiles/Makefile2:1863: recipe for target 'ThirdParty/FRG/CMakeFiles/frg.dir/all' failed
make[1]: *** [ThirdParty/FRG/CMakeFiles/frg.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
Hi, @abhineet123
I'm trying to start with the simplest demo SimpleTrackingDemo.cc to learn MTF, but I found you have not maintained it so that it can not run successfully with the latest version of MTF.
I fix mtf::utils::InputCV input('u'); with :
utils::InputParams* params = new utils::InputParams('u', "", "", "", 1, false);
mtf::utils::InputCV input(params);
But there is an error in tracker.initialize(input.getFrame(), obj_utils.getObj().corners);
I spent a few hours on this because I don't know MTF well. And I'm worried that there will be some other problems after I solve this by myself. So Could you update SimpleTrackingDemo.cc and CompositeTrackingDemo.cc ?
This is another variant of cmake configuration - the default one - which includes FLANN and THIRD_PARTY.
I found, I can get rid of it by disabling FLANN.
The make output:
kamil@kamil-VirtualBox ~/dev/MTF/build $ make
Makefile:591: warning: overriding recipe for target 'all'
Makefile:127: warning: ignoring old recipe for target 'all'
-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- random
-- filesystem
-- system
-- Getting Eigen headers from: /usr/include/eigen3
-- Getting OpenCV headers from: /usr/local/include;/usr/local/include/opencv
-- Using OpenCV libraries: opencv_calib3d;opencv_core;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_shape;opencv_stitching;opencv_superres;opencv_video;opencv_videoio;opencv_videostab;opencv_aruco;opencv_bgsegm;opencv_bioinspired;opencv_ccalib;opencv_datasets;opencv_dnn;opencv_dpm;opencv_face;opencv_freetype;opencv_fuzzy;opencv_line_descriptor;opencv_optflow;opencv_phase_unwrapping;opencv_plot;opencv_reg;opencv_rgbd;opencv_saliency;opencv_stereo;opencv_structured_light;opencv_surface_matching;opencv_text;opencv_tracking;opencv_xfeatures2d;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto
-- Getting Boost headers from: /usr/include
-- Getting Boost libraries from: /usr/lib/x86_64-linux-gnu
-- Using Boost libraries: /usr/lib/x86_64-linux-gnu/libboost_random.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_system.so
-- DFT disabled
-- PFSL3 disabled
-- Getting ViSP headers from: /usr/local/include;/usr/local/include;/usr/local/include/opencv;/usr/include/libxml2;/usr/include
-- Using ViSP libraries: visp_vs;visp_visual_features;visp_vision;visp_tt_mi;visp_tt;visp_me;visp_mbt;visp_klt;visp_blob;visp_sensor;visp_robot;visp_io;visp_gui;visp_detection;visp_core;visp_ar
-- GOTURN disabled
-- Xvision disabled
-- Enabled third party trackers: DSST/src/DSST;KCF/src/KCF;CMT/src/CMT;RCT/src/RCT;TLD/src/TLD;Struck/src/Struck;MIL/src/MIL;FRG/src/FRG;ViSP/src/ViSP
-- DFM disabled
-- OpenCV nonfree module not found so disabling the feature based grid tracker
CMake Warning (dev) at SM/SM.cmake:32 (set):
Cannot set "FEAT_ENABLED": current scope has no parent.
Call Stack (most recent call first):
CMakeLists.txt:98 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- RegNet disabled
-- FLANN_ROOT:
-- FLANN found (include: /usr/include, lib: optimized;/usr/lib/x86_64-linux-gnu/libflann_cpp.so;debug;/usr/lib/x86_64-linux-gnu/libflann_cpp.so)
-- Found HDF5 headers at: /usr/include/hdf5/serial
-- Found HDF5 C++ libraries: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libsz.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so
-- PYTHON_INCLUDE_DIRS: /usr/include/python2.7
-- PYTHON_LIBRARIES: /usr/lib/x86_64-linux-gnu/libpython2.7.so
-- Could NOT find Matlab (missing: Matlab_INCLUDE_DIRS Matlab_MEX_LIBRARY Matlab_MEX_EXTENSION Matlab_ROOT_DIR MEX_COMPILER MX_LIBRARY)
-- Matlab not found so mexMTF is disabled
If Matlab is installed but not detected, mexMTF can be compiled by running the command in 'mtf_mex_cmd.txt' at the MATLAB prompt after:
* removing all semi colons
* replacing all occurences of the type '-l' with ''
* replacing all occurences of the type '-l-L' with '-L'
-- MTF_COMPILETIME_FLAGS: -std=c++11
-- MTF_RUNTIME_FLAGS: -Wfatal-errors;-Wno-write-strings;-Wno-unused-result;-Wformat=0;-std=c++11;-O3;-msse2
-- MTF_DEFINITIIIONS: NDEBUG;EIGEN_NO_DEBUG;DISABLE_DFT;DISABLE_PFSL3;DISABLE_GOTURN;DISABLE_XVISION;DISABLE_DFM;DISABLE_GRID_FEAT;DISABLE_REGNET;DISABLE_SPI
-- CMAKE_CXX_FLAGS: -fopenmp
-- CMAKE_C_FLAGS:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kamil/dev/MTF/build
Built target frg
Built target cmt
Built target cvblobs
Scanning dependencies of target opentld
Building CXX object ThirdParty/TLD/CMakeFiles/opentld.dir/src/mftracker/BBPredict.cpp.o
Linking CXX shared library libopentld.so
Built target opentld
Built target struck
Scanning dependencies of target mil
Building CXX object ThirdParty/MIL/CMakeFiles/mil.dir/src/cv_onlineboosting.cpp.o
Linking CXX shared library libmil.so
Built target mil
Scanning dependencies of target mtf_test
Building CXX object CMakeFiles/mtf_test.dir/Test/src/Diagnostics.cc.o
Linking CXX shared library libmtf_test.so
Built target mtf_test
[ 2%] Built target frg
[ 5%] Built target cmt
[ 9%] Built target cvblobs
[ 17%] Built target opentld
[ 23%] Built target struck
[ 25%] Built target mil
[ 25%] Linking CXX shared library libmtf.so
[ 89%] Built target mtf
Scanning dependencies of target pyMTF
[ 90%] Building CXX object CMakeFiles/pyMTF.dir/Examples/cpp/pyMTF.cc.o
In file included from /usr/include/python2.7/numpy/ndarraytypes.h:1777:0,
from /usr/include/python2.7/numpy/ndarrayobject.h:18,
from /usr/include/python2.7/numpy/arrayobject.h:4,
from /home/kamil/dev/MTF/Examples/cpp/pyMTF.cc:22:
/usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^~~~~~~
[ 90%] Linking CXX shared module pyMTF.so
[ 90%] Built target pyMTF
[ 91%] Built target mtf_test
Scanning dependencies of target testMTF
[ 92%] Building CXX object CMakeFiles/testMTF.dir/Examples/cpp/testMTF.cc.o
[ 92%] Linking CXX executable testMTF
libmtf.so: undefined reference toLZ4_decompress_safe' libmtf.so: undefined reference to
LZ4_decompress_safe_continue'
libmtf.so: undefined reference toLZ4_resetStreamHC' libmtf.so: undefined reference to
LZ4_setStreamDecode'
libmtf.so: undefined reference to `LZ4_compress_HC_continue'
collect2: error: ld returned 1 exit status
CMakeFiles/testMTF.dir/build.make:224: recipe for target 'testMTF' failed
make[3]: *** [testMTF] Error 1
CMakeFiles/Makefile2:353: recipe for target 'CMakeFiles/testMTF.dir/all' failed
make[2]: *** [CMakeFiles/testMTF.dir/all] Error 2
CMakeFiles/Makefile2:289: recipe for target 'CMakeFiles/all.dir/rule' failed
make[1]: *** [CMakeFiles/all.dir/rule] Error 2
Makefile:591: recipe for target 'all' failed
make: *** [all] Error 2
kamil@kamil-VirtualBox ~/dev/MTF/build $
ENV: Ubuntu 16.10/gcc 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12)
Scanning dependencies of target runMTF
[ 97%] Building CXX object CMakeFiles/runMTF.dir/Examples/cpp/runMTF.cc.o
/home/kamil/dev/MTF/Examples/cpp/runMTF.cc: In function ‘int main(int, char**)’:
/home/kamil/dev/MTF/Examples/cpp/runMTF.cc:376:46: error: operands to ?: have different types ‘std::_cxx11::string {aka std::cxx11::basic_string}’ and ‘cv::String’
record_frames_fname = write_tracking_data ? tracking_data_fname :
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
cv::format("%s%s%s%d", mtf_sm, mtf_am, mtf_ssm, 1 - hom_normalized_init);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
CMakeFiles/runMTF.dir/build.make:62: recipe for target 'CMakeFiles/runMTF.dir/Examples/cpp/runMTF.cc.o' failed
make[3]: *** [CMakeFiles/runMTF.dir/Examples/cpp/runMTF.cc.o] Error 1
CMakeFiles/Makefile2:1192: recipe for target 'CMakeFiles/runMTF.dir/all' failed
make[2]: *** [CMakeFiles/runMTF.dir/all] Error 2
CMakeFiles/Makefile2:292: recipe for target 'CMakeFiles/all.dir/rule' failed
make[1]: *** [CMakeFiles/all.dir/rule] Error 2
Makefile:240: recipe for target 'all' failed
make: *** [all] Error 2
kamil@kamil-VirtualBox ~/dev/MTF/build $ l
Hi,
It seems there is an issue with img_resize_factor, neither values > nor < 1 works. The initial position of the tracking works but the gt mapping is wrong and hence the success rate is wrong.
Thanks,
Hi,
I'm trying to compile the example code provided in the Youtube video on the main MTF webpage.
I first noticed that there is no cmake config file generated to find MTF, so I tried to make my own cmake project. However, when compiling I consistently get the following error :
/usr/local/include/mtf/Utilities/inputUtils.h:16:21: fatal error: XVVideo.h: No such file or directory
The problem is that the whole MTF package has been compiled without XVision. It's not even installed on my system, and yet MTF is compiled and runnning (runMTF with webcam tracking example is working fine).
Is there something I'm doing wrong ? Here is a gist with my CMakeLists file : https://gist.github.com/benoitrosa/7efb180f2fc0c7cbdb09d0c1ab3436d1
Thanks !
I believe this is an issue with OpenCV 3.2
I had a compilation error that nonfree.hpp is not found.
To have MTF compiled I made a following symlink:
sudo ln -s /usr/local/include/opencv2/xfeatures2d/nonfree.hpp /usr/local/include/opencv2/nonfree/nonfree.hpp
However fixing includes should be better for this missing file.
Hei,
This work looks charming, I am wondering however, could it be possible to have some stable version so that I can use it in my own project? It's awesome to see that the project is evolving all the time, but always changing (may) also means possible bugs here and there.
Thanks.
Hi,
I'm interested in MTF, and try to build it in VS2019 with OpenCV 3.1.0, but I failed.
OS: Win10 1903
IDE: Microsoft Visual Studio Community 2019 Version 16.6.2
OpenCV (built with OpenCV-Contrib): 3.1.0
Eigen: 3.2.10
FLANN: 1.8.4
ViSP: 3.0.1
Boost: 1.73.0
CMake: 3.15.3-win64
I'm sure that the related dependencies are built from source code successfully and I make some tests for OpenCV, Eigen.
The following is that I use CMake (specify the generator Visual Studio 16 2019
for this project) to generate the project, and build in VS2019.
I modified the CMakeList.txt
:
and then the CMake work fine:
and the output in CMake is:
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_policy):
The OLD behavior for policy CMP0037 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
OpenCV ARCH: x64
OpenCV RUNTIME:
OpenCV STATIC: ON
Found OpenCV 3.1.0 in C:/OpenCV/VS_build_OpenCV_3.1.0/install/lib
You might need to add C:\OpenCV\VS_build_OpenCV_3.1.0\install\bin to your PATH to be able to run your applications.
Rush to find Boost
CMake Warning at C:/OpenCV/cmake-3.15.3-win64-x64/share/cmake-3.15/Modules/FindBoost.cmake:1144 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
C:/OpenCV/cmake-3.15.3-win64-x64/share/cmake-3.15/Modules/FindBoost.cmake:1266 (_Boost_COMPONENT_DEPENDENCIES)
C:/OpenCV/cmake-3.15.3-win64-x64/share/cmake-3.15/Modules/FindBoost.cmake:1904 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:64 (find_package)
CMake Warning at C:/OpenCV/cmake-3.15.3-win64-x64/share/cmake-3.15/Modules/FindBoost.cmake:1144 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
C:/OpenCV/cmake-3.15.3-win64-x64/share/cmake-3.15/Modules/FindBoost.cmake:1266 (_Boost_COMPONENT_DEPENDENCIES)
C:/OpenCV/cmake-3.15.3-win64-x64/share/cmake-3.15/Modules/FindBoost.cmake:1904 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:64 (find_package)
CMake Warning at C:/OpenCV/cmake-3.15.3-win64-x64/share/cmake-3.15/Modules/FindBoost.cmake:1144 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
C:/OpenCV/cmake-3.15.3-win64-x64/share/cmake-3.15/Modules/FindBoost.cmake:1266 (_Boost_COMPONENT_DEPENDENCIES)
C:/OpenCV/cmake-3.15.3-win64-x64/share/cmake-3.15/Modules/FindBoost.cmake:1904 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:64 (find_package)
Over find Boost
Getting Eigen headers from: C:/OpenCV/VS_install_eigne_3.2.10/include/eigen3
Getting OpenCV headers from: C:/OpenCV/VS_build_OpenCV_3.1.0/install/include;C:/OpenCV/VS_build_OpenCV_3.1.0/install/include/opencv
Using OpenCV libraries: opencv_xphoto;opencv_xobjdetect;opencv_ximgproc;opencv_xfeatures2d;opencv_tracking;opencv_text;opencv_surface_matching;opencv_structured_light;opencv_stereo;opencv_saliency;opencv_rgbd;opencv_reg;opencv_plot;opencv_optflow;opencv_line_descriptor;opencv_fuzzy;opencv_face;opencv_dpm;opencv_dnn;opencv_datasets;opencv_ccalib;opencv_bioinspired;opencv_bgsegm;opencv_aruco;opencv_videostab;opencv_videoio;opencv_video;opencv_superres;opencv_stitching;opencv_shape;opencv_photo;opencv_objdetect;opencv_ml;opencv_imgproc;opencv_imgcodecs;opencv_highgui;opencv_flann;opencv_features2d;opencv_core;opencv_calib3d
Getting Boost headers from: C:/OpenCV/build_boost_1.73.0
Getting Boost libraries from: C:/OpenCV/build_boost_1.73.0/stage/lib
Using Boost libraries: optimized;C:/OpenCV/build_boost_1.73.0/stage/lib/libboost_random-vc142-mt-x64-1_73.lib;debug;C:/OpenCV/build_boost_1.73.0/stage/lib/libboost_random-vc142-mt-gd-x64-1_73.lib;optimized;C:/OpenCV/build_boost_1.73.0/stage/lib/libboost_filesystem-vc142-mt-x64-1_73.lib;debug;C:/OpenCV/build_boost_1.73.0/stage/lib/libboost_filesystem-vc142-mt-gd-x64-1_73.lib;optimized;C:/OpenCV/build_boost_1.73.0/stage/lib/libboost_system-vc142-mt-x64-1_73.lib;debug;C:/OpenCV/build_boost_1.73.0/stage/lib/libboost_system-vc142-mt-gd-x64-1_73.lib
OpenCV ARCH: x64
OpenCV RUNTIME:
OpenCV STATIC: ON
Found OpenCV 3.1.0 in C:/OpenCV/VS_build_OpenCV_3.1.0/install/lib
You might need to add C:\OpenCV\VS_build_OpenCV_3.1.0\install\bin to your PATH to be able to run your applications.
OpenCV ARCH: x64
OpenCV RUNTIME:
OpenCV STATIC: ON
Found OpenCV 3.1.0 in C:/OpenCV/VS_build_OpenCV_3.1.0/install/lib
You might need to add C:\OpenCV\VS_build_OpenCV_3.1.0\install\bin to your PATH to be able to run your applications.
OpenCV ARCH: x64
OpenCV RUNTIME:
OpenCV STATIC: ON
Found OpenCV 3.1.0 in C:/OpenCV/VS_build_OpenCV_3.1.0/install/lib
You might need to add C:\OpenCV\VS_build_OpenCV_3.1.0\install\bin to your PATH to be able to run your applications.
OpenCV ARCH: x64
OpenCV RUNTIME:
OpenCV STATIC: ON
Found OpenCV 3.1.0 in C:/OpenCV/VS_build_OpenCV_3.1.0/install/lib
You might need to add C:\OpenCV\VS_build_OpenCV_3.1.0\install\bin to your PATH to be able to run your applications.
DFT disabled
OpenCV ARCH: x64
OpenCV RUNTIME:
OpenCV STATIC: ON
Found OpenCV 3.1.0 in C:/OpenCV/VS_build_OpenCV_3.1.0/install/lib
You might need to add C:\OpenCV\VS_build_OpenCV_3.1.0\install\bin to your PATH to be able to run your applications.
PFSL3 disabled
ViSP ARCH: x64
ViSP RUNTIME:
CMake Deprecation Warning at C:/OpenCV/VS_build_visp_3.0.1/VISPConfig.cmake:161 (cmake_policy):
The OLD behavior for policy CMP0024 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
C:/OpenCV/VS_build_visp_3.0.1/install/VISPConfig.cmake:134 (include)
ThirdParty/ViSP/ViSP.cmake:6 (find_package)
ThirdParty/ThirdParty.cmake:14 (include)
CMakeLists.txt:157 (include)
Found VISP 3.0.1 in C:/OpenCV/VS_build_visp_3.0.1
You might need to add C:\OpenCV\bin to your PATH to be able to run your applications.
Getting ViSP headers from: C:/OpenCV/VS_build_visp_3.0.1/include;C:/OpenCV/visp-3.0.1/modules/core/include;C:/OpenCV/visp-3.0.1/modules/detection/include;C:/OpenCV/visp-3.0.1/modules/gui/include;C:/OpenCV/visp-3.0.1/modules/io/include;C:/OpenCV/visp-3.0.1/modules/tracker/klt/include;C:/OpenCV/visp-3.0.1/modules/tracker/me/include;C:/OpenCV/visp-3.0.1/modules/sensor/include;C:/OpenCV/visp-3.0.1/modules/ar/include;C:/OpenCV/visp-3.0.1/modules/tracker/blob/include;C:/OpenCV/visp-3.0.1/modules/robot/include;C:/OpenCV/visp-3.0.1/modules/visual_features/include;C:/OpenCV/visp-3.0.1/modules/vs/include;C:/OpenCV/visp-3.0.1/modules/vision/include;C:/OpenCV/visp-3.0.1/modules/tracker/mbt/include;C:/OpenCV/visp-3.0.1/modules/tracker/tt/include;C:/OpenCV/visp-3.0.1/modules/tracker/tt_mi/include
Using ViSP libraries: visp_vs;visp_visual_features;visp_vision;visp_tt_mi;visp_tt;visp_me;visp_mbt;visp_klt;visp_blob;visp_sensor;visp_robot;visp_io;visp_gui;visp_detection;visp_core;visp_ar
GOTURN disabled
Xvision disabled
Enabled third party trackers: DSST/src/DSST;KCF/src/KCF;CMT/src/CMT;RCT/src/RCT;TLD/src/TLD;Struck/src/Struck;MIL/src/MIL;FRG/src/FRG;ViSP/src/ViSP;CV3/src/CV3
DFM disabled
OpenCV_VERSION: 3.1.0
OpenCV nonfree module found
RegNet disabled
FLANN_ROOT:
FLANN found (include: C:/OpenCV/VS_install_flann_1.8.4/include, lib: optimized;C:/OpenCV/VS_install_flann_1.8.4/lib/flann.lib;debug;C:/OpenCV/VS_install_flann_1.8.4/lib/flann.lib)
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "2.7")
Python and/or Numpy not found so pyMTF is disabled
Could NOT find Matlab (missing: Matlab_INCLUDE_DIRS Matlab_MEX_LIBRARY Matlab_MEX_EXTENSION MEX_COMPILER MX_LIBRARY) (found version "NOTFOUND")
Matlab not found so mexMTF is disabled
MTF_LIBS: opencv_xphoto;opencv_xobjdetect;opencv_ximgproc;opencv_xfeatures2d;opencv_tracking;opencv_text;opencv_surface_matching;opencv_structured_light;opencv_stereo;opencv_saliency;opencv_rgbd;opencv_reg;opencv_plot;opencv_optflow;opencv_line_descriptor;opencv_fuzzy;opencv_face;opencv_dpm;opencv_dnn;opencv_datasets;opencv_ccalib;opencv_bioinspired;opencv_bgsegm;opencv_aruco;opencv_videostab;opencv_videoio;opencv_video;opencv_superres;opencv_stitching;opencv_shape;opencv_photo;opencv_objdetect;opencv_ml;opencv_imgproc;opencv_imgcodecs;opencv_highgui;opencv_flann;opencv_features2d;opencv_core;opencv_calib3d;optimized;C:/OpenCV/build_boost_1.73.0/stage/lib/libboost_random-vc142-mt-x64-1_73.lib;debug;C:/OpenCV/build_boost_1.73.0/stage/lib/libboost_random-vc142-mt-gd-x64-1_73.lib;optimized;C:/OpenCV/build_boost_1.73.0/stage/lib/libboost_filesystem-vc142-mt-x64-1_73.lib;debug;C:/OpenCV/build_boost_1.73.0/stage/lib/libboost_filesystem-vc142-mt-gd-x64-1_73.lib;optimized;C:/OpenCV/build_boost_1.73.0/stage/lib/libboost_system-vc142-mt-x64-1_73.lib;debug;C:/OpenCV/build_boost_1.73.0/stage/lib/libboost_system-vc142-mt-gd-x64-1_73.lib;cmt;opentld;cvblobs;struck;mil;frg;visp_vs;visp_visual_features;visp_vision;visp_tt_mi;visp_tt;visp_me;visp_mbt;visp_klt;visp_blob;visp_sensor;visp_robot;visp_io;visp_gui;visp_detection;visp_core;visp_ar
MTF_INCLUDE_DIRS: include/;ThirdParty/DSST/include/;ThirdParty/KCF/include/;ThirdParty/CMT/include/;ThirdParty/RCT/include/;ThirdParty/TLD/include/;ThirdParty/Struck/include/;ThirdParty/MIL/include/;ThirdParty/FRG/include/;ThirdParty/ViSP/include/;ThirdParty/CV3/include/;Macros/include/;Config/include/;Utilities/include/;AM/include/;SSM/include/;SM/include/;Diagnostics/include/
MTF_COMPILETIME_FLAGS: /bigobj;/arch:SSE2;/fp:fast
MTF_RUNTIME_FLAGS: /bigobj;/arch:SSE2;/fp:fast
MTF_DEFINITIIIONS: NDEBUG;EIGEN_NO_DEBUG;DISABLE_DFT;DISABLE_PFSL3;DISABLE_GOTURN;DISABLE_XVISION;DISABLE_DFM;DISABLE_REGNET;DISABLE_HDF5;DISABLE_SPI;_CRT_SECURE_NO_WARNINGS
CMAKE_CXX_FLAGS: /DWIN32 /D_WINDOWS /W3 /GR /EHsc -openmp
CMAKE_C_FLAGS: /DWIN32 /D_WINDOWS /W3
Configuring done
and then I generate
and open MTF.sln
in VS2019(Administrator).
Could you spare a moment? Thank you very mush!
Hello,
I am trying to compile MTF, as it would be very usefull for my thesis.
My environment is Ubuntu 16.10 on VirtualBox with open cv 3.2 compiled from sources together with opencv_contrib. So very briefly that's the error:
kamil@kamil-VirtualBox ~/dev/MTF/build_nn $ make
Makefile:240: warning: overriding recipe for target 'all'
Makefile:127: warning: ignoring old recipe for target 'all'
[ 93%] Built target mtf_test
[ 87%] Built target mtf
[ 88%] Built target generateSyntheticSeq
[ 90%] Built target mtf_test
[ 91%] Built target testMTF
[ 92%] Linking CXX executable trackMarkers
CMakeFiles/trackMarkers.dir/Examples/cpp/trackMarkers.cc.o: In functionmtf::TrackerBase* mtf::getTracker<mtf::MCPCA, mtf::Spline>(char const*, mtf::MCPCA::ParamType const*, mtf::Spline::ParamType const*)': trackMarkers.cc:(.text._ZN3mtf10getTrackerINS_5MCPCAENS_6SplineEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE[_ZN3mtf10getTrackerINS_5MCPCAENS_6SplineEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE]+0x2397): undefined reference to
mtf::FeatureTrackerParams::FeatureTrackerParams(int, int, int, int, bool, mtf::FeatureTrackerParams::DetectorType, mtf::FeatureTrackerParams::DescriptorType, bool, int, double, bool, bool, double, int, bool, bool, bool, bool)'
trackMarkers.cc:(.text._ZN3mtf10getTrackerINS_5MCPCAENS_6SplineEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE[_ZN3mtf10getTrackerINS_5MCPCAENS_6SplineEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE]+0x23d5): undefined reference tomtf::SIFTParams::SIFTParams(int, int, double, double, double)' trackMarkers.cc:(.text._ZN3mtf10getTrackerINS_5MCPCAENS_6SplineEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE[_ZN3mtf10getTrackerINS_5MCPCAENS_6SplineEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE]+0x2446): undefined reference to
mtf::FeatureTrackermtf::Spline::FeatureTracker(mtf::FeatureTrackerParams const*, mtf::SIFTParams const*, mtf::FLANNCVParams const*, mtf::SSMEstimatorParams const*, mtf::SplineParams const*)'
CMakeFiles/trackMarkers.dir/Examples/cpp/trackMarkers.cc.o: In functionmtf::TrackerBase* mtf::getTracker<mtf::SSD, mtf::LieHomography>(char const*, mtf::SSD::ParamType const*, mtf::LieHomography::ParamType const*)': trackMarkers.cc:(.text._ZN3mtf10getTrackerINS_3SSDENS_13LieHomographyEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE[_ZN3mtf10getTrackerINS_3SSDENS_13LieHomographyEEEPNS_11TrackerBaseEPKcPKNT_9ParamTypeEPKNT0_9ParamTypeE]+0x2397): undefined reference to
mtf::FeatureTrackerParams::FeatureTrackerParams(int, int, int, int, bool, mtf::FeatureTrackerParams::DetectorType, mtf::FeatureTrackerParams::DescriptorType, bool, int, double, bool, bool, double, int, bool, bool, bool, bool)'
It's briefly because that's only the couple of first lines of the linking errors, which are longer than a 1000 lines together. The mtf.so seems compiled and is in the build directory.
I use cmake, that's the output of cmake ..
:
-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- random
-- filesystem
-- system
-- Getting Eigen headers from: /usr/include/eigen3
-- Getting OpenCV headers from: /usr/local/include;/usr/local/include/opencv
-- Using OpenCV libraries: opencv_calib3d;opencv_core;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_shape;opencv_stitching;opencv_superres;opencv_video;opencv_videoio;opencv_videostab;opencv_aruco;opencv_bgsegm;opencv_bioinspired;opencv_ccalib;opencv_datasets;opencv_dnn;opencv_dpm;opencv_face;opencv_freetype;opencv_fuzzy;opencv_line_descriptor;opencv_optflow;opencv_phase_unwrapping;opencv_plot;opencv_reg;opencv_rgbd;opencv_saliency;opencv_stereo;opencv_structured_light;opencv_surface_matching;opencv_text;opencv_tracking;opencv_xfeatures2d;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto
-- Getting Boost headers from: /usr/include
-- Getting Boost libraries from: /usr/lib/x86_64-linux-gnu
-- Using Boost libraries: /usr/lib/x86_64-linux-gnu/libboost_random.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_system.so
-- DFT disabled
-- PFSL3 disabled
-- Getting ViSP headers from: /usr/local/include;/usr/local/include;/usr/local/include/opencv;/usr/include/libxml2;/usr/include
-- Using ViSP libraries: visp_vs;visp_visual_features;visp_vision;visp_tt_mi;visp_tt;visp_me;visp_mbt;visp_klt;visp_blob;visp_sensor;visp_robot;visp_io;visp_gui;visp_detection;visp_core;visp_ar
-- GOTURN disabled
-- Xvision disabled
-- Enabled third party trackers: DSST/src/DSST;KCF/src/KCF;CMT/src/CMT;RCT/src/RCT;TLD/src/TLD;Struck/src/Struck;MIL/src/MIL;FRG/src/FRG;ViSP/src/ViSP
-- DFM disabled
-- OpenCV nonfree module not found so disabling the feature based grid tracker
-- RegNet disabled
-- FLANN based NN is disabled
-- Incompatible version of Python library found so pyMTF is disabled: 3.5.2+
-- Could NOT find Matlab (missing: Matlab_INCLUDE_DIRS Matlab_MEX_LIBRARY Matlab_MEX_EXTENSION Matlab_ROOT_DIR MEX_COMPILER MX_LIBRARY)
-- Matlab not found so mexMTF is disabled
If Matlab is installed but not detected, mexMTF can be compiled by running the command in 'mtf_mex_cmd.txt' at the MATLAB prompt after:
* removing all semi colons
* replacing all occurences of the type '-l' with ''
* replacing all occurences of the type '-l-L' with '-L'
-- MTF_COMPILETIME_FLAGS: -std=c++11
-- MTF_RUNTIME_FLAGS: -Wfatal-errors;-Wno-write-strings;-Wno-unused-result;-Wformat=0;-std=c++11;-O3;-msse2
-- MTF_DEFINITIIIONS: NDEBUG;EIGEN_NO_DEBUG;DISABLE_DFT;DISABLE_PFSL3;DISABLE_GOTURN;DISABLE_XVISION;DISABLE_DFM;DISABLE_GRID_FEAT;DISABLE_REGNET;DISABLE_FLANN;DISABLE_HDF5;DISABLE_SPI
-- CMAKE_CXX_FLAGS: -fopenmp
-- CMAKE_C_FLAGS:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kamil/dev/MTF/build_nn
There is basically NN set to OFF, and also THIRD_PARTY=off set (I don't see it's included in the above)
Thank's in advance for any clue :)
Is it possible that's an issue with opencv 3?
Hi Abhineet,
I tried compile MTF with OpenCV 3.4.15 but got the following error:
It seems the problem of newer openCV version. A discussion thread on the similar issue can be found here:
Looks like redefine the macro -DCMAKE_CXX_FLAGS=-DCV__ENABLE_C_API_CTORS will solve the problem. That needs to modify the CMake file. Do you have any better ideas?
When compiling with OpenCV 3.2 I had a problem that cv::SIFT cannot be found. The following patch fixes it.
diff --git a/SM/include/mtf/SM/FeatureTracker.h b/SM/include/mtf/SM/FeatureTracker.h
index 93b04b6..a19c89a 100644
--- a/SM/include/mtf/SM/FeatureTracker.h
+++ b/SM/include/mtf/SM/FeatureTracker.h
@@ -104,7 +104,7 @@ public:
typedef FLANNCVParams FLANNParams;
#endif
//typedef std::unique_ptr<cv::Feature2D> Feature2DPtr;
- typedef std::unique_ptr<cv::SIFT> SIFTPtr;
+ typedef std::unique_ptr<cv::xfeatures2d::SIFT> SIFTPtr;^M
FeatureTracker(
const ParamType *grid_params = nullptr,
HELP wanted, not issue for this project.
Hi,
Thanks for this nice library again, it helps a lot for my projects. The most interesting part is that some of your trackers can track non-rectangle bbox, like a Polygon. I am wondering is there some moderate/smaller standalone trackers does the same thing? I somewhat need this particular feature in my recent project, but most of out-of-the-box ones (like trackers in OpenCV and dlib) are using rectangle (as default?), and your project is a little too big for a submodule of one project which meant to be small itself.
Looking for your relay.
--MiaoDX
./build/runMTF config_dir ./Config/
Starting MTF...
Reading configuration files from: ./Config/
Using parameters:
n_trackers: 1
actor_id: 7
source_id: 6
source_name: sylvester
actor: CMT
pipeline: c
img_source: j
mtf_visualize: 1
read_obj_from_gt: 1
write_tracking_data: 0
mtf_sm: fc
mtf_am: ncc
mtf_ssm: 8
Exception of type InvalidArgument encountered while initializing the input pipeline: InputBase :: Image sequence folder ../../../Datasets/CMT/sylvester does not exist
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.