Search

Get Remote Image Colors

Articles

Use this function to fetch the dominant color of the remote image.

Syntax

Get Remote Image Colors (subscription_key, service_url, image_url)

Parameters

Input Parameter Name Description
subscription_key Azure cognitive service computer vision subscription key
service_url Computer vision endpoint
image_url Remote image URL

To know more about subscription_key and service_url, click here.

Returns

Return Value Description
Output
  • On Success returns 1 | color-foreground:color, color_background:color
    Example: color-foreground:Black, color_background:Blue
  • On Failure returns 0 | Error Message

Sample

Get Remote Image Colors (123456abcs, https: //jiffyai.azure, https: //docs.jiffy.ai/image.png)

  • Uses the subscription_key 123456abcs to connect to the service https: //jiffyai.azure, fetches the foreground and the background of the remote image https: //docs.jiffy.ai/image.png.
    Returns the foreground and the background of the local image in the format color-foreground:color, color_background:color.

To view all the MSVision functions, click here.

Did you find what you were looking for?