你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ImageInsights 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ImageInsights()
初始化 ImageInsights 类的新实例。
public ImageInsights();
Public Sub New ()
适用于
ImageInsights(String, String, String, String, Query, ImageInsightsImageCaption, RelatedCollectionsModule, ImagesModule, AggregateOffer, RelatedSearchesModule, RecipesModule, ImagesModule, ImagesModule, RecognizedEntitiesModule, ImageTagsModule)
初始化 ImageInsights 类的新实例。
public ImageInsights(string id = default, string readLink = default, string webSearchUrl = default, string imageInsightsToken = default, Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.Query bestRepresentativeQuery = default, Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImageInsightsImageCaption imageCaption = default, Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.RelatedCollectionsModule relatedCollections = default, Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImagesModule pagesIncluding = default, Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.AggregateOffer shoppingSources = default, Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.RelatedSearchesModule relatedSearches = default, Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.RecipesModule recipes = default, Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImagesModule visuallySimilarImages = default, Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImagesModule visuallySimilarProducts = default, Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.RecognizedEntitiesModule recognizedEntityGroups = default, Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImageTagsModule imageTags = default);
new Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImageInsights : string * string * string * string * Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.Query * Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImageInsightsImageCaption * Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.RelatedCollectionsModule * Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImagesModule * Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.AggregateOffer * Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.RelatedSearchesModule * Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.RecipesModule * Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImagesModule * Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImagesModule * Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.RecognizedEntitiesModule * Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImageTagsModule -> Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.ImageInsights
Public Sub New (Optional id As String = Nothing, Optional readLink As String = Nothing, Optional webSearchUrl As String = Nothing, Optional imageInsightsToken As String = Nothing, Optional bestRepresentativeQuery As Query = Nothing, Optional imageCaption As ImageInsightsImageCaption = Nothing, Optional relatedCollections As RelatedCollectionsModule = Nothing, Optional pagesIncluding As ImagesModule = Nothing, Optional shoppingSources As AggregateOffer = Nothing, Optional relatedSearches As RelatedSearchesModule = Nothing, Optional recipes As RecipesModule = Nothing, Optional visuallySimilarImages As ImagesModule = Nothing, Optional visuallySimilarProducts As ImagesModule = Nothing, Optional recognizedEntityGroups As RecognizedEntitiesModule = Nothing, Optional imageTags As ImageTagsModule = Nothing)
参数
- id
- String
字符串标识符。
- readLink
- String
返回此资源的 URL。
- webSearchUrl
- String
指向此项目的必应搜索结果的 URL。
- imageInsightsToken
- String
在后续调用图像搜索 API 时使用的令牌,用于获取有关图像的详细信息。 有关使用此令牌的信息,请参阅 insightsToken 查询参数。 此令牌的用法与 Image 对象中的令牌相同。
- bestRepresentativeQuery
- Query
最能表示图像的查询词。 单击 Query 对象中的链接,将用户转到包含更多图像图片的网页。
- imageCaption
- ImageInsightsImageCaption
要用于映像的描述文字。
- relatedCollections
- RelatedCollectionsModule
指向包含相关图像的网页的链接列表。
- pagesIncluding
- ImagesModule
包含图像的网页列表。 若要访问网页,请使用图像的 hostPageUrl 字段中的 URL。
- shoppingSources
- AggregateOffer
提供与图像相关的商品的商家列表。 例如,如果图像是苹果馅饼,则列表包含销售苹果馅饼的商家。
- relatedSearches
- RelatedSearchesModule
其他人进行的相关查询的列表。
- recipes
- RecipesModule
与图像相关的食谱列表。 例如,如果图像是苹果馅饼,则列表包含用于制作苹果馅饼的食谱。
- visuallySimilarImages
- ImagesModule
视觉上类似于原始图像的图像列表。 例如,如果指定的图像是水体上的日落图像,则类似图像的列表是水体上的日落。 如果指定的图像是一个人的图像,则类似的图像可能是同一个人,也可能是穿着相似或相似设置的人员。 相似性的标准在不断发展。
- visuallySimilarProducts
- ImagesModule
图像列表,其中包含在视觉上与原始图像中找到的产品相似的产品。 例如,如果指定的图像包含连衣裙,则类似图像的列表包含一件连衣裙。 该图像提供有关必应在线找到的产品/服务的摘要信息。
- recognizedEntityGroups
- RecognizedEntitiesModule
包含与指定映像中找到的实体匹配的实体图像的组列表。 例如,如果在该组中识别了实体,则响应可能包含来自常规名人组的图像。
- imageTags
- ImageTagsModule
在图像中找到的内容的特征列表。 例如,如果图像是一个人的图像,则标记可能指示该人的性别和他们所穿的衣服类型。