Textract Analyze document for Tables issue
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- aws, opencv, python
- Lĩnh vực
- cloud, computer-vision
Hướng nghiên cứu
Không có tệp hoặc bài kiểm thử nào trong repository được nêu tên. Trước tiên, hãy tái hiện kết quả của Amazon Textract Analyze Document từ các mẫu bảng đính kèm, sau đó so sánh đầu vào và đầu ra OpenCV ban đầu với đầu vào và đầu ra thresholded. Công việc được xem là hoàn tất khi đã xác nhận được nguyên nhân hoặc có một fix đáng tin cậy, được tài liệu hóa và cũng tính đến các hình ảnh màu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 449
- Fork
- 262
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aws-samples/amazon-textract-code-samples
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 32/100
Tất cả issue của aws-samples/amazon-textract-code-samples
Issue tương tự
-
area: providers/aws priority: p2 size: S type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
finos/open-resource-broker#418 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
GCP region parser selects the wrong region for multi-digit region numbersCó thể đã có người làm @nawaaaaaAaar đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
mlco2/codecarbon#1438 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[terraform-ibm-vpc-private-path] Missing `private_path_published` output on Private Path NLBĐang mởenhancement internal-synced
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
azureblob: sync at the account root fails on soft deleted containers and deletes nothingCó thể đã có người làm @LudovicBondon đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 3 ngày
-
enhancement internal-synced
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
terraform-ibm-modules/terraform-ibm-landing-zone-vsi-autoscale#258 ·