Skip to main content

Scan tool for HP MF Printers

Project description

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:

  1. Deskew each page
  2. Crop the image
  3. Check text orientation
  4. Start ocr
  5. 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

  1. Ensure that your scanner is reachable
  2. Start the app
  3. Select a ScanMode
  4. Select a path where you want to store your images
  5. Enter an image prefix name. All the scanned images will enumerated automatically.
  6. Choose a scan resolution
  7. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scan2folder-0.2.3.tar.gz (46.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scan2folder-0.2.3-py3-none-any.whl (52.7 kB view details)

Uploaded Python 3

File details

Details for the file scan2folder-0.2.3.tar.gz.

File metadata

  • Download URL: scan2folder-0.2.3.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scan2folder-0.2.3.tar.gz
Algorithm Hash digest
SHA256 954e8e1f963b5431b5df5f09a3a2fd068e9a9be2bf7b82f34f09730ce8bd5db4
MD5 cfb8d204771a6f5fde8be4734304a93f
BLAKE2b-256 b8083dbed3151968ce456fcd3062fc50f285af3e61a5ac65e997cb816b288e9d

See more details on using hashes here.

File details

Details for the file scan2folder-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: scan2folder-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 52.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scan2folder-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4c59edb7d12db4b14d6c13f7dba9156ce4b360892bdd1ba5c2393265e0ce1f63
MD5 f72280cfe6659f7edcf7a683e6b0645a
BLAKE2b-256 99d8df1d7b5c300e6126a25d2aac3f2d8409a26a15265b6572afcde9ce32a165

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page