This commit is contained in:
11
docs/snippets/ruby/config/config_ocr.md
Normal file
11
docs/snippets/ruby/config/config_ocr.md
Normal file
@@ -0,0 +1,11 @@
|
||||
```ruby title="Ruby"
|
||||
require 'kreuzberg'
|
||||
|
||||
config = Kreuzberg::ExtractionConfig.new(
|
||||
ocr: Kreuzberg::OcrConfig.new(
|
||||
backend: 'tesseract',
|
||||
language: 'eng+fra',
|
||||
tesseract_config: Kreuzberg::TesseractConfig.new(psm: 3)
|
||||
)
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user