19 lines
471 B
Markdown
19 lines
471 B
Markdown
```rust title="Rust"
|
|
use kreuzberg::{ExtractionConfig, OcrConfig, TesseractConfig};
|
|
|
|
fn main() {
|
|
let config = ExtractionConfig {
|
|
ocr: Some(OcrConfig {
|
|
backend: "tesseract".to_string(),
|
|
language: "eng+fra".to_string(),
|
|
tesseract_config: Some(TesseractConfig {
|
|
psm: 3,
|
|
..Default::default()
|
|
}),
|
|
..Default::default()
|
|
}),
|
|
..Default::default()
|
|
};
|
|
}
|
|
```
|