Hi Guys
I have the following image

I want to know if there is any method which basically removes black and blue box from the image and the final image contains only orange , green pink and light blue box i.e. I want my output image to be displayed as

I am using python 2.7 with cv2
**Update**
Following the suggestion give by @StevenPuttemans
I converted my given image to HSV using following code
img = cv2.imread('Image.jpg')
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
cv2.imshow('hsv',hsv)
I got output as

What procedure should i follow next to get my output as shown in 2nd image.
↧