mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-10 21:10:55 +08:00
Expose the PP-OCRv6 engine through a stable C ABI and installable shared and static libraries, plus a ctypes Python package that follows the RapidOCR call shape. Keep AVX-512 out of the AVX2 object file and speed up GEMM accumulate and the AArch64 GEMM tile. Co-authored-by: Daniel <znsoft@163.com>
41 lines
1019 B
TOML
41 lines
1019 B
TOML
[build-system]
|
|
requires = ["scikit-build-core>=0.10"]
|
|
build-backend = "scikit_build_core.build"
|
|
|
|
[project]
|
|
name = "rapidocr"
|
|
version = "5.0.0a1"
|
|
description = "PP-OCRv6 OCR with the native RapidOCR C++ engine"
|
|
readme = "README.md"
|
|
requires-python = ">=3.9"
|
|
license = "Apache-2.0"
|
|
authors = [{ name = "SWHL", email = "liekkaskono@163.com" }]
|
|
keywords = ["ocr", "ppocr", "rapidocr"]
|
|
classifiers = [
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: C++",
|
|
]
|
|
dependencies = [
|
|
"numpy>=1.21",
|
|
"Pillow>=9.0",
|
|
"PyYAML>=6.0",
|
|
]
|
|
|
|
[project.urls]
|
|
Documentation = "https://rapidai.github.io/RapidOCRDocs"
|
|
Repository = "https://github.com/RapidAI/RapidOCR"
|
|
|
|
[project.scripts]
|
|
rapidocr = "rapidocr.main:main"
|
|
|
|
[tool.scikit-build]
|
|
cmake.source-dir = ".."
|
|
cmake.build-type = "Release"
|
|
cmake.args = ["-DPPOCR_BUILD_EXAMPLES=OFF", "-DPPOCR_BUILD_TESTS=OFF"]
|
|
wheel.packages = ["src/rapidocr"]
|
|
minimum-version = "0.10"
|
|
|
|
[tool.scikit-build.cmake.define]
|
|
PPOCR_BUILD_SHARED = "ON"
|
|
PPOCR_BUILD_STATIC = "OFF"
|