Выбор правильных нижних и верхних границ в CV2
# I've found some color spaces.
# RED COLOR
lowwerBound = np.array([150, 100, 100])
higherBound = np.array([180, 255, 255])
# BLUE COLOR
lowwerBound = np.array([100, 155, 84])
higherBound = np.array([150, 255, 255])
# GREEN COLOR
lowwerBound = np.array([50, 100, 100])
higherBound = np.array([80, 255, 255])
# ORANGE YELLOW
lowwerBound = np.array([10, 100, 100])
higherBound = np.array([40, 255, 255])
# Now you can play around with these hsv scales to get the best results
Code Sir