简体中文 | English
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.
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
To start the program, run the following command in the root directory of the project:
python main.py
To package the project using Nuitka, follow these steps:
-
Install Nuitka:
pip install nuitka
-
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
-
Create an installation package:
This project uses Inno Setup to create the installation package. Please make sure that Inno Setup is installed, the environment variables are properly configured, and both Simplified Chinese and Traditional Chinese language packs are installed.
Run the following commands in the project root directory:
cd Inno python setup.py iscc "setup.iss" Compress-Archive -Path "../dist/ImageColorVisualization" -DestinationPath "../dist/ImageColorVisualization.zip"
This will automatically process the Nuitka build results and generate an installer and a portable version in the
dist
directory.
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.
This project is licensed under the GPL-3.0 License.
- QFluentWidgets - A Fluent Design-style widget library based on C++ Qt/PyQt/PySide.
- VTK
- IntelliJ Icon and iconfont - Providing some of the icon resources.
Thank you to the open-source community and all the developers who contributed to this project!