You have a Computer Vision resource named contoso1 in West US region.
You must use this resource to resize an image using smart cropping.
Let’s analyze the key points:
Endpoint
Each Azure AI service resource has a regional endpoint.
Since the resource name is contoso1 and is deployed in West US, the correct endpoint will be:
https: //contoso1.cognitiveservices.azure.com
The older projectoxford.ai and generic westus.api.cognitive.microsoft.com are legacy endpoints and are not recommended.
Therefore, the correct choice is https://contoso1.cognitiveservices.azure.com .
API Method
The task is to generate a different size of a product photo with smart cropping.
This is done using the Generate Thumbnail API in Computer Vision.
The path for this is:
/vision/v3.1/generateThumbnail
Other options like detect (for object detection) or areaOfInterest (for finding regions of interest) do not generate thumbnails.
Correct Answer:
Endpoint: https://contoso1.cognitiveservices.azure.com
API: /vision/v3.1/generateThumbnail
Microsoft References
Computer Vision API reference - Generate Thumbnail
Computer Vision REST API documentation
Azure AI services endpoints