PeasyScan Image Scanner Program
Can I also suggest another alternative - If your printer is not currently set to "static IP" and is set instead to "Auto DHCP" it will get its IP address from your router and this address will be whatever the router decides to hand out on the day, depending on what other devices such as laptops and phones happen to come on line periodically. This can be a source of confusion for computers looking for a printer on a specific address.rcrsn51 wrote:For the benefit of other readers, let me clarify some things.
1. Setting a static IP address for the printer is a ONE-TIME procedure done from a single Windows machine. The printer remembers its permanent address. You don't need to change the printer setups on the individual Windows machines - they appear to use the device's MAC address instead of the IP address.
With Epson, this involves downloading and running their separate network config utility.
In such cases you can tell the router to assign the same IP address to the printer each time.
This could alleviate the need to use an external utility such as the Epson one mentioned.
The way to do this is to get access to the address allocation tables in the router and highlight the printer as requiring a constant address. (your isp or google will help you get this done). Some people may find this easier than trying to change the setting in the printer.
Hi, I need to report a very minor issue with the latest peasyscan bundle in Fatdog64-702: the preview window unit label should be "mm" instead of "cm". Equivalently, the slider units should be divided by 10, i.e. decimal numbers instead of integers.
Version
Cheers!
Version
Code: Select all
peasyscan-2.5-noarch-1 [inst=yes]: peasyscan 2.5 (Simple Scanner GUI)
xscanimage-peasy-2015.05-x86_64-1 [inst=yes]: xscanimage-peasy 2015.05 (xscanimage for peasyscan)
- Attachments
-
- xscreenshot00000.png
- (50.03 KiB) Downloaded 894 times
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]
Here is a 64bit build of PeasyScan v2.9. It should work with most 64bit Puppies and their derivatives.
- Attachments
-
- peasyscan_tahr64-2.9.pet
- (49.43 KiB) Downloaded 496 times
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
Hi Bill,
I really find this Peasyscan awesome ! Again lot of thanks for it !
especially the "Auto" + combine pdf features.
Just that the scanimage's Gray mode option produces
- poor contrasted black and white images
- rather huge images (ca 540K for 75 dpi resolution gray A4 sized images);
This latest point could be a "nice to have" option of peasyscan when scanning to pdf files: add the command line under 2. below, inside the peasyscan script
I got a try digging into peasyscans codes, and also the possibility to apply a config.cfg file, ans found the following:
1. config.cfg file to get a better black and white contrast (scanner = Canon Pixma MP160), to be placed in /usr/local/peasyscan/config/
NB:
- the 3000 value is a first trial value; it still might need to be somewhat optimized;
- the 4095 value is the gamma4scanimage (*) gamma table size range;
--------------------
(*)http://www.pkill.info/linux/man/1-gamma4scanimage/
running the following reports an error message giving the max range or size "maxin" of the gamma table:
[0..4095] means: 4095 = max gamma table size = "maxin"
--------------------
2. To reduce the size of pdf files without noticeable degradation, I use to run the following command line (up to 1/10th reduction, which allows to spare memory and/or bandwidth):
Best regards
HTH
Charlie
I really find this Peasyscan awesome ! Again lot of thanks for it !
especially the "Auto" + combine pdf features.
Just that the scanimage's Gray mode option produces
- poor contrasted black and white images
- rather huge images (ca 540K for 75 dpi resolution gray A4 sized images);
This latest point could be a "nice to have" option of peasyscan when scanning to pdf files: add the command line under 2. below, inside the peasyscan script
I got a try digging into peasyscans codes, and also the possibility to apply a config.cfg file, ans found the following:
1. config.cfg file to get a better black and white contrast (scanner = Canon Pixma MP160), to be placed in /usr/local/peasyscan/config/
Code: Select all
<uri>pixma:04A91714_F30F67</uri>
<source>Flatbed</source>
<mode>Gray</mode>
<resolution>75</resolutions
<paper>A4</paper>
<other>--custom-gamma=yes --gamma-table `gamma4scanimage 0.1 0 3000 4095 4095`</other>
- the 3000 value is a first trial value; it still might need to be somewhat optimized;
- the 4095 value is the gamma4scanimage (*) gamma table size range;
--------------------
(*)http://www.pkill.info/linux/man/1-gamma4scanimage/
running the following reports an error message giving the max range or size "maxin" of the gamma table:
Code: Select all
sh-3.00scanimage --mode Gray --custom-gamma=yes --gamma-table [0]0-[99999]255 >image.pnm
scanimage: option --gamma-table: index 99999 out of range [0..4095]
--------------------
2. To reduce the size of pdf files without noticeable degradation, I use to run the following command line (up to 1/10th reduction, which allows to spare memory and/or bandwidth):
Code: Select all
sh-3.00# gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=/mydir/output.pdf input.pdf
HTH
Charlie
-
- Posts: 23
- Joined: Sun 20 Mar 2016, 23:40
Anyone please help me! I coudn't make my scaner HP AIO Deskjet 6525 work in PuppyTahr 6.0.5
Last attempt gave this result:
"Error during device I/O"
This is my configuration file:
<uri>hpaio:/net/deskjet_6520_series?ip=192.168.1.108:9100</uri>
<source>Flatbed</source>
<mode>Gray</mode>
<resolution>75</resolutions
<paper>A4</paper>
<other></other>
Last attempt gave this result:
"Error during device I/O"
This is my configuration file:
<uri>hpaio:/net/deskjet_6520_series?ip=192.168.1.108:9100</uri>
<source>Flatbed</source>
<mode>Gray</mode>
<resolution>75</resolutions
<paper>A4</paper>
<other></other>
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Bonjour,
Having this issue using the 2.7 release, I downloaded/installed the 2.12 but got the same error message:
Cordialement.
Having this issue using the 2.7 release, I downloaded/installed the 2.12 but got the same error message:
Code: Select all
# peasyscan
sh: line 1: 16147 Segmentation fault $PEASYPATH/xscanimage-peasy "$URI"
pnmtopng: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Bonjour,
Thanks.
Cordialement.
You just guessed! Epson Stylus CX5400 printer-scanner works making this:rcrsn51 wrote:I am going to guess that your friend has an old Epson scanner. See the main post on page 1 for special instructions about Epson.
... and using PeasyScan 2.7/2.12 because it was already working using xsane without making any changes.rcrsn51 wrote:Open the file /etc/sane.d/dll.conf. Uncomment the line "epson" by removing the # symbol. Then comment out "epson2" by adding a #.
Thanks.
Cordialement.
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Bonjour,
Cordialement.
Yes indeed! If the program ends not properly for any reason, the image will not be deleted and may cause problem with a small nearly full pupsave: so Just for my own curiosity, why /root/scan (by default)?rcrsn51 wrote:Peasyscan generates some large, temporary PNM image files in /root. They are deleted when the program terminates. Maybe they should be placed elsewhere.
Cordialement.
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Bonjour,
- Scanning image for OCR, I noticed that PeasyScan is searching for the "tessdata" directory inside /usr/share/ while it is (usually?) inside /usr/share/tesseract-ocr/. So the conversion into text is not done.
If I make a symbolic link /usr/share/tessdata to /usr/share/tesseract-ocr/./tessdata it runs well.
I consequently had a look to the PeasyScan script and changed the line:
to:
And now all is OK!
- Scanning image for PDF, the generated pdf file has no .pdf extention unless a pdf extension is added to the name of the scanned image itself in the field.
Small suggestion: would it be possible to display the text file using the defaulttextviewer at the end of the OCR process as well as the pdf file using the defaultpdtviewer. I think it is what user is expecting for, instead of the image which is not really welcome in this case?
Thinking this could be useful.
Cordialement.
- Scanning image for OCR, I noticed that PeasyScan is searching for the "tessdata" directory inside /usr/share/ while it is (usually?) inside /usr/share/tesseract-ocr/. So the conversion into text is not done.
Code: Select all
ls: cannot access /usr/share/tessdata/*.traineddata: No such file or directory
pnmtotiff: computing colormap...
pnmtotiff: Too many colors - proceeding to write a 24-bit RGB file.
pnmtotiff: If you want an 8-bit palette file, try doing a 'pnmquant 256'.
Error opening data file /usr/share/tesseract-ocr/tessdata/.traineddata.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
Failed loading language '.traineddata'
Tesseract couldn't load any languages!
I consequently had a look to the PeasyScan script and changed the line:
Code: Select all
LANGUAGE=$(basename $(ls -1 /usr/share/tessdata/*.traineddata | head -n1) .traineddata)
Code: Select all
LANGUAGE=$(basename $(ls -1 /usr/share/tesseract-ocr/tessdata/*.traineddata | head -n1) .traineddata)
- Scanning image for PDF, the generated pdf file has no .pdf extention unless a pdf extension is added to the name of the scanned image itself in the field.
Small suggestion: would it be possible to display the text file using the defaulttextviewer at the end of the OCR process as well as the pdf file using the defaultpdtviewer. I think it is what user is expecting for, instead of the image which is not really welcome in this case?
Thinking this could be useful.
Cordialement.
Where did you get your "tessdata" package? On page 1, I have given the instruction:Argolance wrote:- Scanning image for OCR, I noticed that PeasyScan is searching for the "tessdata" directory inside /usr/share/ while it is (usually?) inside /usr/share/tesseract-ocr/. So the conversion into text is not done.
3. Copy the file xxx.traineddata to /usr/share/tessdata
Try this: Between lines 114 and 115, insertSmall suggestion: would it be possible to display the text file using the defaulttextviewer at the end of the OCR process as well as the pdf file using the defaultpdtviewer. I think it is what user is expecting for, instead of the image which is not really welcome in this case?
Code: Select all
defaulttexteditor "$SAVEFILENAME"