edspdf.visualization.annotations
show_annotations
Show Box annotations on a PDF document.
| PARAMETER | DESCRIPTION |
|---|---|
pdf |
Bytes content of the PDF document
TYPE:
|
annotations |
List of Box annotations to show
TYPE:
|
colors |
Colors to use for each label. If a list is provided, it will be used to color
the first
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
List[PpmImageFile]
|
List of PIL images with the annotations. You can display them in a notebook
with |
compare_results
Compare two sets of annotations on a PDF document.
| PARAMETER | DESCRIPTION |
|---|---|
pdf |
Bytes content of the PDF document
TYPE:
|
pred |
List of Box annotations to show on the left side
TYPE:
|
gold |
List of Box annotations to show on the right side
TYPE:
|
colors |
Colors to use for each label. If a list is provided, it will be used to color
the first
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
List[PpmImageFile]
|
List of PIL images with the annotations. You can display them in a notebook
with |