uniform_detection

👕 UNIFORM DETECTION – Node.js / Express Version

This is the Node.js / Express.js conversion of the original Flask-based Uniform Detection Application.
It delivers the same AI-powered functionality with a modern JavaScript backend, ensuring better scalability and maintainability.


🚀 LIVE DEMO

🔥 Try it out now:
👉 OPEN UNIFORM DETECTION MODEL APP

Open in Streamlit


Key Features


🧩 Prerequisites

Make sure you have the following installed before running the app:


⚙️ Installation Guide

  1. Clone or download this repository ```bash git clone https://github.com/yourusername/uniform-detection-node.git cd uniform-detection-node

  2. Install dependencies:

    npm install
    

Running the Application

To start the development server:

npm run dev

To start the production server:

npm start

Then open your browser and visit 👉 http://localhost:3000

Project Structure

.
├── server.js              # Main Express.js server file
├── package.json           # Project dependencies and scripts
├── templates/             # HTML templates
│   └── index.html         # Main application page
├── static/                # Static assets
│   ├── css/
│   │   └── style.css      # Application styles
│   └── js/
│       └── script.js      # Frontend JavaScript
├── model/                 # ML model files
│   └── uniform_model.keras # Pre-trained model
└── README.md              # This file

API Endpoints

Dependencies

How It Works

  1. Users can upload images or capture photos using their device camera
  2. Images are processed using a pre-trained TensorFlow model
  3. The model detects whether a person in the image is wearing a uniform
  4. Results are displayed with confidence scores and visual indicators

Converting from Flask

This project was converted from a Flask application. Key changes include: