mirror of
https://github.com/opencv/opencv.git
synced 2024-12-16 02:19:12 +08:00
d231b4e362
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
40 lines
1.0 KiB
Java
40 lines
1.0 KiB
Java
package org.opencv.test.video;
|
|
|
|
import org.opencv.core.Core;
|
|
import org.opencv.core.CvType;
|
|
import org.opencv.core.CvException;
|
|
import org.opencv.core.Mat;
|
|
import org.opencv.core.Rect;
|
|
import org.opencv.test.OpenCVTestCase;
|
|
|
|
import org.opencv.video.Tracker;
|
|
import org.opencv.video.TrackerVit;
|
|
import org.opencv.video.TrackerMIL;
|
|
|
|
public class TrackerCreateTest extends OpenCVTestCase {
|
|
|
|
@Override
|
|
protected void setUp() throws Exception {
|
|
super.setUp();
|
|
}
|
|
|
|
|
|
public void testCreateTrackerVit() {
|
|
try {
|
|
Tracker tracker = TrackerVit.create();
|
|
assert(tracker != null);
|
|
} catch (CvException e) {
|
|
// expected, model files may be missing
|
|
}
|
|
}
|
|
|
|
public void testCreateTrackerMIL() {
|
|
Tracker tracker = TrackerMIL.create();
|
|
assert(tracker != null);
|
|
Mat mat = new Mat(100, 100, CvType.CV_8UC1);
|
|
Rect rect = new Rect(10, 10, 30, 30);
|
|
tracker.init(mat, rect); // should not crash (https://github.com/opencv/opencv/issues/19915)
|
|
}
|
|
|
|
}
|