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, setAutoCloseAfterScrapeEnds
public 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)
ImageDecoder
decodeFile
in class ImageDecoder
file
- The image filepublic void close()
ImageDecoder
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class ImageDecoder
public double getBalance()
ImageDecoder
getBalance
in class ImageDecoder