qurator-spk/ocrd-galley

WARNING ocrd_exif - ImageMagick 'identify' not available

Closed this issue · 2 comments

For example ocrd-sbb-textline-detector --overwrite -I OCR-D-IMG-BIN -O OCR-D-SEG-LINE-SBB-TLD -P model "/var/lib/textline_detection gives this warning:

16:42:12.171 WARNING ocrd_exif - ImageMagick 'identify' not available, Consider installing ImageMagick for more robust pixel density estimation
kba commented

This comes from OCR-D/core. The pixel density calculation of ImageMagick is more robust than PIL in my experience, hence we delegate to identify if it is available in $PATH. If it is not, we fall back to PIL to get the PPI.

Yeah, I thought so, I just need to include ImageMagick in the core images.