# Image analysis and comparison

**URL:** <https://discourse.nodered.org/t/image-analysis-and-comparison/20698>\
**Category:** General\
**Created:** [21 January 2020 19:35 UTC](https://discourse.nodered.org/t/image-analysis-and-comparison/20698 "2020-01-21T19:35:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [21 January 2020 19:35 UTC](https://discourse.nodered.org/t/image-analysis-and-comparison/20698/1 "2020-01-21T19:35:25Z")

</div>

i want to compare two images and detect the percentage difference between them. can this be done with node-red module?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 January 2020 20:11 UTC](https://discourse.nodered.org/t/image-analysis-and-comparison/20698/2 "2020-01-21T20:11:00Z")

</div>

Have you searched through the flows site for anything that might fit?

If you have and there isn't anything. The next step would be to look on the npm site to see if there are any Node.js packages that might fit the bill and then you can look at integrating them with Node-RED.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 January 2020 22:35 UTC](https://discourse.nodered.org/t/image-analysis-and-comparison/20698/3 "2020-01-21T22:35:35Z")

</div>

You will also need to know what you mean by percentage difference between images. Perhaps you already know that.

---

<div class="post-metadata">

**Author:** ![Jotarod](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@Jotarod](https://discourse.nodered.org/u/Jotarod)\
**Post date:** [4 November 2020 00:17 UTC](https://discourse.nodered.org/t/image-analysis-and-comparison/20698/4 "2020-11-04T00:17:03Z")

</div>

Hi @hathemi , did you advance with your project?  
I am very interesing to achieve the same and I dont know how can I do it..

Thanks!

---

<div class="post-metadata">

**Author:** ![Jotarod](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@Jotarod](https://discourse.nodered.org/u/Jotarod)\
**Post date:** [4 November 2020 10:20 UTC](https://discourse.nodered.org/t/image-analysis-and-comparison/20698/5 "2020-11-04T10:20:19Z")

</div>

Hi @Colin ,  
In my case, I would like to compare 2 images and know by percentage difference.  
Example:  
Imagine a photo of one pack with 24 cans, from above view and the same pack with 2 can less.... Is that what I would like to detect...  
Some idea?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [4 November 2020 10:31 UTC](https://discourse.nodered.org/t/image-analysis-and-comparison/20698/6 "2020-11-04T10:31:30Z")

</div>

> [@Jotarod](#):
>
> Imagine a photo of one pack with 24 cans, from above view and the same pack with 2 can less.... Is that what I would like to detect

That is completely different to what this 10month old thread was asking. What you are wanting is not a pixel difference but an AI routine to tell you there are 24 cans or 22 cans.

Search the forum for [tensorflow](https://discourse.nodered.org/search?q=tensorflow) and [recognition](https://discourse.nodered.org/search?q=recognition) for initial ideas & give it a go.

I also recommend you start a new thread an state clearly what you are trying to achieve and what you have tried.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 November 2020 16:07 UTC](https://discourse.nodered.org/t/image-analysis-and-comparison/20698/7 "2020-11-04T16:07:09Z")

</div>


