Skip to main content

Image threshold analysis tool for measuring coverage

Project description

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

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

pip install darkcoverage

From Source

  1. Clone the repository:

    git clone https://github.com/TZ387/darkcoverage.git
    cd darkcoverage
    
  2. Install the package:

    pip install -e .
    

Usage

Run the application:

darkcoverage

Or from the source code:

py -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/
├── darkcoverage/
│   ├── __init__.py
│   ├── main.py
│   ├── gui.py
│   ├── image_processing.py
│   └── widgets/
│       ├── __init__.py
│       ├── image_label.py
│       ├── reference_window.py
│       └── sliders_window.py
├── .gitignore
├── 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.

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

darkcoverage-0.1.3.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

darkcoverage-0.1.3-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file darkcoverage-0.1.3.tar.gz.

File metadata

  • Download URL: darkcoverage-0.1.3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for darkcoverage-0.1.3.tar.gz
Algorithm Hash digest
SHA256 cd82fa911cd4f6053f6dcd9061870c3734043c4265f87ed8c890c4b8da7b0d20
MD5 c9938c82c94f470ea093ecf0ba2b8e9f
BLAKE2b-256 167872eb74ff445c057634db32079737d0ae9dac1cbadaf51306aac380aceaac

See more details on using hashes here.

File details

Details for the file darkcoverage-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: darkcoverage-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for darkcoverage-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ecf9c4e87dae6ff3d7805af1d1ccfac8b32610b5905a12f8d4c17259bc2f23b5
MD5 ee70c7f485f2cb39fd52a7644df3a27f
BLAKE2b-256 68f28ce2294291cced4854f4e55a0faeef5ad35f7ec2258950714ee3e809f412

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