Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image pan and zoom in and out from center are not working #13

Open
divyachandana opened this issue Feb 20, 2020 · 1 comment
Open

Image pan and zoom in and out from center are not working #13

divyachandana opened this issue Feb 20, 2020 · 1 comment

Comments

@divyachandana
Copy link

divyachandana commented Feb 20, 2020

could you integrate code for image pan and also image zoom in and out from center, currently its zooming form top left corner. I would be great If you could integrate the code and update ASAP

  • OS: mac os

  • PyQt version: 5

  • Error: Segmentation fault: 11

  • Solution: open labelImg.py, go to line 175, comment this line.

        self.filedock.setWidget(fileListContainer)

        self.zoomWidget = ZoomWidget()
        # self.colorDialog = ColorDialog(parent=self)

        self.canvas = Canvas()
@mu0gua
Copy link

mu0gua commented Dec 11, 2021

I also encountered the same problem

I tried to solve him in a bad way

filepath:  roLabelImg-master\libs\canvas.py    line: 159

if Qt.LeftButton & ev.buttons():
            self.MouseMove = ev.pos() - self.preMousePosition
            self.preMousePosition = ev.pos() 
            self.prevPoint = self.pos() + self.MouseMove
            self.move(self.prevPoint)
                
filepath:  roLabelImg-master\libs\canvas.py    line: 225

self.preMousePosition = ev.pos()

If you have any good plan, please contact me, thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants