I would like to write a program that is detecting objects in real-time (There will be more features in the future, so I really hope to write smth that I could modify and add to). I’m just starting with Computer Vision, I’m C++ developer and have some experience with OpenCV - that’s why I would prefer to use OpenCV and that language for that. I aim at performance and speed with stable video input and I read that DNN models run the best in that regard. I looked around the internet and tried to install everything (CUDA, cuDNN, OpenCV, Yolo), I successfully run some examples from yolo but I have no idea how to implement that to my cpp code. I looked around for some step-by-step guide, but still, without success - link errors in OpenCV, VisualStudio doesn’t see yolo, code examples don’t run, my IDE doesn’t see OpenCV define, builds are extra slow, and even occasional bluescreens! I’m sure I did something wrong but doesn’t know what, because to start anything I needed to reach different sources that ware not necessarily compatible
As my first milestone, I want to just run some code examples that detect faces on my webcam. I hope that after achieving that I would have an easier time with anything more.
Environment:
I’m working on Windows + Visual Studio
What I’m looking for here:
So I’m here to ask, for some help with research. Maybe someone knows what step should I take or what phases should I look for to successfully do that or at last help me achieve my first milestone?
I use OpenCV 4.5.2, it’s seemed that I built something wrong. After some tweaks I finally succeeded (at last I think so cause all examples I tried somehow run).
I also finally succeded in running Opencv dnn example - object_detection, using:
do follow that link on mobile/tiny variants of these networks.
make sure to pick the CUDA backend, not the generic OpenCL one.
someone named Yashas Samaga implemented the CUDA backend for the dnn module. he can also be seen battling with Adrian Rosebrock over proper benchmarking methodology on Adrian’s notorious code blog. I won’t link to that but suffice it to say, I chose my words carefully.