Floor Plan OCR: Rotated Tags, Dimensions and Title Blocks
By Floor Plan Analyzer, an AxcelerateAI practice
The hard part of drawing OCR is turning a readable string into a traceable field. A correctly read number has little value if the receiving application assigns it to the wrong door or revision.

At a glance
Floor plan OCR extracts text from drawing regions and preserves its location. Use native text where it agrees with the image, rectify rotated crops when needed, and validate field meaning and associations before export. A correctly read string can still describe the wrong element.
Choose native text or OCR by region
Check selectable text against the rendered sheet before routing a page. A searchable PDF may still be a scan with a misaligned text layer. A vector export may contain outlined letters that are visible but not extractable as text. Keep the native candidate when its content and position agree with the image; route uncertain regions to OCR.
Record the sheet, revision, page index and crop. Compare the two evidence sources rather than concatenating them. For example, if the native layer reads D-01 and a rendered crop reads D-07 at the same position, retain the conflict for review. It should not become two door records.
Orient the crop without losing its source location
Treat page rotation and text rotation separately. A landscape sheet can contain upright notes and vertical room names. Detect candidate regions, estimate a baseline, rectify each crop for recognition, and map its corners back to the original page. For native text, PyMuPDF documents recovery of oriented quadrilaterals from line direction and span data.
Store the transform used to rectify a crop. A reviewer needs the original quadrilateral, not the rectangle in the upright recognizer input. Verify both directions on a known rotated region; text can be correct while its source link is wrong. For short or nearly symmetric tags, test competing orientations and retain ambiguity when they yield different plausible marks.
References: PyMuPDF: recovering oriented text quadrilaterals
Normalize dimensions only after resolving their meaning
A fictional dimension reads 3 feet 6 inches. That is 42 inches, or 1,066.8 mm using NIST’s exact factor of 25.4 mm per inch. A separate printed value of 1067 mm is consistent with rounding to the nearest millimetre. The arithmetic does not establish that the two strings refer to the same opening.
Keep raw text alongside parsed value, unit and precision. Check that witness lines refer to the same endpoints before comparing a segment to its overall dimension. A string of 1067 without a confirmed unit remains unresolved. If the result will feed a clear-opening field, require evidence that the drawing actually names a clear opening.
References: NIST: exact inch-to-millimetre conversion
Bind marks and notes to what they describe
Use leader endpoints, containment and local geometry as candidate evidence. Nearest-neighbor matching alone can attach a tag to the wrong door when two swings share a small vestibule. Keep competing candidates, and resolve the mark against the appropriate schedule and revision only when the evidence supports it.
Preserve the distinction between printed text and inferred interpretation. For example, a note reading VERIFY ON SITE is an observed string. Treating it as an approval to proceed would reverse its meaning. Retain the source note and attach it to the receiving record only when its scope is established.
Extract title-block fields with an explicit issue policy
Locate the block, read field labels and values, and separate the current sheet revision from historical rows. Autodesk’s authoring guide describes extracting sheet numbers and configured attributes for review. In your own workflow, decide whether the title block, issue register or another agreed source controls document identity when they disagree.
Hold duplicates across buildings or disciplines until scope is known. Do not pick the highest-looking revision token across different numbering systems. Keep issue date, revision label and drawing number as distinct fields; changing a date alone should not overwrite a reviewed drawing record.
References: Autodesk: drawing extraction authoring guide
Evaluate recognition and association separately
Build a small reference set covering tiny tags, diagonal labels, mixed native and scanned content, revision tables and unsupported units. For each field, record the expected text, region, host and whether it should be accepted or held. Compare exact mark matches and numeric results separately from host matching.
Check what arrives in the receiving worksheet: can a reviewer reopen the original region, see why a value was held and retain their correction across re-extraction? Count unresolved candidates and missed regions as well as accepted strings. Agree thresholds with the downstream owner; a generic OCR score cannot establish fitness for takeoff or coordination.
Start with a drawing family and a receiving field
Bring a representative sheet and identify the field whose errors matter most, such as rotated door tags for schedule reconciliation or revision labels for sheet indexing. We fine-tune our models on your drawing conventions and engineer the evidence and review handoff. This guide does not claim every scan or mark can be read.
Frequently asked questions
Should I OCR every PDF page?
First compare native text with the rendered sheet. Use targeted OCR for missing or unreliable regions and reconcile duplicate candidates.
Does a recognized dimension give a verified opening width?
Only after confirming its unit, endpoints and field meaning. Preserve unresolved values for review.
References and illustration notes
Sources support the terminology and interpretation notes cited above. Worked examples and diagrams are our own educational material, not client drawings or measured project results.