1 2 3 4 5 6 7 8 9 10 11 |
#Descargar la imagen del CAPTCHA de Amazon $url="https://www.amazon.es/errors/validateCaptcha" $result = Invoke-WebRequest $url Start-BitsTransfer ($result.Images.src | Select-String "captcha") -Destination C:\Users\juan\captcha.jpg Start-Process C:\Users\juan\captcha.jpg #Convertir la imagen CAPTCHA a texto (el resultado obtenido no es positivo en la mayoría de las ocasiones) #Tesseract OCR #Tesseract is probably the most accurate open source OCR engine available. Combined with the Leptonica Image Processing Library it can read a wide variety of image formats and convert them to text in over 60 languages. It was one of the top 3 engines in the 1995 UNLV Accuracy test. Between 1995 and 2006 it had little work done on it, but since then it has been improved extensively by Google. It is released under the Apache License 2.0. .\tesseract.exe C:\Users\juan\captcha.jpg C:\Users\juan\captcha2 gc C:\Users\juan\captcha2.txt |