Commit Graph

32 Commits (823b5923ac75977d223ad98c69baa971ffe5cb6b)

Author SHA1 Message Date
Mike Gerber 23821cba57 ✔ Do not delete test workspace when DEBUG env variable is set 2 years ago
Mike Gerber 2c54a265a6 ✔ Fix tests to use the new filenames
OCR-D seems to create the files in the output file group with a new
naming scheme (based on file group name and page id); Adjust the tests
accordingly.

It's probably not the best approach to expect certain filenames, and
it would be better to use METS/the OCR-D API to ask for a certain page
and it's file, but for now we use this.
2 years ago
Gerber, Mike 9866b06e87 🔐 Use a safe temporary directory for the test workspace 2 years ago
Gerber, Mike ecb0d67567 ✔️ Handle PAGE XML namespace dynamically and without hardcoding 3 years ago
Robert Sachunsky 0f80198892 test: workaround for core#809 3 years ago
Robert Sachunsky 5fddd32929 test: use other fileGrp to avoid assets#87 3 years ago
Robert Sachunsky 1f0252d0d7 test: workspace download instead of urllib 3 years ago
Robert Sachunsky 59089fbe89 test: use resmgr for downloading model 3 years ago
Robert Sachunsky 7661662e3e test: fix initLogging 3 years ago
Robert Sachunsky 332d02b13e
adapt to checkpoint_dir only 3 years ago
Gerber, Mike 41a48455f8 ✔️ Explicitly check for None
Explicitly check for None to remove this warning:

  test/test_recognize.py::test_word_segmentation
    /home/mike/devel/ocrd_calamari/test/test_recognize.py:133: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
      assert line
4 years ago
Gerber, Mike f4c0fe8570 🐛 Fix small merge merge error (text not checked in test_recognize_should_warn_if_given_rgb_image_and_single_channel_model) 4 years ago
Gerber, Mike c0902cdef5 Merge branch 'master' into image-features 4 years ago
Konstantin Baierer d6804bd9c3 fix typos 4 years ago
Konstantin Baierer 83adfcfd5a implement "checkpoint_dir" parameter as a simpler alternative to "checkpoint" 4 years ago
Gerber, Mike 8fcd331fbd Merge branch 'feat/update-calamari1' 4 years ago
Gerber, Mike 0e59c2317a 👷🏾‍♂️ Use gt4histocr-calamari1/ as directory name for the Calmari 1 model 4 years ago
Gerber, Mike 046e3e8ee3 🚧 Tests: Add some TODOs re data + namespace version changes 4 years ago
Gerber, Mike 027fcd7d75 🐛 Fix test file path 4 years ago
Gerber, Mike ef3fb44fb5 Allow controlling of output hierarchy level, e.g. only line, not words+glyphs 5 years ago
Gerber, Mike 0f0bae18ba Remove GT text to not accidently check it instead of OCR text 5 years ago
Gerber, Mike 82fe0333f1 Test word segmentation (Fixes #30) 5 years ago
Gerber, Mike 9010250911 ♻ test: Move binarization into the workspace fixture 5 years ago
Gerber, Mike 377466a71a Add test to check if we warn when processing a "raw"/RGB image with a single-channel model 5 years ago
Gerber, Mike f20eb3ba45 🎨 Refactor model path constant into a variable 5 years ago
Gerber, Mike 5273247ab3 Remove broken __main__ handling (stick to pytest) 5 years ago
Gerber, Mike e1b9d381a0 Actually binarize the image (not grayscale!) 5 years ago
Gerber, Mike e07b333db1 Convert to a pytest style test 5 years ago
Gerber, Mike 99d04ddccb Fix tests by 1. binarizing and 2. use the GT4HistOCR model 5 years ago
Gerber, Mike e1f57b2638 🐛 Open our test result with UTF-8 encoding (for Python 3.6?) 5 years ago
Gerber, Mike d8212ced93 Use GT segmentation to test 5 years ago
Konstantin Baierer b54ccf90f7 smoke test, circle ci
Conflicts:
	Makefile
	ocrd_calamari/__init__.py
5 years ago