mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-08 19:59:56 +02:00
ocrd processor: pass local filename as image_filename, ht @bertsky
This commit is contained in:
parent
d0b0e23ac6
commit
c7f304dcb6
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ class EynollahProcessor(Processor):
|
|||
page = pcgts.get_Page()
|
||||
# XXX loses DPI information
|
||||
# page_image, _, _ = self.workspace.image_from_page(page, page_id, feature_filter='binarized')
|
||||
self.workspace.download_file(next(self.workspace.mets.find_files(url=page.imageFilename)))
|
||||
image_filename = self.workspace.download_file(next(self.workspace.mets.find_files(url=page.imageFilename))).local_filename
|
||||
eynollah_kwargs = {
|
||||
'dir_models': self.resolve_resource(self.parameter['models']),
|
||||
'allow_enhancement': self.parameter['allow_enhancement'],
|
||||
|
@ -52,7 +52,7 @@ class EynollahProcessor(Processor):
|
|||
'override_dpi': self.parameter['dpi'],
|
||||
'logger': LOG,
|
||||
'pcgts': pcgts,
|
||||
'image_filename': page.imageFilename
|
||||
'image_filename': image_filename
|
||||
}
|
||||
Eynollah(**eynollah_kwargs).run()
|
||||
file_id = make_file_id(input_file, self.output_file_grp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue