Identify color of an image


#1

Hi,
How to identify color of an image
for ex:- color

o/p should be:- blue


#2

check is there a color property in selector of that image if yes you can get it.


#3

Hi Divyashreem
there is no color property available then how to retrieve the color of an image


#5

Here you can try:-

open website
https://etsexpress.com/pg_home/#

type h2go in search field and enter then you will get list of product


#6

Is there any other way to read color of an image kindly suggest


#7

@Rup_1

Use microsoft cognitive service’s “Computer Vision API” to “Analyze an image” and look for the Dominant Color foreground property-

Here is an example-

Hope this helps :slight_smile:


#8

Please try this activity:

Video:

For debugging purpose, you can use input as cursor.position.X and cursor.position.Y and highlight flag as True. Then hover the cursor on the image when you are running the process.

If it is able to identify color correctly then use getposition activity to get dynamic X and Y coordinates of the image. You can do some minor adjustment in the X and Y coordinate to get correct location of pixel on the screen.


#9

#10

Kudos, thank you…


#11

Superb bro, i think this will help to me.
Thanks.


#12

Hi palindrome,
which data type we should used to access cursor.position.X and cursor.position.Y
actually i got this error when i used:-


#13

Hi,
Here is the url from which i want to get color of an product.

https://etsexpress.com/pg_home/#
when you open this url then type h2go in search field then you will get the list of product and i want to get color from this product.then how to do.


#14

Import namespace System.Windows.Forms in uipath.

Use Get Position activity with input as the selector of image on webpage.


#15

ETSexpress.xaml (24.0 KB)

Please check the file. I hope this is what you are looking for: