-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TST: Compare extracted images against ground truth (#2072)
A function `image_similarity` was introduced which quantifies visual similarities of two images via Mean Squared Error (MSE). This way we can compare the extracted images with what we expect. We cannot make a byte-wise comparison as updates to PIL can change the representation. The new function helps us to ensure that updates to the pypdf code don't break image extraction.
- Loading branch information
1 parent
aad26dd
commit 82e8681
Showing
3 changed files
with
113 additions
and
14 deletions.
There are no files selected for viewing
Submodule sample-files
updated
3 files
+ − | 003-pdflatex-image/page-0-Im1.jpg | |
+ − | 018-base64-image/page-0-QuickPDFImd32aa1ab.png | |
+ − | 019-grayscale-image/page-0-X0.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters