Skip to content

Tool for detecting cracks on construction materials (based on YOLO V8 + SAHI). Simple measurements made easy with a GUI

Notifications You must be signed in to change notification settings

s-du/WhatTheCrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whatthecrack2

Overview

WhatTheCrack is an intuitive tool designed for detecting cracks in construction materials. This application leverages the capabilities of YOLO V8 and SAHI, providing users with an intuitive graphical interface for straightforward measurements.

The project is still in pre-release, so do not hesitate to send your recommendations or the bugs you encountered!

Features

The app offers the following key features:

  • User-friendly GUI for simple measurements.
  • Advanced crack segmentation on construction materials.
    • Instance segmentation
    • Integration with YOLO V8 and SAHI for cutting-edge image processing
    • Segmentation results can be completed with manual painting
  • Simple 'painting' solution to quickly annotate cracks
    • Annotate cracks intuitively
    • Modify the proposed segmentation if needed
    • Export custom annotations (as Bboxes or instance segmentation, with chosen resolution and sliding window)
  • Graph analysis for crack structure determination (NetworkX)
    • Identification of end points and junctions
    • Measurement of the exact length of all cracks, based on the computed structure x
    • Export skeletons as DXF

Files and Structure

  • resources/: Contains essential resources for the application.
  • sahi/: Modified SAHI module for image segmentation and analysis.
  • interface.ui: The user interface file for the application.
  • main.py: The main Python script for running the application.
  • segment_engine.py: Handles the segmentation logic.
  • widgets.py: Defines Pyside6 widgets and UI components.

Topics

  • Segmentation
  • Crack detection
  • SAHI
  • Construction-site management
  • Orthophotos
  • YOLOv8​【oaicite:1】

Installation

  1. Clone the repository:
git clone https://github.com/s-du/WhatTheCrack
  1. Navigate to the app directory:
cd WhatTheCrack
  1. (Optional) Install and activate a virtual environment

  2. Install the required dependencies:

pip install -r requirements.txt
  1. Run the app:
python main.py

Note: By default, the app will run YOLO on cpu, except if there is an available CUDA environment (and associated pyTorch installation)

Usage

(Coming soon)

Contributing

Contributions to the WhatTheCrack App are welcome! If you find any bugs, have suggestions for new features, or would like to contribute enhancements, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make the necessary changes and commit them.
  4. Push your changes to your fork.
  5. Submit a pull request describing your changes.

About

Tool for detecting cracks on construction materials (based on YOLO V8 + SAHI). Simple measurements made easy with a GUI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages