check is there a color property in selector of that image if yes you can get it.
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
Is there any other way to read color of an image kindly suggest
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
Please try this activity:
https://gallery.uipath.com/packages/ColorDetectorActivities/
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.
Kudos, thank you…
Superb bro, i think this will help to me.
Thanks.
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:-
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.
Import namespace System.Windows.Forms in uipath.
Use Get Position activity with input as the selector of image on webpage.
Thanks for sharing this custom activity. Will be really helpful.
HI @Divyashreem can you see I am not able to identify the image color. As I used the Microsoft Vision Activity. I use the service URL and API.
Please guide
Got it, and did it but not giving the exact color name bro. It gives the wrong color name.
can you please tell me the which activity you have used here ?