From 164512b6a74c94a731fcee7435dce1ccfa2f71e7 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 17 Jun 2015 18:29:50 +0200 Subject: Spare code cosmetics --- module/plugins/captcha/CircleCaptcha.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'module/plugins/captcha/CircleCaptcha.py') diff --git a/module/plugins/captcha/CircleCaptcha.py b/module/plugins/captcha/CircleCaptcha.py index a79198314..8b59c6703 100644 --- a/module/plugins/captcha/CircleCaptcha.py +++ b/module/plugins/captcha/CircleCaptcha.py @@ -241,7 +241,6 @@ class CircleCaptcha(OCR): -1 -> Not found circle -2 -> Found black position then leave position """ - imageheight = range(int(c[1]-c[2]),int(c[1]+c[2])) imagewidth = range(int(c[0]-c[2]),int(c[0]+c[2])) @@ -323,7 +322,6 @@ class CircleCaptcha(OCR): -1 -> Not found circle -2 -> Found black position then leave position """ - imageheight = range(int(c[1]-c[2]),int(c[1]+c[2])) imagewidth = range(int(c[0]-c[2]),int(c[0]+c[2])) @@ -485,7 +483,6 @@ class CircleCaptcha(OCR): if maxX - minX < c[2] * 2 * 0.10 and maxY - minY < c[2] * 2 * 0.10: return -1; """ - if missing / howmany > 0.25 or \ missingconsecutive >= (howmany / 4) * 2 or \ howmany < 80: -- cgit v1.2.3