public class ManualDecoder extends ImageDecoder
session
Constructor and Description |
---|
ManualDecoder(ScrapingSession session)
Create the ManualDecoder, which uses a person sitting at the computer to resolve the image.
|
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 ManualDecoder(ScrapingSession session)
session
- The current scraping session@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