Commit 2fd0d744 authored by jrobble's avatar jrobble

Set swapRB to false in GOTURN tracker.

parent b9541897
...@@ -153,11 +153,11 @@ bool TrackerGOTURNImpl::updateImpl(const Mat& image, Rect2d& boundingBox) ...@@ -153,11 +153,11 @@ bool TrackerGOTURNImpl::updateImpl(const Mat& image, Rect2d& boundingBox)
searchPatch = searchPatch - 128; searchPatch = searchPatch - 128;
//Convert to Float type //Convert to Float type
Mat targetBlob = dnn::blobFromImage(targetPatch); Mat targetBlob = dnn::blobFromImage(targetPatch, 1.0f, Size(), Scalar(), false);
Mat searchBlob = dnn::blobFromImage(searchPatch); Mat searchBlob = dnn::blobFromImage(searchPatch, 1.0f, Size(), Scalar(), false);
net.setInput(targetBlob, ".data1"); net.setInput(targetBlob, "data1");
net.setInput(searchBlob, ".data2"); net.setInput(searchBlob, "data2");
Mat resMat = net.forward("scale").reshape(1, 1); Mat resMat = net.forward("scale").reshape(1, 1);
......
...@@ -532,7 +532,7 @@ TEST_P(DistanceAndOverlap, DISABLED_Scaled_Data_TLD) ...@@ -532,7 +532,7 @@ TEST_P(DistanceAndOverlap, DISABLED_Scaled_Data_TLD)
TEST_P(DistanceAndOverlap, DISABLED_GOTURN) TEST_P(DistanceAndOverlap, DISABLED_GOTURN)
{ {
TrackerTest test(TrackerGOTURN::create(), dataset, 0, 100, NoTransform); TrackerTest test(TrackerGOTURN::create(), dataset, 18, .5f, NoTransform);
test.run(); test.run();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment