From 267fa7724bdc91a1749fbdd8e54f38f18f895f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Wed, 23 Mar 2016 09:26:06 +0100 Subject: Add another Type1-Captcha white box has other dimensions for "street sign" and "street names" --- 9kwpyqt.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/9kwpyqt.py b/9kwpyqt.py index f6e1635..9944a28 100755 --- a/9kwpyqt.py +++ b/9kwpyqt.py @@ -90,9 +90,11 @@ class ExtendedQLabel(QLabel): # Which type of captcha is this image? if PixelInfo(self.imageB.pixel(90, 45)).isExactly(0,0,0) and \ PixelInfo(self.imageB.pixel( 5, 30)).isHigher(220,220,220) and \ - PixelInfo(self.imageB.pixel(71, 30)).isHigher(220,220,220) and \ PixelInfo(self.imageB.pixel(40, 5)).isHigher(220,220,220) and \ - PixelInfo(self.imageB.pixel(40, 59)).isHigher(220,220,220): + (PixelInfo(self.imageB.pixel(58, 30)).isHigher(220,220,220) or \ + PixelInfo(self.imageB.pixel(71, 30)).isHigher(220,220,220)) and \ + (PixelInfo(self.imageB.pixel(40, 59)).isHigher(220,220,220) or \ + PixelInfo(self.imageB.pixel(40, 60)).isHigher(220,220,220)): self.captchaType = 1 elif PixelInfo(self.imageB.pixel( 16, 47)).isLower(20,20,20) and \ PixelInfo(self.imageB.pixel(144, 47)).isLower(20,20,20) and \ -- cgit v1.2.3