How xecipher/rebaranalysis works
RebarAnalysis is a web-based rebar quality-control platform. A site engineer supplies site and design images; the Angular application extracts design specifications and rod points with Gemini, then sends measured points and calibration data to Flask for top- or side-view computer-vision analysis. The frontend scores the returned measurements, presents annotated results and downloadable reports/BIM JSON, and can request an authority alert for low scores. The README also documents Revit/Dynamo visualization. Backend routes and CV services are sampled; some frontend result and export details are based on the README because their implementation was not sampled.
Main entry points: app.component.ts Inspection workflow · app.py Flask API · gemini.service.ts Gemini client · rodlines.py Rod-lines Dynamo script
Components 14
Inspection frontend
- Inspection workflow
frontend/src/app/app.component.ts - Gemini client
frontend/src/app/services/gemini.service.ts - Compliance scoring
frontend/src/app/services/scoring.service.ts - Reports and BIM JSON
frontend/src/app/app.component.ts
Measurement analysis
- Flask API
backend/src/app.py - Top-view CV
backend/src/analysis_service.py - Side-view CV
backend/src/side_view_service.py
Authority alerts
- Brevo email service
BIM integration
- Rod-lines Dynamo script
frontend/public/assets/downloads/rodlines.py - Rod-highlight Dynamo script
frontend/public/assets/downloads/rodhighlight.py
Other components
- Site engineer
- GemPrism Gateway
- Higher authority
- Autodesk Revit
Connections 20
- Site engineer → Inspection workflow: uploads images
- Inspection workflow → Gemini client: requests extraction
- Gemini client → GemPrism Gateway: sends image prompts
- GemPrism Gateway → Gemini client: returns JSON
- Inspection workflow → Flask API: submits image and points
- Flask API → Top-view CV: dispatches top analysis
- Flask API → Side-view CV: dispatches side analysis
- Flask API → Inspection workflow: returns measurements
- Inspection workflow → Compliance scoring: scores measurements
- Inspection workflow → Flask API: requests annotated analysis
- Inspection workflow → Reports and BIM JSON: prepares report and exports
- Site engineer → Reports and BIM JSON: downloads results
- Inspection workflow → Flask API: requests authority alert
- Flask API → Brevo email service: dispatches email
- Brevo email service → Higher authority: sends alert
- Site engineer → Autodesk Revit: runs Dynamo scripts
- Autodesk Revit → Rod-lines Dynamo script: executes
- Autodesk Revit → Rod-highlight Dynamo script: executes
- Rod-lines Dynamo script → Reports and BIM JSON: reads rod-lines JSON
- Rod-highlight Dynamo script → Reports and BIM JSON: reads highlight JSON