pip install simplecv
python
from SimpleCV import Image, Color, DrawingLayer
python
img = Image("example.jpg")
min_color = Color(20, 50, 50)
max_color = Color(40, 255, 255)
segmented_img = img.inRange(min_color, max_color)
blobs = segmented_img.findBlobs()
img.dl().width(3)
for blob in blobs:
img.dl().circle((blob.x, blob.y), 20, color=Color.RED)
img.show()