This commit is contained in:
12
docs/snippets/elixir/config/config_ocr.md
Normal file
12
docs/snippets/elixir/config/config_ocr.md
Normal file
@@ -0,0 +1,12 @@
|
||||
```elixir title="Elixir"
|
||||
config_json = Jason.encode!(%{
|
||||
"ocr" => %{
|
||||
"backend" => "tesseract",
|
||||
"language" => "eng"
|
||||
}
|
||||
})
|
||||
|
||||
{:ok, result} = Kreuzberg.extract_file_sync("scanned.pdf", "application/pdf", config_json)
|
||||
IO.puts("Content length: #{String.length(result.content)}")
|
||||
IO.puts("Tables detected: #{length(result.tables)}")
|
||||
```
|
||||
Reference in New Issue
Block a user