This article is mouse click event OpenCV tutorial, we will use python to get coordinates of mouse click on image. Then using those coordinates we will draw rectangle on image with mouse OpenCV. After that, we will crop that area of interest from that image. In this way, we will check the mouse click event of the image and use this mouse click event OpenCV.
To do that we need to follow below steps:
- Create blank matrix to store coordinates of mouse click on image
- Store coordinates of mouse click in matrix
- Draw circle on image with mouse click
- Draw rectangle on image with mouse click
- Crop region of interest
https://thinkinfi.com/detect-mouse-click-events-with-python-opencv/