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

ERROR: Unable to read text from image, did not copy #59

Open
matclab opened this issue Feb 2, 2023 · 2 comments
Open

ERROR: Unable to read text from image, did not copy #59

matclab opened this issue Feb 2, 2023 · 2 comments

Comments

@matclab
Copy link

matclab commented Feb 2, 2023

On recent Arch linux with i3wm window manager I often get ERROR: Unable to read text from image, did not copy.

I have :

  • python-pyqt5 : 5.15.8
  • python-pyqt5-sip: 12.11.1
  • python-pillow: 9.4.0
  • python-pytesseract: 0.3.10
@matclab
Copy link
Author

matclab commented Feb 2, 2023

Trying in venv with exact dependencies from requirements.txt doesn't solve the problem.

Modifying getWindow to save image show that the grabWindow function return an all black image.

    def getWindow(self):
        res = self._screen.grabWindow(0)
        res.save("/tmp/a.png", "PNG")
        return res

@matclab
Copy link
Author

matclab commented Feb 2, 2023

Note that it sometimes work, but I didn't find a common scenario. I'll try to investigate more.

I tried with and without compositor (picom) but it doesn't improve the situation.

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

1 participant