Skip to content

Commit 29286b3

Browse files
committed
Merge pull request #1026 from LorenaGdL:GOTURN_tracker_fix
2 parents 53e3426 + bd6c615 commit 29286b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/tracking/src/gtrTracker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ bool TrackerGOTURNImpl::updateImpl(const Mat& image, Rect2d& boundingBox)
161161
targetPatch.convertTo(targetPatch, CV_32F);
162162
searchPatch.convertTo(searchPatch, CV_32F);
163163

164-
dnn::Blob targetBlob = dnn::Blob(targetPatch);
165-
dnn::Blob searchBlob = dnn::Blob(searchPatch);
164+
dnn::Blob targetBlob = dnn::Blob::fromImages(targetPatch);
165+
dnn::Blob searchBlob = dnn::Blob::fromImages(searchPatch);
166166

167167
net.setBlob(".data1", targetBlob);
168168
net.setBlob(".data2", searchBlob);

0 commit comments

Comments
 (0)