各位大佬,请教一个的问题,我想利用cv.minMaxLoc(res)这个,找坐标,测试画圈,确实能画对
计算出来的坐标也是对的
我底层函数都是那一个,计算出来的点击值,却是另外一个数
#根据给出的装备截图,选择正确的装备,并放在指定的位置 def select_equipment(img2,img2_judge,xc,yc): first = 1 while (first): hs.click(xc, yc) print(xc, yc) img1 = hs.get_screen() xl,yl,xr,yr=hs.compete_xy(img1,img2) hs.click((xl+xr)/2,(yl+yr)/2) print((xl+xr)/2,(yl+yr)/2) img3 = hs.get_screen() judge1 = hs.compete_judge(img3, img2_judge) if judge1 == 1: print('correct') # print(judge1) first = 0 else: hs.click(xc, yc) hs.click(755,125)
就很诡异,我也不知道为啥,求指点一下