1

Is there a possible way to make Color Blob Detection automatically detect a specified color without pressing it ?

Ex I'll just specify what range of color is I want then it would automatically detect the color with the same range.

2
  • What do you mean by pressing it. Also: define color-range! Commented Sep 13, 2016 at 1:43
  • Color blob detection works by pressing the screen and detect same color of what was being pressed. Commented Sep 13, 2016 at 1:49

1 Answer 1

1

You probably need to use cv::inRange and define your range of colors as (r1,g1,b1) to (r2,g2,b2). E.g.:

cv::inRange(input, cv::Scalar(0,140,0), cv::Scalar(160,255, 160), output);
Sign up to request clarification or add additional context in comments.

2 Comments

what is the color inRange for yellow ?
@Shulz: Scalar(0,100,100) to Scalar(100,255,255)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.