Optimize feature detection and tracking
Hi all,
I'm newly getting into OpenCV and don't quite know how to ask that question. I'm analyzing a video stream to find a picture inside the video frame and then I track the movement of the picture inside the video frame. I'm talking about movement in terms of 3D coordinates. I would like to overlay the tracked picture with a video that always covers/overlays the picture.
In theory that is working alright but somewhat slow. Detection is slower than tracking but tracking is still slow.
Now to the question. How can I get the detection and tracking faster? I'm thinking if it might be possible to use the dimensions of the input image and the relation of the feature points to each other to somehow crop the area that I would need to scan for features during detection. But that is just a crazy idea I have. I'm open to suggestions. The original code for the tracker is here: https://github.com/artoolkitx/artoolk...
Any hint highly appreciated and may thanks in advance.
Kind regards
Use a native object detector with cuda. They can be pretty fast on decent hardware.
Thanks @holger. Unfortunately, that won't work for me as I'm aiming for mobile and small hardware like Raspberry PI.