public static void SampleSolve() { string ExampleFile = "test.jpeg"; CaptchaSolver solver = new CaptchaSolver("http://www.fasttypers.org/imagepost.ashx", "KLJFSDFJLLG9KJT5IOEIWE839823K"); if (solver.SolveCaptcha(ExampleFile)) { string CaptchaText = solver.LastResponseText; //if you think that captchaText is not correct //Claim your refund //like solver.RefundLastTask(); or solver.refund(solver.LastTaskId); } else { //do actions based solver.LastPostState } }
public static void SampleSolve() { string ExampleFile="test.jpeg"; CaptchaSolver solver=new CaptchaSolver("http://www.fasttypers.org/imagepost.ashx", "KLJFSDFJLLG9KJT5IOEIWE839823K"); if (solver.SolveCaptcha(ExampleFile)) { string CaptchaText=solver.LastResponseText; //if you think that captchaText is not correct //Claim your refund //like solver.RefundLastTask(); or solver.refund(solver.LastTaskId); }else { //do actions based solver.LastPostState } }
public override Captcha resolveRecaptcha(byte[] imageBytes, string Username, string Password) { throw new NotImplementedException(); //Amit to code this part #region Code not Completed /// code for convert bit[] to Image byte[] buffer = imageBytes.ToArray(); MemoryStream memStream = new MemoryStream(); memStream.Write(buffer, 0, buffer.Length); Image captcha= Image.FromStream(memStream); // Image captcha = Image.FromFile("Captcha.jpg"); CaptchaSolver solver = new CaptchaSolver("my-login", "my-access-key"); // solver.Initialize(); // SolveResult result = solver.SolveCaptcha(captcha); //string captchaStr = result.Result; //captcha.Dispose(); //solver.Dispose(); #endregion }