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.
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
-
Clone the repository:
git clone https://github.com/TZ387/darkcoverage.git cd darkcoverage -
Install the package:
pip install -e .
Usage
Run the application:
darkcoverage
Or from the source code:
py -m darkcoverage.main
Basic Workflow
- Click "Load Image" to open an image file (such as Example.jpg in the main folder).
- Adjust the number of rows and columns using the row and column inputs in the sliders window
- Set threshold values for each cell using the sliders
- Toggle between "Color Dark Parts" and "Color Light Parts" to choose which areas to highlight
- View the coverage percentages for each cell and the total image
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file darkcoverage-0.1.1.tar.gz.
File metadata
- Download URL: darkcoverage-0.1.1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62ede80525b0fa8be7e21dfc2d51bde15bce2d55cb39fbf5d8b4541f1957bbea
|
|
| MD5 |
fca0f8f96c0549bfe657b5d985f3a542
|
|
| BLAKE2b-256 |
f4cae9753bb79aaec6378f02633b3d2db70d9ccde1a8dd1ee9cb04826afa91d7
|
File details
Details for the file darkcoverage-0.1.1-py3-none-any.whl.
File metadata
- Download URL: darkcoverage-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a45edfa74d5f8a67fd50f6b6be9a0eeda97248e000b08008bfca7d0c97b1dff4
|
|
| MD5 |
01c8c4266c8dc20ef0406c053a66ebf4
|
|
| BLAKE2b-256 |
c02704733becb72cc16c6be0e7571b77473910b107ad95473bf2af1d70136c83
|