mirror of
				https://github.com/qurator-spk/sbb_textline_detection.git
				synced 2025-11-03 19:04:16 +01:00 
			
		
		
		
	Simplify the iteration over files in the input file group
This commit is contained in:
		
							parent
							
								
									6e0decb5ec
								
							
						
					
					
						commit
						9e9163e852
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -51,8 +51,7 @@ class OcrdSbbTextlineDetectorRecognize(Processor):
 | 
				
			||||||
        return image_file
 | 
					        return image_file
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def process(self):
 | 
					    def process(self):
 | 
				
			||||||
        for n, page_id in enumerate(self.workspace.mets.physical_pages):
 | 
					        for (n, input_file) in enumerate(self.input_files):
 | 
				
			||||||
            input_file = self.workspace.mets.find_files(fileGrp=self.input_file_grp, pageId=page_id)[0]
 | 
					 | 
				
			||||||
            log.info("INPUT FILE %i / %s", n, input_file)
 | 
					            log.info("INPUT FILE %i / %s", n, input_file)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            file_id = self._make_file_id(input_file, self.input_file_grp, n)
 | 
					            file_id = self._make_file_id(input_file, self.input_file_grp, n)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue