Azure-Samples / Azure-Samples/document-intelligence-code-samples

Layout Model: Extract images from within images

Đang mở
#116 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
201
Fork
115
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I have extracted images ("figures") with the Layout model successfully, but within some images there are some nested images like in this example:

Image

The pink frame surrounds a detected image but within that image, there is another image (the green leaves symbol) that is not detected by the Layout model.

The respective code example also knows just one "hierarchy" and it seems it only detects the "outer" image but not the Inner" image (i.e. the greens leave pic):

```
if result.figures:
for figures_idx,figures in enumerate(result.figures):
print(f"Figure # {figures_idx} has the following spans:{figures.spans}")
for region in figures.bounding_regions:
print(f"Figure # {figures_idx} location on page:{region.page_number} is within bounding polygon '{region.polygon}'")
```

I would like to extract the green leaves image inside the "outer" image as well.

Is that possible?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.