将ocr解析模块独立出来
This commit is contained in:
25
ocr/requirements.txt
Normal file
25
ocr/requirements.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
# OCR PDF处理模块依赖
|
||||
# 核心依赖
|
||||
numpy>=1.21.0
|
||||
opencv-python>=4.5.0
|
||||
pillow>=8.0.0
|
||||
pdfplumber>=0.9.0
|
||||
onnxruntime>=1.12.0
|
||||
trio>=0.22.0
|
||||
|
||||
# 几何计算依赖
|
||||
shapely>=1.8.0
|
||||
pyclipper>=1.2.0
|
||||
|
||||
# Web框架依赖
|
||||
fastapi>=0.100.0
|
||||
uvicorn[standard]>=0.23.0
|
||||
pydantic>=2.0.0
|
||||
|
||||
# 模型下载依赖
|
||||
huggingface_hub>=0.16.0
|
||||
|
||||
# 可选依赖(用于GPU检测和加速)
|
||||
# torch>=1.12.0 # 如果需要GPU支持,取消注释并安装
|
||||
# onnxruntime-gpu>=1.12.0 # 如果需要GPU支持,取消注释并安装
|
||||
|
||||
Reference in New Issue
Block a user