Get pixel location using mouse click/events
Get pixel location using mouse click/events Question: I wish to collect the pixel location (row-i, col-i) by right-clicking the mouse when the image is displayed. This is a simple example about a picture downloaded from the internet: import urllib import cv2 from win32api import GetSystemMetrics path_image = urllib.urlretrieve(“http://www.bellazon.com/main/uploads/monthly_06_2013/post-37737-0-06086500-1371727837.jpg”, “local-filename.jpg”)[0] img = cv2.imread(path_image,0) width = GetSystemMetrics(0) …