I want to Reading Color from Android Application. Here I have developed one Application, in which from Camera, I am reading the color. I want to perform some action while reading/catching red color in my camera.
Please guide me regarding this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One of the possible solutions is that, you can get the Color of an individual pixel of a bitmap using,
bitmap.getPixel(int x, int y)
You should have the image as a Bitmap object and should specify the x and y co-ordinates of the pixel for which you want the color.
Bear in mind that, checking pixel-by-pixel is time consuming and not an effective method.