public class OmrPage extends Object
Represents a page of an OMR document
OmrTemplate template = new OmrTemplate(); //Initializes OmrTemplate OmrPage page = template.getPages().getItem(0); // Default page page.setWidth(100); // Set width 100 page.setHeight(100); // Set height 100
Constructor and Description |
---|
OmrPage()
Initializes a new instance of the
OmrPage class. |
Modifier and Type | Method and Description |
---|---|
Map |
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 or sets 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 OmrPage()
Initializes a new instance of the OmrPage
class.
public Map extractData(OmrImage documentImage, OmrConfig config)
Extracts data from a scanned OMR sheet.
documentImage
- The document Image.config
- Configuration for OMR extraction algorithm.Hashtable
with element names as keys and their respective values as values.public OmrConfig getConfiguration()
Gets page-level configuration for OMR extraction algorithm.
Overrides global configuration if set.
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 or sets 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.
public void setHeight(double value)
Sets height of the page, in millimeters.
public void setSheetImage(OmrImage value)
Sets a sheet image associated with the page. The value can be null.
public void setWidth(double value)
Sets width of the page, in millimeters.
Copyright © 2017. All Rights Reserved.