You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feat: improve image extraction by supporting all types of image elements detected by detection models (#286)
Closes#285.
### Summary
- support extracting elements with types `Picture` and `Figure`
- add a class `ElementType` for the element type constants and use the
constants to replace element type strings
### Testing
PDF:
[algebra-graph-level1-1.pdf](https://github.com/Unstructured-IO/unstructured-inference/files/13368976/algebra-graph-level1-1.pdf)
```
from unstructured_inference.inference.layout import DocumentLayout
doc = DocumentLayout.from_file(
filename="algebra-graph-level1-1.pdf",
extract_images_in_pdf=True,
)
```
0 commit comments