Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6828019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:20:02+00:00 2026-05-26T22:20:02+00:00

I am looking for a C++ or Python library to compare two JPEG or

  • 0

I am looking for a C++ or Python library to compare two JPEG or BMP formatted Images.
Here, I want to compare them pixel wise. For instance assume we have Image1 = 500 pixels, Image2 = 500 pixels; now i need to know the color values ie (RGB, R = 24, G = 15, B = 4) for each pixel and compare the same with image2 at the same location.

I also need to have tolerance values acting upon them, if they still have difference crossing this tolerance then i need to have the total percentage difference.

Is there a library out there ? If so please point me to that or give me any suggestions to start with.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:20:03+00:00Added an answer on May 26, 2026 at 10:20 pm

    If all you need to do is just comparison pixel-wise, you might achieve better performance by using numpy.

    Numpy is an extremely fast python module that works with n-dimensional arrays (containing all the same type, as it is in the case of pixel data) and by operating on them element-wise.

    So, "tell me were the alpha value of the pixels of two images differs by more than 0.5" would be translated in something like:

    img_one[..., ALPHA] - img_two[..., ALPHA] > 0.5
    

    HTH!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for java alternative for python library. Here is the question how
I'm looking for a python library that will help me to create an authentication
I'm looking for a Python library that's suitable, with DOM access too. I don't
I am looking for python stubbing library. Something that could be used to create
I am looking for a (preferably pure) python library to do AES 256 encryption
I've been looking around for an existing python library in the style of textile
I'm looking for a good python library to manipulate subversion repositories. I'm trying out
I'm looking for a Python library for finding the longest common sub-string from a
I am looking for a python library to scrape results from search engines (google,
I'm looking for a python library for easily creating a server which exposes web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.