Search Results for

    Show / Hide Table of Contents

    Class ImageAnalysisService

    Inheritance
    object
    CrudServiceBase<MicrosoftAzureClient>
    ImageAnalysisService
    Implements
    ICrudService
    Inherited Members
    CrudServiceBase<MicrosoftAzureClient>.client
    CrudServiceBase<MicrosoftAzureClient>.ApiKey
    CrudServiceBase<MicrosoftAzureClient>.GetUrl(params string[])
    CrudServiceBase<MicrosoftAzureClient>.GetChildUrl(string, params string[])
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Microsoft.Azure.ComputerVision
    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
    Type Name Description
    MicrosoftAzureClient client

    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
    Type Name Description
    ImageAnalysisRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<ImageAnalysisResult>
    | 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
    Type Name Description
    SegmentImageRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<RESTResponse>

    Implements

    ICrudService

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation