Class VisualFeatures

java.lang.Object
com.azure.core.util.ExpandableStringEnum<VisualFeatures>
com.azure.ai.vision.imageanalysis.models.VisualFeatures

public final class VisualFeatures extends com.azure.core.util.ExpandableStringEnum<VisualFeatures>
The visual features supported by the Image Analysis service.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final VisualFeatures
    Generate a human-readable caption sentence that describes the content of the image.
    static final VisualFeatures
    Generate human-readable caption sentences for up to 10 different regions in the image, including one for the whole image.
    static final VisualFeatures
    Object detection.
    static final VisualFeatures
    Detect people in the image and return their location.
    static final VisualFeatures
    Extract printed or handwritten text from the image.
    static final VisualFeatures
    Find representative sub-regions of the image for thumbnail generation, at desired aspect ratios, with priority given to detected faces.
    static final VisualFeatures
    Extract content tags for thousands of recognizable objects, living beings, scenery, and actions that appear in the image.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates or finds a VisualFeatures from its string representation.
    Gets known VisualFeatures values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • TAGS

      public static final VisualFeatures TAGS
      Extract content tags for thousands of recognizable objects, living beings, scenery, and actions that appear in the image.
    • CAPTION

      public static final VisualFeatures CAPTION
      Generate a human-readable caption sentence that describes the content of the image.
    • DENSE_CAPTIONS

      public static final VisualFeatures DENSE_CAPTIONS
      Generate human-readable caption sentences for up to 10 different regions in the image, including one for the whole image.
    • OBJECTS

      public static final VisualFeatures OBJECTS
      Object detection. This is similar to tags, but focused on detecting physical objects in the image and returning their location.
    • READ

      public static final VisualFeatures READ
      Extract printed or handwritten text from the image. Also known as Optical Character Recognition (OCR).
    • SMART_CROPS

      public static final VisualFeatures SMART_CROPS
      Find representative sub-regions of the image for thumbnail generation, at desired aspect ratios, with priority given to detected faces.
    • PEOPLE

      public static final VisualFeatures PEOPLE
      Detect people in the image and return their location.
  • Constructor Details

    • VisualFeatures

      @Deprecated public VisualFeatures()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of VisualFeatures value.
  • Method Details

    • fromString

      public static VisualFeatures fromString(String name)
      Creates or finds a VisualFeatures from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding VisualFeatures.
    • values

      public static Collection<VisualFeatures> values()
      Gets known VisualFeatures values.
      Returns:
      known VisualFeatures values.