System information (version)
- OpenCV => :3.4.3.18
- Operating System / Platform => Linux (Raspberry Pi 3 Model B)
- Compiler => Thonny Python IDE
Hello,
I wrote a simple image display script in Python ( imageDisplay.txt) that cycles through 3 jpg images stored in the same folder. When I click on the right side of the picture, the next picture in the cycle should be displayed. When I click on the left side of the picture the previous image in the cycle should be displayed. The x coordinates on my screen range from 0 to ~1300 so I set a left-side click to be x<600 and a right-side click to be x>600.
My script works perfectly on a Windows 64 bit computer, however it doesn't work when I run it on my Raspberry Pi Model 3. I'm not sure if it's a Linux problem or if there's some sort of incompatibility with the Pi. When I click the right side of the image once, x correctly displayed as a value greater than 600. However, when I click the exact same spot again a second time, a value less than 600 is display. As I continue clicking the exact same spot, the x coordinate alternates between correct/incorrect x values .
In the screenshot below, I clicked the exact same spot on the right side of my image each time and printed out the associated x coordinate. As you can see, the x coordinate alternates between x>600 and x<600.
I have a similar problem with the y coordinates. Am I missing something? Any help is greatly appreciated, this really has me stumped. Thank you!