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.
- 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.
-
Clone the Repository:
git clone https://github.com/HuzaifaKhaan/Fabrico.git cd Fabrico
-
Build the Docker Image:
docker-compose build
-
Run the Docker Container:
docker-compose up
-
Open Your Browser and Navigate to:
http://127.0.0.1:5000
-
Clone the Repository:
git clone https://github.com/HuzaifaKhaan/Fabrico.git cd Fabrico
-
Create a Virtual Environment and Activate It:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the Dependencies:
pip install -r requirements.txt
-
Run the Flask Application:
python run.py
-
Open Your Browser and Navigate to:
http://127.0.0.1:5000
-
Upload a Fabric Image:
- Click on the "Upload" button and select a fabric image from your local machine.
-
Get Defect Detection Results:
- The system will analyze the image using the YOLO model and display the detected defects on the screen.
.
├── 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!