Welcome to the 'PyQt6 Video Frames Cutting' project! This repository contains a user-friendly application built with PyQt6, designed for cutting and editing video frames. Dive into the realm of video editing with our intuitive GUI!
darken_rgb_color
is a handy function within this project that allows users to darken HEX color values. It's perfect for UI customization and enhancing the visual aspects of your application.
- Video Frame Editing: Easily cut and edit frames from your videos.
- Color Customization: Use
darken_rgb_color
to adjust UI colors. - PyQt6 Integration: Experience a smooth and modern GUI.
- OpenCV for Video Processing: Leverage the power of OpenCV for efficient video handling.
- Python 3.6+
- Git
-
Clone the Repository:
git clone https://github.com/DmPanf/PyQt6_Video_Frames_Cutting_v2.git
-
Navigate to the Project Directory:
cd PyQt6_Video_Frames_Cutting_v2
-
Set Up the Virtual Environment:
python -m venv venv
-
Activate the Virtual Environment:
- Windows:
venv\Scripts\activate
- Linux/Mac:
source venv/bin/activate
- Windows:
-
Install Dependencies:
pip install -r requirements.txt
Run the application by executing the main script:
python main.py
Enjoy cutting and editing your video frames with ease!
Contributions to enhance this project are highly encouraged. Feel free to fork the repo, make your changes, and submit a pull request!
This project is licensed under the MIT License.
For any inquiries or contributions, please contact [project-email].
This code defines a function darken_rgb_color that takes a HEX color value (e.g., #15a049) and an optional factor (defaulted to 0.8) as its inputs. It performs the following steps:
- Convert the HEX value into its RGB components.
- Convert the RGB values to HSV (Hue, Saturation, Value) format using the colorsys library.
- Multiply the value (brightness) component of the HSV with the given factor to darken the color.
- Convert the modified HSV values back to RGB format.
- Convert the RGB values back to HEX format.
- Return the darkened HEX color.