Simple Scan

文档扫描应用程序。(Document Scanning Application)

  • 所有者: GNOME/simple-scan
  • 平台:
  • 許可證: GNU General Public License v3.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

简介

这是简单扫描 的源代码 - GNOME 文件扫描申请。简单扫描允许您使用捕获图像 图像扫描仪(例如平板扫描仪)安装了合适的 SANE驱动程序

从源代码构建

安装依赖项(第一行是Ubuntu/Debian,第二行是Fedora):

$ sudo apt install git meson valac libgtk-3-dev libgusb-dev libcolord-dev libpackagekit-glib2-dev libwebp-dev libsane-dev gettext itstool
$ sudo dnf install -y meson vala gettext itstool gtk3-devel libgusb-devel colord-devel PackageKit-glib-devel libwebp-devel sane-backends-devel

获取源代码:

$ git clone https://gitlab.gnome.org/GNOME/simple-scan.git
$ cd simple-scan

构建并运行:

$ meson --prefix $PWD/install build/
$ ninja -C build / all install
$ XDG_DATA_DIRS=install/share:$XDG_DATA_DIRS ./install/bin/simple-scan

调试

有一个--debug命令行开关可以启用更详细的日志记录:

  $ simple-scan --debug

日志消息也可以在 $ HOME/.cache/simple-scan 文件夹中找到。

如果您没有准备好扫描仪,可以使用虚拟“测试”扫描仪:

  $ simple-scan --debug test

简单扫描通过使用 SANE API 捕获图像来工作。 它会选择它认为适合您要执行的操作的设置。 驱动程序有许多选项并且质量不同 —— 如果任何问题是由简单扫描或驱动程序引起的,则可以解决问题。 要排除简单扫描,您可以使用图形工具(XSane)或SANE项目提供的命令行 scanimage —— 这些可以轻松查看和控制驱动程序提供的所有设置。

主要指標

概覽
名稱與所有者GNOME/simple-scan
主編程語言Vala
編程語言Meson (語言數: 4)
平台
許可證GNU General Public License v3.0
所有者活动
創建於2017-04-27 04:19:54
推送於2025-04-15 20:04:41
最后一次提交2025-04-05 20:59:32
發布數228
最新版本名稱48.1 (發布於 2025-04-05 19:18:45)
第一版名稱simple-scan-0.6.0 (發布於 )
用户参与
星數58
關注者數7
派生數12
提交數2.6k
已啟用問題?
問題數0
打開的問題數0
拉請求數0
打開的拉請求數0
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Build Status
License

Introduction

Document Scanner is a document scanning application for GNOME
It allows you to capture images using image scanners
(e.g. flatbed scanners) that have suitable SANE drivers installed.

Building from source

Install the dependencies

For Ubuntu/Debian:

$ sudo apt install git meson valac libgtk-3-dev libgusb-dev libcolord-dev libpackagekit-glib2-dev libwebp-dev libsane-dev gettext itstool

For Fedora:

$ sudo dnf install -y meson vala gettext itstool gtk3-devel libgusb-devel colord-devel PackageKit-glib-devel libwebp-devel sane-backends-devel

Get the source:

$ git clone https://gitlab.gnome.org/GNOME/simple-scan.git
$ cd simple-scan

Build and run:

$ meson --prefix $PWD/_install _build
$ ninja -C _build all install
$ XDG_DATA_DIRS=_install/share:$XDG_DATA_DIRS ./_install/bin/simple-scan

Debugging

There is a --debug command line switch to enable more verbose logging:

$ simple-scan --debug

Log messages can also be found in the $HOME/.cache/simple-scan folder.

If you don't have a scanner ready, you can use a virtual test scanner:

$ simple-scan --debug test

This app works by using the SANE API to
capture images. It chooses the settings it thinks are appropriate for what you
are trying to do. Drivers have many options and are of differing quality - it
is useful to work out if any issues are caused by the app or the drivers. To
confirm it is a driver issue you can use the graphical tool (XSane) or the
command line
scanimage provided
by the SANE project - these allow to to easily see and control all the
settings your driver provides.

If XSane is also not working, then the issue could be casued by wrongly
loaded backend. To enable debug traces on Sane, set SANE_DEBUG_DLL
environment variable:

$ export SANE_DEBUG_DLL=255

When set, SANE backends will show informational messages while
Document Scanner is running

Example:

With HP MFP 135a scanner, there is missing libusb-0.1.so.4
shared library, during loading smfp prioprietary backend:

[dll] sane_get_devices
[dll] load: searching backend `smfp' in `/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane'
[dll] load: trying to load `/usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1'
[dll] load: couldn't open `/usr/lib/x86_64-linux-gnu/sane/libsane-smfp.so.1' (No such file or directory)
[dll] load: trying to load `/usr/lib/sane/libsane-smfp.so.1'
[dll] load: dlopen()ing `/usr/lib/sane/libsane-smfp.so.1'
[dll] load: dlopen() failed (libusb-0.1.so.4: No such file or directory)

Contributing

To contribute code create merge requests on
gitlab.gnome.org. If you
find issues please report them.

Translation

A lot of information about translation process can be found at
GNOME TranslationProject.
The translation files for Document Scanner User Interface and User Guide,
are available here.