Urgent.News

What's breaking now, across hundreds of outlets.

Tech

OCR returned 40 text boxes for a 34-cell table: text boxes are not cells

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…

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.

Rewritten by urgent.news; may contain errors — check the original.

This story

This is one outlet's version. Read the fullest account.

Every outlet that reported this, and when →

Read the original at dev.to →

Report a problem with this story

More in Tech

Twitter/X API Rate Limits in 2026: The Complete Guide

The #1 Pain Point for Twitter API Developers If you've worked with the X (formerly Twitter) API for any length of time, you've hit a rate limit. It's practically a rite of passage.

  • Twitter/X API rate limits changed in February 2026 to a pay-per-use model.
  • New accounts receive a $20 credit and first auto-recharge match up to $50.
  • Responses include three rate limit headers: limit, remaining, and reset timestamps.

More from Saturday 21 November →