23821cba57 
								
							 
						 
						
							
							
								
								✔ Do not delete test workspace when DEBUG env variable is set  
							
							
							
						 
						
							2023-03-13 19:35:04 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								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. 
							
						 
						
							2023-03-13 17:14:50 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								9866b06e87 
								
							 
						 
						
							
							
								
								🔐  Use a safe temporary directory for the test workspace  
							
							
							
						 
						
							2022-09-15 17:00:22 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								ecb0d67567 
								
							 
						 
						
							
							
								
								✔️  Handle PAGE XML namespace dynamically and without hardcoding  
							
							
							
						 
						
							2022-02-24 18:41:21 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Robert Sachunsky 
								
							 
						 
						
							
							
							
							
								
							
							
								0f80198892 
								
							 
						 
						
							
							
								
								test: workaround for core#809  
							
							
							
						 
						
							2022-02-24 13:36:52 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Robert Sachunsky 
								
							 
						 
						
							
							
							
							
								
							
							
								5fddd32929 
								
							 
						 
						
							
							
								
								test: use other fileGrp to avoid assets#87  
							
							
							
						 
						
							2022-02-11 07:56:01 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Robert Sachunsky 
								
							 
						 
						
							
							
							
							
								
							
							
								1f0252d0d7 
								
							 
						 
						
							
							
								
								test: workspace download instead of urllib  
							
							
							
						 
						
							2022-02-11 07:55:33 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Robert Sachunsky 
								
							 
						 
						
							
							
							
							
								
							
							
								59089fbe89 
								
							 
						 
						
							
							
								
								test: use resmgr for downloading model  
							
							
							
						 
						
							2022-02-11 07:52:50 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Robert Sachunsky 
								
							 
						 
						
							
							
							
							
								
							
							
								7661662e3e 
								
							 
						 
						
							
							
								
								test: fix initLogging  
							
							
							
						 
						
							2022-02-11 07:51:24 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Robert Sachunsky 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								332d02b13e 
								
							 
						 
						
							
							
								
								adapt to checkpoint_dir only  
							
							
							
						 
						
							2022-02-10 18:06:31 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								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 
							
						 
						
							2021-02-09 18:57:47 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								f4c0fe8570 
								
							 
						 
						
							
							
								
								🐛  Fix small merge merge error (text not checked in test_recognize_should_warn_if_given_rgb_image_and_single_channel_model)  
							
							
							
						 
						
							2021-02-09 18:29:49 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								c0902cdef5 
								
							 
						 
						
							
							
								
								Merge branch 'master' into image-features  
							
							
							
						 
						
							2021-02-09 18:17:23 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Konstantin Baierer 
								
							 
						 
						
							
							
							
							
								
							
							
								d6804bd9c3 
								
							 
						 
						
							
							
								
								fix typos  
							
							
							
						 
						
							2020-12-22 16:29:40 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Konstantin Baierer 
								
							 
						 
						
							
							
							
							
								
							
							
								83adfcfd5a 
								
							 
						 
						
							
							
								
								implement "checkpoint_dir" parameter as a simpler alternative to "checkpoint"  
							
							
							
						 
						
							2020-12-22 15:20:45 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								8fcd331fbd 
								
							 
						 
						
							
							
								
								Merge branch 'feat/update-calamari1'  
							
							
							
						 
						
							2020-11-25 12:10:59 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								0e59c2317a 
								
							 
						 
						
							
							
								
								👷🏾♂️  Use gt4histocr-calamari1/ as directory name for the Calmari 1 model  
							
							
							
						 
						
							2020-11-25 12:09:41 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								046e3e8ee3 
								
							 
						 
						
							
							
								
								🚧  Tests: Add some TODOs re data + namespace version changes  
							
							
							
						 
						
							2020-08-06 11:27:59 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								027fcd7d75 
								
							 
						 
						
							
							
								
								🐛  Fix test file path  
							
							
							
						 
						
							2020-07-21 20:10:36 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								ef3fb44fb5 
								
							 
						 
						
							
							
								
								✨  Allow controlling of output hierarchy level, e.g. only line, not words+glyphs  
							
							
							
						 
						
							2020-02-05 13:02:10 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								0f0bae18ba 
								
							 
						 
						
							
							
								
								✅  Remove GT text to not accidently check it instead of OCR text  
							
							
							
						 
						
							2020-02-04 19:29:56 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								82fe0333f1 
								
							 
						 
						
							
							
								
								✅  Test word segmentation ( Fixes   #30 )  
							
							
							
						 
						
							2020-02-04 18:40:06 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								9010250911 
								
							 
						 
						
							
							
								
								♻ test: Move binarization into the workspace fixture  
							
							
							
						 
						
							2020-02-04 13:54:45 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								377466a71a 
								
							 
						 
						
							
							
								
								✅  Add test to check if we warn when processing a "raw"/RGB image with a single-channel model  
							
							
							
						 
						
							2019-12-05 14:59:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								f20eb3ba45 
								
							 
						 
						
							
							
								
								🎨  Refactor model path constant into a variable  
							
							
							
						 
						
							2019-12-05 14:58:24 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								5273247ab3 
								
							 
						 
						
							
							
								
								✅  Remove broken __main__ handling (stick to pytest)  
							
							
							
						 
						
							2019-12-05 13:47:31 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								e1b9d381a0 
								
							 
						 
						
							
							
								
								✅  Actually binarize the image (not grayscale!)  
							
							
							
						 
						
							2019-12-05 13:40:48 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								e07b333db1 
								
							 
						 
						
							
							
								
								✅  Convert to a pytest style test  
							
							
							
						 
						
							2019-12-05 13:38:45 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								99d04ddccb 
								
							 
						 
						
							
							
								
								✅  Fix tests by 1. binarizing and 2. use the GT4HistOCR model  
							
							
							
						 
						
							2019-12-05 13:02:20 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								e1f57b2638 
								
							 
						 
						
							
							
								
								🐛  Open our test result with UTF-8 encoding (for Python 3.6?)  
							
							
							
						 
						
							2019-12-03 17:11:09 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
						 
						
							
							
							
							
								
							
							
								d8212ced93 
								
							 
						 
						
							
							
								
								✅  Use GT segmentation to test  
							
							
							
						 
						
							2019-12-03 17:11:09 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Konstantin Baierer 
								
							 
						 
						
							
							
							
							
								
							
							
								b54ccf90f7 
								
							 
						 
						
							
							
								
								smoke test, circle ci  
							
							... 
							
							
							
							Conflicts:
	Makefile
	ocrd_calamari/__init__.py 
							
						 
						
							2019-12-03 17:11:09 +01:00