CrackSlideCaptcha icon indicating copy to clipboard operation
CrackSlideCaptcha copied to clipboard

问题

Open Alohahahahaha opened this issue 3 years ago • 2 comments

这个offset怎么一直是None?不懂

Alohahahahaha avatar Sep 18 '22 11:09 Alohahahahaha

这个offset怎么一直是None?不懂

你可以在 x, y, w, h = cv2.boundingRect(contour) 这一行下面加入 cv2.rectangle(image_raw, (x, y), (x + w, y + h), (0, 0, 255), 2) 来查看标记. 一直为None你还可以查看边缘检测后出现的轮廓是不是识别出来了. 我这边测试后发现, 作者的验证码的缺口图背景不是灰色的,所以能识别出来. 我测试的缺口背景都非灰色, 所以基本识别不出来.

zht0209 avatar Nov 30 '23 07:11 zht0209

这个offset怎么一直是None?不懂

你可以在 x, y, w, h = cv2.boundingRect(contour) 这一行下面加入 cv2.rectangle(image_raw, (x, y), (x + w, y + h), (0, 0, 255), 2) 来查看标记. 一直为None你还可以查看边缘检测后出现的轮廓是不是识别出来了. 我这边测试后发现, 作者的验证码的缺口图背景不是灰色的,所以能识别出来. 我测试的缺口背景都非灰色, 所以基本识别不出来.

这个问题如何解决呢

hueryan avatar Mar 31 '25 11:03 hueryan