From c9df6799438e137a0ce042541773b5131521f4f1 Mon Sep 17 00:00:00 2001 From: Arvind Iyer Date: Wed, 7 Aug 2024 17:47:26 +0530 Subject: [PATCH] Merge pull request #25959 from arvind-iyer:4.x Improved samples/python/tracker.py docstring #25959 This PR removed unused arguments and updated existing argument placeholders to be more descriptive of what they are. ### 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 - [ ] 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 --- samples/python/tracker.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/samples/python/tracker.py b/samples/python/tracker.py index f520454ba5..93a67fdb0a 100644 --- a/samples/python/tracker.py +++ b/samples/python/tracker.py @@ -14,14 +14,15 @@ For NanoTrack: nanotrack_headneck: https://github.com/HonglinChu/SiamTrackers/blob/master/NanoTrack/models/nanotrackv2/nanotrack_head_sim.onnx USAGE: - tracker.py [-h] [--input INPUT] [--tracker_algo TRACKER_ALGO] - [--goturn GOTURN] [--goturn_model GOTURN_MODEL] + tracker.py [-h] [--input INPUT_VIDEO] + [--tracker_algo TRACKER_ALGO (mil, goturn, dasiamrpn, nanotrack, vittrack)] + [--goturn GOTURN_PROTOTXT] + [--goturn_model GOTURN_MODEL] [--dasiamrpn_net DASIAMRPN_NET] [--dasiamrpn_kernel_r1 DASIAMRPN_KERNEL_R1] [--dasiamrpn_kernel_cls1 DASIAMRPN_KERNEL_CLS1] - [--dasiamrpn_backend DASIAMRPN_BACKEND] - [--dasiamrpn_target DASIAMRPN_TARGET] - [--nanotrack_backbone NANOTRACK_BACKEND] [--nanotrack_headneck NANOTRACK_TARGET] + [--nanotrack_backbone NANOTRACK_BACKBONE] + [--nanotrack_headneck NANOTRACK_TARGET] [--vittrack_net VITTRACK_MODEL] '''