Enum OcrModeType
- java.lang.Object
-
- java.lang.Enum<OcrModeType>
-
- net.webpdf.wsclient.schema.operation.OcrModeType
-
- All Implemented Interfaces:
Serializable,Comparable<OcrModeType>
public enum OcrModeType extends Enum<OcrModeType>
<?xml version="1.0" encoding="UTF-8"?><p xmlns:p146669_="https://jakarta.ee/xml/ns/jaxb" xmlns:p388438_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Specifies the mode used to find structured text on the pages. Depending on which mode is chosen, different requirements are set for the text and different assumptions are made about the text. <ul><li>pageSegments = The text on the page is clearly structured and decomposable into clear paragraphs and layout segments. Overlapping of text elements/lines does not occur. Headings and thus texts with deviating text sizes and font set, could be present.</li><li>column = The text is arranged on the pages in several, more or less uniform columns, next to each other. Font and text size are mostly uniform.</li><li>unfiltered = No assumptions are made about the text, any letters that can be found are recognized as such, regardless of whether they can be assigned to a text column, or line, or even a word. Font size and typeface can vary absolutely and texts are not necessarily arranged in clearly recognizable columns or according to a fixed layout. Texts and lines can overlap. (This mode usually recognizes more text (especially with more complex layouts), but usually also generates the most error detections, since no result is sorted out due to its deviation from the norm.</li></ul></p>Java class for OcrModeType
.The following schema fragment specifies the expected content contained within this class.
<simpleType name="OcrModeType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="pageSegments"/> <enumeration value="column"/> <enumeration value="unfiltered"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLUMNPAGE_SEGMENTSUNFILTERED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OcrModeTypefromValue(String v)Gets the enum associated to the value passed as parameter.Stringvalue()Gets the value associated to the enum constant.static OcrModeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OcrModeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PAGE_SEGMENTS
public static final OcrModeType PAGE_SEGMENTS
-
COLUMN
public static final OcrModeType COLUMN
-
UNFILTERED
public static final OcrModeType UNFILTERED
-
-
Method Detail
-
values
public static OcrModeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OcrModeType c : OcrModeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OcrModeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public String value()
Gets the value associated to the enum constant.- Returns:
- The value linked to the enum.
-
fromValue
public static OcrModeType fromValue(String v)
Gets the enum associated to the value passed as parameter.- Parameters:
v- The value to get the enum from.- Returns:
- The enum which corresponds to the value, if it exists.
- Throws:
IllegalArgumentException- If no value matches in the enum declaration.
-
-