Class ImageAnalysisService
Inheritance
ImageAnalysisService
Assembly: Glitch9.AIDevKit.Provider.Microsoft.Azure.dll
Syntax
public class ImageAnalysisService : CrudServiceBase<MicrosoftAzureClient>, ICrudService
Constructors
|
Edit this page
View Source
ImageAnalysisService(MicrosoftAzureClient)
Declaration
public ImageAnalysisService(MicrosoftAzureClient client)
Parameters
Methods
|
Edit this page
View Source
AnalyzeImageAsync(ImageAnalysisRequest, RequestOptions)
Analyze the input image.
The request either contains image stream with any content type ['image/*', 'application/octet-stream'],
or a JSON payload which includes an url property to be used to retrieve the image stream.
Declaration
public UniTask<ImageAnalysisResult> AnalyzeImageAsync(ImageAnalysisRequest request, RequestOptions options = null)
Parameters
Returns
|
Edit this page
View Source
SegmentImageAsync(SegmentImageRequest, RequestOptions)
Analyze the input image.
The request either contains an image stream with any content type ['image/*', 'application/octet-stream'],
or a JSON payload which includes a url property to be used to retrieve the image stream.
An image stream of content type 'image/png' is returned, where the pixel values depend on the analysis mode.
The returned image has the same dimensions as the input image for modes: foregroundMatting.
The returned image has the same aspect ratio and same dimensions
as the input image up to a limit of 16 megapixels for modes: backgroundRemoval.
Declaration
public UniTask<RESTResponse> SegmentImageAsync(SegmentImageRequest request, RequestOptions options = null)
Parameters
Returns
Implements
Extension Methods