rusto 0.3.2
rusto: ^0.3.2 copied to clipboard
Pure Rust OCR library bindings for Dart and Flutter based on RapidOCR and PaddleOCR.
rusto #
Pure Rust OCR library bindings for Dart and Flutter based on RapidOCR and PaddleOCR.
Features #
- High performance text detection and recognition powered by Rust and ONNX/RTEN
- Structured output with bounding box coordinates, confidence scores, and line frames
- Spatial layout generation preserving physical document geometry
- Seamless FFI integration with zero runtime overhead
Getting Started #
import 'package:rusto/rusto.dart';
final engine = RustO.initialize('{"detection":{"model_path":"det.rten"},"recognition":{"model_path":"rec.rten","dict_path":"dict.txt"}}');
final results = engine.detectTextFile('invoice.png');
for (final line in results) {
print('${line.text} (score: ${line.score})');
}
engine.close();