darkcoverage


Namedarkcoverage JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryImage threshold analysis tool for measuring coverage
upload_time2025-07-10 08:35:29
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords analysis coverage dark gui image pyside6 threshold
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Note

The project is currently undergoing transition from pip-based build to uv-based build. Therefore, there may be problems with some installation instructions.

# DarkCoverage

DarkCoverage is an image analysis tool that helps you measure and visualize the coverage of dark or light areas in images using customizable thresholds and a grid-based approach.

Its usage is simple: Just run the program, load the image, and then use the sliders to specify appropriate threshold for each area.

![DarkCoverage Screenshot](https://github.com/TZ387/darkcoverage/raw/main/Demonstration.png)

## Features

- Load and analyze images with customizable number of rows and columns
- Set individual thresholds for each grid cell
- Color dark or light areas based on threshold values
- View real-time coverage percentage for each cell and overall image
- Compare with original image reference
- Save processed images

## Installation

### With pip

Install from PyPI:

```bash
pip install darkcoverage
```

### With uv

First, install uv if you haven't already (see uv docs for more information)

Then install DarkCoverage:

```bash
uv add darkcoverage
```

Or install globally with uvx:

```bash
uvx darkcoverage
```

### From Source

#### With pip

1. Clone the repository:
   ```bash
   git clone https://github.com/TZ387/darkcoverage.git
   cd darkcoverage
   ```

2. Install the package:
   ```bash
   pip install -e .
   ```

#### With uv

1. Clone the repository:
   ```bash
   git clone https://github.com/TZ387/darkcoverage.git
   cd darkcoverage
   ```

2. Install dependencies and set up the project:
   ```bash
   uv sync
   ```

## Usage

### If installed with pip

Run the application:

```bash
darkcoverage
```

### If installed with uv

Run the application:

```bash
# If installed with uv add
uv run darkcoverage

# If installed with uvx
uvx darkcoverage
```

### From Source

#### With pip

```bash
python -m darkcoverage.main
```

#### With uv

```bash
uv run python -m darkcoverage.main
```

### Basic Workflow

1. Click "Load Image" to open an image file (such as Example.jpg in the main folder).
2. Adjust the number of rows and columns using the row and column inputs in the sliders window
3. Set threshold values for each cell using the sliders
4. Toggle between "Color Dark Parts" and "Color Light Parts" to choose which areas to highlight
5. View the coverage percentages for each cell and the total image
6. Save the processed image with "Save Image"

In case something goes wrong, you can use reset image option.

## Project Structure

```
DarkCoverage/
├── src/
│   └── darkcoverage/
│       ├── __init__.py
│       ├── main.py
│       ├── gui.py
│       ├── image_processing.py
│       └── widgets/
│           ├── __init__.py
│           ├── image_label.py
│           ├── reference_window.py
│           └── sliders_window.py
├── .gitignore
├── uv.lock
├── LICENSE
├── pyproject.toml
├── README.md
├── Demonstration.png
└── Example.jpg
```

## Requirements

- Python 3.8+
- PySide6
- Pillow
- NumPy

## License

This project is licensed under the MIT License - see the LICENSE file for details.
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "darkcoverage",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Tilen <tilen.zel@gmail.com>",
    "keywords": "analysis, coverage, dark, gui, image, pyside6, threshold",
    "author": null,
    "author_email": "Tilen <tilen.zel@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/dd/1b/d2c48389109cadf5f4026620e2b1bffe722a639de3075a47bb3759467a8a/darkcoverage-0.2.0.tar.gz",
    "platform": null,
    "description": "## Note\n\nThe project is currently undergoing transition from pip-based build to uv-based build. Therefore, there may be problems with some installation instructions.\n\n# DarkCoverage\n\nDarkCoverage is an image analysis tool that helps you measure and visualize the coverage of dark or light areas in images using customizable thresholds and a grid-based approach.\n\nIts usage is simple: Just run the program, load the image, and then use the sliders to specify appropriate threshold for each area.\n\n![DarkCoverage Screenshot](https://github.com/TZ387/darkcoverage/raw/main/Demonstration.png)\n\n## Features\n\n- Load and analyze images with customizable number of rows and columns\n- Set individual thresholds for each grid cell\n- Color dark or light areas based on threshold values\n- View real-time coverage percentage for each cell and overall image\n- Compare with original image reference\n- Save processed images\n\n## Installation\n\n### With pip\n\nInstall from PyPI:\n\n```bash\npip install darkcoverage\n```\n\n### With uv\n\nFirst, install uv if you haven't already (see uv docs for more information)\n\nThen install DarkCoverage:\n\n```bash\nuv add darkcoverage\n```\n\nOr install globally with uvx:\n\n```bash\nuvx darkcoverage\n```\n\n### From Source\n\n#### With pip\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/TZ387/darkcoverage.git\n   cd darkcoverage\n   ```\n\n2. Install the package:\n   ```bash\n   pip install -e .\n   ```\n\n#### With uv\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/TZ387/darkcoverage.git\n   cd darkcoverage\n   ```\n\n2. Install dependencies and set up the project:\n   ```bash\n   uv sync\n   ```\n\n## Usage\n\n### If installed with pip\n\nRun the application:\n\n```bash\ndarkcoverage\n```\n\n### If installed with uv\n\nRun the application:\n\n```bash\n# If installed with uv add\nuv run darkcoverage\n\n# If installed with uvx\nuvx darkcoverage\n```\n\n### From Source\n\n#### With pip\n\n```bash\npython -m darkcoverage.main\n```\n\n#### With uv\n\n```bash\nuv run python -m darkcoverage.main\n```\n\n### Basic Workflow\n\n1. Click \"Load Image\" to open an image file (such as Example.jpg in the main folder).\n2. Adjust the number of rows and columns using the row and column inputs in the sliders window\n3. Set threshold values for each cell using the sliders\n4. Toggle between \"Color Dark Parts\" and \"Color Light Parts\" to choose which areas to highlight\n5. View the coverage percentages for each cell and the total image\n6. Save the processed image with \"Save Image\"\n\nIn case something goes wrong, you can use reset image option.\n\n## Project Structure\n\n```\nDarkCoverage/\n\u251c\u2500\u2500 src/\n\u2502   \u2514\u2500\u2500 darkcoverage/\n\u2502       \u251c\u2500\u2500 __init__.py\n\u2502       \u251c\u2500\u2500 main.py\n\u2502       \u251c\u2500\u2500 gui.py\n\u2502       \u251c\u2500\u2500 image_processing.py\n\u2502       \u2514\u2500\u2500 widgets/\n\u2502           \u251c\u2500\u2500 __init__.py\n\u2502           \u251c\u2500\u2500 image_label.py\n\u2502           \u251c\u2500\u2500 reference_window.py\n\u2502           \u2514\u2500\u2500 sliders_window.py\n\u251c\u2500\u2500 .gitignore\n\u251c\u2500\u2500 uv.lock\n\u251c\u2500\u2500 LICENSE\n\u251c\u2500\u2500 pyproject.toml\n\u251c\u2500\u2500 README.md\n\u251c\u2500\u2500 Demonstration.png\n\u2514\u2500\u2500 Example.jpg\n```\n\n## Requirements\n\n- Python 3.8+\n- PySide6\n- Pillow\n- NumPy\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Image threshold analysis tool for measuring coverage",
    "version": "0.2.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/TZ387/darkcoverage/issues",
        "Documentation": "https://github.com/TZ387/darkcoverage#readme",
        "Homepage": "https://github.com/TZ387/darkcoverage",
        "Repository": "https://github.com/TZ387/darkcoverage"
    },
    "split_keywords": [
        "analysis",
        " coverage",
        " dark",
        " gui",
        " image",
        " pyside6",
        " threshold"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9c56eda6012883d412b2533d068b24b82d470062798f7afedbbbca83b8b25396",
                "md5": "02a6c20a4f55d656963005396c8f7145",
                "sha256": "38eec31b1bc399955ab92387ec8107dff1e448fa262bf8a3fc687db27290bccf"
            },
            "downloads": -1,
            "filename": "darkcoverage-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "02a6c20a4f55d656963005396c8f7145",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 11850,
            "upload_time": "2025-07-10T08:35:26",
            "upload_time_iso_8601": "2025-07-10T08:35:26.687160Z",
            "url": "https://files.pythonhosted.org/packages/9c/56/eda6012883d412b2533d068b24b82d470062798f7afedbbbca83b8b25396/darkcoverage-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "dd1bd2c48389109cadf5f4026620e2b1bffe722a639de3075a47bb3759467a8a",
                "md5": "a949d4839b1d92e2ceaad9999d3a44cb",
                "sha256": "c0259ef11b87d8127d2eede73a5c2c6d520a39a2640d43432195f35768decb72"
            },
            "downloads": -1,
            "filename": "darkcoverage-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a949d4839b1d92e2ceaad9999d3a44cb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 965911,
            "upload_time": "2025-07-10T08:35:29",
            "upload_time_iso_8601": "2025-07-10T08:35:29.112594Z",
            "url": "https://files.pythonhosted.org/packages/dd/1b/d2c48389109cadf5f4026620e2b1bffe722a639de3075a47bb3759467a8a/darkcoverage-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-10 08:35:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "TZ387",
    "github_project": "darkcoverage",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "darkcoverage"
}
        
Elapsed time: 1.97132s