Scan in batch mode from console
smth is a command-line tool which allows you to scan in batch mode on Linux.
- Scan sheets in batch mode
- Merge scanned images automatically into a single PDF file
- Add new pages to existing sheets scanned before
pip install smth
Or install from source:
git clone https://github.com/dmitrvk/smth cd smth pip install .
If you got an error with missing
make sure you have sane installed.
For Debian-based distributions, you may need to install
Assume you have some handwriting on A4 sheets, e.g. lecture notes. To scan them, first, create a new notebook:
$ smth create
Now you can start scanning process (don't forget to connect the scanner):
$ smth scan
First time you will be asked for scanner device you want to use. It takes some time for sane to load the list of devices, but next time the device you choose will be used by default. See instructions below on how you can change the default device.
Generated PDF will contain all scanned pages.
Separate jpg images are stored in
Though the type of the notebook is set to 'A4', smth does not crop or rotate scanned images to make them fit the 'A4' format. It just merges pages into a PDF file as they are. Custom page sizes will be implemented in future versions.
When you scan new pages of the same notebook, smth automatically inserts them at the end of PDF file.
Configuration is stored in
[scanner] device = <device> delay = 0
<device> is a device name which sane uses for scanning.
scan command, the value of this parameter is used by default.
You can change it manually or run
scan command with
$ smth scan --set-device
To identify your scanner's name, run
delay option specifies time in seconds which should pass before scanning
of the next page starts. Set this option to higher value if you need extra
time to put next sheet on scanner's glass.
This project is licensed under the GNU General Public License v3.0.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size smth-0.2.0-py3-none-any.whl (28.3 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size smth-0.2.0.tar.gz (12.7 kB)||File type Source||Python version None||Upload date||Hashes View|