<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>3. Scanning Documents and Images</title> <link rel="stylesheet" href="images/mdk-doc.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.73.2"> <link rel="start" href="index.html" title="Mastering Mandriva Linux"> <link rel="up" href="graphics-tools-devices-chapter.html" title="Chapter 5. Graphics Tools And Practical Devices"> <link rel="prev" href="digicam-digikam.html" title="2. Digital Cameras"> <link rel="next" href="advanced.html" title="Part 2. Configuring and Tweaking Your Box"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">3. Scanning Documents and Images </th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="digicam-digikam.html">Prev</a> </td> <th width="60%" align="center">Chapter 5. Graphics Tools And Practical Devices</th> <td width="20%" align="right"> <a accesskey="n" href="advanced.html">Next</a></td> </tr> </table> <hr> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a name="scanner"></a>3. Scanning Documents and Images </h2> </div> </div> </div> <p><a name="BId-scanner-pa1"></a><a class="indexterm" name="BIdNEW-scanner-it1"></a> This section explains how to use a scanner with <span class="application">Kooka</span> and <span class="application">GIMP</span>. Please refer to <a class="xref" href="scannerdrake.html" title="7. Installing and Sharing Scanners">Section 7, “Installing and Sharing Scanners”</a> for instructions on how to set up your scanner. </p> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name="scanner-scan-documents"></a>3.1. Scan Documents with Kooka </h3> </div> </div> </div> <p><a name="BId-scanner-pa28"></a>While there are many scanning applications available, we chose <span class="application">Kooka</span> because it is both simple and complete. Make sure the <code class="filename">kooka</code> package is installed. </p> <p><a name="BId-scanner-pa29"></a>You can launch <span class="application">Kooka</span> through the <span class="guimenu">Multimedia</span>+<span class="guimenu">Graphics</span> → <span class="guimenuitem">Kooka</span> menu item. </p> <p> <b>Choosing the Scanning Media Device. </b> The first time you launch <span class="application">Kooka</span>, a dialog prompts you to choose the scanning device to use. Check the box to always use this device. </p> <div class="figure"><a name="scanner-kooke"></a><p class="title"><b>Figure 5.10. Kooka Main Interface</b></p> <div class="figure-contents"> <div class="mediaobject" align="center"><img src="images/scanner-kooka.png" align="middle" alt="Kooka Main Interface"></div> </div> </div><br class="figure-break"> <div class="procedure"> <ol type="1"> <li> <p><a name="BIdNEW-scanner-pa53"></a>Place your document into the scanner, and click the <span class="guibutton">Preview Scan</span> button. The image appears in the right pane. </p> </li> <li> <p><a name="BIdNEW-scanner-pa54"></a>Click and drag your mouse over the preview image to select the area to be scanned </p> </li> <li> <p><a name="BIdNEW-scanner-pa55"></a>Set the scan parameters, especially the <span class="guilabel">Scan mode</span> and <span class="guilabel">Resolution</span>. </p> </li> <li> <p><a name="BIdNEW-scanner-pa56"></a>Click <span class="guibutton">Final Scan</span> to launch the actual document scan. </p> </li> <li> <p><a name="BIdNEW-scanner-pa57"></a>In the window that pops up, choose the image format to be used to store that scan. The image then stacks on the images list, top left. </p> </li> <li> <p><a name="BIdNEW-scanner-pa58"></a><span class="inlinemediaobject"><img src="images/scanner-kooka-img-tab-icon.png"></span>Check the result by opening the final scan tab. You can then change parameters and scan again if required. </p> </li> <li> <p><a name="BIdNEW-scanner-pa59"></a>If all looks fine, you can save your image wherever you want by right clicking on it in the list of images. Remember to clean that list from time to time by deleting items from it. </p> </li> </ol> </div> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name="scanner-scan-images"></a>3.2. Scan Images with The Gimp </h3> </div> </div> </div> <p><a name="BId-scanner-pa30"></a>Install the <code class="filename">xsane-gimp</code> package to be able to import your images directly into <span class="application">GIMP</span> for image retouching tasks (see <a class="xref" href="graphic-edit.html" title="1. Graphic Art And Image Manipulation">Section 1, “Graphic Art And Image Manipulation”</a>). Choose <span class="guimenu">File</span>+<span class="guimenu">Acquire</span> → <span class="guimenuitem">XSane: SCANNER_DEVICE_NAME</span> to launch <span class="application">XSane</span>. </p> <p><a name="BIdNEW-scanner-pa60"></a>Then, click on <span class="guibutton">Acquire preview</span> in <span class="application">XSane</span>'s <span class="guilabel">Preview SCANNER_DEVICE_NAME</span> window, select the area to be scanned by dragging the selection square and its borders around, and click on <span class="guibutton">Scan</span> on <span class="application">XSane</span> window. The image is sent directly to <span class="application">GIMP</span>. </p> <div class="mediaobject" align="center"><img src="images/scanner-xsane-gimp.png" align="middle"></div> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name="scanner-scan-resolution"></a>3.3. A Note About the Resolution </h3> </div> </div> </div> <p><a name="BId-scanner-pa31"></a>Most modern scanners boast high resolutions, such as 1200, 1600 or 2400 <acronym class="acronym">DPI</acronym> (Dots Per Inch). But it would be a mistake to perform all of your scanning at the maximum available resolution. You will notice very little — if any — quality difference between a 300 and a 600 <acronym class="acronym">DPI</acronym> image scan, but the file size will grow exponentially, up to many <acronym class="acronym">MB</acronym>s of disk space for a single image file. </p> <p><a name="BId-scanner-pa32"></a>The resolution value should be chosen according to the device on which the image is to be reproduced. For images to be viewed on computer monitors, e.g. for web sites, the resolution should be close to typical monitor resolution values, between 70 and 100 <acronym class="acronym">DPI</acronym>. Higher values will result not only in bigger images, but the dimensions will also increase, so that an image scanned at 160 <acronym class="acronym">DPI</acronym> instead of 80 will be about twice as large <sup>[<a name="d5e4223" href="#ftn.d5e4223" class="footnote">8</a>]</sup>. </p> <p><a name="BId-scanner-pa34"></a>If you intend to print your images, a resolution of 300 <acronym class="acronym">DPI</acronym> should be enough for most home printers. Increase this value if you have a very high quality printer. </p> <p><a name="BId-scanner-pa35"></a>Higher values should be chosen only for specific uses, such as enlarged images on very high quality printers, or quality scans of black and white originals. You will have to experiment a little until you're satisfied with the results. </p> </div> <div class="section" lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a name="scanner-ocr"></a>3.4. Extracting Text from Scanned Documents (OCR) </h3> </div> </div> </div> <p><a name="BId-scanner-pa41"></a>By installing the <code class="filename">ocrad</code> package, you will be able to use <span class="application">Kooka</span> to perform <acronym class="acronym">OCR</acronym> tasks. The <a class="xref" href="scanner.html#kooka-main" title="Figure 5.11. Scanned Document in Kooka">Figure 5.11, “Scanned Document in Kooka”</a> shows <span class="application">Kooka</span> with a document scanned as explained in <a class="xref" href="scanner.html#scanner-scan-documents" title="3.1. Scan Documents with Kooka">Section 3.1, “Scan Documents with Kooka”</a>. </p> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="images/tip.png"></td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> <p><a name="BIdNEW-scanner-pa49"></a>For better results, you should set the scanning mode to <span class="guilabel">Lineart</span> and the resolution to no less than 300 <acronym class="acronym">DPI</acronym>. </p> </td> </tr> </table> </div> <div class="figure"><a name="kooka-main"></a><p class="title"><b>Figure 5.11. Scanned Document in Kooka</b></p> <div class="figure-contents"> <div class="mediaobject" align="center"><img src="images/kooka-main.png" align="middle" alt="Scanned Document in Kooka"></div> </div> </div><br class="figure-break"> <p><a name="BIdNEW-scanner-pa51"></a><span class="inlinemediaobject"><img src="images/ocr.png"></span> Once the document is scanned, you can click on this icon (<span class="guimenu">Image</span> → <span class="guimenuitem">OCR Image</span>) and click on <span class="guibutton">Start OCR</span>. The resulting text appears along with a spell-correction window. </p> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> <p><a name="BIdNEW-scanner-pa52"></a>Depending on your hardware and the quality of the document you want to scan, you might need to adjust some parameters until you obtain a rendering that satisfies you. For more information on <span class="application">Kooka</span>, please read its handbook (<span class="guimenu">Help</span> → <span class="guimenuitem">Kooka Handbook</span>). </p> </td> </tr> </table> </div> </div> <div class="footnotes"><br><hr width="100" align="left"> <div class="footnote"> <p><sup>[<a name="ftn.d5e4223" href="#d5e4223" class="para">8</a>] </sup>However scanning at a higher resolution and then reducing the resulting image size using graphic manipulation software such as <span class="application">GIMP</span> is one method often used to obtain better results than directly scanning at the desired final resolution. </p> </div> </div> </div> <div class="navfooter"> <hr> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="digicam-digikam.html">Prev</a> </td> <td width="20%" align="center"><a accesskey="u" href="graphics-tools-devices-chapter.html">Up</a></td> <td width="40%" align="right"> <a accesskey="n" href="advanced.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">2. Digital Cameras </td> <td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td> <td width="40%" align="right" valign="top"> Part 2. Configuring and Tweaking Your Box</td> </tr> </table> </div> </body> </html>