Freigeben über


BlobIndexerImageAction Class

public final class BlobIndexerImageAction
extends ExpandableStringEnum<BlobIndexerImageAction>

Determines how to process embedded images and image files in Azure blob storage. Setting the "imageAction" configuration to any value other than "none" requires that a skillset also be attached to that indexer.

Field Summary

Modifier and Type Field and Description
static final BlobIndexerImageAction GENERATE_NORMALIZED_IMAGES

Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field.

static final BlobIndexerImageAction GENERATE_NORMALIZED_IMAGE_PER_PAGE

Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field, but treats PDF files differently in that each page will be rendered as an image and normalized accordingly, instead of extracting embedded images.

static final BlobIndexerImageAction NONE

Ignores embedded images or image files in the data set.

Constructor Summary

Constructor Description
BlobIndexerImageAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of BlobIndexerImageAction value.

Method Summary

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

Creates or finds a BlobIndexerImageAction from its string representation.

static Collection<BlobIndexerImageAction> values()

Gets known BlobIndexerImageAction values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

GENERATE_NORMALIZED_IMAGES

public static final BlobIndexerImageAction GENERATE_NORMALIZED_IMAGES

Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field. This action requires that "dataToExtract" is set to "contentAndMetadata". A normalized image refers to additional processing resulting in uniform image output, sized and rotated to promote consistent rendering when you include images in visual search results. This information is generated for each image when you use this option.

GENERATE_NORMALIZED_IMAGE_PER_PAGE

public static final BlobIndexerImageAction GENERATE_NORMALIZED_IMAGE_PER_PAGE

Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field, but treats PDF files differently in that each page will be rendered as an image and normalized accordingly, instead of extracting embedded images. Non-PDF file types will be treated the same as if "generateNormalizedImages" was set.

NONE

public static final BlobIndexerImageAction NONE

Ignores embedded images or image files in the data set. This is the default.

Constructor Details

BlobIndexerImageAction

@Deprecated
public BlobIndexerImageAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of BlobIndexerImageAction value.

Method Details

fromString

public static BlobIndexerImageAction fromString(String name)

Creates or finds a BlobIndexerImageAction from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding BlobIndexerImageAction.

values

public static Collection values()

Gets known BlobIndexerImageAction values.

Returns:

known BlobIndexerImageAction values.

Applies to