-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
First of all, I would like to send a big thank you to the author of this special and super-useful project.
I am sorry for the possibly really dumb question, but it is unclear to me how to run the GUI from terminal in Linux. So, how to do it?
I am also trying to figure out how to manually call the GUI with the --gnome option, but if I understand this commit well, there has been an implementation to automatically run the GUI under gnome-screenshot.
Though, when I launch the GUI with pix2tex --gui or latexocr it runs the normal interface, which in my specific instance happens to be useless because when I click on snip my display turns completely white - so that it is impossible to select a proper area - until I am in the screenshot environment in which you left-click and drag to draw the box for the snip to be collected and be forecast.
On the opposite, when I simply launch gnome-screenshot it runs as it is intended to, so it seems that the auto-call for a --gnome option when calling latexocr or pix2tex --gui does not work in my case.
I read this, this, this, and, as mentioned, this.
My attempts were
latexocr --gnome--->pix2tex: error: unrecognized arguments: --gnomepix2tex --gui --gnome||pix2tex --gnome||pix2tex --gnome-screenshot--->pix2tex: error: unrecognized arguments: --gnome-screenshotlatexocr --gnome-screenshot||pix2tex --gui --gnome-screenshot||pix2tex --gui -gnome--->pix2tex: error: unrecognized arguments: -gnomelatexocr -gnome---> ||
I am using the LXQt Desktop Environment v. 0.14.1 (Lubuntu)
~$ pip show pix2tex
Name: pix2tex
Version: 0.0.29
Summary: pix2tex: Using a ViT to convert images of equations into LaTeX code.
Home-page: https://github.com/lukas-blecher/LaTeX-OCR/
Author: Lukas Blecher
Author-email: [email protected]
License: MIT
Location: ~/.local/lib/python3.8/site-packages
Requires: PyYAML, torch, timm, numpy, munch, einops, requests, opencv-python-headless, albumentations, Pillow, tqdm, x-transformers, pandas, transformers, tokenizers
~$ uname -a
Linux 5.15.0-50-generic #56~20.04.1-Ubuntu SMP Tue Sep 27 15:51:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
~$ gnome-screenshot --version
gnome-screenshot 3.36.0
Thank you once more!