public class RecognitionProject
extends java.lang.Object
Constructor and Description |
---|
RecognitionProject(java.io.File folder,
Instrument instrument,
java.io.File exeFolder)
Image Recognition project objet
|
RecognitionProject(java.io.File folder,
Repository2 repository,
java.io.File exeFolder)
init a recognition project from the folder and the repository collection
this constructor assume that the project has already been created
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
computeWarpImage(java.lang.String name)
Compute a wrap image from the book edges
|
protected java.io.File |
constructVirtualBookFile() |
BookEdges |
getEdges(java.lang.String name)
Get Edge informations for this image
|
java.util.ArrayList<Hole> |
getHoles(java.lang.String name)
get the associated holes
|
java.lang.Double |
getHolesXOffset(java.lang.String name) |
java.awt.image.BufferedImage |
getImage(java.lang.String name)
book image
|
java.lang.Double |
getImageOffset(java.lang.String name) |
Instrument |
getInstrument()
get the project instrument
|
java.awt.image.BufferedImage |
getMiniImage(java.lang.String name)
mini image, generated with the stamps (edges and recognized holes)
|
VirtualBook |
getVirtualBook() |
java.lang.String[] |
listImageNames()
List Images in the project
|
void |
recognize(java.lang.String name)
Launch the recognition and get the edge information plus atomatic reading
informations
|
void |
saveVirtualBook() |
void |
setEdges(java.lang.String name,
BookEdges be)
define edge informations for this image
|
void |
setHoles(java.lang.String name,
java.util.ArrayList<Hole> holes)
set the associated holes
|
void |
setHolesXOffset(java.lang.String name,
java.lang.Double xscale) |
void |
setImageOffset(java.lang.String name,
java.lang.Double offset) |
public RecognitionProject(java.io.File folder, Instrument instrument, java.io.File exeFolder) throws java.lang.Exception
folder
- the folder in which the images and recognition will be storedscale
- the scale of the instrumentjava.lang.Exception
public RecognitionProject(java.io.File folder, Repository2 repository, java.io.File exeFolder) throws java.lang.Exception
folder
- the folder image projectrepository
- the instrument repositoryjava.lang.Exception
public java.lang.String[] listImageNames() throws java.lang.Exception
java.lang.Exception
public java.awt.image.BufferedImage getImage(java.lang.String name) throws java.lang.Exception
name
- java.lang.Exception
public java.awt.image.BufferedImage getMiniImage(java.lang.String name) throws java.lang.Exception
name
- java.lang.Exception
public void recognize(java.lang.String name) throws java.lang.Exception
name
- java.lang.Exception
public void setEdges(java.lang.String name, BookEdges be) throws java.lang.Exception
name
- be
- java.lang.Exception
public BookEdges getEdges(java.lang.String name) throws java.lang.Exception
name
- java.lang.Exception
public void setHoles(java.lang.String name, java.util.ArrayList<Hole> holes) throws java.lang.Exception
name
- holes
- java.lang.Exception
public java.util.ArrayList<Hole> getHoles(java.lang.String name) throws java.lang.Exception
name
- java.lang.Exception
public java.awt.image.BufferedImage computeWarpImage(java.lang.String name) throws java.lang.Exception
name
- java.lang.Exception
public void setImageOffset(java.lang.String name, java.lang.Double offset) throws java.lang.Exception
java.lang.Exception
public java.lang.Double getImageOffset(java.lang.String name) throws java.lang.Exception
java.lang.Exception
public void setHolesXOffset(java.lang.String name, java.lang.Double xscale) throws java.lang.Exception
java.lang.Exception
public java.lang.Double getHolesXOffset(java.lang.String name) throws java.lang.Exception
java.lang.Exception
public VirtualBook getVirtualBook()
protected java.io.File constructVirtualBookFile()
public void saveVirtualBook() throws java.lang.Exception
java.lang.Exception
public Instrument getInstrument()