GithubHelp home page GithubHelp logo

Comments (5)

nitinramadoss avatar nitinramadoss commented on June 18, 2024

Hey there, thank you for bringing this to our attention! The algorithms return zero because transparent pixels are black pixels with 0 alpha. This means that those three images currently equate to images with only black pixels; therefore, the difference is zero.

ChiSquareDistanceHistogram returns a non-zero result because of floating point error.

We are working on a feature to handle transparent pixels and address #3

from image_compare.

axel-cln avatar axel-cln commented on June 18, 2024

Hello, do you know when you will add this feature ?

Or do you know another solution to answer to my problematic ?
Initially, I wanted to compare the data bytes of each images but I had an issue with this.

Regards.

from image_compare.

nitinramadoss avatar nitinramadoss commented on June 18, 2024

You should be able to compare the images for difference if the digits (1, 2 and 3) are in any color other than black.

The package automatically compares the bytes of the images. Each algorithm extracts the bytes first and then compares them with a unique strategy.

from image_compare.

axel-cln avatar axel-cln commented on June 18, 2024

Hello, I found a solution to my problem.
I have succeeded to extract the bytes of the pictures, hash them and compare the hashcodes.

My initial goal was to verify if 2 pictures are exactly the same.
Here is my code to get the hash of a picture which is on internet if it can help someone :

final response = await http.get(Uri.parse(pictureUrl));
var bytes = response.bodyBytes;
String imageHashcode = md5.convert(bytes).toString();

from image_compare.

nitinramadoss avatar nitinramadoss commented on June 18, 2024

Feature in progress #6

from image_compare.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.