Detect circles with specific colors using opencv
问题 I have to detect yellow circles in an image using OpenCV and python, as shown in the first image: Once I detect the yellow circle, I have to highlight it, like so: I am new to OpenCV, so I was looking for some guidance or help. All help is appreciated 回答1: Here's a potential approach: Convert image to HSV Find upper/lower color boundaries and create a mask Find contours and filter using the number of vertices We convert image to HSV and then determine lower and upper boundaries to create a