{
  "id": 21017343,
  "title": "OCR returned 40 text boxes for a 34-cell table: text boxes are not cells",
  "url": "https://urgent.news/2026/11/21/ocr-returned-40-text-boxes-for-a-34-cell-table-text-boxes-are-not",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-21T08:09:04.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/token111/ocr-returned-40-text-boxes-for-a-34-cell-table-text-boxes-are-not-cells-10kk"
  },
  "original_language": "en",
  "account": "The OCR process returned more text boxes than expected for several tables, showing that text boxes are not equivalent to cells. For a work-order table with 34 filled cells, 40 text boxes were returned instead, and a price list with 63 cells resulted in 58 text boxes. The discrepancy arises because text boxes are individual ink runs, whereas cells are defined by ruling lines and alignment. In some cases, unequal row spacing led to fewer boxes compared to the actual number of cells. Uneven row heights also caused fewer boxes for the price list, with 58 boxes returned instead of the expected 63. The bordered grade table had 63 boxes for 63 cells, but the paste operation revealed 60 misplaced cells, indicating that matching counts do not guarantee correct column alignment. The borderless price list showed 6, 2, 5, 4, 5, 3, 5, 4, and 5 pieces for the 7 columns, but wrapped cells still caused problems, with 4 misplaced boxes even after applying a 0.4 minimum gap width. No consistent method was found to accurately group wrapped lines into proper columns when there are no ruling lines present.",
  "summary": "The easy assumption is that OCR on a picture of a table returns a list of cells, so a spreadsheet is one split on Tab away, or on whitespace if the Tabs look odd. In this test the counts did not support it. A work-order table with 34 filled cells came back as 40 text boxes. A price list with 63 cells came back as 58. Neither equals the number of cells, and they miss in opposite directions. The…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}