-
Notifications
You must be signed in to change notification settings - Fork 0
Description
运行报错
[ WARN:0@0.358] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('C:/Users/shliz/Desktop/Auto_GirlsFrontline/auto13_4/initial_IMG/map.png'): can't open/read file: check file path/integrity
Traceback (most recent call last):
File "D:\Auto-Girls-Frontline-master\auto13_4\auto13_4.py", line 896, in
if isInMap():
File "D:\Auto-Girls-Frontline-master\auto13_4\auto13_4.py", line 331, in isInMap
return imageCompare(initImage, capImage)
File "D:\Auto-Girls-Frontline-master\auto13_4\auto13_4.py", line 306, in imageCompare
gray_img1 = cv2.cvtColor(img1, cv2.COLOR_BGR2GRAY) # ground_truth img
cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'