mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-08 19:59:56 +02:00
ocrd cli: catch dpi == 1, return 230
This commit is contained in:
parent
2e8a3e3bee
commit
ae0b4a825a
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class EynollahProcessor(Processor):
|
|||
dpi = exif.resolution
|
||||
if exif.resolutionUnit == 'cm':
|
||||
dpi /= 2.54
|
||||
self.parameter['dpi'] = dpi
|
||||
self.parameter['dpi'] = dpi if dpi != 1 else 230
|
||||
eynollah_kwargs = {
|
||||
'dir_models': self.resolve_resource(self.parameter['models']),
|
||||
'allow_enhancement': self.parameter['allow_enhancement'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue