You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the same issue and in my case this was issue with __img_to_grayscale function because it not create tmp folder with sobel.png, after editing tmp_path to save sobel.png in current folder, everything works well. Try to edit __img_to_grayscale like this: def __img_to_grayscale(self, img): tmp_path = "./sobel.png" cv2.imwrite(tmp_path, img) return cv2.imread(tmp_path, 0)
File "D:\1_Projects\Air-Cargo\slice-solver\solver.py", line 17, in get_position
res = cv2.matchTemplate(background, template, cv2.TM_CCOEFF_NORMED)
cv2.error: OpenCV(3.4.2) C:\projects\opencv-python\opencv\modules\imgproc\src\templmatch.cpp:589: error: (-215:Assertion failed) corrsize.height <= img.rows + templ.rows - 1 && corrsize.width <= img.cols + templ.cols - 1 in function 'cv::crossCorr'
The text was updated successfully, but these errors were encountered: