summaryrefslogtreecommitdiff
path: root/9kwpyqt.py
diff options
context:
space:
mode:
Diffstat (limited to '9kwpyqt.py')
-rwxr-xr-x9kwpyqt.py6
1 files 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 \