PeasyScan Image Scanner Program

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#91 Post by rcrsn51 »

Pic2txt v1.3 is posted on the main page. See the Update note.

-----------------------------
Last edited by rcrsn51 on Tue 12 Apr 2016, 22:10, edited 1 time in total.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#92 Post 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.

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#93 Post 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!
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]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#94 Post 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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#95 Post by rcrsn51 »

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 493 times

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#96 Post 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

moi_classic2007
Posts: 23
Joined: Sun 20 Mar 2016, 23:40

#97 Post 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>

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#98 Post 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.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#99 Post 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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#100 Post by rcrsn51 »

Details please. Which Puppy? Which scanner model? Which driver?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#101 Post by rcrsn51 »

No reply after two days?

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#102 Post 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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#103 Post 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.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#104 Post 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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#105 Post by rcrsn51 »

Excellent. Just for fun, read the post here from 2010.

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

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#106 Post 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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#107 Post 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.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#108 Post 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.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#109 Post 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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#110 Post 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.

Post Reply