Skip to content

Commit

Permalink
Tested with OpenCV 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiwoong Choi committed Feb 28, 2020
1 parent e882c9a commit 35bad66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (NOT DEFINED TORCH_PATH)
endif()

find_package(Torch 1.3 REQUIRED PATHS ${TORCH_PATH})
find_package(OpenCV 3 REQUIRED
find_package(OpenCV REQUIRED
COMPONENTS
opencv_core
opencv_imgproc
Expand Down
2 changes: 1 addition & 1 deletion SiamMask/siammask.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ inline void siameseTrack(
cv::Rect mask_roi = translateRect(mask_subpos, -mask_pos.tl());
mask_chip(mask_roi).copyTo(mask_in_img(mask_subpos));

cv::threshold(mask_in_img, state.mask, state.seg_thr, 255, CV_THRESH_BINARY);
cv::threshold(mask_in_img, state.mask, state.seg_thr, 255, cv::THRESH_BINARY);
state.mask.convertTo(state.mask, CV_8UC1);

std::vector<std::vector<cv::Point> > contours;
Expand Down

0 comments on commit 35bad66

Please sign in to comment.