Offer a small service with waveshare 144 support on Raspberry Pi Zero to scan documents direct on NAS drive.
Main features:
- support local OCR with tesseract
- support remote OCR with OCR Space
- support little OLED Screen
- support pushover
install all needed packages to prepare the software environtent of your Raspberry Pi:
sudo raspi-config
and enable Interface type SPI
sudo apt install python3-pip python3-pil git libatlas-base-dev sane-utils tesseract-ocr-deu imagemagick
sudo pip3 install RPi.GPIO psutil numpy netifaces spidev Pillow PyPDF2
and this tool itself:
cd /opt
sudo git clone https://github.com/Starwhooper/RPi-docscan
sudo cp /opt/RPi-docscan/config.json.example /opt/RPi-docscan/config.json
sudo nano /opt/RPi-status-on-OLED/config.json
This Tool used sane. Use this sources to know the right settings:
- sane documentation: http://www.sane-project.org/man/scanimage.1.html
- get device-name via: sudo /usr/bin/scanimage -L
- get all possible setting for your device: /usr/bin/scanimage --device-name="pixma:04A9190D" -A
add it to crontab to autostart as boot
sudo crontab -e
add line
@reboot /opt/RPi-docscan/scan.py
If you already use it, feel free to update with
cd /opt/RPi-docscan
sudo git pull origin main
Case to enclosure Raspberry Pi zero ans Waveshare 1.44inch LCD HAT: https://www.printables.com/de/model/258922