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
Refactor image block extraction in pdf partitioning (#3514)
Closes
[#3503](#3503).
### Summary
This PR prevents creation of `figures` directory for saving image blocks
(`Image`, `Table`) when `extract_image_block_to_payload` parameter is
set to True
### Testing
```
elements = partition_image(
filename="example-docs/img/embedded-images-tables.jpg",
strategy="hi_res",
extract_image_block_types=["Image", "Table"],
extract_image_block_to_payload=True,
)
```
**Results:**
- `Main` Branch: `figures` directory is created.
- `PR`: `figures` directory is not created.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
-
## 0.15.2-dev7
1
+
## 0.15.2-dev8
2
2
3
3
### Enhancements
4
4
5
+
***Improve directory handling when extracting image blocks**. The `figures` directory is no longer created when the `extract_image_block_to_payload` parameter is set to `True`.
6
+
5
7
### Features
6
8
7
9
***Added per-class Object Detection metrics in the evaluation**. The metrics include average precision, precision, recall, and f1-score for each class in the dataset.
0 commit comments