|
@@ -172,7 +172,6 @@ class pcacc_img:
|
|
matches = list(zip(*loc[::-1])) # 转换为(x,y)坐标列表
|
|
matches = list(zip(*loc[::-1])) # 转换为(x,y)坐标列表
|
|
|
|
|
|
if len(matches) == 0:
|
|
if len(matches) == 0:
|
|
- print(f"{image_path} cv图片未找到")
|
|
|
|
return False, (-1, -1)
|
|
return False, (-1, -1)
|
|
|
|
|
|
# 根据搜索顺序排序匹配结果[7](@ref)
|
|
# 根据搜索顺序排序匹配结果[7](@ref)
|
|
@@ -219,7 +218,6 @@ class pcacc_img:
|
|
print(f"{image_path} origin:({dst_x}, {dst_y})")
|
|
print(f"{image_path} origin:({dst_x}, {dst_y})")
|
|
return True, (dst_x, dst_y)
|
|
return True, (dst_x, dst_y)
|
|
else:
|
|
else:
|
|
- print(f"{image_path} origin:图片未找到")
|
|
|
|
return False, (-1, -1)
|
|
return False, (-1, -1)
|
|
|
|
|
|
def find_img_down(image_path):
|
|
def find_img_down(image_path):
|
|
@@ -256,7 +254,6 @@ class pcacc_img:
|
|
print(f"down {image_path}:({dst_x}, {dst_y})")
|
|
print(f"down {image_path}:({dst_x}, {dst_y})")
|
|
return True, (dst_x, dst_y)
|
|
return True, (dst_x, dst_y)
|
|
else:
|
|
else:
|
|
- print(f"{image_path} down图片未找到")
|
|
|
|
return False, (-1, -1)
|
|
return False, (-1, -1)
|
|
|
|
|
|
|
|
|
|
@@ -291,7 +288,6 @@ class pcacc_img:
|
|
print(f"{image_path}:({dst_x}, {dst_y})")
|
|
print(f"{image_path}:({dst_x}, {dst_y})")
|
|
return True, (dst_x, dst_y)
|
|
return True, (dst_x, dst_y)
|
|
else:
|
|
else:
|
|
- print(f"{image_path}图片未找到")
|
|
|
|
return False, (-1, -1)
|
|
return False, (-1, -1)
|
|
|
|
|
|
@staticmethod
|
|
@staticmethod
|