How to detect blue color object using opencv -


I'm using that to detect blobs of a certain color. On that guide, it checks the orange blob and uses these values:

  int orange [3] = {200, 250, 10};  

On the guide it says that this value represents orange in HSV.

I do not know how they calculate these values, but I try to check the value of the blue color converted from RGB to HSV but it does not work. I want to find this color:

this color

How to fix HSV value to detect colors, any ideas? For blue , it can be used as HSV values: thanks!

[120,255,255]

I call it GIMP An open source image processing tool like Photoshop. Similarly you can use any tool to do this.

But remember in OpenCV, Hu from 0-180, S = 0-255, V = 0-255

but in GIMP, Strong> This is H = 0-360, S = 0-100, V = 0-100 . So you have to implement scaling accordingly.

Many interactive sites are available on Googling, you can try it.

  • Check how to change these values ​​
  • Or you can see OpenCV docs to see how it works in OpenCV:

I have affixed the connection to you here:

Enter Image description here

Enter image details here


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -