资 源 简 介
A simple library for recognizing capcha images with the antigate.com service.
Usage is very simple, just see the example below.
import j.antigate.*;public class TypicalAntigate{ static String answer; public static void main (String[] args){ try {/** Just get an InputStream of your image in any way you want. In the example I use a local File **/ File f = new File("C:\capcha.png"); FileInputStream is = new FileInputStream(f); //** You may check your antigate.com balance first **/ String balance = CapchaUtils.getBalance("YOURAPIKEY"); /** Use CapchaAnswer() method to get the capcha text, returns error message if any **/ answer = CapchaBypass.CapchaAnswer(is, "YOURAPIKEY", null, null, null); } catch (IOException | InterruptedException e) { e.printStackTrace(); } System.out.println(answer);}}
Method parameters are:
CapchaAnswer(InputStream, "YOURAPIKEY", "YES/NO for multiple words", &qu