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

#31 Post by rcrsn51 »

What model Epson do you have? Did you read the notes at the start of the thread? Many Epson scanners need the alternate epkowa driver to work in Peasyscan.

I will check out Racy to see if anything is different about it.

Edit: I tested Peasyscan in Racy with an Epson Workforce 320 that uses the epkowa driver and it worked. An HP scanner also worked.

Peasyscan has always had a problem with the old epson2 backend - it's the only one I have seen that doesn't work. Depending on your model, you may be able to use the epkowa driver instead.

Please report back.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#32 Post by Karl Godt »

scanimage -L needs the entries from /etc/sane.d/*.dll & *.conf .
After installing the epkowa backend -2.26.4dotPET and adjusting the entries in /etc/sane.d/dll.conf

epjitsu
#epson
#epson2
epkowa
fujitsu

and commenting all lines in epkowa.conf despite

#usb 0x04b8 0x084f
usb 0x04b8 0x0851
#usb 0x04b8 0x0854

nothing works :scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

whereas using the epson2.conf :

scanimage -L
device `epson2:libusb:001:003' is a Epson PID 0851 flatbed scanner

peasyscan-1.4 scan.sh has got the ^bug of the missing URI^ variable :

Code: Select all

URI=$(scanimage -L | sed 's/^[[:blank:]]*//g' | tr '[[:blank:]]' ' ' | tr -s ' ' | cut -f 2 -d ' ' | sed "s/^\`//g;s/'$//g")
echo 'URI='"$URI"'_EOS'
URI=epson2:libusb:001:003_EOS

The epkowa seemed to work nicely with iscan on other puppies but here i think i have to figure out how to unload the builtin kernel driver usb-storage .... [ something like "echo 0 > /sys/ / / /usb/file" ]

My problem might be also related to USB-1.1 ....

While xsane also refused to work continuously on some puppies with the usblp and usb-storage drivers inserted , it seems to work here despite it causes these error messages in dmesg also ....

Confusing , but xsane seems not to need or to use the xscanimage binary ; perhaps usees the "scanimage" binary .

But now after a successful "scanimage -T" the scanner hangs showing "Scanning..." in the display after "scanimage -v -T" ....

And "iscan" does not want to work , too :
[ 8084.508860] usb 1-2: usbfs: interface 2 claimed by usb-storage while 'iscan' sets config #1

Anger

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

#33 Post by rcrsn51 »

Since you have not yet named your printer model, I will assume that it is either a Stylus NX410 or SX410. SANE lists these models as being compatible with the epson2 backend, and we know that they work with Xsane.

However, many recent models, including your NX410, use the epkowa driver. So I don't understand why scanimage -L does not detect it.

I also don't understand why you are messing with the USB modules. I have yet to see a printer/scanner in any Puppy that required that. Unless it has something to do with your particular machine and USB 1.0.

Since iscan should also work with your model, there is something else going on here.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#34 Post by Karl Godt »

Yes , it is a SX415 on the outside of the chassis , but most detection tools say it would be a SX410 .
I don't know if that is related to the usb.ids file . I will cat /sys and /proc for this .

Nevertheless peasyscan will not work with the sane-backend 1.0.20 , too .

Removing usblp and usb-storage || boot with usb-storage.quirks=04b8:0851:i to ignore the usb-storage part of the
scanner did not help either : No error messages in dmesg but still the message-GUI with
Failed to open device `epson2:libusb:001:008' : Invalid argument .

So I will explore the sane|xsane versions more precisely , because with sane-backend-1.0.20 I have 'bin' for black&whiite
and with sane-backend-1.0.21 'lineart' and few other things like the 'Threshold' slider in xsane
not showing up at all '0996+0998' or if it vanishes , it does not reappear except closing and starting xsane again '0997' .

If I can manage peasyscan to work on one Puppy I will report .

Nevertheless , thank you for the code !

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

#35 Post by rcrsn51 »

Independent of Peasyscan, Epson claims that your SX410/415 is designed for the epkowa backend and iscan. So "scanimage -L" should definitely detect it and iscan should work with it. So Xsane should be giving you two choices for the backend.

Since none of that is happening, I am sure that this is a hardware issue. Do you have another machine to test this on?

Also, I know for a fact that an NX415 does work with epkowa. So I am surprised that an SX415 does not.

Once you can get the epkowa backend detected, I am sure that Peasysan will work for you. But it definitely won't work with the epson2 backend.

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#36 Post by DaveS »

Peasyscan wifi seems screwed in Slacko RC :(
http://www.murga-linux.com/puppy/viewto ... 753#571753

EDIT My fault. Re-installed scanner driver and it is OK now :)
Last edited by DaveS on Sun 09 Oct 2011, 12:47, edited 1 time in total.
Spup Frugal HD and USB
Root forever!

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

#37 Post by rcrsn51 »

DaveS wrote:Peasyscan wifi seems screwed in Slacko RC
There's nothing like a detailed bug report :wink:

I tested it myself and there were no problems. Lacking any specific info, here are some suggestions:

1. Has your printer changed its IP address?
2. Have you addressed the firewall issue?
3. Did you install the HPLIP scanner driver again?
4. Did you update your Peasyscan config file?
5. Is it working with USB?

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#38 Post by DaveS »

rcrsn51 wrote:
DaveS wrote:Peasyscan wifi seems screwed in Slacko RC
There's nothing like a detailed bug report :wink:

I tested it myself and there were no problems. Lacking any specific info, here are some suggestions:

1. Has your printer changed its IP address?
2. Have you addressed the firewall issue?
3. Did you install the HPLIP scanner driver again?
4. Did you update your Peasyscan config file?
5. Is it working with USB?
Ha ha.. I put a bit more on the Slacko thread. IP address correct, firewall addressed, installed scanner driver (its a new install of Slacko RC, fresh save file), updated config file, yes, it works on USB. HP printer, wifi. My guess is its the same issue as Racy, so will try installing your patch in a short while.

Edit.. re-installing driver fixed it.
Last edited by DaveS on Sun 09 Oct 2011, 12:48, edited 1 time in total.
Spup Frugal HD and USB
Root forever!

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#39 Post by DaveS »

Huh... re-installed scanner driver and it is fine now! Happens I guess.
Spup Frugal HD and USB
Root forever!

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

#40 Post by rcrsn51 »

That's good news. Would you mind editing your other posts to indicate that there is no problem.

User avatar
Baldlygo
Posts: 67
Joined: Mon 21 Mar 2011, 10:41
Location: Le Dorat, France
Contact:

Resolutions offered

#41 Post by Baldlygo »

I have an Epson Stylus sx105 and epkowa 2.26.4.pet which works well with xsane and Peasyscan 1.8.pet. My Peasyscan also works well with tesseract3 and OCRs fine.

However Peasyscan gives me resolutions 75,150,300 and 60481 :!: Xsane gives me the correct 75,150,300,600 & 1200 - Is there a setting on Peasyscan to give me those higher resolutions :?:

I ran the "scanimage -h" command which shows -

Code: Select all

    --resolution 75|150|300|60481dpi [300]
        Sets the resolution of the scanned image.
    --x-resolution 75|150|300|600dpi [300]
        Sets the horizontal resolution of the scanned image.
    --y-resolution 75|150|300|600|1200dpi [300]
        Sets the vertical resolution of the scanned image.
So presumably that is where the 60481 is coming from - do I have a means of changing that? I would at least like 600dpi to be available.

Thanks - Paul
Lucid 5.20 - my preferred OS on old Dell Inspiron 8000 & Toshiba Tecra M5

roadkill13
Posts: 154
Joined: Wed 10 Aug 2011, 21:41
Location: United States
Contact:

Photosmart D110

#42 Post by roadkill13 »

@rcrsn51

I installed the hplip and hpscan packages from the first post of this thread on a fresh copy of Lucid 5.28-004. My printer is a wireless HP Photosmart D110. I am able to print a test page from CUPS. However I am not able to use the scanner on this model.

I installed Peasyscan 1.8. I renamed and copied the sample configuration file to the appropriate folder. Using your example from the first post I edited the device uri. Peasyscan will attempt to start a scan but will always fail. The error message is consistently "invalid argument" for the uri.

Here is the content of /etc/cups/printer.conf file.
</Printer>
<DefaultPrinter HP_Photosmart_D110_series>
Info HP Photosmart D110 series
MakeModel HP Photosmart d110 Series, hpcups 3.11.10
DeviceURI socket://10.0.0.3:9100
State Idle
StateTime 1330629505
Type 36876
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-raster 0 hpcups
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
Attribute marker-colors none,none,none,none,none,none,none,none
Attribute marker-levels -1,-1,-1,-1,-1,-1,-1,-1
Attribute marker-names black ink cartridge,tri-color ink cartridge,black ink cartridge,black ink cartridge,tri-color ink cartridge,black ink cartridge,black ink cartridge,black ink cartridge
Attribute marker-types ink,ink,ink,other,ink,ink,ink,ink
Attribute marker-change-time 1330629505
</Printer>
I am left to assume that I have used incorrect syntax. I listed the printer make/model and used the device uri from the above file. Can you make a suggestion regarding the device uri and how it is entered into the Peasyscan configuration file?

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

Re: Photosmart D110

#43 Post by rcrsn51 »

roadkill13 wrote: Can you make a suggestion regarding the device uri and how it is entered into the Peasyscan configuration file?
Please post the URI you are trying. It should be something like

Code: Select all

<uri>hpaio:/net/Photosmart_D110_series?ip=10.0.0.3</uri> 
Note that the HP_ prefix has been removed from the printer name.

To be sure, connect the unit via USB and run the "scanimage -L" command. It will tell you the correct scanner device name.

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

Re: Resolutions offered

#44 Post by rcrsn51 »

Baldlygo wrote:I have an Epson Stylus sx105 and epkowa 2.26.4.pet which works well with xsane and Peasyscan 1.8.pet. My Peasyscan also works well with tesseract3 and OCRs fine.

However Peasyscan gives me resolutions 75,150,300 and 60481 :!: Xsane gives me the correct 75,150,300,600 & 1200 - Is there a setting on Peasyscan to give me those higher resolutions :?:

I ran the "scanimage -h" command which shows -

Code: Select all

    --resolution 75|150|300|60481dpi [300]
        Sets the resolution of the scanned image.
    --x-resolution 75|150|300|600dpi [300]
        Sets the horizontal resolution of the scanned image.
    --y-resolution 75|150|300|600|1200dpi [300]
        Sets the vertical resolution of the scanned image.
So presumably that is where the 60481 is coming from - do I have a means of changing that? I would at least like 600dpi to be available.

Thanks - Paul
I looked at this with my Epson NX625 and epkowa. Its --resolution numbers are 75,300,1200,2400. Its --x-resolution and --y-resolution numbers are both 75,150,300,600,1200,2400.

When I run regular Peasyscan, I just get the --resolution numbers. But if I enable Preferences > Advanced Options, I get access to the --x and --y numbers. When I pick the latter, Peasyscan appears to scan using those values.

Did you ever try downgrading to the older "epson" backend? It might give you more reliable numbers.

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

#45 Post by rcrsn51 »

Announcing Peasyscan v1.9.

This version has two new configuration file settings to give you more control over ADF scanning and the layout of PDF documents. See the additional notes in the How-To at the start of the thread.

roadkill13
Posts: 154
Joined: Wed 10 Aug 2011, 21:41
Location: United States
Contact:

Success

#46 Post by roadkill13 »

rcrsn51 Wrote:
Please post the URI you are trying. It should be something like
Code:
<uri>hpaio:/net/Photosmart_D110_series?ip=10.0.0.3</uri>

Note that the HP_ prefix has been removed from the printer name.
I apologize for taking so long to post on this. I have been very busy. That did the trick. I thought surely I had tried that but apparently not.

Code:
<uri>hpaio:/net/Photosmart_D110_series?ip=10.0.0.6</uri>
worked just fine. I had shut down the network and physically rearranged some items and the printer popped up on a different ip than it had been using but otherwise your suggestion did the trick.

Thank you!

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

#47 Post by rcrsn51 »

Peasyscan v2.3 is now available. See Page 1.

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

Peasyscan as ocr gui?

#48 Post by Dromeno »

I like the simple gui of peasyscan! But is it possible to change it a bit so that it also opens when no scanner is attached (then it can be used as ocr gui)

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

Re: Peasyscan as ocr gui?

#49 Post by rcrsn51 »

Dromeno wrote:But is it possible to change it a bit so that it also opens when no scanner is attached (then it can be used as ocr gui)
How do you want to use it?

On page 1, there is the pic2txt command line program for doing OCR. Is it what you are looking for?

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

pic2txt gui?

#50 Post by Dromeno »

Hi rcrsn51,

Yes pic2txt is almost what I am looking for. But is it possible to

- add a GUI (like peasyocr) and

(less important)
- make it work with not-ocr'd PDF files in one click?

Post Reply