This commit is contained in:
16
docs/snippets/ruby/config/tesseract_config.md
Normal file
16
docs/snippets/ruby/config/tesseract_config.md
Normal file
@@ -0,0 +1,16 @@
|
||||
```ruby title="Ruby"
|
||||
require 'kreuzberg'
|
||||
|
||||
config = Kreuzberg::ExtractionConfig.new(
|
||||
ocr: Kreuzberg::OcrConfig.new(
|
||||
language: 'eng+fra+deu',
|
||||
tesseract_config: Kreuzberg::TesseractConfig.new(
|
||||
psm: 6,
|
||||
oem: 1,
|
||||
min_confidence: 0.8,
|
||||
tessedit_char_whitelist: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 .,!?',
|
||||
enable_table_detection: true
|
||||
)
|
||||
)
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user