ImageDimensionChecker
ImageDimensionChecker is a Python package designed to streamline the process of analyzing image datasets. It provides functions to check if images in a directory have the same dimensions, count the number of unique file extensions, and identify unique image dimensions.
Features
Check Image Dimensions: Determine if all images in a directory have the same dimensions.
Count Unique File Extensions: Count the occurrences of each unique file extension in a directory.
Identify Unique Image Dimensions: Find the unique dimensions (width and height) of images in a directory.
Installation
You can install ImageDimensionChecker via pip:
pip install ImageDimensionChecker
Usage
Here's a quick guide on how to use ImageDimensionChecker:
Check Image Dimensions
from ImageDimensionChecker import CheckImageDimension
path = "/path/to/images"
CheckImageDimension(path)
Count Unique File Extensions
from ImageDimensionChecker import unique_extension
path = "/path/to/images"
unique_extension(path)
Identify Unique Image Dimensions
from ImageDimensionChecker import unique_dimension
path = "/path/to/images"
unique_dimension(path)
License
This project is licensed under the BSD License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.
Acknowledgements
This package was inspired by the repetitive tasks involved in image dataset analysis during machine learning model development.
Metadata
Release files for ImageDimensionChecker 1.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ImageDimensionChecker-1.4.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / ImageDimensionChecker-1.4.3-py3-none-any.whl
| Download URL | ImageDimensionChecker-1.4.3-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c4435b54dd266e833004c20c2e625957b1ce23a9152539ed00c6293e6c26b2c
|
|
BLAKE2b-256 checksum How to use checksums |
4b31b4616dd73d5c57db321fcfd73bd56fe2e87846e91bdf481240c5b48b106d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|