Install latex-ocr with
pip install "pix2tex[gui]"
It can be run directly using “latexocr”, which should be “installed” under ~/.local/bin
But it has problem with QT running out of the box on 22.04. The following fixed it.
sudo apt-get install libxcb-cursor0