Skip to main content

Overview

Checks appearance against wardrobe and beauty rules. Requires at least one configuration parameter - Provide wardrobe_rules or beauty_rules.

Configuration

config.wardrobe_rules
array
List of wardrobe rules to check.
config.beauty_rules
array
List of beauty rules to check.
config.max_violations
integer
Maximum number of violations allowed before failing.

Example Configuration

{
  "detector_name": "wardrobe",
  "config": {
    "wardrobe_rules": [
      "professional business attire",
      "no visible brand logos"
    ],
    "beauty_rules": [
      "natural makeup look"
    ],
    "max_violations": 1
  }
}

Result Schema

{
  "detector_name": "wardrobe",
  "pass_check": true,
  "score": 0.83,
  "rationale": "Detected 1 violations (1 wardrobe: no visible brand logos) - within limit of 1",
  "metrics": {
    "violations": [
      {
        "rule": "no visible brand logos",
        "explanation": "Small logo visible on shirt",
        "frame_indices": [2],
        "timestamps": [1.6]
      }
    ],
    "beauty_violations": [],
    "wardrobe_violation_count": 1,
    "beauty_violation_count": 0,
    "total_violations": 1,
    "wardrobe_rules_count": 2,
    "beauty_rules_count": 1,
    "max_violations": 1
  },
  "timestamps": [1.6],
}

Interpreting Results

  • violations/beauty_violations: Rule violations with frame evidence.
  • total_violations/max_violations: Determines pass/fail.
  • score: Compliance score based on total rules vs. violations.