Scan2Folder
Enabling the Scan-to-Folder button on HP MFP printers
This is a PytQt6 desktop app for rapidly scanning documents by using the Scan-to-Folder button on HP Multi Function Printers (MFP) especially CM Devices.
This app uses the Sane backend to get all parameters needed.
It also provides image enhancement features.
Note: in this version only the first scanner is used
NEW: Config profiles
If you want scan document with different page sizes it may usefull to save each configuration into a seperate profile
OCR processing and PDF-Document creation or from local images.
The Scan2Folder-Button has a new function.
By pressing the button it opens a file dialog where you can select your image files
you want to procees.
Note: the filenames must be numbered like this<filename>_[1..n].png
OCR processing and PDF-Document creation from your scanns.
After you finished scanning, you can start an OCR-Process The OCR-Process will do the following steps:
- Deskew each page
- Crop the image
- Check text orientation
- Start ocr
- Create searchable PDF
You can define the crop size in the configuration dialog
Note: In this version A4 page size for 300dpi is predifned. If you want to change this, you can do it in ocrtools.py
Usage
- Ensure that your scanner is reachable
- Start the app
- Select a ScanMode
- Select a path where you want to store your images
- Enter an image prefix name. All the scanned images will enumerated automatically.
- Choose a scan resolution
- Press the Start Service button
If the scanner is reachable the LED turns on green and you can use the scan-to-folder button on your device.
Image enhancement
On clicking the Config/Calibrate menu opens a window where you can scan a preview image.
Note: the scan button is only enabled when the service is running.
Only flatbed scanning is supported
Installation
Install packages needed with:
sudo pip3 install -r deps/dependency.txt
For OCR
Install tesseract-ocr 4 with your language and with Orientation & Script detection
Features
- creates PDF from local images
- spec file for creating stand alone binaries
- Image name is cleared when stopped a scan session
- Image name has now auto complete, to avoid overwrite existing files
Issues
- The script is tested only with a HP CM1312 device
- Only one (the first) scanner is usable
- If the LED does not turn green after the device is switched on, may be your device is not supported
- If the LED does not turn green and the button keeps yellow, the scanner is locked by another device/thread
Metadata
Release files for scan2folder 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scan2folder-0.2.3.tar.gz | 46.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scan2folder-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 98.8 kB
Release files / scan2folder-0.2.3.tar.gz
| Download URL | scan2folder-0.2.3.tar.gz |
|---|---|
| Size | 46.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
954e8e1f963b5431b5df5f09a3a2fd068e9a9be2bf7b82f34f09730ce8bd5db4
|
|
BLAKE2b-256 checksum How to use checksums |
b8083dbed3151968ce456fcd3062fc50f285af3e61a5ac65e997cb816b288e9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / scan2folder-0.2.3-py3-none-any.whl
| Download URL | scan2folder-0.2.3-py3-none-any.whl |
|---|---|
| Size | 52.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c59edb7d12db4b14d6c13f7dba9156ce4b360892bdd1ba5c2393265e0ce1f63
|
|
BLAKE2b-256 checksum How to use checksums |
99d8df1d7b5c300e6126a25d2aac3f2d8409a26a15265b6572afcde9ce32a165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|