Welcome to the Vision based Garments Inspection! This repository contains scripts and resources for inspecting garments using computer vision techniques. This guide provides instructions on how to set up the environment, run the scripts, and contribute to the repository.
- Clone the Repository: Clone the garments_inspection repository to your local machine:
git clone https://github.com/quanta-guy/garments_inspection.git
cd garments_inspection
- Create Conda Environment: Create a new conda environment and install the required packages listed in requirements.txt:
conda create --name garments_inspection python=3.9.16
conda activate garments_inspection
pip install -r requirements.txt
- Edit Scripts: Edit the scripts (Canny.py, defect.py, color_defect.py) to configure the video camera source link:
- Open Canny.py, defect.py, and color_defect.py in a text editor.
- Find the video camera source link configuration and modify it to your camera source.
- Download: Download this file and copy it into measurement_stain>models directory
Running Scripts
- Defect Detection: Run the defect detection script from the measurement_stain directory:
cd measurement_stain
python defect.py
- Color Defect Detection: Run the color defect detection script from the root directory:
cd ..
python color_defect.py
- Edge Detection: Run the edge detection script from the Overlapper directory:
cd Overlapper
python canny.py
This project is still under development. If you would like up to add something please mail to us @Vishnukanth.S
This project is licensed under the MIT License - see the LICENSE file for details.