Partager via


VisualFeatures Class

public final class VisualFeatures
extends ExpandableStringEnum<VisualFeatures>

The visual features supported by the Image Analysis service.

Field Summary

Modifier and Type Field and Description
static final VisualFeatures CAPTION

Generate a human-readable caption sentence that describes the content of the image.

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.

static final VisualFeatures OBJECTS

Object detection.

static final VisualFeatures PEOPLE

Detect people in the image and return their location.

static final VisualFeatures READ

Extract printed or handwritten text from the image.

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.

static final VisualFeatures TAGS

Extract content tags for thousands of recognizable objects, living beings, scenery, and actions that appear in the image.

Constructor Summary

Constructor Description
VisualFeatures()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VisualFeatures value.

Method Summary

Modifier and Type Method and Description
static VisualFeatures fromString(String name)

Creates or finds a VisualFeatures from its string representation.

static Collection<VisualFeatures> values()

Gets known VisualFeatures values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

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.

PEOPLE

public static final VisualFeatures PEOPLE

Detect people in the image and return 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.

TAGS

public static final VisualFeatures TAGS

Extract content tags for thousands of recognizable objects, living beings, scenery, and actions that appear in the image.

Constructor Details

VisualFeatures

@Deprecated
public VisualFeatures()

Deprecated

Use the fromString(String name) 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 values()

Gets known VisualFeatures values.

Returns:

known VisualFeatures values.

Applies to