Skip to main content

ImageCleaner

A Unified Python Library for Automated Image Dataset Cleaning and Validation for Machine Learning Applications.

Python License Version


Overview

ImageCleaner is an open-source Python library designed to automate image dataset cleaning and validation before machine learning and computer vision training.

The library helps researchers, students, and developers improve dataset quality by detecting common image issues such as duplicate images, corrupted files, blur, low resolution, improper brightness, and unsupported formats.


Features

  • Duplicate Image Detection
  • Corrupted Image Detection
  • Blur Detection
  • Resolution Validation
  • Brightness Analysis
  • Image Format Validation
  • Dataset Quality Score
  • CSV Report Generation
  • JSON Report Generation
  • Modular Python API
  • Machine Learning Ready Output

Project Structure

SmartClean-AI/
│
├── imagecleaner/
├── datasets/
├── docs/
├── examples/
├── logs/
├── reports/
├── tests/
│
├── README.md
├── LICENSE
├── pyproject.toml
├── requirements.txt
└── .gitignore

Installation

Clone the repository

git clone https://github.com/<your-username>/SmartClean-AI.git

Move into the project

cd SmartClean-AI

Create virtual environment

py -3.13 -m venv .venv

Activate

Windows

.venv\Scripts\activate

Install dependencies

pip install -r requirements.txt

Basic Usage

from imagecleaner import ImageCleaner

cleaner = ImageCleaner("datasets")

cleaner.clean()

Current Modules

  • Dataset Loader
  • Image Validator
  • Duplicate Detector
  • Blur Detector
  • Resolution Detector
  • Brightness Detector
  • Report Generator
  • Quality Score

Development Roadmap

Foundation Edition (v1.0)

  • Core Library
  • Image Validation
  • Duplicate Detection
  • Blur Detection
  • Reporting

Enhanced Edition (v2.0)

  • Better Architecture
  • Configurable Rules
  • Improved Reports
  • Dataset Quality Metrics

Professional Edition (v3.0)

  • CLI
  • Unit Testing
  • GitHub Actions
  • API Documentation
  • PyPI Release

Technology Stack

  • Python 3.13
  • OpenCV
  • Pillow
  • NumPy
  • pandas
  • imagehash
  • pytest
  • Ruff
  • Black

License

MIT License


Author

Sumit Palekar

Creator and Maintainer of SmartImageClean

Metadata

Release files for smartimageclean 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smartimageclean 0.1.2
File Size Uploaded
smartimageclean-0.1.2.tar.gz 36.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smartimageclean 0.1.2
File Interpreter ABI Platform
smartimageclean-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 79.8 kB

Release files / smartimageclean-0.1.2.tar.gz

Download URL smartimageclean-0.1.2.tar.gz
Size 36.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b9d4658d5d72178fe2f106f796d6d7c042d4028700e8e1d59884f0af51a6dd0b
BLAKE2b-256 checksum
How to use checksums
656b15a8bb2f7f40b77ff31ac6e0e11432228b747f4b69d039159c193c4bfb57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / smartimageclean-0.1.2-py3-none-any.whl

Download URL smartimageclean-0.1.2-py3-none-any.whl
Size 43.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ae8c9872b69e7d19215c6efc7aeccb878df4bec3e7c99d9479a7d55e4131a15
BLAKE2b-256 checksum
How to use checksums
114306fcbf74323e5a9aaf54189eaf6adab10b4d8330690ea9979f26c6a6b4e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page