Skip to main content

Image & video pipelines for human behavior and emotion signals using TaoCore

Project description

taocore-human

Image & video pipelines for human behavior and emotion signals using TaoCore.

Philosophy

This package processes photos and videos into interpretable, bounded claims about behavior and emotion signals. It does not claim to read minds or determine truth about internal states.

Key principles:

  • Outputs are "signals" and "patterns", not definitive judgments
  • Uncertainty is always explicit
  • Non-convergence is meaningful (signals may conflict)
  • Conservative by default for human/emotion inference

Installation

# Basic (stub extractors only)
pip install taocore-human

# With image support
pip install taocore-human[image]

# With video support
pip install taocore-human[video]

# With ML models (PyTorch)
pip install taocore-human[ml]

Quick Start

Photo Folder Analysis

from taocore_human import PhotoFolderPipeline

# Process a folder of photos
pipeline = PhotoFolderPipeline("/path/to/photos")
result = pipeline.run()

# Check if interpretation is allowed
if result.interpretation_allowed:
    print(result.report.summary)
    print(result.report.behavioral_summary)
else:
    print("Interpretation declined:", result.rejection_reasons)
    print(result.report.structural_summary)  # Still available

# Export to JSON
print(pipeline.to_json(result))

Video Interaction Analysis

from taocore_human import VideoInteractionPipeline

# Process a video
pipeline = VideoInteractionPipeline("/path/to/video.mp4")
result = pipeline.run()

# Temporal patterns
print(result.temporal_patterns)

# Report
print(result.report.summary)

Architecture

Media → Feature Extraction → Nodes/Edges → Graph(s)
                                              ↓
                            Metrics (balance/flow/clusters/hubs)
                                              ↓
                                    Equilibrium Solver
                                              ↓
                                      Decider Rules
                                              ↓
                                  Uncertainty-Aware Report

What This System Does NOT Do

  • Diagnose mental health or medical conditions
  • Produce definitive judgments about personality or intent
  • Act as a lie detector or "truth machine"
  • Replace human interpretation in sensitive contexts

Components

Nodes

  • PersonNode - Tracked individual with aggregated features
  • FrameNode / WindowNode - Time slices for temporal analysis
  • ContextNode - Scene context (lighting, quality, etc.)

Extractors (Pluggable)

  • FaceExtractor - Face detection and expression signals
  • PoseExtractor - Body pose estimation
  • GazeExtractor - Attention/gaze estimation
  • SceneExtractor - Scene-level features
  • StubExtractor - Random data for testing

Pipelines

  • PhotoFolderPipeline - Process folder of images
  • VideoInteractionPipeline - Process video with temporal analysis

Output Example

{
  "interpretation_allowed": true,
  "confidence_level": "moderate",
  "num_persons_analyzed": 3,
  "summary": "Analysis of 3 individuals completed with moderate confidence. Signal patterns show convergent stability.",
  "limitations": [
    "Expression and emotion signals are probabilistic estimates, not ground truth about internal states."
  ],
  "recommendations": [
    "Findings may inform further investigation but should not be treated as definitive.",
    "Never use these signals for high-stakes decisions without human oversight."
  ]
}

License

MIT

CLI Quick Start

  1. Install editable (dev):
cd /Users/dadatoto/taocore-human
python -m pip install -e .
  1. Analyze a folder of photos:
taocore-human photo-folder /path/to/photos
  1. Analyze a video:
taocore-human video /path/to/video.mp4
  1. Save JSON output to a file:
taocore-human photo-folder /path/to/photos --output /tmp/taocore_result.json

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

taocore_human-0.3.0.tar.gz (195.8 kB view details)

Uploaded Source

Built Distribution

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

taocore_human-0.3.0-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

Details for the file taocore_human-0.3.0.tar.gz.

File metadata

  • Download URL: taocore_human-0.3.0.tar.gz
  • Upload date:
  • Size: 195.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for taocore_human-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2c2733fc55057f4fc41fa8431a2e2927d9ae545e0240b1fea5be8159f285c0a7
MD5 4314e028cfd311856aadd35bd9329771
BLAKE2b-256 4137b350ae6074a353a4e863b08d78fa573cb6389bfebc66f1bac87c0ecdf9cf

See more details on using hashes here.

File details

Details for the file taocore_human-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: taocore_human-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 36.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for taocore_human-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b43adc6e51be1d7e2cafb41e92b2d0ac35c8ebd01e4c585a5b44014c8c20f477
MD5 603af783b2bc4fab7397712e8c4c6354
BLAKE2b-256 d8631fb940d7c2219ad2cc6fab0beba63ade9f334367a65c9d595082863d02a8

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