Skip to main content

🖼️ Get image shapes, analyze type, get preprocessing recommendations & check model compatibility

Project description

🖼️ imgshape — Smart Image Analysis & Preprocessing Toolkit (v2.0.0)

imgshape is a lightweight Python toolkit designed for image shape detection, dataset inspection, preprocessing recommendation, and AI model compatibility checks — all optimized for ML/DL workflows, both in research and production.


⚡️ Why use imgshape?

  • 🔍 Automatically detect shape, dominant color, entropy, and type of an image.
  • 🧠 Recommend preprocessing steps like resize dims, normalization, and suitable model types.
  • 🖬 Analyze entire datasets to get size/shape distribution and dimension scatter plots.
  • ✅ Check model compatibility (e.g. with mobilenet_v2, resnet18, etc.).
  • 🌐 Supports CLI, Python API, and even a Gradio-based GUI for visual workflows.

🚀 Installation

pip install imgshape

Requires Python 3.8+ and packages: Pillow, matplotlib, seaborn, numpy, scikit-image, gradio


💻 CLI Usage

imgshape --path ./sample.jpg                  # Get image shape
imgshape --path ./sample.jpg --analyze        # Analyze image type and entropy
imgshape --path ./sample.jpg --recommend      # Recommend preprocessing steps
imgshape --dir ./images --check mobilenet_v2  # Check dataset compatibility with a model
imgshape --batch --path ./folder              # Batch mode shape detection
imgshape --viz ./images                       # Visualize size/shape distribution
imgshape --web                                # Launch Gradio GUI

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

imgshape-2.0.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

imgshape-2.0.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file imgshape-2.0.0.tar.gz.

File metadata

  • Download URL: imgshape-2.0.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for imgshape-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a7ac68f0f55fad91beea6eab14ca3ddd6f195a5f02c2ace49044eab8f35d333e
MD5 7c64cd54a016e010ae1aabbab9b2dabd
BLAKE2b-256 a02fe7b5bf704a4dd5ab014cfc5a2108af9448458b1fdb755f78025cdcbe4f4a

See more details on using hashes here.

File details

Details for the file imgshape-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: imgshape-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for imgshape-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8a7244334507b84150de71c7769c9080a0b88bac36e9231e38bcbea3347aed5
MD5 3d0bf5753ed5707f2922637e83872988
BLAKE2b-256 61d866e9e69c40e8d40aac8d0557ca4196a5e3c363be1bd2a0da66bac1413874

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