# Missing Trackers

**URL:** <https://forum.opencv.org/t/missing-trackers/6315>\
**Category:** C++\
**Tags:** mingw, tracking, build, videoio\
**Created:** [November 20, 2021, 12:42am UTC](https://forum.opencv.org/t/missing-trackers/6315 "2021-11-20T00:42:07Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MechFall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/mechfall/32/3810_2.png) [@MechFall](https://forum.opencv.org/u/MechFall)\
**Post date:** [November 20, 2021, 12:42am UTC](https://forum.opencv.org/t/missing-trackers/6315/1 "2021-11-20T00:42:07Z")

</div>

Hi, so I’m new to using libraries and such as a whole but after my installation I am having issues with opening videos (the test for open video fails) and some trackers don’t exist like “TrackerKCF()”.

OpenCV 4.5.4  
VS Code 2019 (Currnet)  
Win 10 - mingw64 compiler

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [November 20, 2021, 7:26am UTC](https://forum.opencv.org/t/missing-trackers/6315/2 "2021-11-20T07:26:23Z")

</div>

> [@MechFall](#):
>
> some trackers don’t exist like “TrackerKCF()”.

there was some recent api refactoring,  
[but they are all still there](https://github.com/opencv/opencv_contrib/blob/4.x/modules/tracking/samples/samples_utility.hpp)  
(assuming, you build the opencv libs with [contrib modules](https://github.com/opencv/opencv_contrib))

---

<div class="post-metadata">

**Author:** ![MechFall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/mechfall/32/3810_2.png) [@MechFall](https://forum.opencv.org/u/MechFall)\
**Post date:** [November 20, 2021, 8:05am UTC](https://forum.opencv.org/t/missing-trackers/6315/3 "2021-11-20T08:05:56Z")

</div>

Ah, so it id need to rebuild opencv libs than because the version I grabbed didn’t have this folder. Would that lead to “VideoCapture” failing to function properly?

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [November 20, 2021, 8:09am UTC](https://forum.opencv.org/t/missing-trackers/6315/4 "2021-11-20T08:09:36Z")

</div>

> [@MechFall](#):
>
> Ah, so it id need to rebuild opencv libs

make sure, you have _absolutely the same version_ for both repos !

> [@MechFall](#):
>
> Would that lead to “VideoCapture” failing to function properly?

no, unrelated. and you need to explain, what the problem _is_, please.

---

<div class="post-metadata">

**Author:** ![MechFall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/mechfall/32/3810_2.png) [@MechFall](https://forum.opencv.org/u/MechFall)\
**Post date:** [November 20, 2021, 8:12am UTC](https://forum.opencv.org/t/missing-trackers/6315/5 "2021-11-20T08:12:24Z")

</div>

```auto
VideoCapture cap("testV.mp4");
  if(!cap.isOpened())
  {
	  cout << "we ain't happy\n";
	  return 0;
  }

```

This is my code and it returns false, which means that the function isn’t loading the video (as far as I understand).

Also, libraries I am including are:

```auto
#include <opencv2/core/utility.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/video/tracking.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
#include <cstring>

```

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [November 20, 2021, 8:14am UTC](https://forum.opencv.org/t/missing-trackers/6315/6 "2021-11-20T08:14:51Z")

</div>

> [@MechFall](#):
>
> the function isn’t loading the video

possible reasons:

- path to video file is wrong
- opencv\_videoio\_ffmpeg454\_64.dll not found on the PATH

---

<div class="post-metadata">

**Author:** ![MechFall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/mechfall/32/3810_2.png) [@MechFall](https://forum.opencv.org/u/MechFall)\
**Post date:** [November 20, 2021, 8:19am UTC](https://forum.opencv.org/t/missing-trackers/6315/7 "2021-11-20T08:19:32Z")

</div>

Dam, I was just missing a single .dll in my bin folder for my file. That worked, I’m sorry. The interesting bit is uhm, I have to have the .dll in the bin folder of my code location. Is that an error on path in my VS Code task file?

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [November 20, 2021, 8:21am UTC](https://forum.opencv.org/t/missing-trackers/6315/8 "2021-11-20T08:21:24Z")

</div>

i have no idea, how VSCode handles such things.  
when in doubt, skip your ide (extra complication !), and run from a simple console.

---

<div class="post-metadata">

**Author:** ![MechFall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/mechfall/32/3810_2.png) [@MechFall](https://forum.opencv.org/u/MechFall)\
**Post date:** [November 20, 2021, 8:22am UTC](https://forum.opencv.org/t/missing-trackers/6315/9 "2021-11-20T08:22:43Z")

</div>

I would if I had a better grasp on coding and setting up libraries… If I was really smart I would have done this in python and saved myself the pain but I’m just a baby. Do you know how I would package and run this on another computer using only the .exe file?

---

<div class="post-metadata">

**Author:** ![MechFall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/mechfall/32/3810_2.png) [@MechFall](https://forum.opencv.org/u/MechFall)\
**Post date:** [November 20, 2021, 8:28am UTC](https://forum.opencv.org/t/missing-trackers/6315/10 "2021-11-20T08:28:16Z")

</div>

(or with it’s need .dll files and what not)

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [November 20, 2021, 8:28am UTC](https://forum.opencv.org/t/missing-trackers/6315/11 "2021-11-20T08:28:19Z")

</div>

> [@MechFall](#):
>
> package and run this on another computer using only the .exe file?

that’s an illusion, sorry to say so.  
you can reduce the dependancies by building a single openv\_world lib or even static libs instead of dll’s, but you still need the ffmpeg dll, and, as long as you try with mngw, their c-runtime dll(s)

---

<div class="post-metadata">

**Author:** ![MechFall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/mechfall/32/3810_2.png) [@MechFall](https://forum.opencv.org/u/MechFall)\
**Post date:** [November 20, 2021, 8:29am UTC](https://forum.opencv.org/t/missing-trackers/6315/12 "2021-11-20T08:29:45Z")

</div>

> [@berak](#):
>
> single openv\_world lib or even static libs instead of dll’s,

I think that is probably a bit over my head at the moment, I need to get there eventually but not yet. Thanks for the help, it’s been wonderful!

Sorry about not being concise.
