mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-23 09:38:56 +08:00
Partial fix to GOTURN tracker
This commit is contained in:
@@ -161,8 +161,8 @@ bool TrackerGOTURNImpl::updateImpl(const Mat& image, Rect2d& boundingBox)
|
|||||||
targetPatch.convertTo(targetPatch, CV_32F);
|
targetPatch.convertTo(targetPatch, CV_32F);
|
||||||
searchPatch.convertTo(searchPatch, CV_32F);
|
searchPatch.convertTo(searchPatch, CV_32F);
|
||||||
|
|
||||||
dnn::Blob targetBlob = dnn::Blob(targetPatch);
|
dnn::Blob targetBlob = dnn::Blob::fromImages(targetPatch);
|
||||||
dnn::Blob searchBlob = dnn::Blob(searchPatch);
|
dnn::Blob searchBlob = dnn::Blob::fromImages(searchPatch);
|
||||||
|
|
||||||
net.setBlob(".data1", targetBlob);
|
net.setBlob(".data1", targetBlob);
|
||||||
net.setBlob(".data2", searchBlob);
|
net.setBlob(".data2", searchBlob);
|
||||||
|
Reference in New Issue
Block a user