Quantcast
Viewing all articles
Browse latest Browse all 41027

Problem in removing particular colors from the given image

Hi Guys I have the following image ![Input Image](/upfiles/14546023145839483.bmp) 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 ![Output Image](/upfiles/14545981914295119.bmp) 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 ![Intermediate Output](/upfiles/1454602036781814.png) What procedure should i follow next to get my output as shown in 2nd image.

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>