progress-photo-analyzer
Analyze construction site photos to track progress, detect safety issues, and compare against BIM models using computer vision.
Install / Use
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill progress-photo-analyzerInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of progress-photo-analyzer
progress-photo-analyzer scores 91/100 on our quality scale, 1203rd of 4,644 Development & Engineering skills we index (top 26%).
Its SKILL.md is 15 KB long, well organised into 14 sections with 5 code examples: a thorough specification that gives an agent plenty to work with.
It has 333 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated 44 days ago, so progress-photo-analyzer is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
progress-photo-analyzer compared with similar skills
All 4 of these similar skills score higher than progress-photo-analyzer; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| progress-photo-analyzer (this skill)by datadrivenconstruction | 91 | 333 | 44d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 91.2k | 19d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.4k | today | CLAUDE.md |
| ai-job-searchby MadsLorentzen | 100 | 45.0k | 1d ago | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 41.7k | 5d ago | CLAUDE.md |
Frequently asked questions
- How do I install progress-photo-analyzer?
- Run
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill progress-photo-analyzer. The install tabs above show the steps for each supported agent. - Which AI agents does progress-photo-analyzer work with?
- It is written for Zed, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is progress-photo-analyzer safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is progress-photo-analyzer still maintained?
- The repository was last updated 44 days ago, so progress-photo-analyzer is actively maintained.
Skill content
View source on GitHubname: "progress-photo-analyzer" description: "Analyze construction site photos to track progress, detect safety issues, and compare against BIM models using computer vision." homepage: "https://datadrivenconstruction.io" metadata: {"openclaw": {"emoji": "🔍", "os": ["darwin", "linux", "win32"], "homepage": "https://datadrivenconstruction.io", "requires": {"bins": ["python3"]}}}
Progress Photo Analyzer
Business Case
Problem Statement
Site photos are underutilized for progress tracking:
- Manual review is time-consuming
- Subjective progress assessment
- No systematic comparison to plans
- Safety issues may be missed
Solution
AI-powered photo analysis system that extracts progress information, detects safety concerns, and compares site conditions to BIM models.
Business Value
- Automation - Reduce manual photo review
- Accuracy - Objective progress measurement
- Safety - Automatic hazard detection
- Documentation - Structured photo records
Technical Implementation
import pandas as pd
from datetime import datetime, date
from typing import Dict, Any, List, Optional, Tuple
from dataclasses import dataclass, field
from enum import Enum
from pathlib import Path
import base64
class PhotoType(Enum):
"""Types of construction photos."""
PROGRESS = "progress"
SAFETY = "safety"
QUALITY = "quality"
GENERAL = "general"
DELIVERY = "delivery"
class AnalysisStatus(Enum):
"""Analysis status."""
PENDING = "pending"
ANALYZING = "analyzing"
COMPLETED = "completed"
FAILED = "failed"
class SafetyIssue(Enum):
"""Detected safety issues."""
MISSING_PPE = "missing_ppe"
FALL_HAZARD = "fall_hazard"
HOUSEKEEPING = "housekeeping"
SCAFFOLDING = "scaffolding"
ELECTRICAL = "electrical"
EXCAVATION = "excavation"
NONE = "none"
class WorkActivity(Enum):
"""Detected work activities."""
EXCAVATION = "excavation"
FOUNDATION = "foundation"
CONCRETE_POUR = "concrete_pour"
STEEL_ERECTION = "steel_erection"
FRAMING = "framing"
ROOFING = "roofing"
MEP_ROUGH = "mep_rough"
DRYWALL = "drywall"
FINISHES = "finishes"
EXTERIOR = "exterior"
UNKNOWN = "unknown"
@dataclass
class PhotoMetadata:
"""Photo metadata."""
photo_id: str
filename: str
capture_date: datetime
location: str
level: str
zone: str
photo_type: PhotoType
photographer: str = ""
gps_coordinates: Optional[Tuple[float, float]] = None
file_path: str = ""
@dataclass
class ProgressDetection:
"""Detected progress information."""
work_activity: WorkActivity
confidence: float
description: str
completion_estimate: float # 0-100%
elements_visible: List[str] = field(default_factory=list)
@dataclass
class SafetyDetection:
"""Detected safety information."""
issue_type: SafetyIssue
confidence: float
description: str
severity: str # low, medium, high
location_in_image: Optional[Tuple[int, int, int, int]] = None # bounding box
@dataclass
class PhotoAnalysisResult:
"""Complete photo analysis result."""
photo_id: str
metadata: PhotoMetadata
analysis_date: datetime
status: AnalysisStatus
progress_detections: List[ProgressDetection]
safety_detections: List[SafetyDetection]
weather_conditions: str
worker_count: int
equipment_visible: List[str]
quality_issues: List[str]
notes: str = ""
bim_comparison: Optional[Dict[str, Any]] = None
class ProgressPhotoAnalyzer:
"""Analyze construction site photos."""
def __init__(self, project_name: str):
self.project_name = project_name
self.photos: Dict[str, PhotoMetadata] = {}
self.results: Dict[str, PhotoAnalysisResult] = {}
self._photo_counter = 0
def register_photo(self,
filename: str,
capture_date: datetime,
location: str,
level: str = "",
zone: str = "",
photo_type: PhotoType = PhotoType.PROGRESS,
photographer: str = "",
file_path: str = "") -> PhotoMetadata:
"""Register a photo for analysis."""
self._photo_counter += 1
photo_id = f"PH-{self._photo_counter:05d}"
metadata = PhotoMetadata(
photo_id=photo_id,
filename=filename,
capture_date=capture_date,
location=location,
level=level,
zone=zone,
photo_type=photo_type,
photographer=photographer,
file_path=file_path
)
self.photos[photo_id] = metadata
return metadata
def analyze_photo(self, photo_id: str,
image_data: bytes = None) -> PhotoAnalysisResult:
"""Analyze a registered photo."""
if photo_id not in self.photos:
raise ValueError(f"Photo {photo_id} not registered")
metadata = self.photos[photo_id]
# Perform analysis (simulated - would use CV/AI models)
progress_detections = self._detect_progress(metadata, image_data)
safety_detections = self._detect_safety(metadata, image_data)
weather = self._detect_weather(metadata, image_data)
worker_count = self._count_workers(image_data)
equipment = self._detect_equipment(image_data)
result = PhotoAnalysisResult(
photo_id=photo_id,
metadata=metadata,
analysis_date=datetime.now(),
status=AnalysisStatus.COMPLETED,
progress_detections=progress_detections,
safety_detections=safety_detections,
weather_conditions=weather,
worker_count=worker_count,
equipment_visible=equipment,
quality_issues=[]
)
self.results[photo_id] = result
return result
def _detect_progress(self, metadata: PhotoMetadata,
image_data: bytes = None) -> List[ProgressDetection]:
"""Detect work progress in photo."""
# Simulated detection based on metadata
detections = []
# In real implementation, this would use computer vision
location_lower = metadata.location.lower()
if 'foundation' in location_lower or 'basement' in location_lower:
detections.append(ProgressDetection(
work_activity=WorkActivity.FOUNDATION,
confidence=0.85,
description="Foundation work visible",
completion_estimate=60.0
))
elif 'steel' in location_lower or 'structure' in location_lower:
detections.append(ProgressDetection(
work_activity=WorkActivity.STEEL_ERECTION,
confidence=0.90,
description="Structural steel installation",
completion_estimate=45.0
))
elif 'roof' in location_lower:
detections.append(ProgressDetection(
work_activity=WorkActivity.ROOFING,
confidence=0.80,
description="Roofing work in progress",
completion_estimate=30.0
))
else:
detections.append(ProgressDetection(
work_activity=WorkActivity.UNKNOWN,
confidence=0.50,
description="General construction activity",
completion_estimate=0.0
))
return detections
def _detect_safety(self, metadata: PhotoMetadata,
image_data: bytes = None) -> List[SafetyDetection]:
"""Detect safety issues in photo."""
# Simulated detection - real implementation would use AI models
detections = []
# In production, this would analyze the actual image
if metadata.photo_type == PhotoType.SAFETY:
# Return empty for demonstration
pass
return detections
def _detect_weather(self, metadata: PhotoMetadata,
image_data: bytes = None) -> str:
"""Detect weather conditions from photo."""
# Simulated - would use image analysis
return "clear"
def _count_workers(self, image_data: bytes = None) -> int:
"""Count workers visible in photo."""
# Simulated - would use person detection
return 0
def _detect_equipment(self, image_data: bytes = None) -> List[str]:
"""Detect equipment visible in photo."""
# Simulated - would use object detection
return []
def compare_to_bim(self, photo_id: str,
bim_render: bytes = None) -> Dict[str, Any]:
"""Compare photo to BIM model render."""
if photo_id not in self.results:
return {'error': 'Photo not analyzed'}
# Simulated comparison
comparison = {
'similarity_score': 0.75,
'alignment_quality': 'good',
'discrepancies': [],
'notes': 'Photo roughly matches BIM model'
}
self.results[photo_id].bim_comparison = comparison
return comparison
def get_progress_summary(self,
from_date: date = None,
to_date: date = None) -> Dict[str, Any]:
"""Generate progress summary from analyzed photos."""
filtered_results = list(self.results.values())
if from_date:
filtered_results = [r for r in filtered_results
if r.metadata.capture_date.date() >= from_date]
if to_date:
filtered_results = [r for r in filtered_results
if r.metadata.capture_date.date() <= to_date]
# Aggregate by activity
by_activity = {}
for result in filtered_results:
for detection in result.progress_detections:
activity = detection.work_activity.value
if activity not in by_activity:
by_activity[activity] = {
'count': 0,
'avg_completion': 0,
'photos': []
}
by_activity[activity]['count'] += 1
by_activity[activity]['avg_completion'] += detection.completion_estimate
by_activity[activity]['photos'].append(result.photo_id)
# Calculate averages
for activity in by_activity:
count = by_activity[activity]['count']
if count > 0:
by_activity[activity]['avg_completion'] /= count
# Safety summary
total_safety_issues = sum(len(r.safety_detections) for r in filtered_results)
return {
'total_photos': len(filtered_results),
'date_range': {
'from': from_date.isoformat() if from_date else None,
'to': to_date.isoformat() if to_date else None
},
'by_activity': by_activity,
'safety_issues_detected': total_safety_issues,
'average_worker_count': sum(r.worker_count for r in filtered_results) / len(filtered_results) if filtered_results else 0
}
def export_report(self, output_path: str):
"""Export analysis results to Excel."""
with pd.ExcelWriter(output_path, engine='openpyxl') as writer:
# Photos list
photos_data = []
for result in self.results.values():
photos_data.append({
'Photo ID': result.photo_id,
'Filename': result.metadata.filename,
'Date': result.metadata.capture_date,
'Location': result.metadata.location,
'Level': result.metadata.level,
'Type': result.metadata.photo_type.value,
'Status': result.status.value,
'Worker Count': result.worker_c
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
91.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.4kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ai-job-search
45.0kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.7kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
