mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-09 20:29:55 +02:00
check_dpi: use OcrdExif instead identify callout
This commit is contained in:
parent
0a92543245
commit
8c603ae16d
3 changed files with 38 additions and 16 deletions
10
tests/test_dpi.py
Normal file
10
tests/test_dpi.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from pathlib import Path
|
||||
from sbb_newspapers_org_image.utils.pil_cv2 import check_dpi
|
||||
from tests.base import main
|
||||
|
||||
def test_dpi():
|
||||
fpath = Path(__file__).parent.joinpath('resources', 'kant_aufklaerung_1784_0020.tif')
|
||||
assert 300 == check_dpi(str(fpath))
|
||||
|
||||
if __name__ == '__main__':
|
||||
main(__file__)
|
Loading…
Add table
Add a link
Reference in a new issue