enkr1
How to use AWS.Textract?
Hi community,
I am going to implement textract for my project and I’m facing an issue using AWS.Textract — aws-elixir v0.13.1, I have tried to look into the function and I am still quite lost …
I don’t have a solution and I hope someone out there could provide me a better example on how to use AWS.Textract — aws-elixir v0.13.1
Thank you so much in advance ![]()
Best wishes,
Jing Hui P.
Marked As Solved
enkr1
Managed to find the solution!!! ![]()
encoded_file_str = File.read!("sample-1.png") |> Base.encode64()
AWS.Client.create("XXX", "XXX", "ap-southeast-1")
|> AWS.Textract.analyze_document(%{
"Document" => %{"Bytes" => encoded_file_str},
"FeatureTypes" => ["TABLES"]
})
Thanks @benwilson512 for the hints!!!
3
Also Liked
benwilson512
Author of Craft GraphQL APIs in Elixir with Absinthe
Are you editing this file in your deps folder? If so make sure to mix deps.compile aws_elixir afterward, changes those files are not automatically picked up.
AnalyzeDocument - Amazon Textract documents the input shape, I don’t see either ContentMD5 or Body as parameters.
1
Popular in Questions
Hello, I get Persian date from my client and convert it to normal calendar like this:
def jalali_string_to_miladi_english_number(persi...
New
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
Hi all,
Trying to get some more clarity over utc_datetime and naive_datetime for Ecto:
https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
Hello,
I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these
buyer = %{
id: ...
New
Using vs code and installed ElixirLS: support and debugger.
And I got an error popped up on start up says
Failed to run ‘elixir’ comma...
New
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New
After calling mix ecto.create I get this error:
17:00:32.162 [error] GenServer #PID<0.412.0> terminating
** (Postgrex.Error) FATAL...
New
Expanding on this topic: https://forum.elixirforum.net/t/map-typespec-question/19217
Let’s say I have a map with required and optional k...
New
Hi everyone!
I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
Other popular topics
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
Hi there,
I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!)
This post collects co...
New
Hi folks,
Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
New
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: )
Hello all, this is ...
New
Hi,
I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New








