Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
d9406e5b
"references/vscode:/vscode.git/clone" did not exist on "42e7f1f0366450cec1dd26a4ec8eb9675ecddc6e"
Unverified
Commit
d9406e5b
authored
Feb 14, 2025
by
shniubobo
Browse files
docs(web_api): Update `README.md`
parent
acd0deb1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
24 deletions
+36
-24
projects/web_api/README.md
projects/web_api/README.md
+36
-24
No files found.
projects/web_api/README.md
View file @
d9406e5b
基于MinerU的PDF解析API
#
基于MinerU的PDF解析API
- MinerU的GPU镜像构建
- 基于FastAPI的PDF解析接口
-
MinerU的GPU镜像构建
-
基于FastAPI的PDF解析接口
支持一键启动,已经打包到镜像中,自带模型权重,支持GPU推理加速,GPU速度相比CPU每页解析要快几十倍不等
## 构建方式
```
docker build -t mineru-api .
```
## 启动命令
:
或者使用代理
:
```
docker build --build-arg http_proxy=http://127.0.0.1:7890 --build-arg https_proxy=http://127.0.0.1:7890 -t mineru-api .
```
```
docker run -itd --name=mineru_server --gpus=all -p 8888:8000 quincyqiang/mineru:0.1-models```
## 启动命令

```
docker run --rm -it --gpus=all -v ./paddleocr:/root/.paddleocr -p 8000:8000 mineru-api
```
具体截图请见博客:https://blog.csdn.net/yanqianglifei/article/details/141979684
初次调用 API 时会自动下载 paddleocr 的模型(约数十 MB),其余模型已包含在镜像中。
## 测试参数
## 启动日志
:
访问地址
:

```
http://localhost:8000/docs
http://127.0.0.1:8000/docs
```
##
输入参数:
##
旧版镜像地址
访问地址:
http://localhost:8888/doc
s
> 阿里云地址:docker pull registry.cn-beijing.aliyuncs.com/quincyqiang/mineru:0.1-models
>
> dockerhub地址:docker pull quincyqiang/mineru:0.1-model
s
http://127.0.01:8888/docs

## 旧版截图
##
解析效果:
##
# 启动命令


具体截图请见博客:https://blog.csdn.net/yanqianglifei/article/details/141979684
### 启动日志
## 镜像地址:

> 阿里云地址:docker pull registry.cn-beijing.aliyuncs.com/quincyqiang/mineru:0.1-models
### 测试参数
> dockerhub地址:docker pull quincyqiang/mineru:0.1-models

##
构建方式:
##
# 解析效果
1. 拷贝`hantian/layoutreader`,`opendatalab/PDF-Extract-Kit-1.0`,`paddleocr`模型到当前目录。
2. `docker build --build-arg http_proxy=http://127.0.0.1:7890 --build-arg https_proxy=http://127.0.0.1:7890 -t mineru-api .`

Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment