From 17689a976232c32f977071323e2df59a82cf3895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20S=C3=A1=20Couto?= Date: Sat, 1 Feb 2020 15:37:31 +0100 Subject: [PATCH] Update 'readme.md' --- readme.md | 44 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 91034c2..c9e5c42 100644 --- a/readme.md +++ b/readme.md @@ -35,17 +35,17 @@ brew doctor ``` ```bash -sudo apt-get install python3 python3-pip imagemagick poppler pdfunite +sudo apt-get install python3 python3-pip imagemagick poppler-utils ``` ```bash -brew install python3 python3-pip imagemagick poppler pdfunite +brew install python3 python3-pip imagemagick poppler-utils ```
###PIP3 ```bash -sudo pip3 install pdf2image Pillow time logging opencv-python pytesseract +sudo pip3 install pdf2image Pillow opencv-python pytesseract ```
@@ -60,7 +60,43 @@ sudo chmod 777 merge_scans.sh workshop_stream.sh marge_files.sh

In case you want to skip any of the scripts just comment out in the shell code, workshop_stream.sh.

-

Run ./workshop_stream.sh

+###Increase Imagemagick resources + +```bash +nano /etc/ImageMagic-6/policy.xml +``` +ImageMagick came with very low limits: + +Resource limits: + Width: 16KP + Height: 16KP + Area: 128MP + Memory: 256MiB + Map: 512MiB + Disk: 1GiB + File: 768 + Thread: 4 + Throttle: 0 + Time: unlimited + +change /etc/ImageMagick-6/policy.xml to more sensible defaults: + +Resource limits: + Width: 128KP + Height: 128KP + Area: 1.0737GP + Memory: 2GiB + Map: 4GiB + Disk: 8GiB + File: 768 + Thread: 4 + Throttle: 0 + Time: unlimited + + +###RUN + +

In terminal run ./workshop_stream.sh

Wait :)