OpenCV detect color Automatically -
is there possible way make color blob detection automatically detect specified color without pressing ?
ex i'll specify range of color want automatically detect color same range.
you need use cv::inrange
, define range of colors (r1,g1,b1) (r2,g2,b2). e.g.:
cv::inrange(input, cv::scalar(0,140,0), cv::scalar(160,255, 160), output);
Comments
Post a Comment