This commit is contained in:
Matthias Bisping 2022-02-05 14:47:28 +01:00
parent f5f60c57da
commit 512d217b05

View File

@ -54,8 +54,8 @@ def annotate_boxes_in_pdf(pdf_path, page_index=1):
page = pdf2image.convert_from_path(pdf_path, first_page=page_index + 1, last_page=page_index + 1)[0]
page = np.array(page)
asd = find_redactions(page)
page = annotate_poly(page, asd)
redaction_contours = find_redactions(page)
page = annotate_poly(page, redaction_contours)
fig, ax = plt.subplots(1, 1)
fig.set_size_inches(20, 20)