| Constructor and Description |
|---|
Finder(BufferedImage bimg)
Constructor for special use from a BufferedImage
|
Finder(ScreenImage simg)
Finder constructor for special use froma a ScreenImage
|
Finder(ScreenImage simg,
Region region)
Finder constructor for special use from a ScreenImage
|
Finder(String imageFilename)
Finder constructor (finding within an image).
|
Finder(String imageFilename,
Region region)
Finder constructor (finding within an image within the given region).
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
to explicitly free the Finder's resources
|
protected void |
finalize() |
String |
find(Pattern aPtn)
find given pattern within the stored image
|
String |
find(String imageOrText) |
String |
find(String imageOrText,
double minSimilarity) |
String |
findAll(Pattern aPtn) |
String |
findAll(String imageOrText) |
String |
findAll(String imageOrText,
double minSimilarity) |
protected void |
findAllRepeat()
internal use: repeat find with same Finder
|
protected void |
findRepeat()
internal use: repeat find with same Finder
|
boolean |
hasNext() |
Match |
next() |
void |
remove()
not used
|
protected void |
setRepeating()
internal use: to be able to reuse the same Finder
|
protected void |
setScreenImage(ScreenImage simg)
internal use: exchange the source image in existing Finder
|
public Finder(String imageFilename) throws IOException
imageFilename - a string (name, path, url)IOExceptionpublic Finder(String imageFilename, Region region) throws IOException
imageFilename - a string (name, path, url)region - search Region within image - topleft = (0,0)IOExceptionpublic Finder(BufferedImage bimg)
bimg - public Finder(ScreenImage simg)
simg - public Finder(ScreenImage simg, Region region)
simg - region - public void destroy()
protected void setScreenImage(ScreenImage simg)
simg - protected void setRepeating()
protected void findRepeat()
public String find(String imageOrText, double minSimilarity)
imageOrText - minSimilarity - protected void findAllRepeat()
public String findAll(String imageOrText, double minSimilarity)
imageOrText - minSimilarity - public boolean hasNext()
public Match next()