1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-22 07:31:26 +08:00

Partial fix to GOTURN tracker

This commit is contained in:
Lorena García
2017-02-27 20:33:16 +01:00
parent 53e34260b1
commit bd6c61521e

View File

@@ -161,8 +161,8 @@ bool TrackerGOTURNImpl::updateImpl(const Mat& image, Rect2d& boundingBox)
targetPatch.convertTo(targetPatch, CV_32F);
searchPatch.convertTo(searchPatch, CV_32F);
dnn::Blob targetBlob = dnn::Blob(targetPatch);
dnn::Blob searchBlob = dnn::Blob(searchPatch);
dnn::Blob targetBlob = dnn::Blob::fromImages(targetPatch);
dnn::Blob searchBlob = dnn::Blob::fromImages(searchPatch);
net.setBlob(".data1", targetBlob);
net.setBlob(".data2", searchBlob);