Files
fil/docs/snippets/elixir/config/tesseract_config.md

16 lines
341 B
Markdown
Raw Permalink Normal View History

2026-06-01 23:40:55 +02:00
```elixir title="Elixir"
config_json = Jason.encode!(%{
"ocr" => %{
"backend" => "tesseract",
"language" => "eng+deu",
"tesseract_config" => %{
"psm" => 6,
"oem" => 3
}
}
})
{:ok, result} = Kreuzberg.extract_file_sync("scanned.pdf", "application/pdf", config_json)
IO.puts("OCR text: #{result.content}")
```