スキル一覧に戻る
therealityreport

vision-analytics

by therealityreport

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: vision-analytics description: Advanced visibility analysis using head pose, face mesh, and temporal patterns. Use for face-visible vs body-only breakdowns.

Vision Analytics Skill

Use this skill for planned advanced visibility metrics and analytics (mesh/visibility/gaze). As of 2025-12-13 this is docs/config scaffolding only.

When to Use

  • Need detailed visibility breakdown (not just visible/not visible)
  • Analyzing gaze patterns in an episode
  • Debugging visibility fraction calculations
  • Understanding regional face occlusion
  • Screen time breakdown by visibility type

Sub-agents

Sub-agentPurpose
VisibilityEstimatorSubagentLUVLi + 3DDFA + Mesh visibility signals

Key Skills

compute_visibility_labels() (planned)

Compute per-frame visibility metrics (not implemented yet).

# Planned module: FEATURES/vision_analytics/src/visibility.py
# from FEATURES.vision_analytics.src.visibility import compute_visibility

# Planned API:
# result = compute_visibility(mesh=face_mesh_result, face_bbox=bbox, frame_shape=(1080, 1920))

generate_screen_time_breakdown() (planned)

Generate face vs body timeline for an identity (not implemented yet).

# Planned module: FEATURES/vision_analytics/src/timeline.py
# from FEATURES.vision_analytics.src.timeline import generate_screen_time_breakdown

# Planned API:
# breakdown = generate_screen_time_breakdown(identity=identity, face_segments=face_timeline, body_segments=body_timeline)

Config Reference

File: config/pipeline/analytics.yaml

KeyDefaultDescription
face_mesh.enabledtrueEnable mesh extraction (planned; no runnable implementation yet)
face_mesh.execution.closeup_threshold0.05Face area / frame area
face_mesh.execution.sample_rate30Every Nth frame
gaze.enabledtrueEnable gaze estimation
gaze.use_iristrueUse refined iris landmarks
gaze.thresholds.center_threshold15Degrees from center

Visibility Fraction

Visibility fraction indicates how much of the face is visible:

FractionInterpretation
0.90-1.00Full frontal view
0.70-0.90Minor occlusion or slight profile
0.50-0.70Profile or significant occlusion
0.30-0.50Near-profile or major occlusion
<0.30Mostly occluded

Regional Breakdown

Face regions tracked:

RegionLandmarksImportance
Left eye33, 133, 160...High (identity)
Right eye362, 263, 387...High (identity)
Nose1, 2, 98...Medium
Mouth13, 14, 78...Medium
Forehead10, 67, 109...Low
Chin152, 377, 400...Low

Gaze Direction

Coarse gaze categories:

HorizontalDegrees
Left< -15°
Center-15° to +15°
Right> +15°
VerticalDegrees
Up< -15°
Center-15° to +15°
Down> +15°

Common Issues

Low visibility on frontals

Cause: Mesh extraction failing or thresholds too strict

Check: mesh_confidence in diagnostic

Fix: Lower detection confidence:

face_mesh:
  confidence:
    min_detection: 0.4  # default is 0.5

Gaze always "center"

Cause: Iris landmarks not detected

Check: use_iris setting and iris landmark presence

Fix: Ensure iris refinement enabled:

gaze:
  use_iris: true

Mesh not running on faces

Cause: Faces not classified as close-ups

Check: Face area vs closeup_threshold

Fix: Lower threshold or increase sample rate:

face_mesh:
  execution:
    closeup_threshold: 0.03  # default is 0.05
    sample_rate: 15  # default is 30

Diagnostic Output

{
  "face_id": "F_42_100",
  "visibility": {
    "overall_fraction": 0.85,
    "left_eye_visible": 1.0,
    "right_eye_visible": 0.7,
    "nose_visible": 1.0,
    "mouth_visible": 0.9,
    "forehead_visible": 0.8,
    "chin_visible": 0.75,
    "occluded_regions": ["right_eye"],
    "occlusion_type": "partial"
  },
  "gaze": {
    "horizontal": "center",
    "vertical": "center",
    "yaw_degrees": 5.2,
    "pitch_degrees": -3.1,
    "looking_at_camera": true,
    "confidence": 0.82
  },
  "mesh": {
    "landmarks_count": 468,
    "confidence": 0.91
  }
}

Key Files

FilePurpose
FEATURES/vision_analytics/docs/README.mdFeature notes (planned)
FEATURES/vision_analytics/TODO.mdSandbox TODO (planned)
config/pipeline/analytics.yamlConfiguration
docs/todo/feature_mesh_and_advanced_visibility.mdImplementation plan + QA checklist

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です