floorplan-analyzer / Readme.txt
MrDasOfficial's picture
Upload 8 files
f9ecaae verified
Raw History Blame Contribute Delete
1.92 kB
Floorplan Analyzer
-------------------------------------------
AI-powered application for analyzing architectural floor plan images.
Features:
- Door detection and counting
- Architectural text search
Technologies:
- Python
- YOLOv8
- EasyOCR
- OpenCV
- Gradio
Project Structure
-----------------
project/
β”œβ”€β”€ app.py
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ models/
β”‚ └── best.pt
β”œβ”€β”€ utils/
β”‚ β”œβ”€β”€ extractor.py
β”‚ β”œβ”€β”€ preprocessor.py
β”‚ └── data_creator.py
Setup Instructions
1. Create Virtual Environment
----------------------------
Windows:
python -m venv venv_name
Activate Environment:
venv_name\Scripts\activate
2. Install Requirements
--------------------------------
pip install -r requirements.txt
Important Note About Torch Installation
----------------------------------------
On some systems, torch installation may fail due to CUDA or platform-specific issues.
If installation stops because of torch:
- continue normally
- run the application
- install only missing packages manually
===========================================================
Run:
python app.py
===========================================================
If any package is missing, install it manually.
Example:
pip install opencv-python
The application supports CPU inference.
Run Application
python app.py
After launching, Gradio will provide a local browser URL similar to:
http://127.0.0.1:7860
Open it in your browser.
Using the Application
Door Detection
- Upload floor plan image
- Select "Count Doors"
- Submit
Text Search
- Upload floor plan image
- Select "Search Text"
- Enter query text
- Submit
Notes
- Door detection uses tiled inference
- OCR uses EasyOCR with fuzzy matching
- CPU inference supported
Author
- Aswin Das