Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 29 Aug 2014, 10:01
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Peasyscan Image Scanner Program
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [60 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 9059
Location: Stratford, Ontario

PostPosted: Tue 19 Oct 2010, 17:09    Post subject:  Peasyscan Image Scanner Program  

Update: Peasyscan v2.6 has a new OCR feature. You can now choose from a list of installed Tesseract languages.

Update: Peasyscan v2.5 has improved batch scanning. In previous versions, you could scan a set of pages using an Automatic Document Feeder. Now you can also use the flatbed. The Auto function has a new option that pauses between scans so you can switch documents.

All the other ADF features are the same, including the use of configuration files. Read more below.

For example, to scan documents, use:
Code:
<mode>Gray</mode>
<resolution>300</resolution>
<paper>letter</paper>

To scan a batch of 4x6 photos, use:
Code:
<mode>Color</mode>
<resolution>150</resolution>
<paper>-x 102 -y 153</paper>


Update: PDF support returns to Version 2.3. Some outstanding issues have been resolved, including the ability to scan an A4 document into an A4 PDF file. To use alternate paper sizes, you will need the peasyscan_pdf_plugin-1.0.pet posted below. Then read the section on configuration files.

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

Peasyscan is a light-weight alternative to the Xsane image scanner program. It uses the same backend tools as Xsane, but with a simpler user interface.



Peasyscan scans into PNG, JPG or PDF files, and can perform OCR using Tesseract. See the post farther down this thread.

The installer adds a menu entry under Graphic. To make a desktop shortcut, drag the peasyscan program from /usr/local/peasyscan onto the desktop. There is a matching icon in /usr/local/lib/X11/pixmaps.

See the recipe for using Peasyscan in the next post.

Note: On some scanners, you may need to select Preferences > Show Advanced Options to see the scanning controls.

Also: If you start getting a "Nothing was scanned" message, click the Reset button on the main screen.

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

Epson Users: Depending on the age of your unit, there are several choices for a scanner driver.

1. Older scanners may be detected by the built-in "epson2" SANE driver. Peasyscan does not always work with "epson2" but should work with the earlier "epson" driver. Open the file /etc/sane.d/dll.conf. Uncomment the line "epson" by removing the # symbol. Then comment out "epson2" by adding a #.

2. If Peasyscan still fails, install the alternate epkowa driver from here.

3. Many newer Epson units only work with the epkowa driver.

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

HP Users: If you have an HP all-in-one connected to your network via Ethernet or Wifi, you already know how to install it as a remote printer. But you can also use its scanner across the network! Read the section below about configuration files.

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

Automatic Document Feeder: The main Peasyscan window now has an Auto button. Before clicking it, select the file type (PNG, JPG or PDF) and the Save filename. With Auto scanning, you need only enter the document's base name. For example, if you enter "/root/work/report", the files will be saved as "report-01.pdf", "report-02.pdf", etc.

Click the Auto button. Enter the page count and the page numbering details. If you are scanning a double-sided document in two passes, you can number the pages 1,3,5... on the first pass and 2,4,6... on the second.

You will probably want to use a configuration file with Auto scanning. Read on.

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

Configuration files: Most scanners will work without a configuration file, but there are a few situations where you need one. The files are stored in the folder /usr/local/peasyscan/config. When Peasyscan starts, it searches for any configuration files and offers you a menu from which to choose. Give your configuration file a descriptive name.

The Peasyscan package includes a sample configuration file in the folder /usr/local/peasyscan.

The options in your configuration file, other than URI, only apply to Auto scanning. However, If your unit doesn't have an actual ADF, you can still use the Auto button and a configuration file to preset the options for flatbed scanning, like resolution or paper size.

Here is a sample configuration file:
Code:
<uri>hpaio:/net/Officejet_4500_G510n-z?ip=192.168.2.215</uri>
<source>Automatic Document Feeder</source>
<mode>Gray</mode>
<resolution>300</resolution>
<paper>letter</paper>
<other>--contrast 50</other>

Peasyscan only uses the above six options. Just include the ones you want. To see what choices apply to your model, run the scanner in regular flatbed mode. Or use the "scanimage -h" command. The URI option only applies to certain models. See below.

Warning! Make sure that you type the URI tag as U-R-eye, not U-R-ell!

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

Many ADF scanners add some extra white space to the bottom of the image. To remove it, you can specify your paper size with the <paper> option in your configuration file. The values are "letter", "legal" or "A4".

You can also select the exact size and position of the scan area. For example, to scan inside a 10 mm border, use:
Code:
<paper>-l 10 -t 10 -x 196 -y 259</paper>

This option takes up to four arguments, measured in mm (1 inch = 25.4 mm).
Code:
-l : starting position from the left edge of the page
-t : starting position from the top of the page
-x : width of the scan area
-y : length of the scan area

The <other> option lets you add any additional controls specific to your scanner. For example:
Code:
<other>--contrast 50</other>

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

To use a networked HP unit, Peasyscan needs to know the scanner's URI. And the URI must be stored in a configuration file.

Note the format of the sample URI line above. It contains the prefix "hpaio:/net", the unit's model name and its IP address. The model name must be exactly what CUPS assigns the printer when you auto-detect it, but without the "HP_" prefix.

You can also identify the unit's model name by temporarily connecting it via USB and running the "scanimage -L" command.

Update: Some Laserjet multi-function units may include the HP_ prefix as part of their name. If so, "scanimage -L" is the surest way to find the correct name for the URI.

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

Peasyscan will launch much faster if you can provide your scanner's URI in a configuration file. It saves Peasyscan the trouble of searching for your unit. For example:
Code:
<uri>pixma:04A9173A_E0D343</uri>
or
Code:
<uri>epkowa:net:192.168.2.15</uri>

But be aware that some device names are based on the scanner's USB ID numbers, which may change as you add/remove USB devices from your system.

--------------------------
peasyscan-2.6b.pet
Description  Updated 2014-08-14
New menu icon
pet

 Download 
Filename  peasyscan-2.6b.pet 
Filesize  45.48 KB 
Downloaded  25 Time(s) 
peasyscan-2.6.pet
Description  Updated 2013-11-28
Changes to OCR
pet

 Download 
Filename  peasyscan-2.6.pet 
Filesize  47.17 KB 
Downloaded  365 Time(s) 
peasyscan_pdf_plugin-1.1.pet
Description  Updated 2012-06-07
pet

 Download 
Filename  peasyscan_pdf_plugin-1.1.pet 
Filesize  29.36 KB 
Downloaded  956 Time(s) 

Last edited by rcrsn51 on Thu 14 Aug 2014, 18:12; edited 118 times in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9059
Location: Stratford, Ontario

PostPosted: Wed 20 Oct 2010, 09:14    Post subject:  

Here is a basic recipe for using Peasyscan:

1. Select the image format
2. Select the name of the scanned image file (the default folder for saved images is /root)
3. Click Start
4. Select the scan mode and resolution
5. Click Preview
6. Click Acquire Preview
7. Select all or part of the document
8. Click Scan
9. Click Return
10. Click Save
11. Click Quit

If you start getting a "Nothing was scanned" message, click the Reset button on the main screen.

Last edited by rcrsn51 on Sun 13 Oct 2013, 23:01; edited 6 times in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9059
Location: Stratford, Ontario

PostPosted: Thu 21 Oct 2010, 09:59    Post subject:  

[Updated]
Last edited by rcrsn51 on Sat 27 Nov 2010, 09:40; edited 1 time in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9059
Location: Stratford, Ontario

PostPosted: Fri 22 Oct 2010, 08:45    Post subject:  

[Deleted]
Last edited by rcrsn51 on Mon 28 May 2012, 07:24; edited 4 times in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9059
Location: Stratford, Ontario

PostPosted: Sat 30 Oct 2010, 16:18    Post subject:  

Here's a little Flash demo of Peasyscan 1.1. Unpack the attachment and click on the peasyscan.htm file.
peasyscan.tar.gz
Description 
gz

 Download 
Filename  peasyscan.tar.gz 
Filesize  594.29 KB 
Downloaded  1266 Time(s) 
Back to top
View user's profile Send private message 
tubby

Joined: 24 Jan 2009
Posts: 317

PostPosted: Sun 31 Oct 2010, 11:09    Post subject:  

And here is another one i posted some time ago.

http://murga-linux.com/puppy/viewtopic.php?t=59298
Back to top
View user's profile Send private message 
Laie

Joined: 20 Jan 2008
Posts: 289
Location: Germany

PostPosted: Sun 31 Oct 2010, 15:33    Post subject:  

Is there an Optical Character Recognition program for puppy?
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6428
Location: Auckland, New Zealand

PostPosted: Mon 01 Nov 2010, 02:28    Post subject:  

Tesseract is the best OCR engine.
http://murga-linux.com/puppy/viewtopic.php?t=234066
I also posted some other scripts and things there that you might find useful.

Auriza also posted Tesseract 2.04 at http://murga-linux.com/puppy/viewtopic.php?t=51507
I don't know whether that package was compiled with or without libtiff.

It is really about time I packaged Tesseract 3 and the latest ocropus...

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9059
Location: Stratford, Ontario

PostPosted: Thu 04 Nov 2010, 11:07    Post subject:  

Peasyscan 1.3 now has OCR capability using Tesseract. Download Tesseract 2.04 from here. You need both PETs.

Update: Here is a download link for Tesseract 3. It is a larger package than 2.04 and is somewhat slower, but can process text in columns. Click the small grey Download button on the left. http://www1.datafilehost.com/d/734bff6d

Attached below is the v3.00 English language package. If you need another language, go here and download a "trained data" package. Unzip it and copy the file to the folder /usr/share/tessdata.

Update: Here is a download link for Tesseract 3.01, which now supports Arabic, Hindi, and Thai. However this version ONLY works with newer Puppies, like Lupu, Slacko and Precise. It does NOT work with Wary. You can continue to use the v3.00 language packages. http://www1.datafilehost.com/d/8a274575

Update: Here is a little tool named pic2txt. It uses Tesseract OCR to convert graphic files to text. Run it from the Graphic menu.
pic2txt-1.2.pet
Description  Updated 2013-11-26
Recognizes additional languages
pet

 Download 
Filename  pic2txt-1.2.pet 
Filesize  1.54 KB 
Downloaded  221 Time(s) 
tesseract_eng-3.00.pet
Description 
pet

 Download 
Filename  tesseract_eng-3.00.pet 
Filesize  725.99 KB 
Downloaded  1205 Time(s) 

Last edited by rcrsn51 on Tue 26 Nov 2013, 18:55; edited 22 times in total
Back to top
View user's profile Send private message 
cryder

Joined: 04 Nov 2010
Posts: 1

PostPosted: Thu 04 Nov 2010, 11:39    Post subject:  

Yay, finally Smile

Thanks for the link, I've been waiting for quite some time to give Tesseract a shot.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Fri 26 Nov 2010, 05:22    Post subject: Peasyscan 1.3  

I don't know if this is the correct place to report problems, but here I go.
My printer is an Epson Stylus Photo RX600
I use Lucid 511.
I can scan with xsane.

With peasy, I get the panel to change color and to preview or scan.
The title bar indicates my scanner device.
I get an error on preview that nothing is scanned.

Thus I tried via the console:
Code:
# peasyscan
/usr/local/peasyscan/scan: line 3: 19721 Segmentation fault      $PEASYPATH/xscanimage-peasy 2>/dev/null
pnmtopng: Error reading magic number from Netpbm image stream.  Most often, this means your input file is empty.
#

Code:
# cd /usr/local/peasyscan
# ./xscanimage-peasy
Segmentation fault
#

Looks I have a segmentation fault.
How to go from here?

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9059
Location: Stratford, Ontario

PostPosted: Fri 26 Nov 2010, 08:46    Post subject:  

Which scanner driver, if any, did you install? Are you using the epkowa backend from here or are you using one of the built-in Epson backends that comes with Sane?
Last edited by rcrsn51 on Wed 14 Sep 2011, 18:35; edited 3 times in total
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Fri 26 Nov 2010, 11:11    Post subject:  

I didn't install anything extra, so I suppose the one of xsane in Lucid 511 is used. I will have to check on the other machine with the scanner.
_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9059
Location: Stratford, Ontario

PostPosted: Fri 26 Nov 2010, 11:14    Post subject:  

In that case, could you please install the epkowa backend from the above link? It's the epkowa-2.26.0.pet at the end of the thread. Then try Peasyscan again.

You may need to go into the file /etc/sane.d/dll.conf and comment out the epson and epson2 entries.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Fri 26 Nov 2010, 12:07    Post subject: [SOLVED]  

Indeed I got the epson2:libusb:001:003
The epkowa pet is installed and I have the choice no between the epson and the epkowa.
I can scan now, but there must be e temp file created somewhere as my save file is almost 0 now.

I saw in the same thread the iscan pet and remember now we had a discussion about it.

Thanks for the help.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 4 [60 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1031s ][ Queries: 13 (0.0083s) ][ GZIP on ]