To Execute this code:
- pip install captcha or pillow
- make an object of a class 'anyVariable = recaptchaTest()'
- Generate a random string from 'captcha_text = anyVariable.capRandomText()'
- pass Generated string in as an argument in 'anyVariable.capImage(captcha_text)'
- At the end Validation 'retVal = anyVariable.capValidate(captcha_text,input_captcha)' Note : Here I returned Int 1 = True , -1 = False