qurator-spk / ocrd-galley

A Dockerized test environment for OCR-D processors 🚢
Apache License 2.0
7 stars 1 forks source link

WARNING ocrd_exif - ImageMagick 'identify' not available #60

Closed mikegerber closed 2 years ago

mikegerber commented 2 years ago

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 2 years ago

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.

mikegerber commented 2 years ago

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