Merge pull request #22808 from zihaomu:nanotrack
authorZihao Mu <zihaomu@outlook.com>
Tue, 6 Dec 2022 05:54:32 +0000 (13:54 +0800)
committerGitHub <noreply@github.com>
Tue, 6 Dec 2022 05:54:32 +0000 (08:54 +0300)
commitcb8f1dca3bd27599cfc45fc1161e79125a246e13
tree8a5887d466abea0055d6f8fb2ffc2c2f72786515
parentb16f76eedef62134725ca7e83220f9585824ce0e
Merge pull request #22808 from zihaomu:nanotrack

[teset data in opencv_extra](https://github.com/opencv/opencv_extra/pull/1016)

NanoTrack is an extremely lightweight and fast object-tracking model.
The total size is **1.1 MB**.
And the FPS on M1 chip is **150**, on Raspberry Pi 4 is about **30**. (Float32 CPU only)

With this model, many users can run object tracking on the edge device.

The author of NanoTrack is @HonglinChu.
The original repo is https://github.com/HonglinChu/NanoTrack.

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
modules/video/include/opencv2/video/tracking.hpp
modules/video/misc/python/pyopencv_video.hpp
modules/video/src/tracking/tracker_nano.cpp [new file with mode: 0644]
modules/video/test/test_trackers.cpp
samples/dnn/nanotrack_tracker.cpp [new file with mode: 0644]
samples/python/tracker.py