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 8640091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:11:39+00:00 2026-06-12T11:11:39+00:00

I have the Android code for storing pictures in database. How can I compare

  • 0

enter image description here

I have the Android code for storing pictures in database. How can I compare a stored picture with a picture that is taken?

  • 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-06-12T11:11:40+00:00Added an answer on June 12, 2026 at 11:11 am

    There could be several right answers, depending on what you’re looking for.

    If you’re talking about comparing a new photo made with the on-device camera, there’s virtually no chance it will be a byte-for-byte match with any existing file.

    If you want to detect an exact match from a source where a copy is likely, look at the file size and dimensions of the two images. If they are exactly the same, then you can look at the bytes. To save time, store a digital signature (e.g., an MD5 or SHA1) hash of the contents in the database along with the image.

    If you want to find whether the images are similar in appearance, then you’ll have to find some way to characterize the image. I’m no expert at this, but in my naive approach, I’d do something like divide the image into a fixed number of regions and measure the amount of red, green and blue in each region. You could even do this recursively on ever-smaller regions as approximate matches are found. Comparing whole images will be a lot easier than finding a partial match.

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

Sidebar

Related Questions

I have android.permission.READ_OWNER_DATA but I can't find any reliable code that would explain how
When I wanted to get Android source code, I knew that I have to
I have an Android app that takes some pictures, re-sizes them and sends them
I have a ImageView which shows a picture that has been taken from the
I have this code in Android: Map<String, String> idObject1 = new LinkedHashMap<String, String>(); idObject1.put(Id,
I have an android code which starts vibrating for a random amount of time
I have created my android code wherein I fetch all the data from facebook
I have 2 path objects in my android code.I have tried all the way
I have an android app which has native code. The native code needs to
I have an Android project I've inherited from another developer. The original code was

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.