public class OmrPage extends Object
Represents a page of an OMR document
| Constructor and Description |
|---|
OmrPage()
Initializes a new instance of the
OmrPage class. |
| Modifier and Type | Method and Description |
|---|---|
StringDictionary |
extractData(OmrImage documentImage,
OmrConfig config)
Extracts data from a scanned OMR sheet.
|
OmrConfig |
getConfiguration()
Gets page-level configuration for OMR extraction algorithm.
|
OmrElementsCollection |
getElements()
Gets the collection of OMR elements of the page.
|
double |
getHeight()
Gets height of the page, in millimeters.
|
OmrImage |
getSheetImage()
Gets a sheet image associated with the page.
|
double |
getWidth()
Gets width of the page, in millimeters.
|
void |
setConfiguration(OmrConfig value)
Sets page-level configuration for OMR extraction algorithm.
|
void |
setHeight(double value)
Sets height of the page, in millimeters.
|
void |
setSheetImage(OmrImage value)
Sets a sheet image associated with the page.
|
void |
setWidth(double value)
Sets width of the page, in millimeters.
|
public StringDictionary extractData(OmrImage documentImage, OmrConfig config)
Extracts data from a scanned OMR sheet.
documentImage - The document Image.config - Configuration for OMR extraction algorithm.public OmrConfig getConfiguration()
Gets page-level configuration for OMR extraction algorithm.
If set to null (by default), global configuration will be used.
public OmrElementsCollection getElements()
Gets the collection of OMR elements of the page.
public double getHeight()
Gets height of the page, in millimeters.
public OmrImage getSheetImage()
Gets a sheet image associated with the page. The value can be null.
public double getWidth()
Gets width of the page, in millimeters.
public void setConfiguration(OmrConfig value)
Sets page-level configuration for OMR extraction algorithm.
Overrides global configuration if set.
If set to null (by default), global configuration will be used.
value - page-level configuration for OMR extraction algorithm.public void setHeight(double value)
Sets height of the page, in millimeters.
value - height of the pagepublic void setSheetImage(OmrImage value)
Sets a sheet image associated with the page. The value can be null.
value - new sheet imagepublic void setWidth(double value)
Sets width of the page, in millimeters.
value - width of the pageCopyright © 2014. All rights reserved.