photo-content-recognition-curation-expert

erichowens/some_claude_skills · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/erichowens/some_claude_skills --skill photo-content-recognition-curation-expert
0 commentsdiscussion
summary

Expert in photo content analysis and intelligent curation. Combines classical computer vision with modern deep learning for comprehensive photo analysis.

skill.md

Photo Content Recognition & Curation Expert

Expert in photo content analysis and intelligent curation. Combines classical computer vision with modern deep learning for comprehensive photo analysis.

When to Use This Skill

Use for:

  • Face recognition and clustering (identifying important people)
  • Animal/pet detection and clustering
  • Near-duplicate detection using perceptual hashing (DINOHash, pHash, dHash)
  • Burst photo selection (finding best frame from 10-50 shots)
  • Screenshot vs photo classification
  • Meme/download filtering
  • NSFW content detection
  • Quick indexing for large photo libraries (10K+)
  • Aesthetic quality scoring (NIMA)

NOT for:

  • GPS-based location clustering → event-detection-temporal-intelligence-expert
  • Color palette extraction → color-theory-palette-harmony-expert
  • Semantic image-text matching → clip-aware-embeddings
  • Video analysis or frame extraction

Quick Decision Tree

What do you need to recognize/filter?
├─ Duplicate photos? ─────────────────────────────── Perceptual Hashing
│   ├─ Exact duplicates? ──────────────────────────── dHash (fastest)
│   ├─ Brightness/contrast changes? ───────────────── pHash (DCT-based)
│   ├─ Heavy crops/compression? ───────────────────── DINOHash (2025 SOTA)
│   └─ Production system? ─────────────────────────── Hybrid (pHash → DINOHash)
├─ People in photos? ─────────────────────────────── Face Clustering
│   ├─ Known thresholds? ──────────────────────────── Apple-style Agglomerative
│   └─ Unknown data distribution? ─────────────────── HDBSCAN
├─ Pets/Animals? ─────────────────────────────────── Pet Recognition
│   ├─ Detection? ─────────────────────────────────── YOLOv8
│   └─ Individual clustering? ─────────────────────── CLIP + HDBSCAN
├─ Best from burst? ──────────────────────────────── Burst Selection
│   └─ Score: sharpness + face quality + aesthetics
└─ Filter junk? ──────────────────────────────────── Content Detection
    ├─ Screenshots? ───────────────────────────────── Multi-signal classifier
    └─ NSFW? ──────────────────────────────────────── Safety classifier

Core Concepts

1. Perceptual Hashing for Near-Duplicate Detection

Problem: Camera bursts, re-saved images, and minor edits create near-duplicates.

Solution: Perceptual hashes generate similar values for visually similar images.

Method Comparison:

Method Speed Robustness Best For
dHash Fastest Low Exact duplicates
pHash Fast Medium Brightness/contrast changes
DINOHash Slower High Heavy crops, compression
Hybrid Medium Very High Production systems

Hybrid Pipeline (2025 Best Practice):

  1. Stage 1: Fast pHash filtering (eliminates obvious non-duplicates)
  2. Stage 2: DINOHash refinement (accurate detection)
  3. Stage 3: Optional Siamese ViT verification

Hamming Distance Thresholds:

  • Conservative: ≤5 bits different = duplicates
  • Aggressive: ≤10 bits different = duplicates

Deep dive: references/perceptual-hashing.md


2. Face Recognition & Clustering

Goal: Group photos by person without user labeling.

Apple Photos Strategy (2021-2025):

  1. Extract face + upper body embeddings (FaceNet, 512-dim)
  2. Two-pass agglomerative clustering
  3. Conservative first pass (threshold=0.4, high precision)
  4. HAC second pass (threshold=0.6, increase recall)
  5. Incremental updates for new photos

HDBSCAN Alternative:

  • No threshold tuning required
  • Robust to noise
  • Better for unknown data distributions

Parameters:

Setting Agglomerative HDBSCAN
Pass 1 threshold 0.4 (cosine) -
Pass 2 threshold 0.6 (cosine) -
Min cluster size - 3 photos
Metric cosine cosine

Deep dive: references/face-clustering.md


3. Burst Photo Selection

Problem: Burst mode creates 10-50 nearly identical photos.

Multi-Criteria Scoring:

Criterion Weight Measurement
Sharpness 30% Laplacian variance
Face Quality 35% Eyes open, smiling, face sharpness
Aesthetics 20% NIMA score
Position 10% Middle frames bonus
Exposure 5% Histogram clipping check

Burst Detection: Photos within 0.5 seconds of each other.

Deep dive: references/content-detection.md


4. Screenshot Detection

Multi-Signal Approach:

Signal Confidence Description
UI elements 0.85 Status bars, buttons detected
Perfect rectangles 0.75 >5 UI buttons (90° angles)
High text 0.70 >25% text coverage (OCR)
No camera EXIF 0.60 Missing Make/Model/Lens
Device aspect 0.60 Exact phone screen ratio
Perfect sharpness 0.50 >2000 Laplacian variance

Decision: Confidence >0.6 = screenshot

Deep dive: references/content-detection.md


5. Quick Indexing Pipeline

Goal: Index 10K+ photos efficiently with caching.

Features Extracted:

  • Perceptual hashes (de-duplication)
  • Face embeddings (people clustering)
  • CLIP embeddings (semantic search)
  • Color palettes
  • Aesthetic scores

Performance (10K photos, M1 MacBook Pro):

Operation Time
Perceptual hashing 2 min
CLIP embeddings 3 min (GPU)
Face detection 4 min
Color palettes 1 min
Aesthetic scoring 2 min (GPU)
Clustering + dedup 1 min
Total (first run) ~13 min
Incremental <1 min

Deep dive: references/photo-indexing.md


Common Anti-Patterns

Anti-Pattern: Euclidean Distance for Face Embeddings

What it looks like:

distance = np.linalg.norm(embedding1 - embedding2)  # WRONG

Why it's wrong: Face embeddings are normalized; cosine similarity is the correct metric.

What to do instead:

from scipy.spatial.distance import cosine
distance = cosine(embedding1, embedding2)  # Correct

Anti-Pattern: Fixed Clustering Thresholds

What it looks like: Using same distance threshold for all face clusters.

Why it's wrong: Different people have varying intra-class variance (twins vs. diverse ages).

What to do instead: Use HDBSCAN for automatic threshold discovery, or two-pass clustering with conservative + relaxed passes.

Anti-Pattern: Raw Pixel Comparison for Duplicates

What it looks like:

is_duplicate = np.allclose(img1, img2)  # WRONG

Why it's wrong: Re-saved JPEGs, crops, brightness changes create pixel differences.

What to do instead: Perceptual hashing (pHash or DINOHash) with Hamming distance.

Anti-Pattern: Sequential Face Detection

What it looks like: Processing faces one photo at a time without batching.

Why it's wrong: GPU underutilization, 10x slower than batched.

What to do instead: Batch process images (batch_size=32) with GPU acceleration.

Anti-Pattern: No Confidence Filtering

What it looks like:

for face in all_detected_faces:
    cluster(face)  # No filtering

Why it's wrong: Low-confidence detections create noise clusters (hands, objects).

What to do instead: Filter by confidence (threshold 0.9 for faces).

Anti-Pattern: Forcing Every Photo into Clusters

What it looks like: Assigning noise points to nearest cluster.

Why it's wrong: Solo appearances shouldn't pollute person clusters.

What to do instead: HDBSCAN/DBSCAN naturally identifies noise (label=-1). Keep noise separate.


Quick Start

from photo_curation import PhotoCurationPipeline

pipeline = PhotoCurationPipeline()

# Index photo library
index = pipeline.index_library('/path/to/photos')

# De-duplicate
duplicates = index.find_duplicates()
print(f"Found {len(duplicates)} duplicate groups")

# Cluster faces
face_clusters = index.cluster_faces()
print(f"Found {len(face_clusters)} people")

# Select best from bursts
best_photos = pipeline.select_best_from_bursts(index)

# Filter screenshots
real_photos = pipeline.filter_screenshots(index)

# Curate for collage
collage_photos = pipeline.curate_for_collage(index, target_count=100)

Python Dependencies

torch transformers facenet-pytorch ultralytics hdbscan opencv-python scipy numpy scikit-learn pillow pytesseract

Integration Points

  • event-detection-temporal-intelligence-expert: Provides temporal event clustering for event-aware curation
  • color-theory-palette-harmony-expert: Extracts color palettes for visual diversity
  • collage-layout-expert: Receives curated photos for assembly
  • clip-aware-embeddings: Provides CLIP embeddings for semantic search and DeepDBSCAN

References

  1. DINOHash (2025): "Adversarially Fine-Tuned DINOv2 Features for Perceptual Hashing"
  2. Apple Photos (2021): "Recognizing People in Photos Through Private On-Device ML"
  3. HDBSCAN: "Hierarchical Density-Based Spatial Clustering" (2013-2025)
  4. Perceptual Hashing: dHash (Neal Krawetz), DCT-based pHash

Version: 2.0.0 Last Updated: November 2025

how to use photo-content-recognition-curation-expert

How to use photo-content-recognition-curation-expert on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add photo-content-recognition-curation-expert
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/erichowens/some_claude_skills --skill photo-content-recognition-curation-expert

The skills CLI fetches photo-content-recognition-curation-expert from GitHub repository erichowens/some_claude_skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/photo-content-recognition-curation-expert

Reload or restart Cursor to activate photo-content-recognition-curation-expert. Access the skill through slash commands (e.g., /photo-content-recognition-curation-expert) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.747 reviews
  • Naina Harris· Dec 16, 2024

    photo-content-recognition-curation-expert is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Aditi Khanna· Dec 8, 2024

    Keeps context tight: photo-content-recognition-curation-expert is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Li Park· Nov 27, 2024

    photo-content-recognition-curation-expert has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Kwame Diallo· Nov 11, 2024

    Useful defaults in photo-content-recognition-curation-expert — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Ama Li· Nov 7, 2024

    Solid pick for teams standardizing on skills: photo-content-recognition-curation-expert is focused, and the summary matches what you get after install.

  • Harper Torres· Oct 26, 2024

    photo-content-recognition-curation-expert has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Aditi Patel· Oct 18, 2024

    Solid pick for teams standardizing on skills: photo-content-recognition-curation-expert is focused, and the summary matches what you get after install.

  • Harper Garcia· Oct 2, 2024

    I recommend photo-content-recognition-curation-expert for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Rahul Santra· Sep 13, 2024

    I recommend photo-content-recognition-curation-expert for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Valentina Ghosh· Sep 13, 2024

    Solid pick for teams standardizing on skills: photo-content-recognition-curation-expert is focused, and the summary matches what you get after install.

showing 1-10 of 47

1 / 5