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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:08:47+00:00 2026-06-10T04:08:47+00:00

There have been discussions about how to compare two images, calculate the difference between

  • 0

There have been discussions about how to compare two images, “calculate” the difference between them. This can be seen as a variant of image comparison, but not entirely.
Consider this:
Suppose I’ve the image of a pen, stored in the SD card of my phone (Android phone). And, I’m “searching” for this pen in my house, using my camera. Let’s ignore the fact that I can do the same with my eyes, and let the camera do the searching. So, I’m in my house, pointing my camera at various places, to see if my camera can “identify” this pen, when I point the camera at it.
To put in vague computer science terms, while I’m pointing my camera at stuff, I have a thread running in the background, to continuously compare the image of this pen, with the current Camera View. I point my camera at a chair, the thread compares the camera view of the chair with the image of the pen , and since the chair is not the pen, it returns “false”.
And when I finally point it at the same pen, lying on a table, the thread should determine that this is the pen whose image we have on our SD card. So the Camera View now shows the pen as well as the table it is lying on, but it should identify the pen using image comparison techniques.

Is something like this possible, in general? Forget Android , or a smartphone , is “identifying” an area or object with the camera possible? Being ignorant of image processing libraries, I can only assume that some library does have tools to do such stuff. Or atleast, there could be a “theoretical” algorithm, to start working on.

Thanks,

Sanjeev Mk

  • 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-10T04:08:49+00:00Added an answer on June 10, 2026 at 4:08 am

    This kind of thing can be done, but to get it working well is very, very, tough. My experience of OpenCV processing on Android is that it is out of the question to do this in real-time with current mobile hardware. ( It might be feasible to do this with still frames )

    A very crude ( And by a country mile the easiest ) system would use template matching cvMatchTemplate. Essentially, you compare the “template” ( a photo of your pen, for example ) to the photo at each possible position in the search image. It is computationally intensive but works quite well under constrained circumstances, your application requires completely unconstrained conditions, however.

    My suggestion would be to look at Surf or something similar and the Hough transform. You make a “finger print” of an object by producing a set of SURF features on the object from your reference image. You run surf on the search image. Then you apply a generalised hough transform where the object model is a set of feature points. Peaks in Hough space represent good matches.

    I’ve never even tried the second approach but I know it is possible. Also the two approaches I’ve put forward are by no means the only two, they’re just two which are familiar to me.

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

Sidebar

Related Questions

There have been many debates about this topic already here, but none of them
There have been multiple discussions on this topic in the site but I am
There have been a couple of threads on this topic in the past that
There have been several questions posted to SO about floating-point representation. For example, the
There have been several questions over the past few days about the proper use
There had been a lot of discussions about the core.autocrlf and core.safecrlf features in
I've seen there is some other discussion about this, however, none of the other
Has there been discussion around how to resolve equivalent openids? Meaning, I personally have
There have been a few similar questions with solutions, but none answered my question,
There have been proposals for C++ delegates which have lower overhead than boost::function :

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.