Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HSV value for black

Tags:

opencv

hsv

I'm writing a C++ code which can identify color black. I want to use HSV color space, but I cannot find the value range for black. Can anybody provide me the value range for color black in HSV color space?

like image 263
Damon Avatar asked Mar 22 '23 05:03

Damon


2 Answers

In the HSV color space black color is represented by any point (H,S,V) having V = 0. To visualise this see the cylindrical 3D models in the HSV wiki which make it very easy to understand.

like image 118
Tomas Camin Avatar answered Apr 02 '23 07:04

Tomas Camin


Black hairs filter

hair_color_low=[0,0,0]
hair_color_high=[360,255,50]

BLACK HAIRS2 BLACK HAIRS

like image 35
quine9997 Avatar answered Apr 02 '23 08:04

quine9997