lukas-blecher / LaTeX-OCR

pix2tex: Using a ViT to convert images of equations into LaTeX code.
https://lukas-blecher.github.io/LaTeX-OCR/
MIT License
12.59k stars 1.03k forks source link

gui does not show the original text #28

Closed j4y33 closed 3 years ago

j4y33 commented 3 years ago

Hey guys,

thanks for working on this, its a cool project. I have installed it and am using the GUI on win10. Here is what i see:

Unbenannt

There is no upper part of the GUI, perhaps its just the copy of the screenshot so its nothing, but just asking if this might impact the functionality.

Finally I would like to know, how can I retranslate the LATEX OCR:

$\scriptstyle\pi(\infty)\;=\;1\times1$

from

function

back into readable format.

Thanks!

lukas-blecher commented 3 years ago

Hello, thanks for your interest in the project.

I don't know why the upper part of the GUI won't show up for you. I would recommend to reinstall the PyQt modules, especially PyQtWebEngine:

pip install -U PyQt5 PyQtWebEngine

In the upper part the predicted LaTeX code will be rendered using MathJax, so there is no performance impact.

For your second question I'm not sure what you mean. Do you want to convert the predicted Latex code into unicode characters? Could you elaborate on that please?

j4y33 commented 3 years ago

Hi

Thank you for the swift answer. First question is solved, donnow whats the problem but since its just in the gui and has no performance impacts it does not bother me.

Second question was somewhat stupid. I meant how to render the LaTex prediction back to the formula. Now I used Katex, works fine!

I also have a question regarding the training, is it right to post it here?

Thanks, cheers Julian

Sent from my iPhone

On 29.07.2021, at 17:31, Lukas Blecher @.***> wrote:

 Hello, thanks for your interest in the project.

I don't know why the upper part of the GUI won't show up for you. I would recommend to reinstall the PyQt modules, especially PyQtWebEngine:

pip install -U PyQt5 PyQtWebEngine In the upper part the predicted LaTeX code will be rendered using MathJax, so there is no performance impact.

For your second question I'm not sure what you mean. Do you want to convert the predicted Latex code into unicode characters? Could you elaborate on that please?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

lukas-blecher commented 3 years ago

So the first two questions are related. The rendering is what the upper window was supposed to do. Have you tried to reinstall the modules?

Regarding the training question you can open a new issue or head over to the discussions.