Enum ImageFeature.FeatureType

  • All Implemented Interfaces:
    BmcEnum, Serializable, Comparable<ImageFeature.FeatureType>
    Enclosing class:
    ImageFeature

    public static enum ImageFeature.FeatureType
    extends Enum<ImageFeature.FeatureType>
    implements BmcEnum
    The type of image analysis requested.

    The allowed values are: - IMAGE_CLASSIFICATION: Label the image. - OBJECT_DETECTION: Identify objects in the image with bounding boxes. - TEXT_DETECTION: Recognize text at the word and line level. - FACE_DETECTION: Identify faces in the image with bounding boxes and face landmarks.

    • Method Detail

      • values

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

        public static ImageFeature.FeatureType 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