Reputation: 41
In my application when a user captures the image before saving into the gallery
.
I want to check is there any image matches
with the current image
(at least 50%). If any image found get the image from gallery and display to the user.
I am very new to android development. Can anyone help me out to do above task.
Upvotes: 0
Views: 406
Reputation: 11
You'll have to use a Java library for this. I suggest taking a look at this thread.
If you'd like to develop something on your own, the basic idea is this. To compare two images, represent each of them as a matrix of pixels and compute similarity between those two matrices. If you do choose to implement it yourself, take a look at matrix similarity, cosine similarity in particular. A very simple example is here.
Good luck!
Upvotes: 1