AI-powered building extraction from floor plans using Meta's SAM
Upload PNG/JPG images โข Convert PDF to PNG externally
๐ Step 1: Upload Floor Plan
Upload a PNG, JPG, or PDF of your floor plan
๐ผ๏ธ
Drag & drop or click to upload
Supported: PNG, JPG, PDF (first page)
๐ฏ Step 2: Draw Bounding Box & Refine
Fast & Precise Workflow:
โ Fast: Draw bbox in 2 seconds (80% accurate)
โ Precise: Refine with 2-5 clicks (100% accurate)
โ Easy: Simple two-step process
โ Draw a box around your building: Click and drag to create a bounding box. SAM2 will extract exactly what's inside the box!
๐ก Higher = cleaner geometry with fewer points
โ Draw a box around your region of interest. SAM will find multiple objects inside your box for you to choose.
โ Click on the image to add points around your building (at least 3).
โ Left click to add points โข โฉ๏ธ Undo to remove last โข ๐งน Clear to start over โข โ Segment to run.
๐ฏ Point Prompts: Click on the image to add positive (+) points (include) and negative (-) points (exclude).
Example: Place positives on outer walls; place negatives on rooms/text to exclude.
0 positive, 0 negative
โ Smart Building Envelope Detection: Automatically detects the outer boundary of your building using multiple AI methods.
๐ข Perfect for finding the red outline in architectural plans.
โ๏ธ Optional: Draw a crop box to focus on a specific area, or leave as-is to analyze the full image.
๐ Click Continue when ready!
โจ Add/Remove Mode (Like Meta's SAM Demo)
How to use:
Make sure "Add Mask +" is selected (orange)
Hover over building โ orange preview appears
Click to ADD that area to selection
To remove parts: Click "Remove Area -" (red)
Click unwanted areas โ they disappear from selection
Click "Confirm" when happy with selection!
๐ก Tip: Use "Large" to select entire buildings with one click!
No areas selected yet. Click to start!
๐ Grid Snapping
Snap vertices to grid for cleaner edges
๐ก Tip: Start with 10px. Increase for simpler shapes, decrease for more detail.
๐ฏ Bbox + Refine Mode - Best of Both Worlds!
Why This is Best:
โ Fast: Draw bbox in 2 seconds (80% accurate)
โ Precise: Refine with 2-5 clicks (100% accurate)
โ Easy: Simple two-step process
โ Professional: Industry-standard workflow
๐ฆ Step 1: Draw Bounding Box
Draw a rough box around the building (doesn't need to be perfect!)
โ Step 2 of 2: Refine the Mask
Initial mask created! Now add/remove areas to make it perfect:
Hover over areas to add or remove
๐ Grid Snapping
Snap vertices to grid for cleaner edges
๐ก Tip: Start with 10px. Increase for simpler shapes, decrease for more detail.
๐ค Step 3: AI Segmentation
SAM is analyzing your floor plan...
This may take 12-25 seconds (finding 50-100+ objects) โก
๐ข Step 4: Select the Building
Click on the object that represents your building
โ ๏ธ Tip: The LARGEST object is usually the main building. Avoid selecting text, legends, parking areas, or annotations. If you don't see the right building, go back and try cropping more precisely.