mirror of
				https://github.com/qurator-spk/ocrd-galley.git
				synced 2025-10-31 11:14:12 +01:00 
			
		
		
		
	🧹 Remove font identification for now
This commit is contained in:
		
							parent
							
								
									07555e8270
								
							
						
					
					
						commit
						b468d688f2
					
				
					 2 changed files with 0 additions and 25 deletions
				
			
		|  | @ -43,25 +43,6 @@ do_binarization() { | |||
|     -p '{"impl": "sauvola-ms-split"}' | ||||
| } | ||||
| 
 | ||||
| do_fontident() { | ||||
|   # Identify fonts in the images | ||||
| 
 | ||||
|   network=`python3 -c "import ocrd_typegroups_classifier, os; print(os.path.join(os.path.dirname(ocrd_typegroups_classifier.__file__), 'models', 'classifier.tgc'))"` | ||||
|   ocrd_typegroups_classifier_parameters=" | ||||
|   { | ||||
|     \"network\": \"$network\", | ||||
|     \"stride\":  143 | ||||
|   }" | ||||
| 
 | ||||
|   remove_filegrp OCR-D-OCR-FONTIDENT mets.xml | ||||
|   ocrd-typegroups-classifier -l $LOG_LEVEL \ | ||||
|     -m mets.xml -I OCR-D-IMG -O OCR-D-OCR-FONTIDENT \ | ||||
|     -p "$ocrd_typegroups_classifier_parameters" | ||||
|   # XXX Check if ocrd-typegroups-classifier uses the whole image | ||||
|   # XXX does DEFAULT have any meaning? /buerger_gedichte_1778.ocrd does not have | ||||
|   #     any DEFAULT, yet -I DEFAULT seems to work for ocrd-typegroups-classifier | ||||
| } | ||||
| 
 | ||||
| do_linesegmentation_tesserocr() { | ||||
|   # Segment the lines in the binarized images | ||||
| 
 | ||||
|  | @ -145,10 +126,6 @@ page_upgrade_to_2019() { | |||
| pip3 list | ||||
| 
 | ||||
| 
 | ||||
| #do_fontident | ||||
| #do_validate | ||||
| 
 | ||||
| 
 | ||||
| do_binarization | ||||
| do_validate | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue