scan-image-slicer


Namescan-image-slicer JSON
Version 2.0.2 PyPI version JSON
download
home_pageNone
SummaryA tool for detecting and slicing images
upload_time2024-09-24 10:51:37
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords scanner scan slice slicer image photo digitize
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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](./COMMANDS.md).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "scan-image-slicer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "scanner, scan, slice, slicer, image, photo, digitize",
    "author": null,
    "author_email": "hiemb <highonember@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/7b/d4/5d3f2ef8400518d17d48cf30b67b06fb8fccf22564997fd63243aa133ec8/scan_image_slicer-2.0.2.tar.gz",
    "platform": null,
    "description": "Scan-Image-Slicer (SCIS)\n---\n**Scan-Image-Slicer (SCIS)** is a versatile tool designed for detecting and slicing images from scanned documents or photographs.\n\n### Modes:\nSCIS offers four distinct modes of operation, each tailored to specific tasks:\n\n#### 1. Count Mode\n- Use this mode to count the slices within images without performing any further processing. Ideal for estimating the space needed for the image slices.\n\n#### 2. Test Mode\n- Shows a GUI for fine-tuning image detection parameters. Used for adjusting detection sensitivity and minimum/maximum slice size.\n\n#### 3. Preview Mode\n- Shows a GUI for previewing sliced images and adjusting filtering options. Allows users to customize filters to their preferences before slicing.\n\n#### 4. Slice Mode\n- Initiates the slicing process, creating individual images from slices and saving them to the designated output folder. Supports multicore processing  for efficient batch slicing.\n\nSuggested Workflow\n---\n\n#### 1. Scan items (photos, paper clippings etc..):\n- 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**.\n- Name the scans however you like as **SCIS does not re-use the file names**.\n- 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.\n- 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.\n- **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.\n\n#### 2. Install SCIS:\n- Install latest Python with TkInter support.\n- Install SCIS using pip (or pipx).\n\n        pip install scan-image-slicer\n- **Run the app once to create the default configuration file.**\n\n- Address missing input/output paths as prompted by editing the default config file.\n\n#### 3. Test Mode:\n- Use the test mode to fine-tune image detection. Remember to **save** your detection parameters.\n\n        scan-image-slicer --test-mode --add-random 5\n\n#### 4. Preview Mode:\n- Utilize the preview mode to preview sliced images and adjust filtering options according to your preferences.\n\n        scan-image-slicer --preview-mode --add-random 5\n\n#### 5. Slice Mode:\n- Initiate the slice mode to create images from slices and save them to the designated output folder.\n\n        scan-image-slicer --slice-mode --add-all\n\n#### 6. Additional Information:\n- For more details on available options, refer to the configuration file or run the help command.\n\n        scan-image-slicer --help\n\nExamples:\n---\n\n#### Basic Usage:\n- List all compatible images in the input folder showing image ID, name and size:\n\n        scan-image-slicer --list-images\n\n- Test image detection by counting the slices from 5 random images\n\n        scan-image-slicer --count-mode --add-random 5\n\n- Slice 5 randomly picked images and save the slices in WebP format:\n\n        scan-image-slicer --slice-mode --add-random 5 --save-format webp\n\nFurther info:\n---\n\nList of command-line arguments with explanation on each [here](./COMMANDS.md).\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A tool for detecting and slicing images",
    "version": "2.0.2",
    "project_urls": {
        "Home": "https://github.com/hiemb/scan_image_slicer",
        "Source": "https://github.com/hiemb/scan_image_slicer"
    },
    "split_keywords": [
        "scanner",
        " scan",
        " slice",
        " slicer",
        " image",
        " photo",
        " digitize"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3d04a3051a75a0cc3d173ad6e0abd3b0d97bc7df43c7f163e431fd650548cc9b",
                "md5": "68b73de0a3163dfa7a0bd05c114375d2",
                "sha256": "c621796ec9d1a1c0e30d8245d45632c1c52435c70201fac5c66a836638895374"
            },
            "downloads": -1,
            "filename": "scan_image_slicer-2.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "68b73de0a3163dfa7a0bd05c114375d2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 36027,
            "upload_time": "2024-09-24T10:51:35",
            "upload_time_iso_8601": "2024-09-24T10:51:35.173966Z",
            "url": "https://files.pythonhosted.org/packages/3d/04/a3051a75a0cc3d173ad6e0abd3b0d97bc7df43c7f163e431fd650548cc9b/scan_image_slicer-2.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7bd45d3f2ef8400518d17d48cf30b67b06fb8fccf22564997fd63243aa133ec8",
                "md5": "7b042498d3f1b9928047b07bfbbf1bd1",
                "sha256": "f5d5cbdcc1a90eba53c87119a2aa7d2a9603862c20fa5c1c0eb0e750862310c7"
            },
            "downloads": -1,
            "filename": "scan_image_slicer-2.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "7b042498d3f1b9928047b07bfbbf1bd1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 36163,
            "upload_time": "2024-09-24T10:51:37",
            "upload_time_iso_8601": "2024-09-24T10:51:37.881408Z",
            "url": "https://files.pythonhosted.org/packages/7b/d4/5d3f2ef8400518d17d48cf30b67b06fb8fccf22564997fd63243aa133ec8/scan_image_slicer-2.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-24 10:51:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hiemb",
    "github_project": "scan_image_slicer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "scan-image-slicer"
}
        
Elapsed time: 0.45166s