progress-photo-analyzer
БесплатноБез исполняемых скриптовНе проверенAnalyze construction site photos to track progress, detect safety issues, and compare against BIM models using computer vision.
от datadrivenconstruction★ 461 звезда на GitHubОб этом скилле
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)
Установить progress-photo-analyzer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл progress-photo-analyzer?
Analyze construction site photos to track progress, detect safety issues, and compare against BIM models using computer vision.
Как установить скилл progress-photo-analyzer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл progress-photo-analyzer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic