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

  • Home
  • SEARCH
  • 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 8523275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:21:49+00:00 2026-06-11T07:21:49+00:00

How to compare one image token with camera with all the other images stored

  • 0

How to compare one image token with camera with all the other images stored in the sd card and display the result?

public class SearchForFaces extends Activity {

    Bitmap bitmapOriginale;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Bundle b1 = getIntent().getExtras();
        String cin= b1.getString("cin");        

        //getting the image
        File sdCard = Environment.getExternalStorageDirectory();
        File directory = new File (sdCard.getAbsolutePath() + "/Student");
        File file = new File(directory, cin+"jpg");
        try {
            FileInputStream streamIn = new FileInputStream(file);
            bitmapOriginale = BitmapFactory.decodeStream(streamIn);
            streamIn.close();
        } catch (IOException e) {
            Log.d("SearchForFaces Exception", e.getMessage());
        }
        if(bitmapOriginale.sameAs(//images from sdcard)) 
        {
            //display founded image
        }
    }
}
  • 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-11T07:21:50+00:00Added an answer on June 11, 2026 at 7:21 am

    i think, its not necessary read all images..if you want compare images from camera, you can “easy” take the images in DCMI folder. But ok, user will move some files in another folder. So in that case i will advice just open first folder, read files in there and check the format, after that open another folder, read files in there and again check the formats and save the paths to the jpg files.
    So in this case just easy some for, foreach, while cykl or you can do it with recursion.
    You will have some ArrayList (linkedList, whatever) and in this list you can put the paths. Then just call your sameAs method.
    On this you can use Environment.getExternalStorageDirectory().listFiles();

    But..i am not sure if your “algorithm” will work..image recognition is really hard part of computer science..and if you dont know how to get the files on SDcard..the algorithm wouldnt probably work..
    But if you want to check the similarity with byte by byte comparsion, then its ok..

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

Sidebar

Related Questions

I want to compare the alpha channel from one image to ~1000 other images.
I want to be able to compare one string to all other strings sequentially
Is there a program to compare one folder and all subfolders to another folder
How can I compare an image to another one? Thanks!
I am trying to make simple app that allows one to compare image to
If we compare image procesing of the losslessly compressed images with the image processing
I'm trying to compare images to each other to find out whether they are
I have over 1.3milion images that I have to compare with each other, and
I would like to compare two images with javascript. One is drawn on a
I have 1 image (source) stored in one server (this server is only an

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.