This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Commit 1ac6f5e
authored
fix: Add handling for documents missing all layout elements. (#161)
* fix: Add handling for documents missing all layout elements.
- Bounding boxes will show up as 0,0,0,0
- Fixes #160
* docs: Add information about return value of `get_bounding_box()`
* fix: Addressed coment and moved if statement1 parent a702231 commit 1ac6f5e
3 files changed
Lines changed: 16 additions & 0 deletions
File tree
- google/cloud/documentai_toolbox/utilities
- tests/unit
- resources
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
664 | 674 | | |
665 | 675 | | |
666 | 676 | | |
| |||
0 commit comments