setup CanoScan LiDE 200 [raspberrypi]

install software:
sudo apt-get install sane -y
sudo apt-get install pnmtopng -y

create a bash script for scan and convert to png:
cd
touch scn_cvt2png.sh
chmod +x scn_cvt2png.sh
nano scn_cvt2png.sh

then paste the following code:
#!/bin/bash
STR=`date +%s`
scanimage --mode Color --resolution 150 --progress > /home/pi/$STR.pnm
pnmtopng /home/pi/$STR.pnm > /home/pi/$STR.png
rm /home/pi/$STR.pnm

start the script from terminal with:
sudo ./scn_cvt2png.sh

download the pics on your raspberrypi with sftp from debian-pc:
sftp -P 22 pi@192.168.1.xx
get /home/pi/*.png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s