[project] name = "bid-doctor-ocr" version = "0.1.0" description = "标博士 OCR 服务:页面图片 → 文字行 + 坐标(架构 §3.5、vision-plan §4.2)。worker 通过 HTTP 调用,不连数据库" requires-python = ">=3.12" dependencies = [ "rapidocr>=3.10,<4", # PP-OCRv6 small 检测 / 识别模型(tech-validation §7.1) "onnxruntime>=1.20", "numpy>=2", "pillow>=11", "fastapi>=0.115", "uvicorn>=0.32", ] [project.scripts] bid-doctor-ocr = "bid_doctor_ocr.app:main" [build-system] requires = ["hatchling>=1.26"] build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["src/bid_doctor_ocr"] [tool.ruff] line-length = 120 target-version = "py312" [tool.ruff.lint] select = ["E", "F", "W", "I", "B", "UP", "SIM", "RUF", "ASYNC", "S", "BLE"] ignore = ["RUF001", "RUF002", "RUF003", "S101"]