LaTeX-OCR icon indicating copy to clipboard operation
LaTeX-OCR copied to clipboard

Add integration of raycast and wox

Open Zeqiang-Lai opened this issue 2 years ago • 3 comments

Add integration of raycast and wox, so that we can use any screenshot app to capture latex image and pass it to latexOCR server via pix2tex.api.

BTW: It seems that current pypi package doesn't include pix2tex.api due to the lack of __init__.py

Example usage of Raycast on macOS:

raycast

Zeqiang-Lai avatar May 14 '22 10:05 Zeqiang-Lai

Hi, thanks for your contribution!

I'll look at it in more detail when I find the time. Right now I'm not sure what the added value is. I'm guessing you are running the API on a remote server? Not sure about supporting multiple solutions for the different operating systems. And what about linux?

lukas-blecher avatar May 15 '22 16:05 lukas-blecher

There is a cross-platform launcher that supports Linux, i.e., cerebro. We can write a plugin for it, so that we can achieve the same thing for Linux.

The main target users are those who have Raycast or Wox already installed, otherwise they could use the Python GUI directly without installing additional software.

The integration is suitable for those who:

  1. Fail to install QT dependency to launch Python GUI, like me.
  2. Don't want to mess up their environment with a lot of torch things.
  3. Have a powerful accessible GPU machine, but often use a laptop and want LatexOCR run faster.

Install all the dependencies on the use's macOS or Windows machine might be difficult and error-pruning. For my case, I have a GPU server that installed all the torch things, so I don't want to install them on my mac again.

Nevertheless, user can still run the API on their local machine, but they don't need to deal with QT things this time.

Zeqiang-Lai avatar May 16 '22 01:05 Zeqiang-Lai

Ok, I like the idea. Though, I'd prefer it if the API url is read from some settings file.

lukas-blecher avatar May 17 '22 09:05 lukas-blecher