Dependency on External Tools
- ImageMagick (package graphicsmagick-imagemagick-compat),
- dcmtk,
- parallel,
- tesseract-ocr,
- and Local Adaptive Binarization.
Install Debian packages
First, install Debian packages by a single command:
$ apt install dcmtk graphicsmagick-imagemagick-compat parallel tesseract-ocr
Image Binarization tool
It is used Christian Wolf's Local Adaptive Binarization method for image binarization.
You can download, compile and install Local Adaptive Binarization from https://github.com/vcelakp/local_adaptive_binarization.
$ git clone https://github.com/vcelakp/local_adaptive_binarization $ cd local_adaptive_binarization/ $ make $ sudo cp binarizewolfjolion /usr/local/bin/
For success source code compilation, it is necessary to have already installed OpenCV4 libraries:
- libopencv-calib3d
- libopencv-core
- libopencv-imgcodecs
- libopencv-imgproc
- libopencv-contrib
- libopencv-stitching
- libopencv-superres
- libopencv-videostab
On Debian, please install these required packages:
apt-get install libopencv-calib3d406 libopencv-core406 libopencv-imgcodecs406 libopencv-imgproc406 libopencv-contrib406 libopencv-stitching406 libopencv-superres406 libopencv-videostab406