AAlexander Smorkalovvideo: fix the input scaling factor of TrackerVit
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Merge pull request #25503 from WanliZhong:remove_goturn Remove goturn caffe model #25503 **Merged with:** https://github.com/opencv/opencv_extra/pull/1174 **Merged with:** https://github.com/opencv/opencv_contrib/pull/3729 Part of https://github.com/opencv/opencv/issues/25314 This PR aims to remove goturn tracking model because Caffe importer will be remove in 5.0 The GOTURN model will take **388 MB** of traffic for each download if converted to onnx. If the user wants to use the tracking method, we can recommend they use Vit or dasimRPN. ### 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 | 2 年前 | |
Merge branch 4.x | 4 个月前 | |
Merge branch 4.x | 1 年前 | |
Merge pull request #29948 from vrabaud:comma_initializer Remove deprecated CommaInitializer API - #29948 This goes hand in hand with https://github.com/opencv/opencv_contrib/pull/4217 ### 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 - [x] 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 | 1 个月前 | |
video: fix the input scaling factor of TrackerVit The tracker normalizes the images it feeds to the network with Image2BlobParams, whose per-channel factor has to be 1/(255*std). It was computed as `(1.0 / stdvalue) * (1 / 255.0)`, but `double / Scalar` is Scalar's quaternion inverse, not an elementwise division, and `Scalar / Scalar` is defined through that same inverse. The last three elements were therefore conjugated and the whole result divided by their sum of squares, so with the default std = (0.229, 0.224, 0.225) the green and red planes reached the network negated and all three were about a third of the intended magnitude. Build the factor channel by channel in both create() overloads, and cover it with a test that compares the response of the network the tracker feeds against an identical network fed the documented normalization of the same template crop. | 9 天前 | |
Merge pull request #30394 from lazerg:fix/issue-30350-vittrack-clip-box-5.x video: clip TrackerVit box to the image - #30394 Port of #30358 to 5.x, as requested there. Fixes #30350. `TrackerVitImpl::update()` never bounds the predicted box to the frame, and that box sets the size of the next search crop, so it can keep growing past the image. The box is now clipped to the image after each update, the same way OSTrack does it (`clip_box(..., H, W, margin=10)`). The 5.x code is the same as 4.x, so the change is identical. Added `vittrack.bbox_inside_image`, which fails on 5.x without the fix (box `[498 x 358 from (-9, -6)]` on a 480x352 frame); `accuracy_vittrack` still passes. ### 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 - [x] There is a reference to the original bug report and related work - [x] 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 | 10 天前 | |
Merge pull request #29175 from asmorkalov:as/geometry2 Geometry module #29175 OpenCV Contrib: https://github.com/opencv/opencv_contrib/pull/4129 CI changes: https://github.com/opencv/ci-gha-workflow/pull/313 Continues - https://github.com/opencv/opencv/pull/28804 - https://github.com/opencv/opencv/pull/29101 - https://github.com/opencv/opencv/pull/29108 - https://github.com/opencv/opencv/pull/28810 Todo for followup PRs: - [x] Rename doxygen groups - [x] Fix JS modules layout and whitelists - [ ] Sort tutorials code/snippets ### 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 | 4 个月前 |