com.aspose.ocr

Enum DetectAreasMode

    • Enum Constant Detail

      • NONE

        public static final DetectAreasMode NONE
        Doesn't detect paragraphs. Better for a simple one-column document without pictures.
      • DOCUMENT

        public static final DetectAreasMode DOCUMENT
        Detects paragraphs uses NN model for documents. Better for multicolumn document, document with pictures or with other not text objects.
      • PHOTO

        public static final DetectAreasMode PHOTO
        Detects paragraphs uses NN model for photos. Better for image with a lot of pictures and other not text objects.
      • COMBINE

        public static final DetectAreasMode COMBINE
        Detects paragraphs with text and then uses other NN model to detect areas inside of paragraphs. Better for images with complex structure.
      • TABLE

        public static final DetectAreasMode TABLE
        Detects cells with text. Preferable mode for images with table structure.
    • Method Detail

      • values

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

        public static DetectAreasMode 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