I am trying to build a GUI for a camera where the user has to click on the second image and 3 mouse coordinates have to be registered. I used dpg.get_mouse_pos(local = True) to register the coordinates.
Issue:
While the second click on the same pixel returns exact pixel values of the image, the first click is offset by +108 pixels in width.
The issue can be followed also on discord.
To Reproduce
Steps to reproduce the behavior:
Run the code.
Click button Start Camera -> Capture frame
Click on any pixel in the right image window keep the mouse in the same position
Note the pixel value printed in the GUI
Click the same pixel again
Note the value decrease by 108 pixels ( Decreased value is the correct value)
In the actual code, in which the camera is connected, the offset is 180px.
Version of Dear PyGui
Version: 1.5.1 Operating System: Ubuntu 20.04
My Issue/Question
I am trying to build a GUI for a camera where the user has to click on the second image and 3 mouse coordinates have to be registered. I used
dpg.get_mouse_pos(local = True)
to register the coordinates.Issue:
While the second click on the same pixel returns exact pixel values of the image, the first click is offset by +108 pixels in width. The issue can be followed also on discord.
To Reproduce
Steps to reproduce the behavior:
Start Camera
->Capture frame
Step 2
Expected behavior
Same pixel values on both first and second clicks
Screenshots/Video
https://user-images.githubusercontent.com/75990547/164757359-da1868a7-78d8-4d78-8b76-fb9b8154c181.mp4
In the video above, I have used a pointer highlighter to differentiate the first and the second click.
Code for execution: