Page 5 of 6

Posted: Thu 04 Feb 2016, 14:35
by rcrsn51
Pic2txt v1.3 is posted on the main page. See the Update note.

-----------------------------

Posted: Thu 11 Feb 2016, 22:00
by greengeek
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.
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.

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.

Posted: Mon 04 Apr 2016, 19:19
by step
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

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)  
Cheers!

Posted: Mon 25 Apr 2016, 00:23
by rcrsn51
PeasyScan v2.9 is posted on the main page. See the Update note.

To translators: there is a new .pot file posted here. It is a complete rebuild.

Posted: Thu 28 Apr 2016, 11:26
by rcrsn51
Here is a 64bit build of PeasyScan v2.9. It should work with most 64bit Puppies and their derivatives.

Posted: Thu 20 Oct 2016, 08:45
by charlie6
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/

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>
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:

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]
[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):

Code: Select all

sh-3.00# gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=/mydir/output.pdf input.pdf 
Best regards
HTH
Charlie

Posted: Thu 09 Feb 2017, 13:42
by moi_classic2007
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>

Posted: Wed 01 Mar 2017, 16:02
by rcrsn51
moi_classic2007 wrote:<uri>hpaio:/net/deskjet_6520_series?ip=192.168.1.108:9100</uri>
Get rid of the ":9100". That port is only used for setting up the printer.

Posted: Wed 01 Nov 2017, 12:26
by Argolance
Bonjour,
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.
Cordialement.

Posted: Thu 02 Nov 2017, 01:21
by rcrsn51
Details please. Which Puppy? Which scanner model? Which driver?

Posted: Fri 03 Nov 2017, 12:20
by rcrsn51
No reply after two days?

Posted: Fri 03 Nov 2017, 17:26
by Argolance
Hello,
Sorry! It was while trying Puppy on the laptop of a friend. I will see him tomorow then give you what you asked for!

Cordialement.

Posted: Fri 03 Nov 2017, 17:30
by rcrsn51
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.

Posted: Sun 05 Nov 2017, 15:27
by Argolance
Bonjour,
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.
You just guessed! Epson Stylus CX5400 printer-scanner works making this:
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 #.
... and using PeasyScan 2.7/2.12 because it was already working using xsane without making any changes.

Thanks.

Cordialement.

Posted: Sun 05 Nov 2017, 15:34
by rcrsn51
Excellent. Just for fun, read the post here from 2010.

I have always wondered what happened to Béèm .

Posted: Mon 06 Nov 2017, 10:11
by Argolance
Bonjour,
:)
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.
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)?

Cordialement.

Posted: Mon 06 Nov 2017, 12:20
by rcrsn51
That was the original program in 2010. Now the large pnm file is stored in /tmp. Only the final png file is stored in /root after you save it.

Posted: Mon 06 Nov 2017, 16:43
by Argolance
rcrsn51 wrote:That was the original program in 2010. Now the large pnm file is stored in /tmp. Only the final png file is stored in /root after you save it.
OK! Thanks.

Posted: Fri 10 Nov 2017, 10:32
by Argolance
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.

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!
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:

Code: Select all

LANGUAGE=$(basename $(ls -1 /usr/share/tessdata/*.traineddata | head -n1) .traineddata)
to:

Code: Select all

LANGUAGE=$(basename $(ls -1 /usr/share/tesseract-ocr/tessdata/*.traineddata | head -n1) .traineddata)
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? :roll:

Thinking this could be useful.

Cordialement.

Posted: Fri 10 Nov 2017, 11:56
by rcrsn51
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.
Where did you get your "tessdata" package? On page 1, I have given the instruction:
3. Copy the file xxx.traineddata to /usr/share/tessdata
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?
Try this: Between lines 114 and 115, insert

Code: Select all

 defaulttexteditor "$SAVEFILENAME"
I think that seeing the image is still useful. Its quality determines how well the OCR works.