ImageInfo Class
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.
- Inheritance
-
ImageInfo
Constructor
ImageInfo(**kwargs)
Parameters
- image_insights_token
- str
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
- str
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.
- crop_area
- CropArea
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.
Feedback
Submit and view feedback for