rusto 0.3.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rusto/__init__.py +58 -0
- rusto/generated/librusto.so +0 -0
- rusto/generated/rusto.py +2767 -0
- rusto-0.3.2.dist-info/METADATA +41 -0
- rusto-0.3.2.dist-info/RECORD +7 -0
- rusto-0.3.2.dist-info/WHEEL +5 -0
- rusto-0.3.2.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rusto
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: Pure Rust OCR library for Python based on RapidOCR and PaddleOCR
|
|
5
|
+
Author-email: RustO Contributors <contact@rusto.dev>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Provides-Extra: test
|
|
10
|
+
Requires-Dist: pytest>=7.0; extra == "test"
|
|
11
|
+
|
|
12
|
+
# RustO for Python
|
|
13
|
+
|
|
14
|
+
[](https://pypi.org/project/rusto/)
|
|
15
|
+
[](https://opensource.org/licenses/MIT)
|
|
16
|
+
|
|
17
|
+
Pure Rust OCR library for Python based on RapidOCR and PaddleOCR architectures.
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pip install rusto
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
```python
|
|
28
|
+
from rusto import RustO, InitializeConfig
|
|
29
|
+
|
|
30
|
+
# Initialize engine with preset or model paths
|
|
31
|
+
engine = RustO.initialize(InitializeConfig(template="ppv6"))
|
|
32
|
+
|
|
33
|
+
# Run OCR detection
|
|
34
|
+
result = engine.detect_text(path="document.png")
|
|
35
|
+
for line in result.results:
|
|
36
|
+
print(f"{line.text} (score: {line.score:.2f})")
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
MIT
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
rusto/__init__.py,sha256=IjbWWZiyk7Q7kq49e4BnYbqDOju-q42ecFdKGFROgig,1467
|
|
2
|
+
rusto/generated/librusto.so,sha256=QmRk3ILh6ilh10p85kwYgoJfDDAbD8GL489wW9BK7OU,5619968
|
|
3
|
+
rusto/generated/rusto.py,sha256=LtwOObTNSr7qnrzsS98wb5sW3VgqjbUIIcdSfOxfMzo,98649
|
|
4
|
+
rusto-0.3.2.dist-info/METADATA,sha256=j3k96MIBD7i1Xx50MKvGxARGm-XVB5aSC8DkxLASRK0,1056
|
|
5
|
+
rusto-0.3.2.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
6
|
+
rusto-0.3.2.dist-info/top_level.txt,sha256=g6cQgA7tsa-0PXglsf68u8rkEdulg54VVFli0kM6Vlg,6
|
|
7
|
+
rusto-0.3.2.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
rusto
|