This repository contains codes on how to handle mouse event using OpenCV. In this video on OpenCV Python Tutorial For Beginners, I am going to show How to Handle Mouse Events in OpenCV Python. OpenCV supports and detects of mouse click events. These Mouse events include mouse clicks (like left-button down, left-button up, left-button double-click etc) and movements over an attached OpenCV window. Capturing mouse click events with Python and OpenCV is easy.
The most important function is the callback method which is just a line of code;

cv2.setMouseCallback(‘image’, click_event_callback_function)


View Github