Skip to content
PG300604Public

About

An offline-first, AI-powered visual structural inspection PWA for heavy industrial equipment. Features real-time in-browser defect detection (TensorFlow.js + pixel heuristics), seamless background sync, automated ID reconciliation, and Gemini AI narrative maintenance briefs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

SkyCheck — AI-Powered Visual Structural Inspection Assistant

SkyCheck enables site inspectors and heavy machinery operators to perform rapid, repeatable safety audits in low-connectivity or offline industrial environments. Using a smartphone camera, the system performs real-time edge anomaly classification directly inside the browser, stores inspections in a local sync queue, synchronizes with a central PostgreSQL database when online, and generates AI narrative maintenance briefs.


🔗 Live Application URLs


🏗️ Architecture & Technology Stack

graph TD
    subgraph Client [Browser Client / PWA]
        UI[React UI / Slate & Safety Yellow]
        TF[TensorFlow.js / Pixel Heuristics Assist]
        IDB[Dexie.js / IndexedDB Storage]
        SyncClient[Sync Service / Auto Reconciler]
      SignUp[SignUp & ForgotPassword OTP Flow]
    end
    
    subgraph Cloud [Cloud Services]
        LB[Railway Gateway]
        API[Spring Boot 3.5 API Server]
        Mail[JavaMailSender SMTP / Fallback Logs]
        DB[(PostgreSQL Database)]
        Gemini[Google Gemini API]
    end

    UI --> TF
    UI --> IDB
    IDB --> SyncClient
    SyncClient -->|HTTPS REST Batch| LB
    LB --> API
    API --> DB
    API -->|Prompt Context| Gemini
    API -->|OTP Dispatch| Mail
    Gemini -->|Narrative Brief| API
Loading

1. Frontend: React PWA (Vite 8 & Tailwind CSS v4)

  • Offline First: Service worker caching and PWA manifests enable full app launch and camera functions without active internet connection.
  • Client Cache: Powered by Dexie.js (IndexedDB v2 schema) with auto-incrementing IDs for local creations.
  • Dynamic visual effects: Features advanced mouse-following border glows, 3D card tilt, particle systems, and hardware-accelerated aurora waves.
  • Edge Inference & Heuristic Assist: Runs defect classification on camera feeds. Integrates real-time canvas pixel scanners (color ratio, contrast edge line, shadow/specular highlights) to boost anomaly detection accuracy.

2. Backend: Spring Boot 3.5 & PostgreSQL

  • JPA & Hibernate Persistence: Schema and data initialization mapped cleanly for heavy industrial assets.
  • Security & Password Recovery: Gated API routes with stateless JWT tokens, SignUp controls, and an SMTP OTP verification engine.
  • Cascading ID Reconciliation: Restores local auto-increment IDs to central database primary keys upon synchronization.

📋 Step-by-Step Demo Instructions

1. Register a New Profile

  1. Navigate to the Live PWA Frontend.
  2. Click SignUp Profile at the bottom of the login card.
  3. Fill in the registry form (Name, Username, Email, Role, and Passcode) and submit to create your profile and log in.

2. Verify Passcode Recovery (Forgot Password OTP)

  1. Log out. Click Forgot Passcode? on the login page.
  2. Enter the registered email address and submit.
  3. Open your Railway project's backend logs (in the Railway dashboard) and locate the printed verification code: ========================================== OTP CODE FOR username@email.com IS: XXXXXX ==========================================
  4. Enter the OTP code in the app, choose a new passcode, and confirm you can log in with the new credentials.

3. Test Camera Accuracy (Heuristics)

  1. Select any machinery and click Start Inspection. Allow camera permissions.
  2. Corrosion check: Point the camera at a rusted surface, brown box, or orange object -> the classifier dynamically detects color chroma and tags Corrosion.
  3. Crack check: Point the camera at a blank paper with a bold black line -> the classifier detects high-contrast lines and tags Crack.
  4. Point at a normal surface -> the classifier resets to Normal.

4. Manage Fleet Assets Offline

  1. On the Dashboard, click Register Asset. Add a machine (e.g. Volvo Loader, Model L150, Serial VO-992).
  2. Toggle Developer Tools (F12) -> Network -> Offline. The header shows OFFLINE WORKSPACE.
  3. Click on the new machine card. Click Add Component to register custom safety checkpoints (e.g. Engine Fan Belt).
  4. Click Start Inspection to run the safety audit offline. Save it.
  5. In the machine details, click Delete next to any component to remove it "one by one", or click Decommission Asset to delete the machine.
  6. Toggle connection back to Online -> click Sync Now. Local changes sync instantly to PostgreSQL on Railway, executing cascading ID maps.

👥 Project Team & Contributors

This project was co-developed by a two-member team from the CSBS (Computer Science and Business Systems) department:

  • Priyanshu Ghosh (CSBS)
  • Riya Gupta (CSBS)

⚠️ Known Limitations & Disclaimers

  1. Free-Tier SMTP / Logs Fallback: To support a 100% free deploy, the mail sender service falls back to logging generated security codes directly to the server logs if active SMTP mail credentials are not provided.
  2. Camera Simulator: Standard boundary boxes are rendered dynamically around detected pixel segments to provide visual inspector feedback.
  3. Bypass Access: Quick demo login buttons bypass REST auth queries using preset accounts for judging convenience.

About

An offline-first, AI-powered visual structural inspection PWA for heavy industrial equipment. Features real-time in-browser defect detection (TensorFlow.js + pixel heuristics), seamless background sync, automated ID reconciliation, and Gemini AI narrative maintenance briefs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages