Skip to content

Latest commit

 

History

History
100 lines (68 loc) · 3.22 KB

README_EN.md

File metadata and controls

100 lines (68 loc) · 3.22 KB

ImageColorVisualization

简体中文 | English

Interface

Introduction

ImageColorVisualization is a Python course project designed for visualizing the color distribution in images. Whether you're a designer, photographer, or data analyst, this tool helps you analyze and display the color composition of an image, offering insights to optimize designs or perform color-related research.

The project was inspired by Adobe Color CC and this Bilibili video.

Install Dependencies

You can install the required dependencies for the project using the following methods:

  • Option I (Recommended): Create and activate the environment using conda:

    conda env create -f environment.yml
    conda activate ImageColorVisualization
  • Option II: Install dependencies using the requirements.txt file:

    pip install -r requirements.txt
  • Option III: Manually install dependencies:

    If you prefer to install packages individually, you can use the following commands:

    pip install "PySide6-Fluent-Widgets[full]" -i https://pypi.org/simple/
    pip install vtk
    pip install opencv-python
    pip install requests
    pip install Pillow
    pip install scikit-learn

Running the Project

To start the program, run the following command in the root directory of the project:

python main.py

Packaging the Project

To package the project using Nuitka, follow these steps:

  1. Install Nuitka:

    pip install nuitka
  2. Package the project:

    nuitka --standalone --enable-plugin=pyside6 --windows-console-mode=attach --output-dir=dist --windows-icon-from-ico=./resource/image/ImageColorVisualization.ico ./main.py
  3. Create an installation package:

    This project uses Inno Setup to create an installer. Please ensure Inno Setup is installed, and that the Simplified Chinese and Traditional Chinese language packs are configured.

    In the root directory of the project, run the following command:

    cd Inno
    python setup.py

    This will automatically handle Nuitka packaging the results and This will generate a setup.iss file in the Inno directory. Open this file with Inno Setup and compile it to create the installer (the installer will be generated in the dist folder).

Feedback

If you have any issues or suggestions, please visit the GitHub Issues page of the project to submit your feedback, and I will respond as soon as possible.

License

This project is licensed under the GPL-3.0 License.

Acknowledgments

Thank you to the open-source community and all the developers who contributed to this project!