public class DeathByCaptchaDecoder extends ImageDecoder
session| Constructor and Description |
|---|
DeathByCaptchaDecoder(ScrapingSession session,
java.lang.String username,
java.lang.String password)
Create a decoder that uses the deathbycaptcha.com service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes any resources associated with the decoder.
|
DecodedImage |
decodeFile(java.io.File file)
Converts the image given to a DecodedImage that will handle it.
|
double |
getBalance()
Returns the current balance of the account (if it can be accessed via the API).
|
decodeFile, decodeURL, setAutoCloseAfterScrapeEndspublic DeathByCaptchaDecoder(ScrapingSession session, java.lang.String username, java.lang.String password)
session - The current scraping session. Used for downloading images with the decodeURL method.username - The username for the deathbycaptcha accountpassword - The password for the deathbycaptcha account@NotNull public DecodedImage decodeFile(@NotNull java.io.File file)
ImageDecoderdecodeFile in class ImageDecoderfile - The image filepublic void close()
ImageDecoderclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class ImageDecoderpublic double getBalance()
ImageDecodergetBalance in class ImageDecoder