Azure-Samples / Azure-Samples/document-intelligence-code-samples
Layout Model: Extract images from within images
- Lingua principale
- C#
- Stelle
- 201
- Fork
- 115
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I have extracted images ("figures") with the Layout model successfully, but within some images there are some nested images like in this example:
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?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
No file or test is named. Start by reviewing the Layout model figure example in issue #116 and determine whether nested images are exposed by the model; done means establishing whether the inner green-leaves image can be extracted and documenting or implementing the supported behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure
- Ambito
- ai
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100