This commit is contained in:
18
docs/snippets/rust/ocr/config_ocr.md
Normal file
18
docs/snippets/rust/ocr/config_ocr.md
Normal file
@@ -0,0 +1,18 @@
|
||||
```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()
|
||||
};
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user