Skip to main content
Nintex Community Menu Bar

If I let a bot detect a image how can he compare this with saved images?

If i drop a png in a variable it becomes a file..:(

I have 40 images an the bot opens a website and detects a image saves it through a clipboard action in a Varable and needs to compare it with one of the 40 images and than act on it.

Hi Leon,

 

Kryon does not have a built in tool to compare images, but I think it's worth clarifying how you would like these images compared. Do you want know (1) are the images identical, or (2) what the differences are between the images?

 

If (1) then you should be able to do a binary comparison using the built in FC command in Windows (https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/fc). However, for a successful match the 2 files must be bit-for-bit identical. This may mean that you can only capture a fixed size window of your application, because capturing the whole screen will likely capture dynamic elements such as the system clock in your taskbar. There may be other tools to work with where you can set a threshold in the comparison where a match will be made or not.

 

If (2) then you will need to find and integrate with a 3rd party tool or website, ideally one that has a CLI to it and run a comparison via that or an API. The tool should be able to visualize the differences to you.

 

Regards,

Darren


Hi Leon,

 

I've not used this personally, but it looks promising:

 

https://imagemagick.org/script/compare.php

 

Thanks,

Darren


Hi Darren,

thxs for your reply: I only wanted to know if images are identical (Capcha) Tiktok changed their capcha and killed my bot 😞

Urlier they used a capcha with puzzelpiece I managed to overcome that one..(ill post that one) There are 7 symbols so 21 combination I try a loop to switch between combinations...


Ill have a look at this one...


Reply