title: OpenCV Android Green Color Detection
body: <p>currently I'm making an app where user will detect green colors. I use this photo for testing:
  <a href="https://i.stack.imgur.com/6NLzv.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/6NLzv.jpg" alt="enter image description here"></a></p>
  
  <p>My problem is that I can not detect any green pixel. Before I worked with blue color and everything worked fine. Now I can't detect anything though I tried different combinations of <code>RGB</code>. I wanted to know whether it's problem with green or my detection range, so I made an image in paint using <code>(0, 255, 0)</code> and it worked. Why it can't see this circle then? I use this code for detection:</p>
  
  <pre><code>Core.inRange(hsv_image, new Scalar([I change this value]), new Scalar(60, 255, 255), ultimate_blue);
  </code></pre>
  
  <p>It could have been that I set wrong Range, but I use Photoshop to get color of one of green pixels and convert <code>RGB</code> value of it into <code>HSV</code>. Yet it doesn't work. It don't detect even pixel that I've sampled. What's wrong? Thanks in advance.</p>
  
  <p>Using Miki's answer:</p>
  
  <p><a href="https://i.stack.imgur.com/tkvs3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tkvs3.png" alt="enter image description here"></a></p>