Detect RGB color interval with OpenCV and C++

后端 未结 3 1570
北荒
北荒 2020-12-09 00:43

I would like to detect a red colored object in a video or image, with OpenCV and C++. What algorithms are available to do this?

I would like to do a comparison of th

3条回答
  •  青春惊慌失措
    2020-12-09 01:12

    In that case, try to find out any unique feature for your required square which distinguish it from other squares.

    For eg,

    1) Color of square:- If color is different from all other squares, you can check inside each square, and select square with required color, as explained by mevatron.

    2) Size of square :- If you know size of square, then compare size of each square and select best.

提交回复
热议问题