You cannot solve a CAPTCHA with an OCR engine. Tesseract is used to get text from images, the better the image the better the result. CAPTCHAS are a randomly generated sequence of letters and/or numbers, which appears as a distorted image.
You can try with machine learning but it doesn't always work. There is this project in Python Machine Learning CAPTCHA Solver.