FreeTex 旨在提供高效、准确且易于使用的公式识别体验。
采用本地部署的模型,无需联网调用,数据隐私得到充分保障。
自动调用独立显卡进行推理(仅限v0.1.0)。
支持手写、印刷、扫描等多种类型的图像识别。
支持上传图像、截图、粘贴三种操作模式,并支持快捷键,提升效率。
识别结果支持直接一键复制成word或latex格式,无需额外操作。
使用python构建,支持Windows、Linux、MacOS等不同平台运行。
1. Windows系统:下载软件安装包 (此处可添加链接)
2. 打开软件,开始使用
功能 | 快捷键 |
---|---|
截图 | Ctrl+Alt+Q |
上传 | Ctrl+U |
粘贴 | Ctrl+V |
conda create -n freetex python=3.10
conda activate freetex
pip install -r requirements.txt
由于unimernet的requirements会自动安装最新CPU版的pytorch,需要卸载并重新安装gpu版本的pytorch(及对应的torchvision):
pip install torch==2.4.0 torchvision==0.19.0 --index-url https://download.pytorch.org/whl/cu118
下载unimernet_small模型放置在models
下:
cd models
git lfs install
git clone https://huggingface.co/wanderkid/unimernet_small
python main.py