%3CLINGO-SUB%20id%3D%22lingo-sub-2058011%22%20slang%3D%22en-US%22%3EEnhanced%20Table%20Extraction%20from%20documents%20with%20Form%20Recognizer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2058011%22%20slang%3D%22en-US%22%3E%3CP%3E%3CEM%3EAuthors%3A%20Lei%20Sun%2C%20Neta%20Haiby%2C%20Cha%20Zhang%2C%20Sanjeev%20Jagtap%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDocuments%20containing%20tables%20pose%20a%20major%20hurdle%20for%20information%20extraction.%20Tables%20are%20often%20found%20in%20financial%20documents%2C%20legal%20documents%2C%20insurance%20documents%2C%20oil%20and%20gas%20documents%20and%20more.%20Tables%20in%20documents%20are%20often%20the%20most%20important%20part%20of%20the%20document%20but%20extracting%20data%20from%20tables%20in%20documents%20presents%20a%20unique%20set%20of%20challenges.%26nbsp%3BChallenges%20include%20an%20accurate%20detection%20of%20the%20tabular%20region%20within%20an%20image%2C%20and%20subsequently%20detecting%20and%20extracting%20information%20from%20the%20rows%20and%20columns%20of%20the%20detected%20table%2C%20merged%20cells%2C%20complex%20tables%2C%20nested%20tables%20and%20more.%20Table%20extraction%20is%20the%20task%20of%20detecting%20the%20tables%20within%20the%20document%20and%20extracting%20them%20into%20a%20structured%20output%20that%20can%20be%20consumed%20by%20workflow%20applications%20such%20as%20robotic%20process%20automation%20(RPA)%20services%2C%20data%20analyst%20tools%20such%20as%20excel%2C%20databases%20and%20search%20services.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Table-slides.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F246195i55F9B8A11D006D71%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Table-slides.gif%22%20alt%3D%22Table-slides.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ECustomers%20often%20use%20manual%20processes%20for%20data%20extraction%20and%20digitization.%20However%2C%20with%20the%20new%20enhanced%20table%20extraction%20feature%20you%20can%20send%20a%20document%20(PDF%20or%20images)%20to%20Form%20Recognizer%20for%20extraction%20of%20all%20the%20information%20into%20a%20structured%20usable%20data%20at%20a%20fraction%20of%20the%20time%20and%20cost%2C%20so%20you%20can%20focus%20more%20time%20acting%20on%20the%20information%20rather%20than%20compiling%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Table%20Blog%201.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F246196i19F9FDF96FA549FE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Table%20Blog%201.png%22%20alt%3D%22Table%20Blog%201.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--552735757%22%20id%3D%22toc-hId--552735727%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1934777076%22%20id%3D%22toc-hId-1934777106%22%3E%3CSTRONG%3ETable%20extraction%20challenges%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%3ETable%20extraction%20from%20a%20wide%20variety%20of%20document%20images%20is%20a%20challenging%20problem%20due%20to%20the%20heterogeneous%20table%20structures%2C%20diverse%20table%20contents%2C%20and%20erratic%20use%20of%20ruling%20lines.%20To%20name%20a%20few%20concrete%20examples%2C%20in%20financial%20reports%20and%20technical%20publications%2C%20some%20borderless%20tables%20may%20have%20complex%20hierarchical%20header%20structures%2C%20contain%20many%20multi-line%2C%20empty%20or%20spanned%20cells%2C%20or%20have%20large%20blank%20spaces%20between%20neighboring%20columns.%20In%20forms%2C%20some%20tables%20may%20be%20embedded%20in%20other%20more%20complex%20tabular%20objects%20(e.g.%2C%20nested%20tables)%20and%20some%20neighboring%20tables%20may%20be%20very%20close%20to%20each%20other%20which%20makes%20it%20hard%20to%20determine%20whether%20they%20should%20be%20merged%20or%20not.%20In%20invoices%2C%20tables%20may%20have%20different%20sizes%2C%20e.g.%2C%20some%20key-value%20pairs%20composed%20tables%20may%20contain%20only%20two%20rows%2Fcolumns%20and%20some%20line-item%20tables%20may%20span%20multiple%20pages.%20Sometimes%2C%20some%20objects%20in%20document%20images%20like%20figures%2C%20graphics%2C%20code%20listings%2C%20structurally%20laid%20out%20text%2C%20or%20flow%20charts%20may%20have%20similar%20textures%20as%20tables%2C%20which%20poses%20another%20significant%20challenge%20for%20successful%20detection%20of%20tables%20and%20reduction%20of%20false%20alarms.%20To%20make%20matters%20worse%2C%20many%20scanned%20or%20camera-captured%20document%20images%20are%20of%20poor%20image%20quality%2C%20and%20tables%20contained%20in%20them%20may%20be%20distorted%20(even%20curved)%20or%20contain%20artifacts%20or%20noises.%26nbsp%3B%20Existing%20table%20extraction%20solutions%20fall%20short%20of%20extracting%20tables%20from%20such%20document%20images%20with%20high%20accuracy%2C%20which%20has%20prevented%20workflow%20applications%20from%20effectively%20leveraging%20this%20technology.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Table%20Blog%202.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F246198i47D4AA2499B81261%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Table%20Blog%202.png%22%20alt%3D%22Table%20Blog%202.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-127322613%22%20id%3D%22toc-hId-127322643%22%3E%3CSTRONG%3EForm%20Recognizer%20Table%20extraction%20%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%3EIn%20recent%20years%2C%20the%20success%20of%20deep%20learning%20in%20various%20computer%20vision%20applications%20has%20motivated%20researchers%20to%20explore%20deep%20neural%20networks%20like%20convolutional%20neural%20networks%20(CNN)%20or%20graph%20neural%20networks%20(GNN)%20for%20detecting%20tables%20and%20recognizing%20table%20structures%20from%20document%20images.%20With%20these%20new%20technologies%2C%20the%20capability%20and%20performance%20of%20modern%20table%20extraction%20solutions%20have%20been%20improved%20significantly.%3C%2FP%3E%0A%3CP%3EIn%20the%20latest%20release%20of%20Form%20Recognizer%2C%20we%20created%20a%20state-of-the-art%20table%20extraction%20solution%20with%20cutting-edge%20deep%20learning%20technology.%20After%20validating%20that%20Faster%2FMask%20R-CNN%20based%20table%20detectors%20are%20effective%20in%20detecting%20a%20variety%20of%20tables%20(e.g.%2C%20bordered%20or%20borderless%20tables%2C%20tables%20embedded%20in%20other%20more%20complex%20tabular%20objects%2C%20and%20distorted%20tables)%20in%20document%20images%20robustly%2C%20we%20further%20proposed%20a%20new%20method%20to%20improve%20the%20localization%20accuracy%20of%20such%20detectors%2C%20and%20achieved%20state-of-the-art%20results%20on%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fcndplab-founder%2FICDAR2019_cTDaR%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EICDAR-2019%20cTDaR%20table%20detection%20benchmark%20dataset%3C%2FA%3E%20by%20only%20using%20a%20lightweight%20ResNet18%20backbone%20network%20(Table%201).%3C%2FP%3E%0A%3CP%3EFor%20the%20challenge%20of%20table%20recognition%20or%20table%20cell%20extraction%2C%20we%20leveraged%20existing%20CNN%2FGNN%20based%20approaches%2C%20which%20have%20proven%20to%20be%20robust%20to%20complex%20tables%20like%20borderless%20tables%20with%20complex%20hierarchical%20header%20structures%20and%20multi-line%2Fempty%2Fspanned%20cells.%20We%20further%20enhanced%20them%20to%20deal%20with%20distorted%20or%20even%20slightly%20curved%20tables%20in%20camera-captured%20document%20images%2C%20making%20the%20algorithm%20more%20widely%20applicable%20to%20different%20real-world%20scenarios.%20Figure%201%20below%20shows%20a%20few%20examples%20to%20demonstrate%20such%20capabilities.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Table%20Blog%203.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F246199i494D4508F59AFFD0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Table%20Blog%203.png%22%20alt%3D%22Table%20Blog%203.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1680131850%22%20id%3D%22toc-hId--1680131820%22%3E%3CSTRONG%3EEasy%20and%20Simple%20to%20use%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%3ETry%20it%20out%20with%20the%20%3CA%20href%3D%22https%3A%2F%2Ffott-preview.azurewebsites.net%2Flayout-analyze%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EForm%20Recognizer%20Sample%20Tool.%26nbsp%3B%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Table%20Blog%205.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F246263i813A5841DE546599%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Table%20Blog%205.png%22%20alt%3D%22Table%20Blog%205.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EExtracting%20tables%20from%20documents%20is%20as%20simple%20as%202%20API%20calls%2C%20no%20training%2C%20preprocessing%2C%20or%20anything%20else%20needed.%20Just%20call%20the%20%3CA%20href%3D%22https%3A%2F%2Fwestcentralus.dev.cognitive.microsoft.com%2Fdocs%2Fservices%2Fform-recognizer-api-v2-1-preview-2%2Foperations%2FAnalyzeLayoutAsync%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAnalyze%20Layout%26nbsp%3Boperation%3C%2FA%3E%20with%20your%20document%20(image%2C%20TIFF%2C%20or%20PDF%20file)%20as%20the%20input%20and%20extracts%20the%20text%2C%20tables%2C%20selection%20marks%2C%20and%20structure%20of%20the%20document.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%201%3C%2FSTRONG%3E%3A%20%3CSTRONG%3EThe%20Analyze%20Layout%20Operation%20%E2%80%93%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3Ehttps%3A%2F%2F%7Bendpoint%7D%2Fformrecognizer%2Fv2.1-preview.2%2Flayout%2Fanalyze%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3EThe%20Analyze%20Layout%20call%20returns%20a%20response%20header%20field%20called%26nbsp%3BOperation-Location.%20The%26nbsp%3BOperation-Location%26nbsp%3Bvalue%20is%20a%20URL%20that%20contains%20the%20Result%20ID%20to%20be%20used%20in%20the%20next%20step.%3C%2FP%3E%0A%3CP%3EOperation%20location%20-%20%3CBR%20%2F%3E%3CEM%3Ehttps%3A%2F%2Fcognitiveservice%2Fformrecognizer%2Fv2.1-preview.2%2Fprebuilt%2Flayout%2FanalyzeResults%2F44a436324-fc4b-4387-aa06-090cfbf0064f%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%202%3C%2FSTRONG%3E%3A%20%3CSTRONG%3EThe%20Get%20Analyze%20Layout%20Result%20Operation%20%E2%80%93%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EOnce%20you%20have%20the%20operation%20location%20call%20the%20%3CA%20href%3D%22https%3A%2F%2Fwestcentralus.dev.cognitive.microsoft.com%2Fdocs%2Fservices%2Fform-recognizer-api-v2-1-preview-2%2Foperations%2FGetAnalyzeLayoutResult%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EGet%20Analyze%20Layout%20Result%3C%2FA%3E%26nbsp%3Boperation.%20This%20operation%20takes%20as%20input%20the%20Result%20ID%20that%20was%20created%20by%20the%20Analyze%20Layout%20operation.%3C%2FP%3E%0A%3CP%3E%3CEM%3Ehttps%3A%2F%2F%7Bendpoint%7D%2Fformrecognizer%2Fv2.1-preview.2%2Flayout%2FanalyzeResults%2F%7BresultId%7D%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3EThe%20output%20of%20the%20Get%20Analyze%20Layout%20Results%20will%20provide%20a%20JSON%20output%20with%20the%20extracted%20table%20%E2%80%93%20rows%2C%20columns%2C%20row%20span%2C%20col%20span%2C%20bounding%20box%20and%20more.%3C%2FP%3E%0A%3CP%3EFor%20example%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Table%20Blog%204.jpg%22%20style%3D%22width%3A%20382px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F246200i7B5CF06774E40D85%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Table%20Blog%204.jpg%22%20alt%3D%22Table%20Blog%204.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-807380983%22%20id%3D%22toc-hId-807381013%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--1000073480%22%20id%3D%22toc-hId--1000073450%22%3E%3CSTRONG%3EGet%20started%20%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3ETo%20get%20started%20create%20a%20Form%20Recognizer%20resource%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fportal.azure.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Portal%3C%2FA%3E%20and%20try%20out%20your%20tables%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Ffott-preview.azurewebsites.net%2Flayout-analyze%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EForm%20Recognizer%20Sample%20Tool%3C%2FA%3E.%20You%20can%20also%20use%20the%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcognitive-services%2Fform-recognizer%2Fquickstarts%2Fclient-library%3Ftabs%3Dga%252Cv2-0%26amp%3Bpivots%3Dprogramming-language-rest-api%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EForm%20Recognizer%20client%20library%20or%20REST%20API.%3C%2FA%3E%3C%2FSPAN%3E%3CBR%20%2F%3ENote%20tables%20output%20is%20included%20in%20all%20parts%20of%20the%20Form%20Recognizer%20service%20%E2%80%93%20prebuilt%2C%20layout%20and%20custom%20in%20the%20JSON%20output%20pageResults%20section.%3C%2FLI%3E%0A%3CLI%3EFor%20additional%20questions%20please%20reach%20out%20to%20us%20at%26nbsp%3B%3CA%20href%3D%22mailto%3Aformrecog_contact%40microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eformrecog_contact%40microsoft.com%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2058011%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3ESee%20how%20new%20deep%20learning%20technologies%20enable%20you%20to%20extract%20tables%20from%20documents%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Table-slides.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F246429iDAB10A991A1BFF14%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Table-slides.gif%22%20alt%3D%22Table-slides.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2058011%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECognitive%20Services%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EComputer%20Vision%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EForm%20Recognizer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Authors: Lei Sun, Neta Haiby, Cha Zhang, Sanjeev Jagtap

 

Documents containing tables pose a major hurdle for information extraction. Tables are often found in financial documents, legal documents, insurance documents, oil and gas documents and more. Tables in documents are often the most important part of the document but extracting data from tables in documents presents a unique set of challenges. Challenges include an accurate detection of the tabular region within an image, and subsequently detecting and extracting information from the rows and columns of the detected table, merged cells, complex tables, nested tables and more. Table extraction is the task of detecting the tables within the document and extracting them into a structured output that can be consumed by workflow applications such as robotic process automation (RPA) services, data analyst tools such as excel, databases and search services.

Table-slides.gif

Customers often use manual processes for data extraction and digitization. However, with the new enhanced table extraction feature you can send a document (PDF or images) to Form Recognizer for extraction of all the information into a structured usable data at a fraction of the time and cost, so you can focus more time acting on the information rather than compiling it.

 

Table Blog 1.png

 

Table extraction challenges

Table extraction from a wide variety of document images is a challenging problem due to the heterogeneous table structures, diverse table contents, and erratic use of ruling lines. To name a few concrete examples, in financial reports and technical publications, some borderless tables may have complex hierarchical header structures, contain many multi-line, empty or spanned cells, or have large blank spaces between neighboring columns. In forms, some tables may be embedded in other more complex tabular objects (e.g., nested tables) and some neighboring tables may be very close to each other which makes it hard to determine whether they should be merged or not. In invoices, tables may have different sizes, e.g., some key-value pairs composed tables may contain only two rows/columns and some line-item tables may span multiple pages. Sometimes, some objects in document images like figures, graphics, code listings, structurally laid out text, or flow charts may have similar textures as tables, which poses another significant challenge for successful detection of tables and reduction of false alarms. To make matters worse, many scanned or camera-captured document images are of poor image quality, and tables contained in them may be distorted (even curved) or contain artifacts or noises.  Existing table extraction solutions fall short of extracting tables from such document images with high accuracy, which has prevented workflow applications from effectively leveraging this technology.

Table Blog 2.png

Form Recognizer Table extraction

In recent years, the success of deep learning in various computer vision applications has motivated researchers to explore deep neural networks like convolutional neural networks (CNN) or graph neural networks (GNN) for detecting tables and recognizing table structures from document images. With these new technologies, the capability and performance of modern table extraction solutions have been improved significantly.

In the latest release of Form Recognizer, we created a state-of-the-art table extraction solution with cutting-edge deep learning technology. After validating that Faster/Mask R-CNN based table detectors are effective in detecting a variety of tables (e.g., bordered or borderless tables, tables embedded in other more complex tabular objects, and distorted tables) in document images robustly, we further proposed a new method to improve the localization accuracy of such detectors, and achieved state-of-the-art results on the ICDAR-2019 cTDaR table detection benchmark dataset by only using a lightweight ResNet18 backbone network (Table 1).

For the challenge of table recognition or table cell extraction, we leveraged existing CNN/GNN based approaches, which have proven to be robust to complex tables like borderless tables with complex hierarchical header structures and multi-line/empty/spanned cells. We further enhanced them to deal with distorted or even slightly curved tables in camera-captured document images, making the algorithm more widely applicable to different real-world scenarios. Figure 1 below shows a few examples to demonstrate such capabilities.

Table Blog 3.png

Easy and Simple to use

Try it out with the Form Recognizer Sample Tool. 

Table Blog 5.png

Extracting tables from documents is as simple as 2 API calls, no training, preprocessing, or anything else needed. Just call the Analyze Layout operation with your document (image, TIFF, or PDF file) as the input and extracts the text, tables, selection marks, and structure of the document.

 

Step 1: The Analyze Layout Operation –

https://{endpoint}/formrecognizer/v2.1-preview.2/layout/analyze

The Analyze Layout call returns a response header field called Operation-Location. The Operation-Location value is a URL that contains the Result ID to be used in the next step.

Operation location -
https://cognitiveservice/formrecognizer/v2.1-preview.2/prebuilt/layout/analyzeResults/44a436324-fc4b-4387-aa06-090cfbf0064f

Step 2: The Get Analyze Layout Result Operation –

Once you have the operation location call the Get Analyze Layout Result operation. This operation takes as input the Result ID that was created by the Analyze Layout operation.

https://{endpoint}/formrecognizer/v2.1-preview.2/layout/analyzeResults/{resultId}

The output of the Get Analyze Layout Results will provide a JSON output with the extracted table – rows, columns, row span, col span, bounding box and more.

For example:

Table Blog 4.jpg

 

Get started