You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
321 B
Python
14 lines
321 B
Python
import cv2
|
|
from pathlib import Path
|
|
from tests.base import main
|
|
from src.eynollah.utils.pil_cv2 import check_dpi
|
|
|
|
|
|
def test_dpi():
|
|
fpath = str(Path(__file__).parent.joinpath('resources', 'kant_aufklaerung_1784_0020.tif'))
|
|
assert 230 == check_dpi(cv2.imread(fpath))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main(__file__)
|