com.aspose.ocr

Enum AreasType

  • All Implemented Interfaces:
    Serializable, Comparable<AreasType>


    public enum AreasType
    extends Enum<AreasType>
    Determines the type of regions detected by the model.
    Author:
    Aspose Used in the @see AsposeOCR#getTextAreas to indicate which result will be obtained - paragraph coordinates or line coordinates.
    • Enum Constant Detail

      • PARAGRAPHS

        public static final AreasType PARAGRAPHS
        Sets regions as paragraphs
      • LINES

        public static final AreasType LINES
        Sets regions as lines
    • Method Detail

      • values

        public static AreasType[] 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 (AreasType c : AreasType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AreasType 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 name
        NullPointerException - if the argument is null