Mouse coordinates on image

I would like to know if it is possible to get the mouse coordinates on an image like we see in this video Identify objects moving on a conveyor belt using Opencv with Python - YouTube.

get a build of OpenCV that has the Qt toolkit enabled, or set a mouse callback. it’s all described in the documentation for the highgui module of OpenCV.