CustomVisionTrainingClientExtensions.GetImageRegionProposalsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get region proposals for an image. Returns empty array if no proposals are found.
public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageRegionProposal> GetImageRegionProposalsAsync (this Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.ICustomVisionTrainingClient operations, Guid projectId, Guid imageId, System.Threading.CancellationToken cancellationToken = default);
static member GetImageRegionProposalsAsync : Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.ICustomVisionTrainingClient * Guid * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageRegionProposal>
<Extension()>
Public Function GetImageRegionProposalsAsync (operations As ICustomVisionTrainingClient, projectId As Guid, imageId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ImageRegionProposal)
Parameters
- operations
- ICustomVisionTrainingClient
The operations group for this extension method.
- projectId
- Guid
The project id.
- imageId
- Guid
The image id.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Remarks
This API will get region proposals for an image along with confidences for the region. It returns an empty array if no proposals are found.