Skip to content

Computer vision for construction documentation

License

Notifications You must be signed in to change notification settings

ninhpham96/AECVision

 
 

Repository files navigation

AECVision

AECVision is an object detection project for the construction industry. The main goal is to deliver good models for various problems like:

  • Detection elements on plans to allow automatized tasks
  • Speed up documentation analysis
  • Create tools for future computer vision projects

Information

Now project is base on YOLOv5 repo but in the future I will try other types of model architectures.

Project pipeline

image

Available models

Name Classes Model architecture Number of training images [original/augmented]
traine_best 12 Classes (see train_results/traine_best/labels.jpg) YOLOv5m6 252 / 1204

master MIT License

How it works?

The model was trained on clear plans and with annotation but remember that the best results you get without many symbols on construction plans.

Detection

Confidence = 0.5

Za -5-Projekt-architektoniczno-budowlany pdf2_2_3

Confidence = 0.8

Za -5-Projekt-architektoniczno-budowlany pdf2_2_31

Screen detection

By using screen_detection.py

2023-06-18.13-26-16.mp4

Project roadmap

  • Collect and tag more images (up to 500)
  • Try to use Grayscale than RGB
  • Change number of classes (maybe only 3? Wall, Window, Door)
  • Evolve hyperparameters to get the best set (in YOLO)
  • Use other model architecture (than YOLO)
  • Think about switch from .jpg file to .png (avoid converting data lost)
  • Think about how to add more "contexts" to the model (like: you are in the kitchen if there are stove and there probably will be table)

Summary & Problems

First training

Data description

Walls are overrepresented because this is normal quantities in architectural plans.

image

Maybe in future, i need to create more plans with other categories to improve other classes detection.

Learning process

Model has steadily improved up to the 272nd epoch and probably has further potential.

image

On the validation set, an increase in "obj_loss" was noted during the learning process.

image

Confussion matrix show that all classes except "background" are correctly identified.

image

If you want to dig into training results see train_results or write to me.

Problems

  • A small number of certain classes
  • Conversion from pdf (default construction plans format) to jpg results in a loss of image quality

Contributing

Contributions are always welcome! I look for help in tagging and improving models. Feel free to improve this project.

Thanks

Thanks, YOLOv5 and Label Studio for your project and tutorials. Special thanks to my brother Marcin who help me with tagging.

About

Computer vision for construction documentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%