By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,668 Members | 1,477 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,668 IT Pros & Developers. It's quick & easy.

how to know metrix(x,y) of color in the image with OpenCV

P: 1
i would like to know position of color
EX. i draw rectangle (10,10) to (256,256) green color
and i print(img[10,10]) >> [255,0,0]
but i need to know where position is [255,0,0]
if i have the image some point is green but i don't know position

import cv2
import numpy as np
img = cv2.imread('BG-Black.jpg')




Jul 10 '18 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.