Skip to content

Fabrico is an advanced fabric defect detection system designed to identify various defects in fabric materials using state-of-the-art machine learning techniques.

Notifications You must be signed in to change notification settings

HuzaifaKhaan/AI-Powered-Fabric-Defect-Detection-System

Repository files navigation

Fabrico: Fabric Defect Detection System

work3

Overview

Fabrico is an advanced fabric defect detection system designed to identify various defects in fabric materials using state-of-the-art machine learning techniques. This project leverages YOLO (You Only Look Once) for real-time object detection, providing an efficient solution for quality control in the textile industry.

Features

  • Real-time Detection: Utilizes YOLO for fast and accurate defect detection.
  • Scalable: Built with Docker and Flask for easy deployment and scalability.
  • User-Friendly Interface: Intuitive web interface for uploading and analyzing fabric images.
  • Detailed Reports: Generates detailed reports on detected defects, aiding in quality control processes.

Technologies Used

Python Flask Docker GitHub

Installation

Using Docker

  1. Clone the Repository:

    git clone https://github.com/HuzaifaKhaan/Fabrico.git
    cd Fabrico
  2. Build the Docker Image:

    docker-compose build
  3. Run the Docker Container:

    docker-compose up
  4. Open Your Browser and Navigate to:

    http://127.0.0.1:5000
    

Without Docker

  1. Clone the Repository:

    git clone https://github.com/HuzaifaKhaan/Fabrico.git
    cd Fabrico
  2. Create a Virtual Environment and Activate It:

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install the Dependencies:

    pip install -r requirements.txt
  4. Run the Flask Application:

    python run.py
  5. Open Your Browser and Navigate to:

    http://127.0.0.1:5000
    

Usage

  1. Upload a Fabric Image:

    • Click on the "Upload" button and select a fabric image from your local machine.
  2. Get Defect Detection Results:

    • The system will analyze the image using the YOLO model and display the detected defects on the screen.

Project Structure

.
├── app/                 # Application files and folders
├── migrations/          # Database migrations
├── .env                 # Environment variables
├── .gitignore           # Git ignore file
├── README.md            # Project README file
├── bg.png               # Background image
├── config.py            # Configuration file
├── defect_times.txt     # Text file with defect timings
├── docker-compose.yml   # Docker Compose configuration
├── Dockerfile           # Dockerfile for building the Docker image
├── imagesaveyolo.py     # Image saving script for YOLO
├── requirements.txt     # Project dependencies
├── run.py               # Main application file
└── .vscode/             # VSCode configuration files

Contribution Guidelines Contributions to Fabrico are welcome! To contribute, please follow these steps:

Fork the repository. Create a new branch for your feature or bug fix. Make your changes and commit them. Push your changes to your fork. Submit a pull request to the main repository. License This project is licensed under the MIT License. See the LICENSE file for details.

Contact Feel free to reach out if you have any questions or suggestions!

About

Fabrico is an advanced fabric defect detection system designed to identify various defects in fabric materials using state-of-the-art machine learning techniques.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published