문제

I'll be creating an Android Application that determines the freshness of meat using it's RGB. The flow of the application would be:

  1. Capture an image
  2. Determine the freshness by clicking one button
  3. Displaying the result based from it's RGB.

I have a problem in the RGB part. Hope somebody can help me with this matter.

올바른 솔루션이 없습니다

다른 팁

If you are using Processing this could be useful.

Use Processing to scan an image pixel by pixel, so they could be compare to find pattern's in the image.

PImage sample;

void setup() {
  size(300,300);
  sample = loadImage("sample.jpg");

  sample.loadPixels();
  image(sample,0,0,300,300);
}

void draw() {    
  //Loop to scan the image pixel by pixel
  for (int x=0; x < sample.width; x++){
    for (int y=0; y < sample.height; y++){

      int location = x + (y * sample.width);
      // Whit the location you can get the current color
      color currentColor = sample.pixels[loc];
      //Do something

    }
  }
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top