Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Extracting only blue from given image

$
0
0
Hi Guys I Have an input image as ![image description](/upfiles/14555562032060474.jpg) I Have used the following code to brighten blue import cv2 import numpy as np Image = cv2.imread('blue.jpg') Threshold = np.zeros(Image.shape, np.uint8) cv2.threshold(Image, 121, 255, cv2.THRESH_BINARY, Threshold) cv2.imshow("WindowName", Threshold ) cv2.waitKey(0) cv2.destroyAllWindows() The output of this code is ![image description](/upfiles/14555562656283098.jpg) I want to extract only the blue portion of this image and eliminate the remaining .. The output should be anything like these images ![image description](/upfiles/14555564283149103.jpg) ![image description](/upfiles/1455556559518630.jpg) ![image description](/upfiles/14555566288211703.jpg) I am using python2.7 with cv2

Viewing all articles
Browse latest Browse all 41027

Trending Articles



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