|
|
@ -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 |
|
|
|
``` |
|
|
|
<br> |
|
|
|
###PIP3 |
|
|
|
|
|
|
|
```bash |
|
|
|
sudo pip3 install pdf2image Pillow time logging opencv-python pytesseract |
|
|
|
sudo pip3 install pdf2image Pillow opencv-python pytesseract |
|
|
|
``` |
|
|
|
|
|
|
|
<br> |
|
|
@ -60,7 +60,43 @@ sudo chmod 777 merge_scans.sh workshop_stream.sh marge_files.sh |
|
|
|
|
|
|
|
<p>In case you want to skip any of the scripts just comment out in the shell code, <em>workshop_stream.sh</em>.</p> |
|
|
|
|
|
|
|
<p>Run ./workshop_stream.sh</p> |
|
|
|
###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 |
|
|
|
|
|
|
|
<p>In terminal run ./workshop_stream.sh</p> |
|
|
|
|
|
|
|
|
|
|
|
<p>Wait :)</p> |
|
|
|