Files
fil/docs/snippets/elixir/ocr/ocr_easyocr.md

12 lines
271 B
Markdown
Raw Normal View History

2026-06-01 23:40:55 +02:00
```elixir title="Elixir"
config_json = Jason.encode!(%{
"ocr" => %{
"backend" => "easyocr",
"language" => "en"
}
})
{:ok, result} = Kreuzberg.extract_file_async("document.pdf", "application/pdf", config_json)
IO.puts("Extracted text: #{result.content}")
```