Scan-Image-Slicer (SCIS)
Scan-Image-Slicer (SCIS) is a versatile tool designed for detecting and slicing images from scanned documents or photographs.
Modes:
SCIS offers four distinct modes of operation, each tailored to specific tasks:
1. Count Mode
- Use this mode to count the slices within images without performing any further processing. Ideal for estimating the space needed for the image slices.
2. Test Mode
- Shows a GUI for fine-tuning image detection parameters. Used for adjusting detection sensitivity and minimum/maximum slice size.
3. Preview Mode
- Shows a GUI for previewing sliced images and adjusting filtering options. Allows users to customize filters to their preferences before slicing.
4. Slice Mode
- Initiates the slicing process, creating individual images from slices and saving them to the designated output folder. Supports multicore processing for efficient batch slicing.
Suggested Workflow
1. Scan items (photos, paper clippings etc..):
- Begin by scanning your items, preferably in large batches to streamline the process. Leave some space between the items for easier detection. Save the scans in one of the following file formats: JPEG, PNG, WEBP, BMP or TIFF.
- Name the scans however you like as SCIS does not re-use the file names.
- Take advantage of the auto-rotate option (--auto-rotate), which automatically rotates slices 90 degrees clockwise/counter-clockwise if the slice width is smaller than its height.
- Organize your scans into folders within the designated input directory. For example, if you have wedding photos, create a folder named "Weddings" inside the input folder and place your scans there.
- The naming of sliced images is derived from the folder structure within the input directory. Each subfolder adds a layer to the naming scheme. Alternatively, you can place scanned images directly into the input folder, and they will be named generically.
2. Install SCIS:
-
Install latest Python with TkInter support.
-
Install SCIS using pip (or pipx).
pip install scan-image-slicer -
Run the app once to create the default configuration file.
-
Address missing input/output paths as prompted by editing the default config file.
3. Test Mode:
-
Use the test mode to fine-tune image detection. Remember to save your detection parameters.
scan-image-slicer --test-mode --add-random 5
4. Preview Mode:
-
Utilize the preview mode to preview sliced images and adjust filtering options according to your preferences.
scan-image-slicer --preview-mode --add-random 5
5. Slice Mode:
-
Initiate the slice mode to create images from slices and save them to the designated output folder.
scan-image-slicer --slice-mode --add-all
6. Additional Information:
-
For more details on available options, refer to the configuration file or run the help command.
scan-image-slicer --help
Examples:
Basic Usage:
-
List all compatible images in the input folder showing image ID, name and size:
scan-image-slicer --list-images -
Test image detection by counting the slices from 5 random images
scan-image-slicer --count-mode --add-random 5 -
Slice 5 randomly picked images and save the slices in WebP format:
scan-image-slicer --slice-mode --add-random 5 --save-format webp
Further info:
List of command-line arguments with explanation on each here.
Metadata
Release files for scan-image-slicer 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scan_image_slicer-2.0.2.tar.gz | 36.2 kB | Without provenance | Details for scan_image_slicer-2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scan_image_slicer-2.0.2-py3-none-any.whl | Python 3 | none | any | Details for scan_image_slicer-2.0.2-py3-none-any.whl |
Total release size: 72.2 kB
Release files / scan_image_slicer-2.0.2.tar.gz
| Download URL | scan_image_slicer-2.0.2.tar.gz |
|---|---|
| Size | 36.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5d5cbdcc1a90eba53c87119a2aa7d2a9603862c20fa5c1c0eb0e750862310c7
|
|
BLAKE2b-256 checksum How to use checksums |
7bd45d3f2ef8400518d17d48cf30b67b06fb8fccf22564997fd63243aa133ec8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / scan_image_slicer-2.0.2-py3-none-any.whl
| Download URL | scan_image_slicer-2.0.2-py3-none-any.whl |
|---|---|
| Size | 36.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c621796ec9d1a1c0e30d8245d45632c1c52435c70201fac5c66a836638895374
|
|
BLAKE2b-256 checksum How to use checksums |
3d04a3051a75a0cc3d173ad6e0abd3b0d97bc7df43c7f163e431fd650548cc9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Security for scan-image-slicer 2.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.