Electrical takeoff from house drawings to a priced BOM

Estimators upload a PDF drawing set and get switches, power points, lights and fans counted and priced, room by room.

The takeoff app: a generated ground-floor test plan with every detected symbol boxed and labelled, and the count per symbol type

Project snapshot

Client
Takeoff project markReal estate startup
Industry
Construction tech: estimating
Region
USA, for builders in Australia
Duration
3 months
Team
2 people2 full‑stack developers
Budget
$30k–50k
Delivered
  • PDF rendering
  • Symbol detection
  • OCR
  • Symbol matching against a library
  • A priced Bill of Materials
  • Legend reading
  • Page sorting
  • Measurement extraction with approval
  • CSV and JSON export
  • A five-step web app
AI
Working first versionRunning end to end
Key stack
  • Python
  • YOLOv8
  • OpenCV
  • Tesseract
  • FAISS
  • Claude Sonnet 4.6

This system turns a PDF set of house drawings into a priced electrical Bill of Materials (BOM), the parts list a contractor quotes from. Computer vision finds and counts the symbols, and plain code works out every quantity and cost, so AI never touches the numbers. Techuz built it in three months, and it has worked on a real site plan as well as test drawings.

The client: a takeoff tool for builders

The client is a bootstrapped startup building a product for estimators and electrical contractors at residential builders in Australia.

These estimators receive drawing sets as PDFs. They have to count every switch, power point, light and fan to price a job.

The challenge: counts a quote can rely on

Electrical takeoff, counting every symbol on every sheet, is done by hand. It's slow and easy to get wrong.

Sending the drawing straight to an AI model can't be trusted either. It can miscount or invent items, and a quote can't carry that.

Here's what the system had to get right:

  • Finding and identifying every electrical symbol on a sheet
  • Numbers that come out the same every time and trace back to each symbol
  • Learning each drawing set's own symbols
  • Ignoring title blocks and legends that look like symbols
  • An export suppliers can quote from

Key decisions and why we made them

Three choices shaped this system. Code does all the counting, a trained detector finds the symbols, and AI only helps at the edges.

From drawing to BOM

  1. PDF drawing set
  2. Pages sorted and cropped: To the plan area (Claude)
  3. Symbols detected: YOLOv8 and OpenCV
  4. Text read: OCR
  5. Symbols matched to the library: Search
  6. Quantities and costs: Computed in code
  7. BOM with an estimator note: Claude
  8. CSV or JSON export
  1. Code counts, AI only writes words

    The easy option was to send the drawing to a vision AI model. Instead, computer vision, OCR (reading text from images) and symbol search find and identify the symbols, and plain code computes every quantity and cost.

    Claude only writes the project details and a short estimator note. If it returns a number that differs from the computed one, the computed number wins.

  2. A trained detector instead of hand-tuned matching

    Template matching looks for exact copies of each symbol. It needed tuning per symbol and stalled at about 61% F1 on our harder test set. F1 is a score that balances missed and false symbols.

    So we trained YOLOv8‑nano, an object-detection model, on 150 generated plans with 5,454 labelled symbols across 15 types.

  3. AI only at the edges

    Claude's vision model sorts pages into cover, plan and legend, and crops each sheet to the plan area before detection.

Two smaller calls

  • Learning each drawing set's symbols. The system reads the legend page to learn the symbols that set uses.

  • A person approves the measurements. Twelve AI-filled measurements, such as room, window and door counts, each need approval before Calculate and Save open up.

What we built

Estimators work through a five-step web app, from upload to export.

The priced Bill of Materials: each item with its quantity, unit and line price and its computer-vision score

Turn a plan page into a priced Bill of Materials in about a minute

End-to-end takeoff

Power points, a ceiling fan, a ceiling light and a data point boxed and labelled in a bedroom

See every detected symbol on the plan

Boxes on the drawing, with zoom and a confidence flag on each BOM line

CSV and JSON export, with no low-confidence lines in this run

Send it to suppliers for quotes

CSV or JSON export

The symbol library: each electrical symbol with its key, unit and cost

Teach the system a set's own symbols

Legend reading

Also delivered

See the BOM room by roomFor example, Living: 3 double power points, 6 downlights
Confirm every AI-filled measurementAn approval gate before calculating

How the project ran

When whole-sheet detection counted title-block boxes and legend icons as symbols, we added the plan-area crop and masked the legend.

2people

2
Full-stack developer

The results

The full pipeline runs end to end, and it has worked on a real site plan. One plan page, which an estimator would count by hand, becomes a priced, room-by-room Bill of Materials in about a minute. Every quantity traces back to a symbol on the plan, so the estimator can check it before sending it to suppliers. On generated test plans, the detector found 97 of every 100 symbols.

Tech stack

  1. PDF pages

    • pypdfium2
  2. Symbol detection

    Runs on a CPU without PyTorch

    • YOLOv8-nano
    • ONNX Runtime
    • OpenCV
  3. Text reading

    • Tesseractpytesseract
  4. Symbol matching

    Keeps symbol search local, with no database service

    • sentence-transformers
    • FAISSa local search index
  5. AI

    Kept away from counting, so every quantity is repeatable

    • Claude Sonnet 4.6
    • Pydanticschemas
  6. Web app

    • Streamlit

Questions about this project

  • AI can help with electrical takeoff from drawings, but it shouldn't do the counting. Here, computer vision finds the symbols, code computes every quantity and cost, and AI only sorts pages and writes notes.

  • Compute the numbers in code and overwrite anything the AI returns. Here, any number from Claude that differs from the computed one is replaced.

  • A trained model helps detect drawing symbols when the symbols vary. Here, hand-tuned matching stalled at about 61% F1, so we trained a YOLOv8 detector on 150 generated plans.

Get a Ballpark Estimate for Your Project

Tell us what you're building. We reply within 24 hours and send a ballpark estimate within 48.

Tell us about your project

A few lines are enough. We reply within 24 hours.

By sending this form I confirm that I have read and accept the Privacy Policy