I am browsing the web but no way to find how to get metadata from a picture.
Does anyone has an idea ?
I can't see anything in the Bitmap/BitmapFactory/BitmapFactory.Options documentation that would give me a hint.
I would like to retrieve standard information such as :
name
date it was taken
dimension
size
and maybe more.
Any idea ?
You can get at least the size of the image by setting BitmapFactory.Options.inJustDecodeBounds to true.
If the image is in the MediaStore, you might be able to get more information.
According to this thread
http://osdir.com/ml/AndroidDevelopers/2009-02/msg00821.html
you have to use ImageManager
Related
I need the code to add invisible watermark to another image in Android
As the comments mentioned, Stackoverflow isn't a free coding service. I will provide you with a high level design advice from which you can implement your own code.
Invisible watermark could just be metadata. The point is to make your particular photo unique and identifiable, right? I would recommend you looking into image metadata manipulation for a simple solution.
That being said, if you are looking for some high tech stealthy watermarking, then you might be looking for pixel manipulation. You can change a few of the pixel colors so if it's compared with the original image with the naked eye, it looks identical but if compared with their base64 encoding you can see a difference. Simply create your own pattern as some sort of signature to attach to images to identify them.
Both method allows you to determine if an image is yours due to the "watermark" you leave on it.
Before
After
I found a spectacular example demonstrate how to clear image before OCR, I think much about it and try to analyze it, It was awesome.
Compare with original image , the processed image has :
Remove background and unrelated objects
Remove flash radiance
Enhance text
Scale image to fit the content.
Does anybody know how do this ? I mean which steps ? (grey, scale, threshold,...)
Thank for your reading
Looks like simple segmentation using the color of the text.
I can't seem to find a good answer for this anywhere.
Is it possible to extract the a single pixel rgb directly from an android screen? (Not by taking a screen dump)
I need direct access to what's on the screen.
Any thoughts?
Thanks.
I don't know exactly but I can give you an approach.
if the view's drawingCache enabled you can get bitmap from getDrawingCache and you can get pixel data from that.
If you are using custom views and canvases, you definitely can:
have a look:
http://developer.android.com/reference/android/graphics/Bitmap.html#getPixel(int,int)
i need to retreive properties of video like resolution(height/width) ,file format ,bitrate .. etc ..i used MediaMetadataRetriever to get some properties .Is there any other way of getting those properties.
I seek for the same information and i found that the best solution is use MediaMetadataRetriever
Retrieve the width and Height of a video in Android
I use this solution and the result are perfect, efficient and precise.
referring to the code example of mine
android Remote image Getting problem?
how can i accommodate bigger resolution images in android.
when i try to display bigger resolution image from internet it give me null bitmap.
any one guide me whats the solution?
any help would be appreciated.
i would like to suggest a rather simple way to display high resolution images i.e. if u just want to display them n not store them.
there are some nice answers here. Hope it helps to achieve wat u expect...