<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Two Almost Identical Images in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Two-Almost-Identical-Images/m-p/72753#M25358</link>
    <description>Hi,

I'm trying to compare two almost identical images in two different stages.

In the first stage I want to check if&amp;nbsp;a checkbox is either white or not. The problem i'm having here is that the checkbox I'm working with is in a scanned document, so the background colour of the image is not white, but as much white it can get before it is actually white. I tried to us the 'Utility - Image Manipulation - Image is White' object, but this object only check for hex&amp;nbsp;code&amp;nbsp;(colour) ffffff (white). So now I'm wondering, is there any way to decide if an image is white-ish and note dark?

In the second stage I want to see if a scanned pdf document contains a certain Logo. Right now im using a wait stage to see if condition 'Matches Image' can be satisfied. But as a result of that the image is scanned, the pixels are not identically laid out and therefor the condition is not satisfied. So I'm wondering, is there any way to see if two images Matches to, lets say, 90%?

All Good!</description>
    <pubDate>Wed, 04 Jul 2018 17:03:00 GMT</pubDate>
    <dc:creator>AlexAppelgren</dc:creator>
    <dc:date>2018-07-04T17:03:00Z</dc:date>
    <item>
      <title>Two Almost Identical Images</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Two-Almost-Identical-Images/m-p/72753#M25358</link>
      <description>Hi,

I'm trying to compare two almost identical images in two different stages.

In the first stage I want to check if&amp;nbsp;a checkbox is either white or not. The problem i'm having here is that the checkbox I'm working with is in a scanned document, so the background colour of the image is not white, but as much white it can get before it is actually white. I tried to us the 'Utility - Image Manipulation - Image is White' object, but this object only check for hex&amp;nbsp;code&amp;nbsp;(colour) ffffff (white). So now I'm wondering, is there any way to decide if an image is white-ish and note dark?

In the second stage I want to see if a scanned pdf document contains a certain Logo. Right now im using a wait stage to see if condition 'Matches Image' can be satisfied. But as a result of that the image is scanned, the pixels are not identically laid out and therefor the condition is not satisfied. So I'm wondering, is there any way to see if two images Matches to, lets say, 90%?

All Good!</description>
      <pubDate>Wed, 04 Jul 2018 17:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Two-Almost-Identical-Images/m-p/72753#M25358</guid>
      <dc:creator>AlexAppelgren</dc:creator>
      <dc:date>2018-07-04T17:03:00Z</dc:date>
    </item>
    <item>
      <title>Hi Alex - there are many …</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Two-Almost-Identical-Images/m-p/72754#M25359</link>
      <description>Hi Alex - there are many 'nearly the same' matching algorithms out there but at present BP doesn't provide any out-of-the-box. If you wanted to implement one you'd need to use a code stage.
&amp;nbsp;
For the 'nearly white' image, you could try converting the image to pure black and white first. Again, you'd need a code stage to do this I'm afraid.</description>
      <pubDate>Wed, 04 Jul 2018 21:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Two-Almost-Identical-Images/m-p/72754#M25359</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2018-07-04T21:23:00Z</dc:date>
    </item>
    <item>
      <title>You dont happen to sit on…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Two-Almost-Identical-Images/m-p/72755#M25360</link>
      <description>You dont happen to sit on any code/solution for the logo issue?
The other issue I solved with the following code:
Dim c as System.Drawing.Color
Dim counter as integer
White = False
counter = 0
For y As Integer = 0 To Image.Height - 1
&amp;nbsp;&amp;nbsp;For x As Integer = 0 To Image.Width - 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c = Image.GetPixel(x, y)
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;If c.Name(2)  ""f"" or c.Name(4)  ""f"" or c.Name(6)  ""f"" Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counter = counter + 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If counter &amp;gt; 5 then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; White = False
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Exit Sub
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End If
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp; &amp;nbsp;Next
Next
White = True
&amp;nbsp;</description>
      <pubDate>Fri, 06 Jul 2018 12:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Two-Almost-Identical-Images/m-p/72755#M25360</guid>
      <dc:creator>AlexAppelgren</dc:creator>
      <dc:date>2018-07-06T12:25:00Z</dc:date>
    </item>
  </channel>
</rss>

