A custom node for ComfyUI that analyzes and sorts images based on head orientation using MediaPipe. It detects facial landmarks, calculates head pose, and intelligently sorts images for enhanced AI image processing workflows.
The Head Orientation Node now provides a string output named "data" alongside the sorted images. This output contains information about the head orientation for each processed image.
[x,y,z]
, where:
x
: Rotation around the X-axis (nodding up and down)y
: Rotation around the Y-axis (turning left and right)z
: Rotation around the Z-axis (tilting head side to side)The Head Orientation Node is a custom node for ComfyUI that analyzes and sorts images based on head orientation. It uses the MediaPipe library to detect facial landmarks and calculate head pose, allowing for intelligent image sorting and matching.
Developed by PabloGFX, this node enhances ComfyUI's capabilities in facial analysis and image processing tasks.
git clone https://github.com/YourGitHubUsername/head-orientation-node.git
pip install -r requirements.txt
This project is licensed under the Apache License 2.0. This license is compatible with the licenses of the major dependencies used in this project:
The Apache License 2.0 allows you to use, modify, distribute, and sublicense the code, while also providing an express grant of patent rights from contributors to users. It requires preservation of copyright and license notices.
For the full license text, please see the LICENSE file in the project repository or visit: https://www.apache.org/licenses/LICENSE-2.0
Contributions are welcome! Please feel free to submit a Pull Request. By contributing to this project, you agree to license your contributions under the Apache License 2.0.
Special thanks to the developers of MediaPipe, OpenCV, and other open-source libraries that made this project possible.