Delen via


ImageInfo Class

Definition

A JSON object that identities the image to get insights of . It also includes the optional crop area that you use to identify the region of interest in the image.

public class ImageInfo
type ImageInfo = class
Public Class ImageInfo
Inheritance
ImageInfo

Constructors

ImageInfo()

Initializes a new instance of the ImageInfo class.

ImageInfo(String, String, CropArea)

Initializes a new instance of the ImageInfo class.

Properties

CropArea

Gets or sets a JSON object consisting of coordinates specifying the four corners of a cropped rectangle within the input image. Use the crop area to identify the region of interest in the image. You can apply the crop area to the images specified using the imageInsightsToken or url fields, or an image binary specified in an image form data.

ImageInsightsToken

Gets or sets an image insights token. To get the insights token, call one of the Image Search APIs (for example, /images/search). In the search results, the Image object's imageInsightsToken field contains the token. The imageInsightsToken and url fields mutually exclusive; do not specify both. Do not specify an insights token if the request includes the image form data.

Url

Gets or sets the URL of the input image. The imageInsightsToken and url fields are mutually exclusive; do not specify both. Do not specify the URL if the request includes the image form data.

Methods

Validate()

Validate the object.

Applies to