diff options
Diffstat (limited to 'tracker-easy')
-rw-r--r-- | tracker-easy/preview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-easy/preview.cpp b/tracker-easy/preview.cpp index 218fca43..198f838b 100644 --- a/tracker-easy/preview.cpp +++ b/tracker-easy/preview.cpp @@ -120,7 +120,7 @@ namespace EasyTracker void Preview::ensure_size(cv::Mat& frame, int w, int h, int type) { - if (frame.cols != w || frame.rows != h) + if (frame.cols != w || frame.rows != h || frame.type() != type) frame = cv::Mat(h, w, type); } |