Merge pull request #24992 from geekpi/translating

translated
This commit is contained in:
geekpi 2022-03-22 08:50:34 +08:00 committed by GitHub
commit 352d2f554c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 94 additions and 94 deletions

View File

@ -1,94 +0,0 @@
[#]: subject: "Scan documents and old photos on Linux with Skanlite"
[#]: via: "https://opensource.com/article/22/2/scan-documents-skanlite-linux-kde"
[#]: author: "Seth Kenlon https://opensource.com/users/seth"
[#]: collector: "lujun9972"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
Scan documents and old photos on Linux with Skanlite
======
Use this Linux KDE application to digitize your archives.
![Filing papers and documents][1]
Although the world has mostly gone digital now, there are still times when you just have to print a form, sign it, and scan it back in. Sometimes, I find that a snapshot on my phone suffices, but some industries require a better copy than a hasty snapshot, and so a flatbed scanner is necessary. The KDE project provides an application called Skanlite that helps you import documents scanned on a flatbed, or even a tethered camera.
### Install Skanlite on Linux
You can install Skanlite from your software repository. On Fedora, Mageia, and similar:
```
`$ sudo dnf install skanlite`
```
On Elementary, Linux Mint, and other Debian-based distributions:
```
`$ sudo apt install skanlite`
```
### Scanner drivers
Most scanners on the market are compatible with the SANE scanner API. SANE isn't really a driver, but a protocol that can receive input from image capture devices and provide options to a programmer looking to build an application around it. Skanlite is one such application.
I've yet to come across a scanner that doesn't interface with SANE, but there are probably scanners out there that don't. In those cases, look on the manufacturer's website for SANE or TWAIN drivers, or else for their proprietary driver and scanner interface. The latter may not be usable with Skanlite, but Skanlite is always worth launching when you're unsure whether your scanner communicates over standard protocols. I've even had printer and scanner combination devices where the scanner is recognized immediately, even though the printer requires an additional driver.
### Using Skanlite
When you launch Skanlite, it first searches your system for image capture devices. On laptops, Skanlite usually discovers the webcam as a valid input source (because it is), but it also locates flatbed scanners attached to your machine. Select the scanner you want to use, and then continue.
To see what's on the scanbed, click the **Preview** button in the bottom right corner of the application.
![Skanlite with custom artwork][2]
(Image courtesy KDE)
This displays a preview image in the right panel. Nothing has been saved to your drive, this only shows you what your scanner has on it at the moment.
### Selecting a scan area
If you only need a portion of what's on the scanner, you can select an area you want to save. To select a single region, click and drag your mouse over the area you want to save. When there's an active selection, only the portion of the document you've selected will be saved when you click the **Scan** button.
You can have more than one selection, which is especially efficient when you need to scan several small images or only specific parts of one larger documents. To add a selection, click the **+** icon that appears in the center of your selection.
![Adding selections][3]
(Image courtesy KDE)
You can remove selections by clicking the **-** icon, which appears when you have multiple active selections.
### Scan settings
Image capture settings are located in the left panel. These controls allow you to import images in color or grayscale, and make adjustments to the brightness and contrast of the image. These options are software-based and don't affect how your scanner behaves, but they're common adjustments to make, and doing those adjustments here can save you from having to post-process the image in GIMP or Gwenview.
In many cases, your scanner may have configurable settings, found in the **Scanner Specific Options** tab on the left of the Skanlite window. Some scanners allow you to adjust color temperature, brightness, saturation, and other attributes that happen in firmware. Available options vary depending on the device and vendor, so you're likely to see changes in this panel depending on which device you're interfacing with.
### Scan and save
When you're ready to import the image (or the selected area of the image, if you've made selections), click the **Scan** button in the bottom right corner of the Skanlite window. Depending on your device, it may take a few moments to create the scan, but when it's done you're prompted to save or discard the image. If you like what you see, click **Save**.
Images are saved to whatever default location you have configured. To see the default location, click the **Settings** button in the bottom right corner of the window. In **Skanlite Settings**, you can set the default save location, the default name format, and the image resolution. You can also control whether you're prompted to save or discard an image after each scan, or whether you prefer to save everything and sort through it later.
### Scanning is easy on Linux
Scanning documents on Linux is so easy, I rarely give it a second thought. There aren't usually special drivers or applications you need to hunt down and install, because applications like Skanlite use open protocols to make the process simple. The next time you have a hard copy that you need to digitize, import it with Skanlite.
--------------------------------------------------------------------------------
via: https://opensource.com/article/22/2/scan-documents-skanlite-linux-kde
作者:[Seth Kenlon][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/seth
[b]: https://github.com/lujun9972
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/documents_papers_file_storage_work.png?itok=YlXpAqAJ (Filing papers and documents)
[2]: https://opensource.com/sites/default/files/skanlite.png (Skanlite with custom artwork)
[3]: https://opensource.com/sites/default/files/skanlite-selection.jpg (Adding selections)

View File

@ -0,0 +1,94 @@
[#]: subject: "Scan documents and old photos on Linux with Skanlite"
[#]: via: "https://opensource.com/article/22/2/scan-documents-skanlite-linux-kde"
[#]: author: "Seth Kenlon https://opensource.com/users/seth"
[#]: collector: "lujun9972"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
用 Skanlite 在 Linux 上扫描文件和老照片
======
使用这个 Linux KDE 应用,将你的档案数字化。
![Filing papers and documents][1]
虽然现在的世界已经大部分实现了数字化但仍有一些时候你只需要打印一份表格签字然后把它扫描回来。有时候我发现在手机上拍个快照就够了但有些行业需要比草率的快照更好的复印件因此平板扫描仪是必要的。KDE 项目提供了一个叫做 Skanlite 的应用程序,它可以帮助你导入在平板上扫描的文件,甚至是用联机相机扫描的文件。
### 在 Linux 上安装 Skanlite
你可以从你的软件库中安装 Skanlite。在 Fedora、Mageia 和类似的地方:
```
`$ sudo dnf install skanlite`
```
在 Elementary、Linux Mint 和其他基于 Debian 的发行版上:
```
`$ sudo apt install skanlite`
```
### 扫描仪驱动
市场上的大多数扫描仪都与 SANE 扫描仪 API 兼容。SANE 并不是一个真正的驱动而是一个协议可以接收来自图像采集设备的输入并为希望围绕它建立一个应用的程序员提供选项。Skanlite 就是这样一个应用。
我还没有遇到过不与 SANE 接口兼容的扫描仪,但可能也有不与 SANE 接口兼容的扫描仪。在这些情况下,请在制造商的网站上寻找 SANE 或 TWAIN 的驱动,或者寻找它们专有的驱动和扫描仪接口。后者可能无法使用 Skanlite但当你不确定你的扫描仪是否通过标准协议进行通信时Skanlite 总是值得启动。我甚至遇到过打印机和扫描仪的组合设备,尽管打印机需要一个额外的驱动,但扫描仪却能立即被识别。
### 使用 Skanlite
当你启动 Skanlite 时它首先会在你的系统中搜索图像采集设备。在笔记本电脑上Skanlite 通常会发现网络摄像头是一个有效的输入源(因为它是),但它也会找到连接到你机器上的平板扫描仪。选择你要使用的扫描仪,然后继续。
要看扫描的内容,点击应用程序右下角的**预览**按钮。
![Skanlite with custom artwork][2]
图片来源KDE
这将在右面板上显示一个预览图像。没有任何东西被保存到你的硬盘上,这只显示你的扫描仪上目前有什么。
### 选择一个扫描区域
如果你只需要扫描仪上的一部分内容,你可以选择一个你想保存的区域。要选择一个单一的区域,在你想保存的区域上点击并拖动你的鼠标。当有一个有效的选择时,当你点击**扫描**按钮时,只有你选择的那部分文件会被保存。
你可以有一个以上的选区,当你需要扫描几个小图像或只扫描一个大文件的特定部分时,这特别有效。要添加一个选区,请点击出现在选区中心的 **+** 图标。
![Adding selections][3]
图片来源KDE
你可以通过点击 **-** 图标来删除选区,当你有多个活动选区时,该图标会出现。
### 扫描设置
图像采集设置位于左边的面板上。这些控件允许你导入彩色或灰度的图像,并对图像的亮度和对比度进行调整。这些选项是基于软件的,不影响你的扫描仪的行为方式,但它们是常见的调整,在这里做这些调整可以使你不必在 GIM 或 Gwenview 中对图像进行后期处理。
在许多情况下,你的扫描仪可能有可配置的设置,可在 Skanlite 窗口左侧的**扫描仪特定选项**标签中找到。有些扫描仪允许你调整色温、亮度、饱和度和其他发生在固件中的属性。可用的选项根据设备和供应商的不同而不同,所以你有可能在这个面板上看到变化,这取决于你与哪种设备的对接。
### 扫描和保存
当你准备好导入图像(或图像的选定区域,如果你已经做了选择)时,点击 Skanlite 窗口右下角的**扫描**按钮。根据你的设备,它可能需要一些时间来创建扫描,但当它完成后,会提示你保存或丢弃图像。如果你喜欢你所看到的,点击**保存**。
图像会被保存到你所配置的任何默认位置。要查看默认位置,点击窗口右下角的**设置**按钮。在 **Skanlite 设置**中,你可以设置默认保存位置、默认名称格式和图像分辨率。你还可以控制每次扫描后是否提示你保存或丢弃图像,或者你是否喜欢保存所有的东西并在以后进行分类。
### Linux 上的扫描很容易
在 Linux 上扫描文件是如此简单,我很少考虑这个问题。通常没有特殊的驱动或应用需要你去寻找和安装,因为像 Skanlite 这样的应用使用开放协议,使这个过程变得简单。下次你有一份需要数字化的拷贝时,用 Skanlite 导入它。
--------------------------------------------------------------------------------
via: https://opensource.com/article/22/2/scan-documents-skanlite-linux-kde
作者:[Seth Kenlon][a]
选题:[lujun9972][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/seth
[b]: https://github.com/lujun9972
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/documents_papers_file_storage_work.png?itok=YlXpAqAJ (Filing papers and documents)
[2]: https://opensource.com/sites/default/files/skanlite.png (Skanlite with custom artwork)
[3]: https://opensource.com/sites/default/files/skanlite-selection.jpg (Adding selections)