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 ADDED
@@ -0,0 +1,58 @@
1
+ """RustO - High performance OCR engine powered by Rust."""
2
+
3
+ from __future__ import annotations
4
+ import os
5
+ import sys
6
+
7
+ # Ensure host library directory is in search path
8
+ _current_dir = os.path.dirname(os.path.abspath(__file__))
9
+ _repo_target_debug = os.path.abspath(os.path.join(_current_dir, "../../../target/debug"))
10
+ _repo_target_release = os.path.abspath(os.path.join(_current_dir, "../../../target/release"))
11
+
12
+ for _candidate in [_current_dir, _repo_target_debug, _repo_target_release]:
13
+ if os.path.isdir(_candidate) and _candidate not in sys.path:
14
+ sys.path.insert(0, _candidate)
15
+
16
+ from .generated.rusto import (
17
+ RustO,
18
+ RustOProtocol,
19
+ InitializeConfig,
20
+ DetectionConfig,
21
+ RecognitionConfig,
22
+ ClassificationConfig,
23
+ OrientationConfig,
24
+ UnwarpConfig,
25
+ CalibrationOptions,
26
+ OcrRunOptions,
27
+ DetectionRunOptions,
28
+ PostprocessRunOptions,
29
+ Frame,
30
+ RustoBindingError,
31
+ ImageSource,
32
+ OutputGranularity,
33
+ TextResult,
34
+ DetectTextResult,
35
+ OptimizationOptions,
36
+ )
37
+
38
+ __all__ = [
39
+ "RustO",
40
+ "RustOProtocol",
41
+ "InitializeConfig",
42
+ "DetectionConfig",
43
+ "RecognitionConfig",
44
+ "ClassificationConfig",
45
+ "OrientationConfig",
46
+ "UnwarpConfig",
47
+ "CalibrationOptions",
48
+ "OptimizationOptions",
49
+ "OcrRunOptions",
50
+ "DetectionRunOptions",
51
+ "PostprocessRunOptions",
52
+ "Frame",
53
+ "RustoBindingError",
54
+ "ImageSource",
55
+ "OutputGranularity",
56
+ "TextResult",
57
+ "DetectTextResult",
58
+ ]
Binary file