超级公式开放平台API
  1. API列表
超级公式开放平台API
  • 一分钟,带您了解超级公式
  • 使用前阅读的基础信息
  • API列表
    • 【图片】公式识别
      POST
    • 【图片】查询公式识别结果
      POST
    • 【转换】Latex转MathML
      POST
    • 【转换】Latex转Word
      POST
    • 【转换】Latex转SVG
      POST
    • 【PDF】PDF公式识别
      POST
    • 【PDF】查询PDF识别进度
      POST
    • 【账户】查询API调用次数
      POST
  1. API列表

【图片】查询公式识别结果

POST
/v2/image/get_result

请求参数

Header 参数
Content-Type
string 
必需
示例值:
application/json
x-api-key
string 
必需
x-md5
string 
必需
timestamp
string 
必需
Body 参数multipart/form-data
task_id
string 
必需
字符串类型,开发者任务ID,可通过task_id查询识别结果
示例值:
2020100110254545

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.ocrmath.com/v2/image/get_result' \
--header 'x-api-key;' \
--header 'x-md5;' \
--header 'timestamp;' \
--form 'task_id="2020100110254545"'

返回响应

🟢201成功
application/json
Body
code
integer 
必需
>= 0<= 0
data
#/definitions/16456065
必需
Could not resolve '#/definitions/16456065'
示例
{
    "errno": 0,
    "data": {
        "task_id": 2020100110254545,
        "rotate_degrees": 0,
        "latex": "情形 2: 当 $R_{m}^{i N}-k_{i N} d<c_{m}^{N}-\\alpha s_{m}+R_{m}, \\quad \\beta s_{p}>\\max \\left\\{c_{p}^{O C}-c_{p}^{G C}-(1-\\theta)\\left(R_{p}^{O C}-R_{p}^{G C}\\right)\\right.$ ,",
        "line_detail_data": [
            {
                "postion": [
                    [
                        0,
                        6
                    ],
                    [
                        810,
                        6
                    ],
                    [
                        810,
                        42
                    ],
                    [
                        0,
                        42
                    ]
                ],
                "latex": "情形 2: 当 $R_{m}^{i N}-k_{i N} d<c_{m}^{N}-\\alpha s_{m}+R_{m}, \\quad \\beta s_{p}>\\max \\left\\{c_{p}^{O C}-c_{p}^{G C}-(1-\\theta)\\left(R_{p}^{O C}-R_{p}^{G C}\\right)\\right.$ ,"
            }
        ]
    }
}
修改于 2022-08-24 13:47:25
上一页
【图片】公式识别
下一页
【转换】Latex转MathML
Built with