This commit is contained in:
11
docs/snippets/elixir/ocr/ocr_easyocr.md
Normal file
11
docs/snippets/elixir/ocr/ocr_easyocr.md
Normal file
@@ -0,0 +1,11 @@
|
||||
```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}")
|
||||
```
|
||||
Reference in New Issue
Block a user