# Mouse coordinates on image

**URL:** <https://forum.opencv.org/t/mouse-coordinates-on-image/5366>\
**Category:** Uncategorized\
**Tags:** highgui\
**Created:** [September 27, 2021, 10:21am UTC](https://forum.opencv.org/t/mouse-coordinates-on-image/5366 "2021-09-27T10:21:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gau09](https://avatars.discourse-cdn.com/v4/letter/g/fbc32d/32.png) [@Gau09](https://forum.opencv.org/u/Gau09)\
**Post date:** [September 27, 2021, 10:21am UTC](https://forum.opencv.org/t/mouse-coordinates-on-image/5366/1 "2021-09-27T10:21:02Z")

</div>

Hi,  
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](https://youtu.be/A29IqeahI84?t=381).  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/8/8c6765600a53c71b989f6f9663b0de872af2d6bb.jpeg)

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [September 27, 2021, 12:43pm UTC](https://forum.opencv.org/t/mouse-coordinates-on-image/5366/2 "2021-09-27T12:43:14Z")

</div>

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.
