ImageAnalysisSkill Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexerSkill - com.
azure. search. documents. indexes. models. ImageAnalysisSkill
- com.
- com.
public final class ImageAnalysisSkill
extends SearchIndexerSkill
A skill that analyzes image files. It extracts a rich set of visual features based on the image content.
Constructor Summary
| Constructor | Description |
|---|---|
| ImageAnalysisSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) |
Creates an instance of Image |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
|
Image |
getDefaultLanguageCode()
Get the default |
|
List<Image |
getDetails()
Get the details property: A string indicating which domain-specific details to return. |
| String |
getOdataType()
Get the odata |
|
List<Visual |
getVisualFeatures()
Get the visual |
|
Image |
setContext(String context)
Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). |
|
Image |
setDefaultLanguageCode(ImageAnalysisSkillLanguage defaultLanguageCode)
Set the default |
|
Image |
setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill. |
|
Image |
setDetails(ImageDetail[] details)
Set the details property: A string indicating which domain-specific details to return. |
|
Image |
setDetails(List<ImageDetail> details)
Set the details property: A string indicating which domain-specific details to return. |
|
Image |
setName(String name)
Set the name property: The name of the skill which uniquely identifies it within the skillset. |
|
Image |
setVisualFeatures(List<VisualFeature> visualFeatures)
Set the visual |
|
Image |
setVisualFeatures(VisualFeature[] visualFeatures)
Set the visual |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from SearchIndexerSkill
Methods inherited from java.lang.Object
Constructor Details
ImageAnalysisSkill
public ImageAnalysisSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs)
Creates an instance of ImageAnalysisSkill class.
Parameters:
Method Details
fromJson
public static ImageAnalysisSkill fromJson(JsonReader jsonReader)
Reads an instance of ImageAnalysisSkill from the JsonReader.
Parameters:
Returns:
Throws:
getDefaultLanguageCode
public ImageAnalysisSkillLanguage getDefaultLanguageCode()
Get the defaultLanguageCode property: A value indicating which language code to use. Default is `en`.
Returns:
getDetails
public List<ImageDetail> getDetails()
Get the details property: A string indicating which domain-specific details to return.
Returns:
getOdataType
public String getOdataType()
Get the odataType property: A URI fragment specifying the type of skill.
Overrides:
ImageAnalysisSkill.getOdataType()Returns:
getVisualFeatures
public List<VisualFeature> getVisualFeatures()
Get the visualFeatures property: A list of visual features.
Returns:
setContext
public ImageAnalysisSkill setContext(String context)
Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). The default is /document.
Overrides:
ImageAnalysisSkill.setContext(String context)Parameters:
setDefaultLanguageCode
public ImageAnalysisSkill setDefaultLanguageCode(ImageAnalysisSkillLanguage defaultLanguageCode)
Set the defaultLanguageCode property: A value indicating which language code to use. Default is `en`.
Parameters:
Returns:
setDescription
public ImageAnalysisSkill setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.
Overrides:
ImageAnalysisSkill.setDescription(String description)Parameters:
setDetails
public ImageAnalysisSkill setDetails(ImageDetail[] details)
Set the details property: A string indicating which domain-specific details to return.
Parameters:
Returns:
setDetails
public ImageAnalysisSkill setDetails(List<ImageDetail> details)
Set the details property: A string indicating which domain-specific details to return.
Parameters:
Returns:
setName
public ImageAnalysisSkill setName(String name)
Set the name property: The name of the skill which uniquely identifies it within the skillset. A skill with no name defined will be given a default name of its 1-based index in the skills array, prefixed with the character '#'.
Overrides:
ImageAnalysisSkill.setName(String name)Parameters:
setVisualFeatures
public ImageAnalysisSkill setVisualFeatures(List<VisualFeature> visualFeatures)
Set the visualFeatures property: A list of visual features.
Parameters:
Returns:
setVisualFeatures
public ImageAnalysisSkill setVisualFeatures(VisualFeature[] visualFeatures)
Set the visualFeatures property: A list of visual features.
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ImageAnalysisSkill.toJson(JsonWriter jsonWriter)Parameters:
Throws: