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 Mon 29 Aug 2016, 05:09
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 7 [95 Posts]   Goto page: 1, 2, 3, 4, 5, 6, 7 Next
Author Message
rcrsn51


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

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

Update: PeasyScan v2.9 has some changes to OCR. If you are using a non-English language, it will be automatically detected. If you want the ability to switch between multiple languages, you must now make a configuration file. Add a line that identifies the three-letter language code. For example:
Code:
<language>fra</language>

Also, you can now do a batch scan and perform OCR at the same time. Go here for details on installing OCR. See below for more information about configuration files.

Update: Peasyscan v2.8 has some improvements in saving to PDF, particularly when working in ADF mode. The plugin package is now REQUIRED and installs libtiff5 if your Puppy needs it. It can perform tasks like scanning an A4 document into an A4 PDF file. If you don't want to bother installing the plugin, save your scan as a graphic and convert it to PDF using PeasyPDF.

Update: Peasyscan v2.7 introduces a Print button. It sends the scan job directly to PeasyPrint without having to save the image in a file. You must update your PeasyPrint to v2.5 or higher.

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.

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

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/share/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.

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

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.

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 command "scanimage -h".

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.

For more information about the URI option, see below. Make sure that you type the URI tag as U-R-eye, not U-R-ell!

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

Automatic Document Feeder: The main Peasyscan window has an Auto button. Before clicking it, select the image format and the Save filename. With Auto scanning, you need only enter the document's base name. For example, if you enter "/root/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.

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 a partial scan area. For example, to scan a batch of 4x6 photos, use:
Code:
<mode>Color</mode>
<resolution>150</resolution>
<paper>-x 102 -y 153</paper>

The units are in millimetres.

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

Networked HP Scanners: 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, "?ip=" and its IP address. To identify the unit's model name, temporarily connect it via USB and run the command "scanimage -L".

If you don't want to bother connecting by USB, use the following procedure:

1. Go to http://hplipopensource.com/hplip-web/supported_devices/
2. Look up your printer.
3. Scroll down to "Other Information"
4. Identify the "models.dat" name.
5. Use this exact name in the <uri> entry.

You can also define a networked HP scanner using a hostname :
Code:
<uri>hpaio:/net/ENVY_4500_series?hostname=Envy</uri>

Then add a line to the file /etc/hosts using the printer's current IP address:
Code:
aaa.bbb.cc.dd Envy

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

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_pdf_plugin-1.3.pet
Description  Updated 2016-05-24
New version of tiff2pdf
pet

 Download 
Filename  peasyscan_pdf_plugin-1.3.pet 
Filesize  200.75 KB 
Downloaded  120 Time(s) 
peasyscan-2.9.pet
Description  Updated 2016-04-24
Changes to OCR
pet

 Download 
Filename  peasyscan-2.9.pet 
Filesize  45.1 KB 
Downloaded  124 Time(s) 

Last edited by rcrsn51 on Fri 17 Jun 2016, 15:39; edited 147 times in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 10984
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: 10984
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: 10984
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: 10984
Location: Stratford, Ontario

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

[Deleted]
Last edited by rcrsn51 on Wed 31 Dec 2014, 13:50; edited 1 time in total
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: 307
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: 6681
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...

_________________
Classic Puppy quotes
-
root: n. the superuser or administrator account that has complete control over everything in the machine. Running as root is a taonga of Puppy Linux users.
Back to top
View user's profile Send private message 
rcrsn51


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

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

Peasyscan 1.3 now has OCR capability using Tesseract. Here is a download link for Tesseract 3.00. Click the small green DOWNLOAD box.

http://www.mediafire.com/download/1hhg3mfn8orgypw/tesseract_combo-3.00.tar

Code:
d40de6a9c345bbc8d326005b6251d1ac  tesseract_combo-3.00.tar

The package contains two PETs - the Tesseract program and the English language data.

Update: The Tesseract-OCR project has moved from Google Code to GitHub and the v3.00 language files have disappeared. But you can still get them (for now) through a manual procedure.

1. In your browser, go to http://tesseract-ocr.googlecode.com/files/xxx.traineddata.gz where xxx is your 3-letter language code - deu, fra, ita, kor, rus, spa, ukr, etc. The files are also available here.

2. Download the file and extract it.

3. Copy the file xxx.traineddata to /usr/share/tessdata

4. For other languages, you will need an upgrade to v3.04.

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

Here is a little tool named pic2txt. It uses Tesseract OCR to convert graphic files (JPG, PNG, TIF, PNM) to text. Run it from the Graphic menu.

If your graphic is complicated or low quality, you can sometimes improve the OCR by up-scaling the image. You can now do this from inside pic2txt by installing image-changer.

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

Update: A 64bit version of Tesseract 3.00 is posted here. This is a combo package containing four PETs - Tesseract, the English language data, pic2txt and the 64bit version of image-changer. For non-English languages, use the same instructions posted above.

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

Update: For a batch-mode version of pic2txt, read here.

------------------------------
pic2txt-1.3.pet
Description  Updated 2016-02-11
Does upscaling through image-changer
Has a better range of scaling percents
pet

 Download 
Filename  pic2txt-1.3.pet 
Filesize  2.25 KB 
Downloaded  152 Time(s) 
screenie.png
 Description   
 Filesize   12.52 KB
 Viewed   1079 Time(s)

screenie.png


Last edited by rcrsn51 on Tue 31 May 2016, 10:36; edited 48 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: 11775
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: 10984
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: 11775
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: 10984
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: 11775
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 7 [95 Posts]   Goto page: 1, 2, 3, 4, 5, 6, 7 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.0632s ][ Queries: 13 (0.0048s) ][ GZIP on ]