Comments (29)
Options USE_OCV_BGFG, USE_OCV_KCF, USE_OCV_UKF can be used only if you have installed opencv_contrib module, which is not installed by default. Else turn them off in cmake.
from multitarget-tracker.
You can run cmake first. And then make.
from multitarget-tracker.
I tried to compile but I get the following error
arhlane@arhlane-HP-Pavilion-g6-Notebook-PC:~/Multitarget-tracker/build$ make -j3
Scanning dependencies of target MultitargetTracker
[ 2%] [ 5%] [ 7%] Building CXX object CMakeFiles/MultitargetTracker.dir/main.cpp.o
Building CXX object CMakeFiles/MultitargetTracker.dir/Detector/Detector.cpp.o
c++: error: unrecognized command line option '--std=gnu++14'
make[2]: *** [CMakeFiles/MultitargetTracker.dir/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
c++: error: unrecognized command line option '--std=gnu++14'
make[2]: *** [CMakeFiles/MultitargetTracker.dir/Detector/Detector.cpp.o] Error 1
Building CXX object CMakeFiles/MultitargetTracker.dir/Detector/BackgroundSubtract.cpp.o
c++: error: unrecognized command line option '--std=gnu++14'
make[2]: *** [CMakeFiles/MultitargetTracker.dir/Detector/BackgroundSubtract.cpp.o] Error 1
make[1]: *** [CMakeFiles/MultitargetTracker.dir/all] Error 2
make: *** [all] Error 2
from multitarget-tracker.
Ok.
--std=gnu++14 used only for function std::make_unique. And gcc from 14.04 don't support this C++ standart.
What you can do: in CMakeLists.txt change to --std=gnu++11.
And all calls std::make_unique change to constructor std::unique_ptr.
See another ussue: #9
from multitarget-tracker.
Thank you very much for your reply
I made the changes you asked me
Now I have successfully executed the code but when I tried to compile the executable file (./MultitargetTracker) I receive the following error
OpenCV CNT algorithm is not implemented! Used Vibe by default.
OpenCV Error: Unsupported format or combination of formats in CvVideoWriter_GStreamer :: open, file /home/arhlane/opencv-3.1.0/modules/videoio/src/cap_gstreamer.cpp, line 1380
Terminate called after throwing an instance of 'cv :: Exception'
What (): /home/arhlane/opencv-3.1.0/modules/videoio/src/cap_gstreamer.cpp:1380: error: (-210) Gstreamer Opencv backend does not support this file type. In function CvVideoWriter_GStreamer :: open
Aborted (core dumped)
from multitarget-tracker.
OpenCV CNT algorithm is not implemented! Used Vibe by default.
This algorithm is new and absent in your OpenCV version. In main.cpp write:
CDetector detector(BackgroundSubtract::ALG_MOG, useLocalTracking, gray);
OpenCV Error: Unsupported format or combination of formats in CvVideoWriter_GStreamer
In main.cpp try write:
writer.open(outFile, cv::VideoWriter::fourcc('h', '2', '6', '4'), capture.get(cv::CAP_PROP_FPS), frame.size(), true);
from multitarget-tracker.
I replaced
CDetector detector (BackgroundSubtract :: ALG_CNT, useLocalTracking, gray);
by
CDetector detector (BackgroundSubtract :: ALG_MOG, useLocalTracking, gray);
And I also replaced
Writer.open (outFile, cv :: VideoWriter :: fourcc ('M', 'J', 'P', 'G'), capture.get (cv :: CAP_PROP_FPS), frame.size (), true);
by
Writer.open (outFile, cv :: VideoWriter :: fourcc ('h', '2', '6', '4'), capture.get (cv :: CAP_PROP_FPS), frame.size (), true); }
But I still receive the following error
OpenCV Error: Unsupported format or combination of formats (Gstreamer Opencv backend does not support this file type.)
from multitarget-tracker.
Mmm... This error says that your version of gstreamer can't create result video file with mjpeg and h264 encoding. For check this hypotheses you can comment line Writer.open (outFile,
from multitarget-tracker.
when i comment line Writer.open..
Now I have successfully compiled the projects
Is that I can use it with ip camera?
Is that I can implement this projects with raspberry pi?
cordially
from multitarget-tracker.
Yes, you can use this project with ip-camera. I don't know about gstreamer but on my Ubuntu OpenCV uses capture from ip-camera with ffmpeg. You can set address (eg std::string inFile("rtsp://admin:[email protected]/live");) and example will be work.
I haven't a Raspberry pi but Tracker must compile and work.
from multitarget-tracker.
I tried using an ip camera but it does not work in real time FPS too slow
Is that the problem is ffmpeg (already installed)?
cordially
from multitarget-tracker.
You can use valgrind for profiling.
And more fast settings for detector and tracker:
bool useLocalTracking = false;
CDetector detector(BackgroundSubtract::ALG_MOG, useLocalTracking, gray);
CTracker tracker(useLocalTracking,
CTracker::RectsDist,
CTracker::KalmanLiner
CTracker::FilterCenter,
CTracker::TrackNone, // Use KCF tracker for collisions resolving
CTracker::MatchHungrian,
0.3f, // Delta time for Kalman filter
0.1f, // Accel noise magnitude for Kalman filter
gray.cols / 20.0f, // Distance threshold between two frames
fps, // Maximum allowed skipped frames
5 * fps // Maximum trace length
);
from multitarget-tracker.
Nuzhny007
thanks for your reply
I use Valgrind for profiling and now the MotionDetector code works fine but I in my project I want the tracking and counting of the person, when I execute PedestrianDetector it does not work in real time FPS too slow even with a video
How can I improve tracking of people?
I have already done a person detection code with HOG now I need to add tracking in my code (Kalman for example) and that's why I tried to understand your implementation
from multitarget-tracker.
Hi!
In our project uses c4-pedestrian-detector (example number 3 - function PedestrianDetector). From here: https://github.com/sturkmen72/C4-Real-time-pedestrian-detection
You can run our example - it will be faster then classic HOG detector.
And HOG detector also implemented - try it with macros #define USE_HOG 1
from multitarget-tracker.
316/5000
Hello again
I tested the project C4-Real-time-pedestrian-detection but it is also very slow, is that the problem is the dimensions of vidio?
I do not know how I can get a real-time tracking (peaple) like your results (Motion Detection and Tracking: https://www.youtube.com/watch?v=GjN8jOy4kVw)
from multitarget-tracker.
Hi!
In this video I don't use Pedestrian detector - only motions. And my CPU - desktop Intel i7 K-series. It's very fast.
And yes. The analysis of the FullHD videos will be slow. But you can:
- scale down frames before detection and tracking;
- use pedestrian detector not for all windows sizes - only for real pedestrians in specific video.
I think than real time for pedestrians detection - it can be done.
from multitarget-tracker.
hello, trying to make the repository using ubuntu and getting a weird error.. i have to add that i have never tried this before and that i am not used to building from other people's repositories, could you possibly help me solve this?:
Atarashii@LILLITH:/mnt/c/Users/atara/Desktop/PROGRAMS/REPO/Multitarget-tracker/build$ make
Scanning dependencies of target MultitargetTracker
[ 2%] Building CXX object CMakeFiles/MultitargetTracker.dir/main.cpp.o
In file included from /mnt/c/Users/atara/Desktop/PROGRAMS/REPO/Multitarget-tracker/Tracker/Ctracker.h:8:0,
from /mnt/c/Users/atara/Desktop/PROGRAMS/REPO/Multitarget-tracker/main.cpp:6:
/mnt/c/Users/atara/Desktop/PROGRAMS/REPO/Multitarget-tracker/Tracker/track.h: In member function ‘void CTrack::RectUpdate(const CRegion&, bool, cv::Mat, cv::Mat)’:
/mnt/c/Users/atara/Desktop/PROGRAMS/REPO/Multitarget-tracker/Tracker/track.h:392:33: error: ‘createTracker’ is not a member of ‘cv::TrackerKCF’ m_tracker =
cv::TrackerKCF::createTracker(params);
^
In file included from /mnt/c/Users/atara/Desktop/PROGRAMS/REPO/Multitarget-tracker/main.cpp:11:0:
/mnt/c/Users/atara/Desktop/PROGRAMS/REPO/Multitarget-tracker/pedestrians/c4-pedestrian-detector.h: At global scope:
/mnt/c/Users/atara/Desktop/PROGRAMS/REPO/Multitarget-tracker/pedestrians/c4-pedestrian-detector.h:594:74: warning: unused parameter ‘m’ [-Wunused-parameter]
double UseSVM_CD_FastEvaluationStructure(const char* modelfile,const int
m,Array2dC& result)
^
CMakeFiles/MultitargetTracker.dir/build.make:62: recipe for target 'CMakeFiles/MultitargetTracker.dir/main.cpp.o' failed
make[2]: *** [CMakeFiles/MultitargetTracker.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/MultitargetTracker.dir/all' failed
make[1]: *** [CMakeFiles/MultitargetTracker.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
i have no idea where to start to fix this.
please help
from multitarget-tracker.
thank you so much, that fixed the build issue, now that i have a .exe file, i have one last noob question that i would like to ask...
how do i now use the exe file? if double clicked it briefly opens a cmd window then closes instantly.
is it possible to apply this software to any video of my choosing? can it be applied to, say, a usb webcam?
edit: i managed to build and run .exe with input possible... load of issues along with command window and video file as shown below:
and:
'MultitargetTracker.exe' (Win32): Loaded 'C:\Users\atara\Desktop\PROGRAMS\REPO\Multitarget-tracker\build\Debug\MultitargetTracker.exe'. Symbols loaded.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Unloaded 'C:\Windows\System32\ucrtbased.dll'
'MultitargetTracker.exe' (Win32): Loaded 'C:\opencv\build\x64\vc14\bin\opencv_world320d.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.15063.413_none_0e0f5dcc67adff4e\comctl32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\msvfw32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\avifil32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\avicap32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\msacm32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Unloaded 'C:\Windows\System32\winmm.dll'
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\concrt140d.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Unloaded 'C:\Windows\System32\winmmbase.dll'
'MultitargetTracker.exe' (Win32): Unloaded 'C:\Windows\System32\winmmbase.dll'
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Cannot find or open the PDB file.
***** VIDEOINPUT LIBRARY - 0.1995 - TFW07 *****
'MultitargetTracker.exe' (Win32): Loaded 'C:\opencv\build\x64\vc14\bin\opencv_ffmpeg320_64.dll'. Module was built without symbols.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\secur32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Program Files (x86)\TeamViewer\tv_x64.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\usermgrcli.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\OpenCL.DLL'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\ki120165.inf_amd64_3b2006f0a82a4c14\IntelOpenCL64.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\Intel\OpenCL\bin\x64\intelocl64.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\Intel\OpenCL\bin\x64\task_executor64.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\Intel\OpenCL\bin\x64\cpu_device64.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\ki120165.inf_amd64_3b2006f0a82a4c14\igdrcl64.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll'
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvdmi.inf_amd64_0afdcedf7f2c091a\nvinitx.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvdmi.inf_amd64_0afdcedf7f2c091a\nvinitx.dll'
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\ki120165.inf_amd64_3b2006f0a82a4c14\igdfcl64.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\ki120165.inf_amd64_3b2006f0a82a4c14\igdmcl64.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\dbghelp.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\ki120165.inf_amd64_3b2006f0a82a4c14\igc64.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\nvopencl.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\nvfatbinaryLoader.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Cannot find or open the PDB file.
'MultitargetTracker.exe' (Win32): Loaded 'C:\Windows\System32\nvapi64.dll'. Cannot find or open the PDB file.
from multitarget-tracker.
Hello Mr Smorodov,
First, I want to you tanks for sharing your code.
I have an problem in installing step :
[ 6%] Building CXX object CMakeFiles/MultitargetTracker.dir/Detector/BackgroundSubtract.cpp.o
/Multitarget-tracker-master/Detector/BackgroundSubtract.cpp: In constructor ‘BackgroundSubtract::BackgroundSubtract(BackgroundSubtract::BGFG_ALGS, int, int, int, int, int, int)’:
/Multitarget-tracker-master/Detector/BackgroundSubtract.cpp:40:26: error: ‘createBackgroundSubtractorCNT’ is not a member of ‘cv::bgsegm’
m_modelOCV = cv::bgsegm::createBackgroundSubtractorCNT(15, true, 15 * 60, true);
^
CMakeFiles/MultitargetTracker.dir/build.make:100: recipe for target 'CMakeFiles/MultitargetTracker.dir/Detector/BackgroundSubtract.cpp.o' failed
make[2]: *** [CMakeFiles/MultitargetTracker.dir/Detector/BackgroundSubtract.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/MultitargetTracker.dir/all' failed
make[1]: *** [CMakeFiles/MultitargetTracker.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
Can you help me plz!
Thanks you in advance.
from multitarget-tracker.
Good evening,
I am compiling on Ubuntu 14.04 and made the changes recommended above in regard to editing references to std::make_unique to std::unique_ptr and specifiing gnu++11 in CMakeLists.txt.
When I run make, however, it halts at 2% with numerous issues, including:
In file included from /usr/include/c++/4.8/memory:81:0,
from /home/thisUser/russ/Multitarget-tracker/Tracker/Ctracker.h:4,
from /home/thisUser/russ/Multitarget-tracker/MouseExample.h:5,
from /home/thisUser/russ/Multitarget-tracker/main.cpp:1:
/usr/include/c++/4.8/bits/unique_ptr.h:160:7: note: std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = CDetector; _Dp = std::default_delete]
unique_ptr(unique_ptr&& __u) noexcept
^
/usr/include/c++/4.8/bits/unique_ptr.h:160:7: note: candidate expects 1 argument, 3 provided
/usr/include/c++/4.8/bits/unique_ptr.h:157:17: note: constexpr std::unique_ptr<_Tp, _Dp>::unique_ptr(std::nullptr_t) [with _Tp = CDetector; _Dp = std::default_delete; std::nullptr_t = std::nullptr_t]
constexpr unique_ptr(nullptr_t) noexcept : unique_ptr() { }
^
/usr/include/c++/4.8/bits/unique_ptr.h:157:17: note: candidate expects 1 argument, 3 provided
/usr/include/c++/4.8/bits/unique_ptr.h:151:7: note: std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>::pointer, typename std::remove_reference<_To>::type&&) [with _Tp = CDetector; _Dp = std::default_delete; std::unique_ptr<_Tp, _Dp>::pointer = CDetector*; typename std::remove_reference<_To>::type = std::default_delete]
unique_ptr(pointer __p,
^
/usr/include/c++/4.8/bits/unique_ptr.h:151:7: note: candidate expects 2 arguments, 3 provided
/usr/include/c++/4.8/bits/unique_ptr.h:146:7: note: std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>::pointer, typename std::conditional<std::is_reference<_Dp>::value, _Dp, const _Dp&>::type) [with _Tp = CDetector; _Dp = std::default_delete; std::unique_ptr<_Tp, _Dp>::pointer = CDetector*; typename std::conditional<std::is_reference<_Dp>::value, _Dp, const _Dp&>::type = const std::default_delete&]
unique_ptr(pointer __p,
^
/usr/include/c++/4.8/bits/unique_ptr.h:146:7: note: candidate expects 2 arguments, 3 provided
/usr/include/c++/4.8/bits/unique_ptr.h:141:7: note: std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>::pointer) [with _Tp = CDetector; _Dp = std::default_delete; std::unique_ptr<_Tp, _Dp>::pointer = CDetector*]
unique_ptr(pointer __p) noexcept
^
/usr/include/c++/4.8/bits/unique_ptr.h:141:7: note: candidate expects 1 argument, 3 provided
/usr/include/c++/4.8/bits/unique_ptr.h:135:17: note: constexpr std::unique_ptr<_Tp, _Dp>::unique_ptr() [with _Tp = CDetector; _Dp = std::default_delete]
constexpr unique_ptr() noexcept
^
/usr/include/c++
===
Any idea what the issue is and how I might address it? I am not an experienced Linux user so I appreciate any suggestions you have.
from multitarget-tracker.
Hi!
You can try to use raw pointer on the CDetector (without unique_ptr).
from multitarget-tracker.
@Atarashii Hello,I heard that you met one problem that I troubled:
CMakeFiles/MultitargetTracker.dir/build.make:62: recipe for target 'CMakeFiles/MultitargetTracker.dir/main.cpp.o' failed
make[2]: *** [CMakeFiles/MultitargetTracker.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/MultitargetTracker.dir/all' failed
make[1]: *** [CMakeFiles/MultitargetTracker.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
i have no idea where to start to fix this.please give me one hand that how you solve it? thank you very much!
from multitarget-tracker.
@Nuzhny007 hello,Mr Smorodov,as i make Multitarget-tracker/build ,i meet the problem follow:
Scanning dependencies of target MultitargetTracker
[ 1%] Building CXX object CMakeFiles/MultitargetTracker.dir/main.cpp.o
[ 3%] Building CXX object CMakeFiles/MultitargetTracker.dir/Detector/BaseDetector.cpp.o
[ 5%] Building CXX object CMakeFiles/MultitargetTracker.dir/Detector/MotionDetector.cpp.o
[ 7%] Building CXX object CMakeFiles/MultitargetTracker.dir/Detector/BackgroundSubtract.cpp.o
/home/zyb/code/Multitarget-tracker/Detector/BackgroundSubtract.cpp: In constructor ‘BackgroundSubtract::BackgroundSubtract(BackgroundSubtract::BGFG_ALGS, int, int, int, int, int, int)’:
/home/zyb/code/Multitarget-tracker/Detector/BackgroundSubtract.cpp:40:26: error: ‘createBackgroundSubtractorCNT’ is not a member of ‘cv::bgsegm’
m_modelOCV = cv::bgsegm::createBackgroundSubtractorCNT(15, true, 15 * 60, true);
^
CMakeFiles/MultitargetTracker.dir/build.make:134: recipe for target 'CMakeFiles/MultitargetTracker.dir/Detector/BackgroundSubtract.cpp.o' failed
make[2]: *** [CMakeFiles/MultitargetTracker.dir/Detector/BackgroundSubtract.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/MultitargetTracker.dir/all' failed
make[1]: *** [CMakeFiles/MultitargetTracker.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
i have install opencv with opencv-contrib,while cmake,i set USE_OCV_BGFG, USE_OCV_KCF and USE_OCV_UKF,,then what should i do,please?thank you very much .
from multitarget-tracker.
@RedOne88 hello, have you solved the problem?i also meet it ,can you me ?Thanks you!
from multitarget-tracker.
Hi!
Try to set USE_OCV_BGFG=OFF in CMake before compilation (and USE_OCV_KCF and USE_OCV_UKF).
Function createBackgroundSubtractorCNT contains in opencv_contrib repository. I think than you dosn't compile it.
from multitarget-tracker.
@Nuzhny007 Mr Smorodov, thanks for your reply. i have "make install" opencv3.2.0 with opencv-contrib3.2.0 succeed, as i cmake-gui ,i have set USE_OCV_BGFG=on (and USE_OCV_KCF and USE_OCV_UKF). configure and generate; then i Go to the build directory(Multitarget-tracker/build)and run make(make), then i meet this problem i just ask for you.
from multitarget-tracker.
@Nuzhny007 Mr Smorodov,my workspace is ubuntu 16.04+ opencv3.2.0 (+opencv-contrib3.2.0),
(1)just now i cmake-gui,and configure (Multitarget-tracker/build) get the follow :
The C compiler identification is GNU 4.9.3
The CXX compiler identification is GNU 4.9.3
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
Looking for pthread.h
Looking for pthread.h - found
Looking for pthread_create
Looking for pthread_create - not found
Looking for pthread_create in pthreads
Looking for pthread_create in pthreads - not found
Looking for pthread_create in pthread
Looking for pthread_create in pthread - found
Found Threads: TRUE
Found CUDA: /usr/local/cuda (found suitable exact version "8.0")
Found OpenCV: /usr/local (found version "3.2.0")
Looking for C++ include opencv2/bgsegm.hpp
Looking for C++ include opencv2/bgsegm.hpp - found
Configuring done
(2)then i generate,
Generate done
(3)then i close cmake-gui, i go to Multitarget-tracker/build,and run make (make):
lvp@ciisr1307-ThinkStation-P510:~/Multitarget-tracker/build$ make
Scanning dependencies of target MultitargetTracker
[ 1%] Building CXX object CMakeFiles/MultitargetTracker.dir/main.cpp.o
[ 3%] Building CXX object CMakeFiles/MultitargetTracker.dir/Detector/BaseDetector.cpp.o
[ 5%] Building CXX object CMakeFiles/MultitargetTracker.dir/Detector/MotionDetector.cpp.o
[ 7%] Building CXX object CMakeFiles/MultitargetTracker.dir/Detector/BackgroundSubtract.cpp.o
/home/lvp/Multitarget-tracker/Detector/BackgroundSubtract.cpp: In constructor ‘BackgroundSubtract::BackgroundSubtract(BackgroundSubtract::BGFG_ALGS, int, int, int, int, int, int)’:
/home/lvp/Multitarget-tracker/Detector/BackgroundSubtract.cpp:40:26: error: ‘createBackgroundSubtractorCNT’ is not a member of ‘cv::bgsegm’
m_modelOCV = cv::bgsegm::createBackgroundSubtractorCNT(15, true, 15 * 60, true);
^
CMakeFiles/MultitargetTracker.dir/build.make:134: recipe for target 'CMakeFiles/MultitargetTracker.dir/Detector/BackgroundSubtract.cpp.o' failed
make[2]: *** [CMakeFiles/MultitargetTracker.dir/Detector/BackgroundSubtract.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/MultitargetTracker.dir/all' failed
make[1]: *** [CMakeFiles/MultitargetTracker.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
the above is what i do,can you help me ,thank you
(all the files i download from here i have no changed ,about the CMakeLists.txt)
from multitarget-tracker.
The createBackgroundSubtractorCNT function is in opencv_contrib repository bgsegm module, here:
https://github.com/opencv/opencv_contrib/blob/master/modules/bgsegm/include/opencv2/bgsegm.hpp#L240
Check please this file in your copy of the opencv_contrib sources.
from multitarget-tracker.
thanks very much. now i have changed bgsegm.hpp ,and begin to make the opencv3.2.0 and opencv-contrib3.2.0 agin.
from multitarget-tracker.
Related Issues (20)
- Tracking without detection HOT 1
- There are some errors when building the project. HOT 7
- Hello, why does the tracker code have a dat and graph part? Looks like too much complicated, HOT 1
- Compile python module under windows HOT 1
- YOLOv7 instance segmentation HOT 1
- File "video_with_traffic.mp4" is absent HOT 3
- Problems running tracker with DeepSORT HOT 6
- Point tracking, exe execution bug! HOT 2
- Mismatch pymtracking lib and Discuss about App Example 1 and Example 6 HOT 6
- Discuss about App Example 1 and Example 6 do not working with moving camera video? HOT 2
- The source code do not working with weight from yolov5 trained on custom dataset HOT 1
- Try to update GTL and MWBM versions
- Update Darknet sources
- Tracking with a real timestamps
- Bug with github actions
- About code migration HOT 1
- Maximum active tracks HOT 1
- m_boxMask how to use? and RotatedRect object how to track? HOT 1
- some tracked objects flying? HOT 3
- How could I use custom detector ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multitarget-tracker.