In my application I want to capture an image and compare it with a stored image to know if they are similar.
What API/technology/third party application can I use to make this happen?
You can use the OpenCV library:
http://sourceforge.net/projects/opencvlibrary/
Take a look at this answer for ideas how to solve your problem:
Simple and fast method to compare images for similarity
Related
I'm a beginner in android and i want to load some images from internet in my app. I heard about libraries such as Glide and Picasso. Can anyone please tell me which library is the best.
In your title you use the word "quickly". Theres no such thing, unless you have a cache implementation. As you pointed out those two libraries help in retrieving images from the web and displaying them into imageView, also support cache features so that images previously displayed can load faster in the near future.
Simple example of Picasso:
Picasso.get().load("http://i.imgur.com/DvpvklR.png").into(imageView);
Want to know more about cache in Picasso? Check out this answer
According to this article here both are really nice to be used , but I would suggest Picasso because it just updated to 3.0 + it is lighter than Glide when it comes to :
library size and method count .
I want to know how to "easily" display a gif image (animated) ...in android.
Is there a custom library or something like that, maybe a .jar I can download and use it to link a .gif resource and display it an an activity ?
I know this has been asked a lot of times on SO, but there's not one easy solution, and a beginner like me could get lost easily.
I'm looking for something like what Picasso does in displaying images from URLs...
Google search didn't find me anything, only empty questions with half hearted not working/ deprecated answers.
As a last resort, here I am.
So, is there an easy way to display .gifs in an android ?
(Possibly, as easy as displaying text or an image ?)
Follow the below tutorial which explains how to use gif image in android:
http://droid-blog.net/2011/10/14/tutorial-how-to-use-animated-gifs-in-android-part-1/
you can use this library it does support GIF
https://github.com/koush/ion
Suggestions on the best (preferably easiest way) to compare two images in android.
The first image is in my SD Card.
The second image was taken using Camera in android.
How to measure percentage similarity between those 2 images??
Thanks a lot.
Android does not provide any picture comparison algorithms for you.
Therefore, you will need to write one yourself - one that fits your needs, since not all image comparison algorithms/techniques are the same, and some work better in some cases than others.
You might want to start by looking at the SIFT technique, and find an image matching algorithm that suits your requirements.
I'm trying to build a gallery where the images within will be pulled from the images URL from a website. i.e. Instead of doing R.drawable.xxxx.jpg, you use a url to represent the image.
Is this possible? If so, can you show me an example in code?
Thanks
this might be old post, but hey this library from github might be helpful
Android Image Loader
Also, on Application class, set the option to MaxPriority for better outcome.
Cheers,
Hope this helps...
Long time reader never posted until now.
Im having some trouble with Android, im implementing a library called JJIL its an open source imaging library.
My problem is this i need to run some analysis on an image and to do
so i need to have it in jjil.core.image format and once those
processes are complete i need to convert the changed image from
jjil.core.image to java.awt.image.
I cant seem to find a method of doing this does anyone have any ideas
or have any experience with this?
I would be grateful of any help.
Danny
You should let others know what you found... probably you found that android.graphics.Bitmap has a getPixel(x,y) method that returns an int representing the ARGB value?
http://developer.android.com/reference/android/graphics/Bitmap.html
I have done some serious research into this and i have found that i can extract the rgb values of a bitmap image with a similar method.
But the threshold that i was using the previous library for is now not possible because i have had to abandon the use of this library.
Is there a way to use colour matrix's to threshold the image? Or better still is there an inbuilt method that would do this automatically?
Thank you for any help.
Danny