Android :: Want To Convert Image Captured By Camera To Grayscale?

Jul 8, 2009

I have a camera application that captures a 640x480 image.I want to convert this image to grayscale.I know I have to use the setSaturatio (float sat) in the ColorMatrix method to zero but I don't know how I can set it to grayscale.

Android :: Want to Convert image captured by camera to grayscale?


Android :: Apply / Convert Image From Colored To Grayscale Algorithm To Droid?

Oct 28, 2010

I am trying to use one of these algorithms to convert a RGB image to grayscale :

The lightness method averages the most prominent and least prominent colors:
(max(R, G, B) + min(R, G, B)) / 2.

The average method simply averages the values: (R + G + B) / 3.

The formula for luminosity is 0.21 R + 0.71 G + 0.07 B.
But i get very weird results ! I know there are other ways to achieve this but is it possible to do this way ?

here is the code...

View 4 Replies View Related

Android :: How To Save Camera Captured Image?

Jul 6, 2009

I am working with camera.. I am facing one problem during capturing image.The image is not saving directly to gallery.But when i reboot my device its appearing. Can anybody tell me why this happens.and How can i solve it.

View 4 Replies View Related

Android :: Droid Won't Rotate Image Captured From Camera?

Dec 19, 2009

I'm using this camera code to ask the camera to rotate the captured image data... this seems to work on all phones, except the Droid. Has anyone else seen this? The image data is always landscape, however, the native camera app produces portrait images OK. I wonder if the Droid will only respect the new Camera.Parameters.set Rotation() method, but this seems to only be available in sdk level 5?

View 11 Replies View Related

Android : Need To Extract Text From Image Captured In Camera

Jun 15, 2010

I need to extract text from the image captured in camera. How to do this?

View 5 Replies View Related

Media :: How To Give Effects To Image Captured By Camera?

Jun 28, 2010

I am developing an camera application where i want to capture image and give special effects. can anyone tell me how to work on preview of camera image taken by camera which i have include in application. My application is capturing image and saving it in device.But i want to show the new image according to user's choice for effects(whichever he wants) from inside the application.

View 2 Replies View Related

Android :: Convert A Bitmap To GrayScale In Droid?

Jul 30, 2010

I am new to this site, and I come with a question about Android.

Is there any way to convert a Bitmap to grayscale? I know how to draw a grayscale bitmap (using canvas operations: http://www.mail-archive.com/android-developers@googlegroups.com/msg38890.html) but I really need The actual bitmap in gray colors (or at least something that could be converted to a bitmap later on).
Do I have to implement it by hand (pixel by pixel operations)?

I've searched a lot, and still could not find. Anyone knows a easy/efficient way to do it?

View 2 Replies View Related

Android :: Capture Much Larger Image Than The Current Small Image Captured By G1

Oct 1, 2009

I want to capture much larger image than the current small image captured by the android g1 phone camera.

View 9 Replies View Related

Android :: How To Get URL Of Captured Image?

Jun 26, 2009

I launch an activity to capture a picture from camera:
Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE, null);
i.putExtra("return-data", true);
startActivityForResult(i, PICK_FROM_CAMERA);
Can you please tell me how to get the URI of the capture picture?

View 2 Replies View Related

Android :: Way To Get Back Captured Image?

Nov 12, 2009

I was successful to capture image using Android Camera but when i set this image using ViewImage on my view, it shows me the default android image and its very blurred too. I also have sdcard installed on the emulator. here is my code...

View 2 Replies View Related

How To Get Grayscale Pixel Data From Image Or Preview

May 8, 2013

What I am needing is a method to get grayscale pixel data from an image or preview. I am not interested in saving the picture as a jpeg etc, just need the grayscale data.

I am aiming at API 10 (as this is the device available for testing).

On top of this, I am not having any luck getting the camera to work on the Eclipse emulator.

View 3 Replies View Related

Android :: Image Captured Using Intent I / Very Small

Feb 9, 2009

I am capturing Image from app using:
The image captured using Intent i = new Intent ("android.media.action.IMAGE_CAPTURE");
but it is very small (25*50). Why this is happening?

View 2 Replies View Related

Android :: Built-in Camera Use Folder Called DCIM To Store Captured Images?

Nov 13, 2010

I am developing an app which uses the phone's default camera application to capture an image and then allow the user to perform some basic editing.I want the image captured to be saved in a location that is consistent with the stock camera application. Can I use the DCIM folder and assume all phones will use that location?

View 1 Replies View Related

Android :: Convert An Image Into Base64 Format

Apr 27, 2010

I want to convert a image into Base64 format and send it to server. I have one Base64 class which accept byte array and return a string.I am sending image into chunks of data.I am creating creating one chunk of 100kb. If image is less than 100 kb then image is uploaded on server, but if it is greater than 100kb (i.e when it requires more than one chunk) then it will not uploaded. I think it is because I am converting image into Base64 in parts and on server it decode it only in one shot. Now I want to send a image for conversion of Base64 only in one chunk. But if image is too large then it throw OutOfMemoryException (Obviously after all it is mobile having very limeted resources).

My code is as follows:

CODE:...........

View 2 Replies View Related

Android :: Convert Base64 String To Image

Aug 17, 2010

In an android application we are receiving a byte64 string.I need to convert these strings to images.

View 1 Replies View Related

Android :: Convert Png Or Jpg Image To Base64 String

Aug 20, 2010

In my application i need to convert Image to Base64 format. how i can do that?

View 2 Replies View Related

Android :: Convert Image To Black And White?

Mar 18, 2009

I want to convert my image to black and white. As well i want to apply different image manipulations operations like brightness, contrast etc.. Can anyone tell me how to achieve this functionality?

View 4 Replies View Related

Android : Way To Convert A RelativeLayout With An Imageview To A PNG Image?

Nov 15, 2010

In my Android App Activity, I have a RelativeLayout with one ImageView and a couple of TextViews being populated at runtime. I also have a Save button in the activity that I use to save the image in the ImageView to the device SD Card. Now what I really want to do is Convert the elements (image and the text in the RelativeLayout) together to a PNG image when the Save button is clicked and Save it to the SD Card. Have anyone tried a conversion like this before? It would be very helpful if someone can give me some hints or code snippets on how to go about doing this?

View 1 Replies View Related

Android :: Convert JPEG / Png Image To TIFF Format In OS

Aug 14, 2009

I am developing an app in which i need the image in TIFF format.But in android u can convert your bitmap/image to only JPEG/png image. is there a way to convert JPEG/png file to TIFF format or is there any jar available to do so.

View 2 Replies View Related

Android :: Convert Bitmap Image To Drawable In Droid?

Mar 10, 2010

How can i convert a Bitmap to Drawable.

View 2 Replies View Related

Android :: Tutorial - Sample Code To Convert An Image To Text?

Nov 18, 2009

I would like to convert an image to text. ie take a picture of a receipt. Could someone point me in the direction of a tutorial or sample code.

View 2 Replies View Related

Create App For Convert Image To Text?

Jul 29, 2011

I am tring to create an android app for convert image to text. what are the libraries want i use ect.i use eclips for develop this android app...

View 2 Replies View Related

General :: Convert Raw Image Files To RLE?

Mar 2, 2012

Link for working to565 program which convert raw image files to rle ?

View 1 Replies View Related

General :: Convert Extracted Image To Yaffs2?

Mar 5, 2012

I have some images that I exracted using dump_image. I'm trying to restore them with the MTK Flash Tool. The ones that go on FAT partitions seem to flash fine but the ones that go on yaffs2 partitions don't work.

I think I need a way of converting the images I extracted to yaffs2 images.

View 3 Replies View Related

General :: Convert Image Sequence To Live Wallpaper?

Jul 10, 2012

I have a bunch of image sequences that I want to convert to live wallpapers. Is there a fast and easy way to do this?

View 6 Replies View Related

Android :: Trying To Grayscale Bitmap?

Apr 20, 2009

I am trying to grayscale bitmap as follows, But it is crashing as soon as I run this method.

The problem is in last line. How can I assign "int" to "Color"? Or are there any better ways?

CODE:................

View 9 Replies View Related

Android :: Converting Bitmap To Grayscale

May 20, 2009

I would like to convert a Bitmap to a grayscale array of bytes (one byte per pixel). At the same time I want to just crop at section from the middle. Having looked though the various api's it is not clear to me what the best way would be.

1) What is ALPHA_8? is that grayscale? I have a feeling that the grayscale effect should be done via some "saturation" on the paint object, right?

2) once I have the Bitmap in grayscale and the right size, what is the best way to get that to a byte[] of pixels (one byte per pixel)?

View 2 Replies View Related

Android :: Turn A Color Bmp To Grayscale?

Jul 5, 2010

I've seen this code on the web...

My questions are:
1. Is 'bmp' supposed to be the color bitmap I want to affect?
2. How do I get the 0-255 value of the grayscale?

View 1 Replies View Related

Android :: How To Get Image URI From Camera?

May 6, 2009

I need to start the Camera activity from within my application, take a picture, and return the photo URI to another activity. Surely this should be straightforward? But the Camera API sample code doesn't show how to get the URI. I can't find the answer on this forum, either.

View 14 Replies View Related

Android :: Way To Get Image Uri From Camera?

Mar 8, 2010

I have an application that calls the android phone's default camera to take photo the following is my code...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved