OCR for Mechanical Blueprints and Tolerances: Getting Every ± Right
Every thread about quoting software ends on the same sentence: the instant quote only works for standard tolerances.
I went through the research papers, the OCR manuals and the standards behind tolerance reading so you can see where it really breaks.
The turning points are recent and easy to check. In March 2023, three Linköping University researchers published eDOCr because ordinary OCR kept failing on tolerances and GD&T. In November 2024, a fine-tuned 0.23 billion parameter Florence-2 model beat GPT-4o and Claude 3.5 Sonnet on a set of 400 annotated drawings.
And on November 9, 2026, ISO published ISO 2768:2026, replacing the 1989 general tolerance table that sits in countless title blocks.
Short answer: OCR for mechanical blueprints and tolerances works only when the reader is built for drawings. It must split each callout into nominal, upper and lower limits, resolve fit codes like H7 and the title block’s general tolerance, and flag doubt. Plain OCR such as Tesseract reads digits but loses that structure, so a person checks every tight or uncertain tolerance.
- Best published drawing-OCR score
- eDOCr: about 90% detection precision and recall, F1 of 94%, character error rate 8% on 7 test drawings (Frontiers, 2023)
- Smallest text plain OCR can read
- Tesseract’s FAQ: below an x-height of 10 pixels there is
very little chance of accurate results
- Same Ø25 hole, two callouts
- ISO 2768-m gives a 400 µm band; H7 gives 21 µm, about 19 times tighter (our calculation)
- Instant quoting tools
- Practical Machinist owners report they price standard tolerances only; tighter work goes to a person
- What still needs a person
- Tight bands, GD&T modifiers, notes, low-confidence reads and the revision check
Can OCR read tolerances on mechanical blueprints?
OCR can read the characters of a tolerance on a mechanical blueprint, but plain OCR cannot tell you what the tolerance means. Turning “2.750 ±.005” into the limits 2.745 and 2.755 takes a drawing-aware reader.
A general OCR engine sees text lines. A blueprint stacks an upper and lower deviation beside a nominal in smaller type, rotates dimensions along their leaders, and borrows symbols such as Ø, ± and the GD&T characters from outside the normal alphabet.
The eDOCr authors at Linköping University put it plainly: Most OCR algorithms have limitations when applied to mechanical drawings.
They list measurements, orientation, tolerances and GD&T symbols as the reasons.
Here’s the part that matters for a quote. Reading the characters is step one of five. The price depends on the tolerance band, and the band often lives somewhere else on the sheet, in the title block’s general tolerance or in an ISO fit table.
If your prints are clean vector PDFs, much of this is easier, because the text can be copied straight out. Our guide on how to extract dimensions from engineering drawings PDF files covers that test and the tiling trick for big sheets.
Why does ordinary OCR get tolerances wrong?
Ordinary OCR gets tolerances wrong because tolerance text is the smallest, most stacked and most symbol-heavy text on the print, which is exactly what general engines handle worst.
- Size. The Tesseract documentation says the engine
works best on images which have a DPI of at least 300 dpi
. Its older FAQ adds that accuracy drops fast below an x-height of about 10 pixels. When a CAD template prints stacked deviations in smaller type, they fall under that line first. - Stacking. An upper and lower deviation sit on two lines beside one nominal. A line-based reader can split them into two unrelated numbers or glue them to the next dimension.
- Repeated and thin characters. The eDOCr team found most recognition errors were deletions of repeated characters, such as 100 read as 10. On one drawing, the digit 1 was often read as a bracket.
- Symbols. Ø, ±, the material condition circles and the boxes of a feature control frame are symbols, not words. eDOCr’s authors name the maximum and least material condition symbols as their recognizer’s weakest point.
- Rotation. Dimensions run along their leaders at any angle, so a page-level reader that expects horizontal lines skips them or reads them backwards.
Here’s the catch: a dropped character in a paragraph of text leaves a typo a reader can see. A dropped zero in “+.0010” leaves a perfectly valid-looking tolerance that is ten times looser than the print.
What tolerance notations does a blueprint reader have to understand?
A blueprint reader has to understand at least eleven common ways a tolerance is written, and each one resolves to an upper and a lower limit in a different way.
| As printed | Kind | Lower limit | Upper limit | Band |
|---|---|---|---|---|
| 2.750 ±.005 | Inch, equal bilateral | 2.745 in | 2.755 in | 0.010 in |
| .3125 +.0000 / -.0030 | Inch, unilateral (Y14.5 shows the zero with a sign) | 0.3095 in | 0.3125 in | 0.0030 in |
| 1.000 +.002 / -.001 | Inch, unequal bilateral | 0.999 in | 1.002 in | 0.003 in |
| 3.2 +0.3 / 0 | Metric, unilateral (a single zero, no sign) | 3.2 mm | 3.5 mm | 0.3 mm |
| 25.021 over 25.000 | Limit dimension, stacked | 25.000 mm | 25.021 mm | 0.021 mm |
| Ø25 H7 | ISO 286 hole fit code | 25.000 mm | 25.021 mm | 0.021 mm |
| Ø25 g6 | ISO 286 shaft fit code | 24.980 mm | 24.993 mm | 0.013 mm |
| 25, title block “ISO 2768-m” | General tolerance, medium | 24.8 mm | 25.2 mm | 0.4 mm |
| 2.50, title block “.XX ±.01” | Decimal-place block (example; every customer’s differs) | 2.49 in | 2.51 in | 0.02 in |
| 2.000 in a box | Basic dimension | No tolerance of its own; the feature control frame governs | ||
| (1.250) | Reference dimension | No tolerance; not inspected | ||
Five of the eleven rows cannot be resolved from the characters around the number alone. The fit codes need the ISO 286 tables, the two general-tolerance rows need the title block, and the basic dimension needs the feature control frame that points at it.
The ASME Y14.5 rules help a checker here. On inch drawings, the dimension and its plus and minus values carry the same number of decimal places, so “.3125 +.003” with mismatched places is a sign of a misread, not a new tolerance.
Why can two missing characters change the job 19 times over?
Two missing characters can change the job 19 times over because the same printed “Ø25” means a 400 µm band under ISO 2768-m and a 21 µm band when it carries “H7”.
In the ISO 2768-1:1989 table, a linear size over 6 mm up to 30 mm gets ±0.2 mm in the medium class and ±0.1 mm in the fine class. An H7 hole in the 18 to 30 mm range gets +0.021 / 0 mm under ISO 286-1. Divide 400 by 21 and you get about 19.
What the diagram shows, in text:
- Ø25 with ISO 2768-m in the title block: 24.8 to 25.2 mm, a 400 µm band.
- Ø25 with ISO 2768-f in the title block: 24.9 to 25.1 mm, a 200 µm band.
- Ø25 H7: 25.000 to 25.021 mm, a 21 µm band, about 19 times tighter than ISO 2768-m.
- The five steps of a tolerance reader: read the whole string, split nominal, upper and lower, resolve the fit code or title block, check limits, decimals and units, and flag tight or doubtful values.
In money terms, a 400 µm hole is a drill. A 21 µm hole usually needs a reamer or a bored finish pass plus a gauge, and an estimator prices it that way. If OCR drops the “H7”, the quote goes out as a drilled hole on a reamed-hole job.
That is also why the instant quoting tools stay cautious. In a Practical Machinist thread on automated instant quoting, an owner said every automated system they knew gives valid quotes only for standard tolerances and finishes, and anything beyond that is quoted by hand.
How accurate is OCR on engineering drawings?
The best published drawing OCR, eDOCr, reaches about 90% detection precision and recall and a character error rate of 8%. That sounds high until you apply it to a whole tolerance callout, where one wrong character spoils the line.
The eDOCr paper’s character error rate ran from 3.4% on its best drawing to 14.1% on its worst, across 7 test drawings. The authors are candid that their tolerance algorithm is not flawless and may produce incorrect results in certain situations.
| Callout | Characters | At 3.4% (best drawing) | At 8% (average) | At 14.1% (worst drawing) |
|---|---|---|---|---|
| Ø25H7 | 5 | 84% | 66% | 47% |
| 2.750±.005 | 10 | 71% | 43% | 22% |
| .3125+.0000-.0030 | 17 | 56% | 24% | 8% |
Assumptions: each character is right with a probability of 1 minus the error rate, independently, spaces not counted. Real errors cluster, so treat these as a rough guide. The point holds: the longest, tightest callouts are the ones most likely to come out wrong.
Newer vision-language models move the numbers but not the lesson. Khan and colleagues’ November 2024 arXiv study fine-tuned Florence-2 on 400 annotated drawings and reported a 52.40% improvement in F1-score
and a 43.15% reduction in hallucination rate
against the best zero-shot model, GPT-4o or Claude 3.5 Sonnet.
Hallucination is the word to notice. A model that is asked for a tolerance and cannot see one may write a plausible one. Your setup has to make “unreadable” an allowed answer.
Which OCR tools read blueprints and tolerances?
The tools that read blueprints and tolerances fall into four groups: general OCR engines, open-source drawing OCR from research, inspection ballooning software, and drawing APIs or vision models that return data to your own systems.
| Tool | Group | What it says about tolerances | Good fit for |
|---|---|---|---|
| Tesseract | General OCR, free | No drawing or tolerance logic; best at 300 dpi or more | Title-block text, notes, a first pass inside your own code |
| eDOCr and eDOCr2 | Research, open source | A tolerance checker splits nominal, upper and lower; separate GD&T pipeline; reads general tolerances from the information block | Shops with a developer who want to own the code |
| SOLIDWORKS Inspection | Inspection ballooning | OCR on PDF and TIFF drawings; Auto Extract does not support notes or weld symbols | First article reports for shops already on SOLIDWORKS |
| Ideagen Quality Control | Inspection ballooning | Captures GD&T feature control frames from CAD and PDF drawings | AS9102 forms |
| High QA | Inspection ballooning | OCR profiles that adapt to fonts and spacing; fills the bill of characteristics with tolerances | Quality-led shops with many inspection plans |
| Werk24 | Drawing API | Returns GD&T, roughness, H7 / G6 fitsand title-block tolerances as data; €1.25 per page | Feeding your own quote sheet |
| Claude (Anthropic) | Vision model | No built-in tolerance logic; reads images, and structured outputs force a fixed JSON shape | Custom pipelines with your own checks |
That last point matters for tolerances. Anthropic says structured outputs guarantee schema-compliant responses through constrained decoding.
The shape is guaranteed, with separate fields for nominal, upper and lower. The values inside still need your checks.
Where do vendors and the research disagree about reading tolerances?
Vendors and researchers disagree mostly about GD&T and edge cases: vendor pages say their tools capture feature control frames, while the research names material condition symbols and composite frames as the hardest part.
The best tolerance reader is a modest one. It reads what it can, says plainly what it could not, and leaves the one callout that sets the price to the person who knows the machines.
- GD&T modifiers. Ideagen, High QA and Werk24 list GD&T capture on their product pages. The eDOCr authors call the recognizer their
main limitation
, especially for maximum and least material condition symbols. Test your own frames before believing either side. - Information blocks. eDOCr reads general tolerances from the title block, but only from boxes touching the outer frame. On three of its seven test drawings the frame was missed, and those three had the lowest detection scores.
- Instant quotes. One Practical Machinist owner said an online quoting tool asked for a drawing and a conversation for anything tighter than ±0.002 inch, in a thread on using instant quotes as free quoting software.
- The new ISO 2768. ISO’s catalogue lists ISO 2768:2026 as published in November 2026, replacing ISO 2768-1:1989. The public tolerance tables we checked still show the 1989 values.
The ISO change is the gap none of the tool pages mention. A tolerance reader should store which edition the title block names, and an estimator should check the 2026 table before applying it to a new customer’s print.
How does an automated tolerance-reading quote workflow run?
An automated tolerance-reading quote workflow runs on your web server: it watches the estimating inbox, reads every print, turns each tolerance into limits, and hands your estimator a quote sheet with the tight ones flagged.
- Watch the inbox. A new RFQ email with PDF or TIFF drawings starts the job and gets a quote number.
- Render sharp images. Each sheet is rendered at 300 dpi, the level Tesseract’s docs recommend, and cut into overlapping tiles so stacked deviations stay legible.
- Read the title block first. Units, the general tolerance (decimal-place block or ISO 2768 class and edition), material, finish and revision are stored before any dimension.
- Read every callout. AI vision, or a drawing API such as Werk24, returns each callout as fixed fields with a confidence score and a position on the sheet.
- Resolve the band. Code, not the model, turns fit codes into limits from an ISO 286 table and applies the title block tolerance to untoleranced sizes.
- Run the checks. The nine rules in the next section run on every row; any failure flags the row.
- Price the tolerance. Bands under a line your shop chooses, such as ±0.001 inch, add the operations, gauging and inspection time your estimator has set.
- Hand over for sign-off. The estimator sees each flagged tolerance next to a crop of the print, fixes or accepts it, and signs the quote.
Step 5 is the quiet hero. A model reading “H7” can still misremember what H7 means at 25 mm, while a lookup table cannot. Our guide to automated CNC quoting software shows how these rows become a price.
What checks catch a misread tolerance?
Simple rules catch most misread tolerances, because a wrong read usually breaks a pattern the drawing standard guarantees.
- The upper limit is greater than the lower limit.
- On inch prints, the dimension and its deviations carry the same number of decimal places, as ASME Y14.5 requires.
- On metric prints, a zero deviation is a single 0 with no sign.
- Every fit code exists in the ISO 286 table for that size range.
- The band is not wider than the title block’s general tolerance for the same size.
- A boxed basic dimension has no tolerance, and a dimension in parentheses is marked reference.
- Units match the title block, and dual-dimensioned values agree within rounding.
- A “4X” or “TYP” multiplies the feature count, not the tolerance.
- The confidence score is above the line you set; below it, a person reads the crop.
What should the estimator still check by hand?
The estimator should still check every tolerance that changes how the part is made, plus a short list of drawing features no reader handles reliably.
- Every band tighter than your shop’s process line, read off the crop, not the table.
- Feature control frames with modifiers, composite frames and datum order.
- Notes such as
ALL UNTOLERANCED RADII R.03 MAX
, which change many features at once. - The general tolerance edition and class, especially on prints from new customers.
- Surface finish callouts next to tight bands, since both drive the finishing pass.
- The revision letter on the email, the title block and the file name.
How do you test OCR on your own blueprints before trusting it?
Test OCR on ten of your own blueprints whose tolerances you already know, and count misses by tolerance type, not in total.
- Pick the prints
- Three clean vector exports, three old scans, two with ISO fit codes and two with dense GD&T
- Make the answer key
- Every tolerance as lower and upper limit, typed by your best estimator
- Count by type
- Bilateral, unilateral, limit, fit code, general tolerance, GD&T, basic and reference
- Pass line
- No missed tight band; every miss either caught by a rule or flagged as low confidence
- Then
- Let it draft next week’s RFQs in the background while quotes still go out the usual way
A tool that reads 95% of characters but lets one unflagged H7 through has failed this test. A tool that reads less but flags every doubt has passed it.
If you’d like help setting up that test on your own prints, the form at the top of this page reaches us, and our guide to machine shop RFQ automation shows how every request gets logged first.
How we researched this
- Read the eDOCr paper in Frontiers in Manufacturing Technology (March 20, 2023) in full, including its per-drawing results and limitations, and the eDOCr2 thesis on DiVA.
- Read Khan et al., arXiv 2411.03707 (November 6, 2024), for the Florence-2, GPT-4o and Claude 3.5 Sonnet comparison.
- Read the Tesseract ImproveQuality page and FAQ for resolution and text-size limits.
- Checked ISO 2768-1:1989 values across several public tables, and ISO’s catalogue entry for ISO 2768:2026 (published November 2026). We did not buy or read the full 2026 text.
- Took H7 and g6 limits for 25 mm from public ISO 286-1 tables and checked that several agree.
- Read the product and help pages of SOLIDWORKS Inspection, Ideagen Quality Control, High QA and Werk24, and Anthropic’s vision and structured outputs documentation, on November 27 and 28, 2026.
- Read Practical Machinist threads on instant quoting and tolerances; paraphrased, no names.
- Calculated the tolerance bands and the whole-callout error chances ourselves, with the assumptions shown. We did not run any OCR tool on drawings for this guide.
Pull ten prints you already know by heart this week, and see which tolerances a reader gets right without being told.
Sources and further reading
- Villena Toro, Wiberg and Tarkian: Optical character recognition on engineering drawings to achieve automation in production quality control (eDOCr), Frontiers in Manufacturing Technology, 2023
- Optimizing Text Recognition in Mechanical Drawings (eDOCr2), DiVA
- Khan et al.: Fine-Tuning Vision-Language Model for Automated Engineering Drawing Information Extraction, arXiv 2411.03707
- Tesseract documentation: Improving the quality of the output
- Tesseract documentation: old FAQ (text size and x-height)
- ISO 2768:2026, tolerance limits for general specification of linear and angular sizes
- ISO 2768-1:1989, general tolerances for linear and angular dimensions
- ISO 2768 tolerance chart (1989 values)
- ISO 286 tolerance chart: H7, g6 and other fits
- ASME Y14.5: dimensioning and tolerancing
- SOLIDWORKS Help: Autoballoons for PDF files (Inspection 2023)
- Ideagen Quality Control (formerly InspectionXpert)
- High QA: automatic 2D and 3D ballooning
- Werk24: product and pricing (drawing reading API)
- Anthropic: Claude vision
- Anthropic: structured outputs
- Practical Machinist forum: is anyone using automated instant quoting for CNC machining? (owner discussion)
- Practical Machinist forum: using Xometry as a free quoting software (owner discussion)
Questions and answers
Can I use AI to read tolerances off mechanical blueprints?
Yes, with checks. An AI vision model or a drawing API can read each callout, including scans, and return nominal, upper and lower values with a confidence score. Let code, not the model, resolve fit codes and the title block’s general tolerance, run rule checks, and have an estimator confirm every tight or flagged tolerance.
Why does OCR misread stacked tolerances?
Stacked tolerances sit on two short lines beside the nominal in smaller type. Line-based OCR such as Tesseract can split them into unrelated numbers, drop repeated characters, or miss them below about 10 pixels of x-height. Drawing-specific readers use a tolerance checker to split nominal, upper and lower values.
Can OCR read GD&T feature control frames?
Inspection tools such as Ideagen Quality Control and High QA, and the Werk24 API, say they capture GD&T frames. The eDOCr researchers found material condition symbols the hardest part to recognize, so check modifiers and datum order by hand on any print that matters.
Does OCR know what H7 or ISO 2768-m means?
No. OCR reads the characters; a lookup turns them into limits. Ø25 H7 is 25.000 to 25.021 mm under ISO 286-1, and an untoleranced 25 under ISO 2768-m is 24.8 to 25.2 mm. Keep those tables in code, and note that ISO 2768:2026 replaced the 1989 edition in November 2026.
What is the best OCR for engineering drawings?
There is no single best. For quotes, a drawing API such as Werk24 or a vision model with your own checks returns data; for AS9102 reports, Ideagen Quality Control, High QA or SOLIDWORKS Inspection; for owning the code, the open-source eDOCr2. Test each on ten of your own prints first.