Textract Analyze document for Tables issue
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- aws, opencv, python
- Ambito
- cloud, computer-vision
Direzione di ricerca
Non viene indicato alcun file o test del repository. Inizia riproducendo il risultato di Amazon Textract Analyze Document a partire dagli esempi di tabelle allegati, quindi confronta gli input e gli output OpenCV originali e thresholded. Il lavoro sarà completato quando sarà stata confermata una causa oppure sarà disponibile un fix affidabile e documentato che tenga conto anche delle immagini a colori.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi,
I found an issue while extracting tables from a document using Analyze. My Textract OCR identified proper table with correct Bbox. Now, If I am using the same info and trying to extract text, I am missing some information. Here are the samples for that.
Below Image is the cropped image which I got using Bbox info from textract ocr output.
Analyze Document output (after some postprocessing like including markdowns) : "\n\n | n pricing | ¥10,000/ton of CO2, utilized in our investment decision-making, awards program, etc. |\n|---|---|\n| of climate change issues into of executives | Attainment of "promoting sustainability," including climate change-relat initiatives. reflected in performance-linked remuneration |"
If you observe the image and output clearly, I am getting missed "Internal Carbo" in first row and "Incorporation" and "Remuneration" in second row of 1st cell.
For this, I tried to apply canvas with the page size from which I fetched the table and created below image. Still it is giving me same output.
Now, I went ahead and tried to add thresholding and got this image as an output.
Interestingly, this provided proper output - "\n\n | Internal carbon pricing | ¥10,000/ton of CO2, utilized in our investment decision-making, awards program, etc. |\n|---|---|\n| Incorporation of climate change issues into remuneration of executives | Attainment of "promoting sustainability," including climate change-related initiatives, reflected in performance-linkeo remuneration |"
Here is the way, I created sample threshold -
_, binary_image = cv2.threshold(image, 127, 255, cv2.THRESH_BINARY)
But there will be problem with colored images, the solution which I proposed won't work as it makes things worst.
This is the issue I found and the some hack, If there is anything interesting rather than this please feel free to post the solution.
I ask AWS team to have a look over and fix this issue.
- Lingua principale
- Jupyter Notebook
- Stelle
- 449
- Fork
- 262
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aws-samples/amazon-textract-code-samples
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 32/100
Tutte le issue di aws-samples/amazon-textract-code-samples
Issue simili
-
enhancement needs-triage service/kinesisanalyticsv2
Difficoltà 1/5 1-3 ore Idoneità per principianti 75/100
hashicorp/terraform-provider-aws#50261 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
certimate-go/certimate#1471 ·
-
Add a check for GitHub flexible federated identity credentials missing an immutable repository claimForse già presa @harshit3355 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
bridgecrewio/checkov#7714 ·
I maintainer di solito rispondono entro 1 giorno
-
alicloud_nas_file_system: support Agentic storage typeForse già presa @BaoZhiFei l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
aliyun/terraform-provider-alicloud#10730 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100