# US 2019/0377942 A1 · Grid Layout Determination from a Document Image

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0377942 A1
- Document ID: US20190377942A1
- Status: Published application
- Kind: A1
- Application number: 16/005,584
- Filed: 2018-06-11
- Published: 2019-12-12
- Earliest claimed: 2018-06-11
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Vinish Janardhanan; Priyanka Channabasappa Herur
- Web page: https://patentgrep.com/patent/US20190377942A1

## CPC

- G06F 40/177: of tables; using ruled lines
- G06V 30/414: Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06F 40/154: Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
- G06F 40/186: Templates
- G06F 40/106: Display of layout of documents; Previewing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

In implementations of grid layout determination from a document image, a computing device receives a document image of a document that includes document content. The computing device implements a grid layout system that can determine feature elements of the document content in the document, and generate a node tree of bounded elements that represent relationships of the feature elements in the document, where each of the bounded elements is considered in the determination of the grid layout. The grid layout system can generate a containment model that includes the node tree of the bounded elements. The grid layout system can then determine a column layout of the columns in the document based on the containment model, which includes calculating a quantity of the columns, and also determine a row layout of the rows in the document based on the containment model, which includes calculating a quantity of the rows.

## Claims

### Claim 1

In a digital medium environment for determining a grid layout from a document image, a method implemented by at least one computing device, the method comprising:
receiving the document image of a document that includes document content;
determining the grid layout of rows and columns in the document, the determining of the grid layout comprising:
determining feature elements of the document content in the document;
generating a node tree of bounded elements that represent relationships of the feature elements in the document, each of the bounded elements being considered in the determination of the grid layout of the rows and columns in the document;
generating a containment model that includes the node tree of the bounded elements, and includes size and position data for each of the bounded elements in the document;
determining a column layout of the columns in the document based on the containment model, the determining the column layout including calculating a quantity of the columns in the document; and
determining a row layout of the rows in the document based on the containment model, the determining the row layout including calculating a quantity of the rows in the document.

### Claim 2 (depends on 1)

The method as recited in claim 1, wherein the determining the column layout comprises:
calculating a horizontal space width between the columns;
calculating a column width of each of the columns;
calculating left and right margins of the document; and
said calculating the quantity of the columns in the document based on the horizontal space width, the column width, and the left and right margins.

### Claim 3 (depends on 1)

The method as recited in claim 1, wherein the determining the row layout comprises:
calculating a vertical space height between the rows;
calculating a row height of each of the rows;
calculating top and bottom margins of the document; and
said calculating the quantity of the rows in the document based on the vertical space height, the row height, and the top and bottom margins.

### Claim 4 (depends on 1)

The method as recited in claim 1, wherein the document content includes the feature elements as one or more of text and graphics.

### Claim 5 (depends on 4)

The method as recited in claim 4, wherein a graphic is weighted more than the text for the determining the column layout and the calculating the quantity of the columns in the document.

### Claim 6 (depends on 4)

The method as recited in claim 4, wherein a graphic is weighted more than the text for the determining the row layout and the calculating the quantity of the rows in the document.

### Claim 7 (depends on 1)

The method as recited in claim 1, wherein at least one of the bounded elements represents a feature element of the document encompassed by another of the feature elements, the encompassed feature element being disregarded in the generation of the containment model.

### Claim 8 (depends on 1)

The method as recited in claim 1, wherein the containment model represents an organization of the bounded elements in the node tree from which the column layout of the columns is determined and from which the row layout of the rows is determined.

### Claim 9

A computing device implemented to determine a grid layout from a document image, the computing device comprising:
a memory to maintain the document image of the document, as well as the grid layout of rows and columns in the document;
a processor system configured to execute a grid layout system implemented to perform operations comprising to:
determine feature elements of the document content in the document;
generate a node tree of bounded elements that represent relationships of the feature elements in the document, each of the bounded elements being considered in the determination of the grid layout of the rows and columns in the document;
generate a containment model that includes the node tree of the bounded elements, and includes size and position data for each of the bounded elements in the document; and
determine a column layout of the columns in the document and a row layout of the rows in the document based on the containment model.

### Claim 10 (depends on 9)

The computing device as recited in claim 9, wherein the grid layout system is implemented to:
calculate a quantity of the columns in the document to determine the column layout of the columns; and
calculate a quantity of the rows in the document to determine the row layout of the rows.

### Claim 11 (depends on 10)

The computing device as recited in claim 10, wherein the grid layout system is implemented to calculate the quantity of the columns in the document based on a horizontal space width between the columns, a column width of each of the columns, and left and right margins of the document.

### Claim 12 (depends on 10)

The computing device as recited in claim 10, wherein the grid layout system is implemented to calculate a quantity of the rows in the document based on a vertical space height between the rows, a row height of each of the rows, and top and bottom margins of the document.

### Claim 13 (depends on 9)

The computing device as recited in claim 9, wherein the document content includes the feature elements as one or more of text and graphics.

### Claim 14 (depends on 13)

The computing device as recited in claim 13, wherein:
a graphic is weighted more than the text to determine the column layout in the document; and
the graphic is weighted more than the text to determine the row layout in the document.

### Claim 15 (depends on 9)

The computing device as recited in claim 9, wherein at least one of the bounded elements represents a feature element of the document encompassed by another of the feature elements, the encompassed feature element being disregarded in the generation of the containment model.

### Claim 16 (depends on 9)

The computing device as recited in claim 9, wherein the containment model represents an organization of the bounded elements in the node tree from which the column layout of the columns is determined and from which the row layout of the rows is determined.

### Claim 17

A system for determining a grid layout from a document image, the system comprising:
means for storing the document image of the document;
means for determining the grid layout of rows and columns in the document, the means for determining the grid layout comprising means for:
determining feature elements of the document content in the document;
generating a node tree of bounded elements that represent relationships of the feature elements in the document, each of the bounded elements being considered in the determination of the grid layout of the rows and columns in the document;
generating a containment model that includes the node tree of the bounded elements, the containment model representing an organization of the bounded elements in the node tree; and
determining a column layout of the columns in the document and a row layout of the rows in the document based on the containment model.

### Claim 18 (depends on 17)

The system as recited in claim 17, further comprising means for:
calculating a quantity of the columns in the document to determine the column layout of the columns; and
calculating a quantity of the rows in the document to determine the row layout of the rows.

### Claim 19 (depends on 18)

The system as recited in claim 18, wherein the quantity of the columns in the document is calculated based on a horizontal space width between the columns, a column width of each of the columns, and left and right margins of the document.

### Claim 20 (depends on 18)

The system as recited in claim 18, wherein the quantity of the rows in the document is calculated based on a vertical space height between the rows, a row height of each of the rows, and top and bottom margins of the document.
