Installed pynput in a new virtual environment and tried to track mouse and keyboard events. Keyboard presses were handled successfully but when a mouse event was ...
if event == cv2.EVENT_RBUTTONDOWN: blue = img[y, x, 0]# 0 is the channel for blue(BGR) green = img[y, x, 1]# 1 is channel for green red = img[y, x, 2]# 2 is channel for red ...