This module contains tools for analyzing images, particularly focusing on color analysis and clustering.
The module is organized into the following subfolders:
imgAnalyzer
: Contains classes for various image analysis tasks, including:COCO
: Interacts with the COCO dataset.ImageAnalyzer
: Compares and analyzes images.ImageCluster
: Clusters images based on color.ImageProcessor
: Performs various image processing tasks.
img
: Stores images used for analysis or testing.output
: Holds the results of the analysis.
- Install the required libraries listed in
requirements.txt
using:pip install -r requirements.txt
- Use the provided classes and functions to analyze images. For example, to cluster an image based on color:
from imgAnalyzer import ImageCluster clusterer = ImageCluster("path/to/your/image.jpg") clusterer.cluster(n_clusters=5) clusterer.save_plots()
See the individual files within the imgAnalyzer
subfolder for example usage of each class.
Feel free to contribute to this module by adding new features, improving existing code, or providing more comprehensive documentation.
This module is licensed under the MIT License.