Hello everyone. I´m looking for the activities in the UiPath for comparing two images. I wan to compare “Screenshot1.png” and “Screenshot2.png”, see picture. Can someone please help?
I use UiPath Studio 2023.12.0.
Hi @amel237
You can explore the below marketplace component
@Sharath_HK arath, Thanks for your answer, but I can’t find these dependencies in Manage Packages in Studio.
we assume that your project is set to the Windows Compatibility:
As the package has Compatibility to Legacy but not to Windows it will not be offered by the Package Manager
Added: Screenshot:
@ppr , yes my project is set to the Windows Compatibility. Is there an alternative activities to Compare two images?
Commenting on this topic since I am also facing the same issue.
Objectives:
I want to compare before and after image, and produce a boolean results if they are the exact same image or not in UiPath. However, the Image Comparison package is outdated and not supported in the later version of UiPath.
I have created projects in the following compatibility to test the Image Comparison package:
- Windows - not supported
- Cross-platform - not supported
- Legacy - working
However, legacy projects are no longer being supported by UiPath, nor I can downgrade my Windows compatible project down to Legacy project. There is no image comparator Activity available in UiPath natively as well.
To compare 2 images , you should use "Image Comparison " activity.
→ Install UiPath.UIAutomation.Activities: Ensure that you have the UiPath.UIAutomation.Activities package installed.
→ You can do this by going to the “Manage Packages” page and checking for updates or installing it if it’s not there.
→ In the Activities panel, look for the Image
category. You should find the Image Comparison activity.
→ Drag the Image Comparison activity into your workflow.
→ You may be asked to connect it to GenAi activities, connect it.
→ Image1, Image2: Provide the full path for Screenshot1.png,Screenshot2.png.
→ You can adjust the similarity threshold (0 to 1) based on how similar the images need to be in order to be considered the same.
→ Create an output variable (e.g., imageComparisonResult) to store the result of the comparison.
I hope this Solution works.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.