{"id":14008440,"url":"https://github.com/blaisewang/img2latex-mathpix","last_synced_at":"2025-10-02T19:30:21.705Z","repository":{"id":48696692,"uuid":"211710523","full_name":"blaisewang/img2latex-mathpix","owner":"blaisewang","description":"Mathpix has changed their billing policy and no longer has free monthly API requests. This repo is now archived and will not receive any updates for the foreseeable future.","archived":true,"fork":false,"pushed_at":"2021-01-22T01:33:38.000Z","size":11934,"stargazers_count":1389,"open_issues_count":4,"forks_count":208,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-09-29T04:23:12.138Z","etag":null,"topics":["javafx","latex","ocr"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blaisewang.png","metadata":{"files":{"readme":"README-ZH.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-29T18:52:34.000Z","updated_at":"2024-09-24T13:18:52.000Z","dependencies_parsed_at":"2022-08-31T09:10:39.191Z","dependency_job_id":null,"html_url":"https://github.com/blaisewang/img2latex-mathpix","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaisewang%2Fimg2latex-mathpix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaisewang%2Fimg2latex-mathpix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaisewang%2Fimg2latex-mathpix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaisewang%2Fimg2latex-mathpix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blaisewang","download_url":"https://codeload.github.com/blaisewang/img2latex-mathpix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235038253,"owners_count":18926237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javafx","latex","ocr"],"created_at":"2024-08-10T11:01:40.933Z","updated_at":"2025-10-02T19:30:16.372Z","avatar_url":"https://github.com/blaisewang.png","language":"Java","funding_links":[],"categories":["Java","ReserchTools","人工智能"],"sub_categories":[],"readme":"# Image2LaTeX\n\n[English](https://github.com/blaisewang/img2latex-mathpix#readme) | 中文\n\n[![Codacy Badge](https://img.shields.io/codacy/grade/89cd8aa01451404f8d782ead0b4d153d?logo=codacy\u0026style=flat-square)](https://www.codacy.com/manual/blaisewang/img2latex-mathpix)\n[![Build Status](https://img.shields.io/travis/com/blaisewang/img2latex-mathpix/master?logo=travis\u0026style=flat-square)](https://travis-ci.com/blaisewang/img2latex-mathpix)\n[![Releases](https://img.shields.io/github/v/release/blaisewang/img2latex-mathpix?include_prereleases\u0026style=flat-square)](https://github.com/blaisewang/img2latex-mathpix/releases)\n[![Downloads](https://img.shields.io/github/downloads/blaisewang/img2latex-mathpix/total?\u0026style=flat-square)](https://github.com/blaisewang/img2latex-mathpix/releases)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?color=ff69b4\u0026style=flat-square)](http://makeapullrequest.com)\n[![License](https://img.shields.io/github/license/blaisewang/img2latex-mathpix?style=flat-square)](https://github.com/blaisewang/img2latex-mathpix/blob/master/LICENSE)\n\n[Snip](https://mathpix.com/) 是由 Mathpix 打造的一款出色的应用。\n它可以帮助你提取文档中的公式、基本表格、或者文本将其转换为 LaTeX 和 MathML 格式，并每月提供给所有用户免费 50 次识别（通过 **.edu** 或 **.ac.uk** 邮箱注册每月获得 100 次识别）。\n\n在 [MathpixOCR API](https://mathpix.com/ocr/) 以及 [Image2LaTeX](https://github.com/blaisewang/img2latex-mathpix/) 这款补充应用的帮助下，你可以每月免费进行 1000 次的 OCR 识别。\n\nImage2LaTeX 是一个个人项目，仅保留了 Snip 的核心功能——将图片转换为特定 LaTeX 格式的公式或文本。\n如果需要进阶功能，请每月 4.99 美元订阅 Snip。\n\n## 功能\n\n查看 MathpixOCR 网站 [fetures](https://mathpix.com/ocr#features) 章节来了解其 API 的功能。\n\n### 新功能\n\n- API 调用次数统计（仅供参考）。\n- 新 TSV OCR 格式用于 Microsoft Excel 等应用。\n- 新 MathML OCR 格式用于 Microsoft Word 等应用。\n- 支持[多选](https://mathpix.com/blog/mathpix-text-endpoint)、[段落](https://mathpix.com/blog/snip-2.0)、[基础表格](https://mathpix.com/blog/v1-table-recognition)的识别。\n- 支持使用 HTTP 代理发出 OCR 请求。\n\n## 使用要求\n\n- [MathpixOCR 控制台](https://dashboard.mathpix.com/) 中的 API keys（与 Snip 不是同一个账号体系）。\n\n## 运行\n\n在程序第一次启动时输入你的 API keys（不含单引号）。\n\nmacOS 和 Windows 用户可以在系统托盘找到 `Preferences` 菜单项中的 `API Credentials` 来修改你的 API keys。\n\nLinux 用户可以通过在应用内任意位置右键单击的方式打开 `Preferences` 对话框。\n\n**注意，**，应用不会将你的 API keys 发送给除 MathpixOCR API 服务器之外的任何人（查看 [OCRRequestHelper.java](https://github.com/blaisewang/img2latex-mathpix/blob/master/src/main/java/io/OCRRequestHelper.java) 了解你的 API keys 是如何被使用的）。\n\n## 使用\n\n### macOS\n\n执行 `Image2LaTeX.app`。\n\n### Windows\n\n执行 `Image2LaTeX.exe`。\n\n### Linux\n\n执行 `Image2LaTeX-linux/bin/` 目录下的 `Image2LaTeX` 或者终端执行以下命令：\n\n```bash\n./Image2LaTeX\n```\n\n使用操作系统默认的方式（或者其他工具）对公式或文本进行截取（macOS 默认为 Shift (⇧)-Control (⌃)-Command (⌘)-4）后，\n按下 `空格` 键预览截图，或者直接按下 `回车` 键发送 OCR 请求。\n\n查看下面的[展示](#展示)章节了解使用流程。\n\n## 展示\n\n![demo](demo/demo.gif)\n\n## 常见问题\n\n### 在 Microsoft Word 中 使用 MathML\n\n要修复矩阵或分数周围的括号，从公式右侧的下拉菜单中单击 `Professional` 选项。\n\n### 订阅新版本的发布\n\n查看GitHub这篇关于关注和取消关注仓库的发行版的[文章](https://help.github.com/cn/github/receiving-notifications-about-activity-on-github/watching-and-unwatching-releases-for-a-repository)。\n\n## 问题\n\n当遇到错误时，请首先阅读 Mathpix OCR [API 文档](https://docs.mathpix.com/#error-id-types) 中关于 Error Types 章节以及[已报告的问题](https://github.com/blaisewang/img2latex-mathpix/issues)。\n\n### 遇到了尚未报告的问题 🤔\n\n欢迎使用 [bug](https://github.com/blaisewang/img2latex-mathpix/labels/bug) 或者 [question](https://github.com/blaisewang/img2latex-mathpix/labels/question) 标签提出 [issue](https://github.com/blaisewang/img2latex-mathpix/issues) ， 但是非紧急问题的修复时间无法保证.\n\n## 贡献\n\n本项目欢迎各类贡献。\n包括错误修正、新功能、代码格式指导等的 [Pull Requests](https://github.com/blaisewang/img2latex-mathpix/pulls) 将会尽快被审核。\n\n## 贡献者 ✨\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://nyxflower.github.io/\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/38955723?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eHao Xu\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#ideas-NYXFLOWER\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://blog.gongyan.me\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/14838533?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003e龚焱\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#ideas-gongyan200\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"#tutorial-gongyan200\" title=\"Tutorials\"\u003e✅\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/wtbsw\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/14332504?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eBOB\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/blaisewang/img2latex-mathpix/issues?q=author%3Awtbsw\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/blaisewang/img2latex-mathpix/commits?author=wtbsw\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/YuiTH\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/22416062?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eYuiTH\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/blaisewang/img2latex-mathpix/issues?q=author%3AYuiTH\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/Xyzhao1999\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/23482405?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eXyzhao\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/blaisewang/img2latex-mathpix/commits?author=Xyzhao1999\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/edward9503\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/39060488?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eedward9503\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/blaisewang/img2latex-mathpix/issues?q=author%3Aedward9503\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n## 开源许可证\n\n[Apache License 2.0](https://github.com/blaisewang/img2latex-mathpix/blob/master/LICENSE)。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblaisewang%2Fimg2latex-mathpix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblaisewang%2Fimg2latex-mathpix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblaisewang%2Fimg2latex-mathpix/lists"}