- 文件分析
- 知识库管理
- 工作流
- MCP管理
- 数据库开发
- mineruPOST
mineru
开发环境
http://172.29.50.10:2333
开发环境
http://172.29.50.10:2333
POST
/file_parse
请求参数
Query 参数
parse_method
string
ocr txt
示例值:
txt
is_json_md_dump
boolean
可选
示例值:
false
output_dir
string
可选
return_layout
boolean
可选
示例值:
true
return_info
boolean
可选
示例值:
true
return_content_list
boolean
可选
示例值:
true
return_images
boolean
可选
示例值:
true
Body 参数multipart/form-data
file
file
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://172.29.50.10:2333/file_parse'
返回响应
🟢200成功
application/json
Body
layout
array [object {2}]
必需
layout_dets
array [object {4}]
必需
page_info
object
必需
info
object
必需
pdf_info
array [object {12}]
必需
_parse_type
string
必需
_version_name
string
必需
content_list
array [object {7}]
必需
type
string
必需
text
string
必需
text_level
integer
必需
page_idx
integer
必需
img_path
string
可选
img_caption
array[string]
可选
img_footnote
array[string]
可选
images
object
必需
b34de61c0aab79ba6234be8b1729b55f20abac9980088c5c84cd34f63e4fca22.jpg
string
必需
md_content
string
必需
示例
{
"layout": [
{
"layout_dets": [
{
"category_id": 0,
"poly": [
0
],
"score": 0,
"text": "string"
}
],
"page_info": {
"page_no": 0,
"width": 0,
"height": 0
}
}
],
"info": {
"pdf_info": [
{
"preproc_blocks": [
{
"type": "string",
"bbox": [
0
],
"lines": [
{
"bbox": [
0
],
"spans": [
{
"bbox": [
0
],
"score": 0,
"content": "string",
"type": "string"
}
],
"index": 0
}
],
"index": 0,
"blocks": [
{
"type": "string",
"bbox": [
0
],
"group_id": 0,
"lines": [
{
"bbox": [
0
],
"spans": [
{
"bbox": [
0
],
"score": 0,
"type": "string",
"image_path": "string"
}
]
}
],
"index": 0,
"virtual_lines": [
{
"bbox": [
0
],
"spans": [
"string"
],
"index": 0
}
]
}
]
}
],
"layout_bboxes": [
"string"
],
"page_idx": 0,
"page_size": [
0
],
"_layout_tree": [
"string"
],
"images": [
{
"type": "string",
"bbox": [
0
],
"blocks": [
{
"type": "string",
"bbox": [
0
],
"group_id": 0,
"lines": [
{
"bbox": [
0
],
"spans": [
{
"bbox": [
0
],
"score": 0,
"type": "string",
"image_path": "string"
}
]
}
],
"index": 0,
"virtual_lines": [
{
"bbox": [
0
],
"spans": [
"string"
],
"index": 0
}
]
}
],
"index": 0
}
],
"tables": [
"string"
],
"interline_equations": [
"string"
],
"discarded_blocks": [
{
"type": "string",
"bbox": [
0
],
"lines": [
{
"bbox": [
0
],
"spans": [
{
"bbox": [
0
],
"score": 0,
"content": "string",
"type": "string"
}
]
}
]
}
],
"need_drop": true,
"drop_reason": [
"string"
],
"para_blocks": [
{
"type": "string",
"bbox": [
0
],
"lines": [
{
"bbox": [
0
],
"spans": [
{
"bbox": [
0
],
"score": 0,
"content": "string",
"type": "string",
"cross_page": true
}
],
"index": 0
}
],
"index": 0,
"page_num": "string",
"page_size": [
0
],
"bbox_fs": [
0
],
"lines_deleted": true,
"blocks": [
{
"type": "string",
"bbox": [
0
],
"group_id": 0,
"lines": [
{
"bbox": [
0
],
"spans": [
{
"bbox": [
0
],
"score": 0,
"type": "string",
"image_path": "string"
}
]
}
],
"index": 0,
"virtual_lines": [
{
"bbox": [
0
],
"spans": [
"string"
],
"index": 0
}
]
}
]
}
]
}
],
"_parse_type": "string",
"_version_name": "string"
},
"content_list": [
{
"type": "string",
"text": "string",
"text_level": 0,
"page_idx": 0,
"img_path": "string",
"img_caption": [
"string"
],
"img_footnote": [
"string"
]
}
],
"images": {
"b34de61c0aab79ba6234be8b1729b55f20abac9980088c5c84cd34f63e4fca22.jpg": "string"
},
"md_content": "string"
}
修改于 2025-06-12 01:13:26