I encounter the issue when TrackGOTURN sample code crash
System information (version)
OpenCV => 4.7.0
Operating System / Platform => Windows 64 Bit
Compiler => Visual Studio 2019
Description
I get errors when running the application:
Ptr tracker2 = TrackerGOTURN::create();
VideoCapture video2("chaplin.mp4");
if (!video2.isOpened())
{
cout << "Could not read video file" << endl;
return EXIT_FAILURE;
}
Mat frame2;
if (!video2.read(frame2))
{
cout << "Cannot read video file" << endl;
return EXIT_FAILURE;
}
Rect bbox2(0, 0, 10, 10);
tracker2->init(frame2, bbox2);
while (video2.read(frame2))
{
bool ok = tracker2->update(frame2, bbox2); <-- sample application crashed!!!!!
[ INFO:0@3.908] global videoio_registry.cpp:232 cv::`anonymous-namespace'::VideoBackendRegistry::VideoBackendRegistry VIDEOIO: Enabled backends(9, sorted by priority): FFMPEG(1000); GSTREAMER(990); INTEL_MFX(980); MSMF(970); DSHOW(960); CV_IMAGES(950); CV_MJPEG(940); UEYE(930); OBSENSOR(920)
[ INFO:0@3.909] global backend_plugin.cpp:383 cv::impl::getPluginCandidates Found 3 plugin(s) for FFMPEG
[ INFO:0@3.909] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load C:\Users\muphi\Documents\01.???\15.DLL\TestTracking\TestTracking\x64\Debug\opencv_videoio_ffmpeg470_64d.dll => FAILED
[ INFO:0@3.911] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load opencv_videoio_ffmpeg470_64d.dll => FAILED
[ INFO:0@3.920] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load opencv_videoio_ffmpeg470_64.dll => OK
[ INFO:0@3.920] global backend_plugin.cpp:50 cv::impl::PluginBackend::initCaptureAPI Found entry: 'opencv_videoio_capture_plugin_init_v1'
[ INFO:0@3.920] global backend_plugin.cpp:169 cv::impl::PluginBackend::checkCompatibility Video I/O: initialized 'FFmpeg OpenCV Video I/O Capture plugin': built with OpenCV 4.7 (ABI/API = 1/1), current OpenCV version is '4.7.0' (ABI/API = 1/1)
[ INFO:0@3.920] global backend_plugin.cpp:69 cv::impl::PluginBackend::initCaptureAPI Video I/O: plugin is ready to use 'FFmpeg OpenCV Video I/O Capture plugin'
[ INFO:0@3.920] global backend_plugin.cpp:84 cv::impl::PluginBackend::initWriterAPI Found entry: 'opencv_videoio_writer_plugin_init_v1'
[ INFO:0@3.921] global backend_plugin.cpp:169 cv::impl::PluginBackend::checkCompatibility Video I/O: initialized 'FFmpeg OpenCV Video I/O Writer plugin': built with OpenCV 4.7 (ABI/API = 1/1), current OpenCV version is '4.7.0' (ABI/API = 1/1)
[ INFO:0@3.921] global backend_plugin.cpp:103 cv::impl::PluginBackend::initWriterAPI Video I/O: plugin is ready to use 'FFmpeg OpenCV Video I/O Writer plugin'
[ INFO:0@30.301] global registry_parallel.impl.hpp:96 cv::parallel::ParallelBackendRegistry::ParallelBackendRegistry core(parallel): Enabled backends(3, sorted by priority): ONETBB(1000); TBB(990); OPENMP(980)
[ INFO:0@30.302] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load C:\Users\muphi\Documents\01.???\15.DLL\TestTracking\TestTracking\x64\Debug\opencv_core_parallel_onetbb470_64d.dll => FAILED
[ INFO:0@30.305] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_onetbb470_64d.dll => FAILED
[ INFO:0@30.306] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load C:\Users\muphi\Documents\01.???\15.DLL\TestTracking\TestTracking\x64\Debug\opencv_core_parallel_tbb470_64d.dll => FAILED
[ INFO:0@30.310] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_tbb470_64d.dll => FAILED
[ INFO:0@30.310] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load C:\Users\muphi\Documents\01.???\15.DLL\TestTracking\TestTracking\x64\Debug\opencv_core_parallel_openmp470_64d.dll => FAILED
[ INFO:0@30.314] global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_openmp470_64d.dll => FAILED
When I run the application in release mode, there is no problem.
but when I run the application in debug mode, I face the crash