Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
843a1acf
Commit
843a1acf
authored
Jul 12, 2024
by
myhloli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(readme): update installation and usage instructions
parent
80d0db4d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
README.md
README.md
+2
-1
README_zh-CN.md
README_zh-CN.md
+3
-2
No files found.
README.md
View file @
843a1acf
...
...
@@ -90,7 +90,7 @@ pip install magic-pdf
# For complete parsing capabilities (including high-precision model parsing)
pip
install
magic-pdf[full-cpu]
#
Additionally
, you will need to install the dependency detectron2.
#
For high-precision model parsing
, you will need to install the dependency detectron2.
# For detectron2, compile it yourself as per https://github.com/facebookresearch/detectron2/issues/5114
# Or use our precompiled wheel
...
...
@@ -136,6 +136,7 @@ In magic-pdf.json, configure "models-dir" to point to the directory where the mo
###### simple
```
bash
#If the full version is installed, you can invoke the built-in models for parsing.
magic-pdf pdf-command
--pdf
"pdf_path"
--inside_model
true
```
After the program has finished, you can find the generated markdown files under the directory "/tmp/magic-pdf".
...
...
README_zh-CN.md
View file @
843a1acf
...
...
@@ -84,8 +84,8 @@ pip install magic-pdf
# 完整解析功能(含内置高精度模型解析功能)
pip
install
magic-pdf[full-cpu]
#
另外需要
安装依赖 detectron2
# detectron2需要编译安装,自行编译安装可以参考https://github.com/facebookresearch/detectron2/issues/5114
#
只有在需要高精度模型解析功能时,您需要额外
安装依赖 detectron2
# detectron2
需要编译安装,自行编译安装可以参考https://github.com/facebookresearch/detectron2/issues/5114
# 或直接使用我们编译好的的whl包,不同系统请自行选择适配包安装
# windows
...
...
@@ -125,6 +125,7 @@ cp magic-pdf.template.json ~/magic-pdf.json
###### 直接使用
```
bash
# 已安装full版本可以调用内置模型进行解析
magic-pdf pdf-command
--pdf
"pdf_path"
--inside_model
true
```
程序运行完成后,你可以在"/tmp/magic-pdf"目录下看到生成的markdown文件,markdown目录中可以找到对应的xxx_model.json文件
...
...
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