Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

choosing the correct lower and upper bounds in 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
 
PREVIOUS NEXT
Tagged: #choosing #correct #upper #bounds
ADD COMMENT
Topic
Name
7+8 =