Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 77

mobileClematis
Aspiring developer
Profile
Posts: 36
Reg: Oct 21, 2014
Kolkata, India
10,860
10/27/14 08:37 AM (9 years ago)

Comparison of two Images

How to compare two image to check whether they are almost equal or not. For e.g. I will take a image from camera and then again open the camera. It will instantly check whether it matches with the previously taken image and give a green indicator that it matches 90 % or more. Can anybody know how to handle this?
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
10/27/14 09:46 AM (9 years ago)
Use Google to look on GitHub.com Perhaps you might find the code in that repository.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/27/14 02:14 PM (9 years ago)
Do you want the camera to indicate whether it matches before the second image is taken or compare when both photographs have been taken. What type of images are used photographs, icons blank and white, color Either way this is going to be extremely complicated just comparing uiimages is difficult due to lighting conditions, image quality, size of image. There are augmented reality that do an excellent job at image recognition and masking. It is a very interesting challenge though
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
10/27/14 05:46 PM (9 years ago)
I did some work on a project for someone one time using Wikitude's sdk (http://www.wikitude.com). It wasn't too bad to setup, although I wouldn't recommend it for a novice. It has an option to do this sort of thing. You point the camera on the phone at an object and if it matches (relatively close) to a pre-defined image then it performs whatever action you specify. In their stock example, it shows another image overtop, like an ad overlay. But I was able to manipulate it to switch to a different screen in the app.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.