ocrd cli: catch dpi == 1, return 230

pull/33/head
Konstantin Baierer 4 years ago
parent 2e8a3e3bee
commit ae0b4a825a

@ -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…
Cancel
Save