Skip to main content

Specialized agent for facial and hair analysis

Project description

Facial Vision Agent

PyPI PyPI - Python Version CI License

Facial Vision Agent is an AI-powered library for analyzing facial morphology and hair characteristics from images using vision models and vision-capable LLMs.

This package focuses on visual feature extraction — it identifies facial proportions and prominent features and analyzes hair type, length, density and condition. It is designed to be used as a Python package and integrated into larger systems as an agent that processes image analysis tasks.

Key features

  • Facial feature detection: face shape, proportions, forehead, eyebrows, eyes, nose, mouth, chin and jawline.
  • Hair analysis: type (straight/wavy/curly/coily), length, approximate color, density and condition.
  • Confidence metrics for each analysis stage.
  • Lightweight API designed for automated testing and CI-driven publishing.

Installation

Developer / editable install:

python -m pip install -e .[dev]

Install from PyPI (when published):

pip install facial-vision-agent

Quick start

from facial_vision_agent import FacialVisionAgent
from agent_core_framework import AgentTask

agent = FacialVisionAgent(openrouter_api_key="YOUR_API_KEY")

# Full image analysis
task = AgentTask(type="analyze_image", payload={"image_path": "photo.jpg"})
response = agent.process(task)
print(response.data)

Testing

Run the test suite locally:

python -m pytest

Publishing to TestPyPI (manual)

  1. Bump the version in pyproject.toml (e.g. to 0.2.0).
  2. Build distributions:
python -m build
  1. Upload to TestPyPI (create a TestPyPI API token first):
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

Notes on CI

A GitHub Actions workflow (.github/workflows/publish-testpypi.yml) is included in this repository. To enable automated publishing to TestPyPI, add your TestPyPI token as a repository secret named TEST_PYPI_API_TOKEN and run the workflow manually or by pushing a test tag.

Contributing

Contributions are welcome. Please open an issue or a pull request. Follow the existing code style, add tests for new behavior, and keep changes focused and small.

License

MIT — see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

facial_vision_agent-0.2.5.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

facial_vision_agent-0.2.5-py2.py3-none-any.whl (10.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file facial_vision_agent-0.2.5.tar.gz.

File metadata

  • Download URL: facial_vision_agent-0.2.5.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for facial_vision_agent-0.2.5.tar.gz
Algorithm Hash digest
SHA256 698755b8c913a9239aa35fbdec19b82342835dc535a370a864749e57af7fe1f0
MD5 19e58f3921af9b200a1b8274cda22ebd
BLAKE2b-256 8dee250226aaf52c013cb2a8bb25acc72f4e698c48344cb8942da7e7e5b8753d

See more details on using hashes here.

File details

Details for the file facial_vision_agent-0.2.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for facial_vision_agent-0.2.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 063f09a4801306ab814cdc7caf2439ed76c3b41ffe5b02a38104ba97171d169f
MD5 6bdd08b03096c8445f42bfce42ed13d9
BLAKE2b-256 1f57cdfff57d173ab396858e1583f9c2e3ca4ebbdb19717c072ba228cf4293b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page