Method and apparatus for detecting table, device and storage medium

US12154359B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12154359-B2
Application numberUS-202217743687-A
CountryUS
Kind codeB2
Filing dateMay 13, 2022
Priority dateAug 12, 2021
Publication dateNov 26, 2024
Grant dateNov 26, 2024

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method and apparatus for detecting a table. The method includes: acquiring a to-be-processed image; inputting the to-be-processed image into a pre-trained deep learning model, and outputting a full table detection branch result, a column detection branch result and a header detection branch result through the deep learning model; where the full table detection branch result represents a detection result for a full table in the to-be-processed image, the column detection branch result represents a detection result for a column in the table in the to-be-processed image, and the header detection branch result represents a detection result for a header in the to-be-processed image; and obtaining a detection result of the table in the to-be-processed image, based on the full table detection branch result, the column detection branch result and the header detection branch result.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for detecting a table, the method comprising: acquiring a to-be-processed image; inputting the to-be-processed image into a pre-trained deep learning model, and outputting a full table detection branch result, a column detection branch result and a header detection branch result through the deep learning model; wherein the full table detection branch result represents a detection result for a full table in the to-be-processed image, the column detection branch result represents a detection result for a column in the table in the to-be-processed image, and the header detection branch result represents a detection result for a header in the to-be-processed image; and obtaining a detection result of the table in the to-be-processed image, based on the full table detection branch result, the column detection branch result and the header detection branch result by: superimposing the full table detection branch result, the column detection branch result and the header detection branch result; and fitting a boundary range to a result obtained by the superposition, to obtain a detection frame for the table in the to-be-processed image. 2. The method according to claim 1 , wherein the full table detection branch result comprises a full table detection branch binary map, and the full table detection branch binary map indicates whether each pixel in the to-be-processed image belongs to the full table; the column detection branch result comprises a column detection branch binary map, the column detection branch binary map indicates whether each pixel in the to-be-processed image belongs to the column in the table; and the header detection branch result comprises a header detection branch binary map, and the header detection branch binary map indicates whether each pixel in the to-be-processed image belongs to the header; wherein superimposing the full table detection branch result, the column detection branch result and the header detection branch result, comprises: determining a union of the full table detection branch binary map, the column detection branch binary map, and the header detection branch binary map to obtain a union binary map; and wherein fitting the boundary range to the result obtained by the superposition, to obtain the detection frame for the table in the to-be-processed image, comprises: determining a connected region in the union binary map; and determining an enclosing rectangle of the connected region, wherein the enclosing rectangle is the detection frame for the table in the to-be-processed image. 3. The method according to claim 1 , wherein the method further comprises: acquiring a plurality of sample images and a marked full table, a marked column, and a marked header of a table in each sample image; inputting, for each sample image, the sample image into an initial model; performing feature extraction on the sample image by using the initial model; inputting a result of the feature extraction into a full table detection branch, a column detection branch and a header detection branch respectively, to obtain a sample full table detection branch result, a sample column detection branch result and a sample header detection branch result; and training the initial model using the sample full table detection branch result, the sample column detection branch result and the sample header detection branch result, as well as the marked full table, the marked column, and the marked header of the table, to obtain the deep learning model. 4. The method according to claim 3 , wherein training the initial model using the sample full table detection branch result, the sample column detection branch result and the sample header detection branch result, as well as the marked full table, the marked column, and the marked header of the table, to obtain the deep learning model, comprises: calculating a first loss function value using the sample full table detection branch result and the marked full table of the table, using a first loss function; calculating a second loss function value using the sample column detection branch result and the marked column, using a second loss function; calculating a third loss function value using the sample header detection branch result and the marked header, using a third loss function; summing the first loss function value, the second loss function value and the third loss function value to obtain a total function value; and training the initial model based on the total function value to obtain the deep learning model. 5. The method according to claim 1 , wherein the method further comprises: acquiring a plurality of sample images and a marked full table, a marked column, and a marked header of a table in each sample image; inputting, for each sample image, the sample image into an initial model; performing feature extraction on the sample image by using the initial model; inputting a result of the feature extraction into a full table detection branch, a column detection branch and a header detection branch respectively, to obtain a sample full table detection branch result, a sample column detection branch result and a sample header detection branch result; and training the initial model using the sample full table detection branch result, the sample column detection branch result and the sample header detection branch result, as well as the marked full table, the marked column, and the marked header of the table, to obtain the deep learning model. 6. The method according to claim 2 , wherein the method further comprises: acquiring a plurality of sample images and a marked full table, a marked column, and a marked header of a table in each sample image; inputting, for each sample image, the sample image into an initial model; performing feature extraction on the sample image by using the initial model; inputting a result of the feature extraction into a full table detection branch, a column detection branch and a header detection branch respectively, to obtain a sample full table detection branch result, a sample column detection branch result and a sample header detection branch result; and training the initial model using the sample full table detection branch result, the sample column detection branch result and the sample header detection branch result, as well as the marked full table, the marked column, and the marked header of the table, to obtain the deep learning model. 7. An electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising: acquiring a to-be-processed image; inputting the to-be-processed image into a pre-trained deep learning model, and outputting a full table detection branch result, a column detection branch result and a header detection branch result through the deep learning model; wherein the full table detection branch result represents a detection result for a full table in the to-be-processed image, the column detection branch result represents a detection result for a column in the table in the to-be-processed image, and the header detection branch result represents a detection result for a header in the to-be-processed image; and obtaining a detection result of the table in the to-be-processed image, based on the full table detection branch result, the column detection branch result and the header detection branch result by: superimposing the full table detection branch result, the column detection branch result and the header detection branch result; and

Assignees

Inventors

Classifications

  • Convolutional networks [CNN, ConvNet] · CPC title

  • Supervised learning · CPC title

  • Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching · CPC title

  • Combinations of networks · CPC title

  • Learning methods · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12154359B2 cover?
A method and apparatus for detecting a table. The method includes: acquiring a to-be-processed image; inputting the to-be-processed image into a pre-trained deep learning model, and outputting a full table detection branch result, a column detection branch result and a header detection branch result through the deep learning model; where the full table detection branch result represents a detec…
Who is the assignee on this patent?
Beijing Baidu Netcom Sci & Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06V30/413. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Nov 26 2024 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 6 related publications on this page (citations in our corpus or others sharing the same primary CPC).