scan-image-slicer


Namescan-image-slicer JSON
Version 1.2.6 PyPI version JSON
download
home_pageNone
SummaryScan Image Slicer: Detect and slice images from a scanned image
upload_time2023-02-10 16:40:47
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
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
---
Scan image slicer is a tool for detecting and separating images from a scanned image (or any image). The designed use case is for digitizing old photos, paper clippings and the like.

### Workflow
- create an empty input folder for the scanned images
- (optional) create a folder structure inside the input folder that is then used for naming and organizing the output images
- create an empty output folder (the folder structure will be mirrored here from the input folder)
- scan as many images as you like and place/organize them inside the input folder
- configure the tool using the config file and command line arguments
- slice and dice


### Installation using pip
```
pip install scan-image-slicer
```

### Requirements with pip install
- Python 3.6+
- pip

Using the tool
---
```
scan-image-slicer [options]
```
The easiest way to use the tool is to first edit the default config file and then override the settings when needed with command line arguments, which are explained below.
- **you need to run the tool once for the default config file to be created**
- location on Windows: Documents -> ScanImageSlicer -> config.yaml
- location on Linux: ~/.config/ScanImageSlicer/config.yaml
- location on MacOS: ~/Library/Application Support/ScanImageSlicer/config.yaml
- location on Other: ~/.ScanImageSlicer/config.yaml
### Help
- `-h`, `--help` Display help

### Quickstart

- `-skip`, `--skip-confirm` skip the confirm start question

### Modes
Only one mode can be used at a time.

- `-test`, `--test-mode`

    Test mode shows you the scanned image with added colored rectangles that depict detected and ignored images.
    - blue rectangles are images that would be saved
    - purple rectangles are images that would be ignored

- `-pre`, `--preview-mode`

    Preview mode shows you the individual sliced images one by one but does not save them unless you press the S key. Toggle filters with the F key.

- `-slice`, `--slice-mode`

    Slice mode slices each scanned image on the task list and saves the slices to the output folder. Use it after you have finalized your settings.

### Paths
- `-i PATH`, `--input PATH` input folder for the scanned images

- `-o PATH`, `--output PATH` output folder for the sliced images

- `-c FILE`, `--config FILE` path to the custom config file

### Image detection & viewing
- `-white 0..255`, `--white-threshold 0..255` _(default is 230)_

    The white threshold value is used for image detection. Tweak it to match your scanner's background white color (the space between images). If possible, bump up your gamma value slightly in your scanning software for easier image detection.

- `-min N`, `--minimum-size N` _(default is 3)_

    Minimum size is used to discard too small images that are likely false positives. The value is in % of the total scanned image area.

- `-view N`, `--view-height N` _(default is 800)_

    The height of the image inside the image viewer (won't be upscaled).

### Scaling
- `-scaleF N`, `--scale-factor N` scale sliced image using a scale factor value

- `-scaleW N`, `--scale-width N` scale sliced image using a new width value

- `-scaleH N`, `--scale-height N` scale sliced image using a new height value

    Only one method of scaling can be used at a time. All methods preserve the aspect ratio. A value of zero means the option is disabled.

### Filters & fixes
- `-filtD 0..5`, `--filter-denoise 0..5` _(default is 1)_

    Remove scanner noise from the sliced image. Higher values take more time. A value of zero means the option is disabled.

- `-filtB N > 1.0`, `--filter-brightness N > 1.0` _(default is 1.0)_

    Add brightness to the sliced image with values above 1.0.

- `-filtC N > 1.0`, `--filter-contrast N > 1.0` _(default is 1.0)_

    Add contrast to the sliced image with values above 1.0.

- `-filtG N > 1.0`, `--filter-gamma N > 1.0` _(default is 1.0)_

    Add gamma correction to the sliced image with values above 1.0.

- `-pfix 0..89`, `--perspective-fix 0..89` _(default is 0)_

    Add perspective correction to the sliced image. The given value is the maximum allowed 'tilt' of the sliced image in degrees. A value of zero means the option is disabled.

### File format
- `-save JPEG|PNG|WEBP`, `--save-format JPEG|PNG|WEBP` _(default is PNG)_
- `-png 0..9`, `--png-compression 0..9` _(default is 3)_

    Note: higher compression levels take more time per sliced image.

- `-jpeg 0..100`, `--jpeg-quality 0..100` _(default is 95)_

- `-webp 1..101`, `--webp-quality 1..101` _(default is 90)_

    Note: quality level of 101 is lossless.

### List information
- `-listS`, `--list-scans` list scanned images name and ID

- `-listF`, `--list-file` save scanned images name and ID as a text file at default config dir

- `-listT`, `--list-tasks` list added tasks

- `-listC`, `--list-cmds` list given commands

### Add/Remove images to/from the task list
- `-addA`, `--add-all` add all scanned images

- `-addID [ID ...]`, `--add-id [ID ...]` add scanned images using IDs eg. 1 2 3

- `-addN N`, `--add-new N` add N amount of newest scanned images by creation time (ctime)

- `-addO N`, `--add-old N` add N amount of oldest scanned images by creation time (ctime)

- `-addR N`, `--add-random N` add N amount of random scanned images

- `-remID [ID ...]`, `--remove-id [ID ...]` remove scanned images using IDs eg. 1 2 3
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "scan-image-slicer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "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/ce/75/63fb9fe270a65adbbf156479c9bb6147e93a94f5042e0a5cf0e32eb0c5ef/scan-image-slicer-1.2.6.tar.gz",
    "platform": null,
    "description": "Scan Image Slicer\n---\nScan image slicer is a tool for detecting and separating images from a scanned image (or any image). The designed use case is for digitizing old photos, paper clippings and the like.\n\n### Workflow\n- create an empty input folder for the scanned images\n- (optional) create a folder structure inside the input folder that is then used for naming and organizing the output images\n- create an empty output folder (the folder structure will be mirrored here from the input folder)\n- scan as many images as you like and place/organize them inside the input folder\n- configure the tool using the config file and command line arguments\n- slice and dice\n\n\n### Installation using pip\n```\npip install scan-image-slicer\n```\n\n### Requirements with pip install\n- Python 3.6+\n- pip\n\nUsing the tool\n---\n```\nscan-image-slicer [options]\n```\nThe easiest way to use the tool is to first edit the default config file and then override the settings when needed with command line arguments, which are explained below.\n- **you need to run the tool once for the default config file to be created**\n- location on Windows: Documents -> ScanImageSlicer -> config.yaml\n- location on Linux: ~/.config/ScanImageSlicer/config.yaml\n- location on MacOS: ~/Library/Application Support/ScanImageSlicer/config.yaml\n- location on Other: ~/.ScanImageSlicer/config.yaml\n### Help\n- `-h`, `--help` Display help\n\n### Quickstart\n\n- `-skip`, `--skip-confirm` skip the confirm start question\n\n### Modes\nOnly one mode can be used at a time.\n\n- `-test`, `--test-mode`\n\n    Test mode shows you the scanned image with added colored rectangles that depict detected and ignored images.\n    - blue rectangles are images that would be saved\n    - purple rectangles are images that would be ignored\n\n- `-pre`, `--preview-mode`\n\n    Preview mode shows you the individual sliced images one by one but does not save them unless you press the S key. Toggle filters with the F key.\n\n- `-slice`, `--slice-mode`\n\n    Slice mode slices each scanned image on the task list and saves the slices to the output folder. Use it after you have finalized your settings.\n\n### Paths\n- `-i PATH`, `--input PATH` input folder for the scanned images\n\n- `-o PATH`, `--output PATH` output folder for the sliced images\n\n- `-c FILE`, `--config FILE` path to the custom config file\n\n### Image detection & viewing\n- `-white 0..255`, `--white-threshold 0..255` _(default is 230)_\n\n    The white threshold value is used for image detection. Tweak it to match your scanner's background white color (the space between images). If possible, bump up your gamma value slightly in your scanning software for easier image detection.\n\n- `-min N`, `--minimum-size N` _(default is 3)_\n\n    Minimum size is used to discard too small images that are likely false positives. The value is in % of the total scanned image area.\n\n- `-view N`, `--view-height N` _(default is 800)_\n\n    The height of the image inside the image viewer (won't be upscaled).\n\n### Scaling\n- `-scaleF N`, `--scale-factor N` scale sliced image using a scale factor value\n\n- `-scaleW N`, `--scale-width N` scale sliced image using a new width value\n\n- `-scaleH N`, `--scale-height N` scale sliced image using a new height value\n\n    Only one method of scaling can be used at a time. All methods preserve the aspect ratio. A value of zero means the option is disabled.\n\n### Filters & fixes\n- `-filtD 0..5`, `--filter-denoise 0..5` _(default is 1)_\n\n    Remove scanner noise from the sliced image. Higher values take more time. A value of zero means the option is disabled.\n\n- `-filtB N > 1.0`, `--filter-brightness N > 1.0` _(default is 1.0)_\n\n    Add brightness to the sliced image with values above 1.0.\n\n- `-filtC N > 1.0`, `--filter-contrast N > 1.0` _(default is 1.0)_\n\n    Add contrast to the sliced image with values above 1.0.\n\n- `-filtG N > 1.0`, `--filter-gamma N > 1.0` _(default is 1.0)_\n\n    Add gamma correction to the sliced image with values above 1.0.\n\n- `-pfix 0..89`, `--perspective-fix 0..89` _(default is 0)_\n\n    Add perspective correction to the sliced image. The given value is the maximum allowed 'tilt' of the sliced image in degrees. A value of zero means the option is disabled.\n\n### File format\n- `-save JPEG|PNG|WEBP`, `--save-format JPEG|PNG|WEBP` _(default is PNG)_\n- `-png 0..9`, `--png-compression 0..9` _(default is 3)_\n\n    Note: higher compression levels take more time per sliced image.\n\n- `-jpeg 0..100`, `--jpeg-quality 0..100` _(default is 95)_\n\n- `-webp 1..101`, `--webp-quality 1..101` _(default is 90)_\n\n    Note: quality level of 101 is lossless.\n\n### List information\n- `-listS`, `--list-scans` list scanned images name and ID\n\n- `-listF`, `--list-file` save scanned images name and ID as a text file at default config dir\n\n- `-listT`, `--list-tasks` list added tasks\n\n- `-listC`, `--list-cmds` list given commands\n\n### Add/Remove images to/from the task list\n- `-addA`, `--add-all` add all scanned images\n\n- `-addID [ID ...]`, `--add-id [ID ...]` add scanned images using IDs eg. 1 2 3\n\n- `-addN N`, `--add-new N` add N amount of newest scanned images by creation time (ctime)\n\n- `-addO N`, `--add-old N` add N amount of oldest scanned images by creation time (ctime)\n\n- `-addR N`, `--add-random N` add N amount of random scanned images\n\n- `-remID [ID ...]`, `--remove-id [ID ...]` remove scanned images using IDs eg. 1 2 3",
    "bugtrack_url": null,
    "license": null,
    "summary": "Scan Image Slicer: Detect and slice images from a scanned image",
    "version": "1.2.6",
    "split_keywords": [
        "scanner",
        "scan",
        "slice",
        "slicer",
        "image",
        "photo",
        "digitize"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d71552775ad076ca2a746266e0a64c5b2583165a27f33435813eaf886082cd5d",
                "md5": "09bdbe136425d8fa342d2d8642f88f9e",
                "sha256": "960968c003cadeb09062477316f2911b243d41df7dbe86a025ffcf4f72f7ed8e"
            },
            "downloads": -1,
            "filename": "scan_image_slicer-1.2.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "09bdbe136425d8fa342d2d8642f88f9e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 26680,
            "upload_time": "2023-02-10T16:40:38",
            "upload_time_iso_8601": "2023-02-10T16:40:38.915231Z",
            "url": "https://files.pythonhosted.org/packages/d7/15/52775ad076ca2a746266e0a64c5b2583165a27f33435813eaf886082cd5d/scan_image_slicer-1.2.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ce7563fb9fe270a65adbbf156479c9bb6147e93a94f5042e0a5cf0e32eb0c5ef",
                "md5": "ae111b74f5962fbddc8dfaaec60569ca",
                "sha256": "3a4ebb51ef48cdb9c5c7dd13017a2552172aeef0f0655ee6446b939de246ba81"
            },
            "downloads": -1,
            "filename": "scan-image-slicer-1.2.6.tar.gz",
            "has_sig": false,
            "md5_digest": "ae111b74f5962fbddc8dfaaec60569ca",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 27305,
            "upload_time": "2023-02-10T16:40:47",
            "upload_time_iso_8601": "2023-02-10T16:40:47.487239Z",
            "url": "https://files.pythonhosted.org/packages/ce/75/63fb9fe270a65adbbf156479c9bb6147e93a94f5042e0a5cf0e32eb0c5ef/scan-image-slicer-1.2.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-10 16:40:47",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "scan-image-slicer"
}
        
Elapsed time: 0.04584s