Commit Graph

30 Commits (master)

Author SHA1 Message Date
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 2 years ago
Robert Sachunsky 0f80198892 test: workaround for core#809 2 years ago
Robert Sachunsky 5fddd32929 test: use other fileGrp to avoid assets#87 2 years ago
Robert Sachunsky 1f0252d0d7 test: workspace download instead of urllib 2 years ago
Robert Sachunsky 59089fbe89 test: use resmgr for downloading model 2 years ago
Robert Sachunsky 7661662e3e test: fix initLogging 2 years ago
Robert Sachunsky 332d02b13e
adapt to checkpoint_dir only 2 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
3 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) 3 years ago
Gerber, Mike c0902cdef5 Merge branch 'master' into image-features 3 years ago
Konstantin Baierer d6804bd9c3 fix typos 3 years ago
Konstantin Baierer 83adfcfd5a implement "checkpoint_dir" parameter as a simpler alternative to "checkpoint" 3 years ago
Gerber, Mike 8fcd331fbd Merge branch 'feat/update-calamari1' 3 years ago
Gerber, Mike 0e59c2317a 👷🏾‍♂️ Use gt4histocr-calamari1/ as directory name for the Calmari 1 model 3 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 4 years ago
Gerber, Mike 0f0bae18ba Remove GT text to not accidently check it instead of OCR text 4 years ago
Gerber, Mike 82fe0333f1 Test word segmentation (Fixes #30) 4 years ago
Gerber, Mike 9010250911 ♻ test: Move binarization into the workspace fixture 4 years ago
Gerber, Mike 377466a71a Add test to check if we warn when processing a "raw"/RGB image with a single-channel model 4 years ago
Gerber, Mike f20eb3ba45 🎨 Refactor model path constant into a variable 4 years ago
Gerber, Mike 5273247ab3 Remove broken __main__ handling (stick to pytest) 4 years ago
Gerber, Mike e1b9d381a0 Actually binarize the image (not grayscale!) 4 years ago
Gerber, Mike e07b333db1 Convert to a pytest style test 4 years ago
Gerber, Mike 99d04ddccb Fix tests by 1. binarizing and 2. use the GT4HistOCR model 4 years ago
Gerber, Mike e1f57b2638 🐛 Open our test result with UTF-8 encoding (for Python 3.6?) 4 years ago
Gerber, Mike d8212ced93 Use GT segmentation to test 4 years ago
Konstantin Baierer b54ccf90f7 smoke test, circle ci
Conflicts:
	Makefile
	ocrd_calamari/__init__.py
4 years ago