{ "cells": [ { "cell_type": "markdown", "id": "ee136b06", "metadata": {}, "source": [ "# Going further\n", "\n", "With Textractor we strive to offer a solution that comes with everything you need to build your workflow. However, we cannot realistically cover every use case and we anticipate that there will be situations when the library falls short of your expectations and there will be a need to custom solutions.\n", "\n", "To do so, every part of the `Document` object, may it be `Page`, `IdentityDocument`, `ExpenseDocument` contains the the JSON block that was used to instantiate it. \n", "\n", "\n", "## Installation\n", "\n", "To begin, install the `amazon-textract-textractor` package using pip.\n", "\n", "`pip install amazon-textract-textractor`\n", "\n", "There are various sets of dependencies available to tailor your installation to your use case. The base package will have sensible default, but you may want to install the PDF extra dependencies if your workflow uses PDFs with `pip install amazon-textract-textractor[pdfium]`. You can read more on extra dependencies [in the documentation](https://aws-samples.github.io/amazon-textract-textractor/installation.html)\n", "\n", "## Calling Textract\n", "\n", "For the sake of diversity, we will use the AnalyzeExpense API for this example, however, the functions and properties showcased here are available on all document types." ] }, { "cell_type": "code", "execution_count": 1, "id": "623318fd", "metadata": {}, "outputs": [], "source": [ "from textractor import Textractor\n", "\n", "extractor = Textractor(profile_name=\"default\")\n", "# This path assumes that you are running the notebook from docs/source/notebooks\n", "document = extractor.analyze_expense(file_source=\"../../../tests/fixtures/form.png\")" ] }, { "cell_type": "markdown", "id": "83514f51", "metadata": {}, "source": [ "## Response dictionary\n", "\n", "The response dictionary is the unchanged JSON that was returned by the Textract API, if you save it as a file it will be the same as the JSON you would have gotten from using boto3." ] }, { "cell_type": "code", "execution_count": 2, "id": "4e0f7960", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'DocumentMetadata': {'Pages': 1},\n", " 'ExpenseDocuments': [{'ExpenseIndex': 1,\n", " 'SummaryFields': [{'Type': {'Text': 'VENDOR_NAME',\n", " 'Confidence': 84.23397827148438},\n", " 'ValueDetection': {'Text': 'Royal',\n", " 'Geometry': {'BoundingBox': {'Width': 0.33433136343955994,\n", " 'Height': 0.1101887971162796,\n", " 'Left': 0.16748881340026855,\n", " 'Top': 0.10576257109642029},\n", " 'Polygon': [{'X': 0.16748881340026855, 'Y': 0.10576257109642029},\n", " {'X': 0.5012815594673157, 'Y': 0.10688383132219315},\n", " {'X': 0.5018202066421509, 'Y': 0.2159513682126999},\n", " {'X': 0.168068990111351, 'Y': 0.2151809185743332}]},\n", " 'Confidence': 83.68743133544922},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 97.5},\n", " 'LabelDetection': {'Text': '6 Mo',\n", " 'Geometry': {'BoundingBox': {'Width': 0.037598639726638794,\n", " 'Height': 0.010990276001393795,\n", " 'Left': 0.4355943500995636,\n", " 'Top': 0.9032412171363831},\n", " 'Polygon': [{'X': 0.4355943500995636, 'Y': 0.903403103351593},\n", " {'X': 0.4731391668319702, 'Y': 0.9032412171363831},\n", " {'X': 0.4731929898262024, 'Y': 0.9140657186508179},\n", " {'X': 0.435648649930954, 'Y': 0.9142314791679382}]},\n", " 'Confidence': 87.35102081298828},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.015726225450634956,\n", " 'Height': 0.011696578934788704,\n", " 'Left': 0.4170108139514923,\n", " 'Top': 0.9020209908485413},\n", " 'Polygon': [{'X': 0.4170108139514923, 'Y': 0.9020882844924927},\n", " {'X': 0.4326786994934082, 'Y': 0.9020209908485413},\n", " {'X': 0.4327370524406433, 'Y': 0.9136484265327454},\n", " {'X': 0.41706937551498413, 'Y': 0.9137175679206848}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 96.5},\n", " 'LabelDetection': {'Text': 'Permanent Wear',\n", " 'Geometry': {'BoundingBox': {'Width': 0.12020225077867508,\n", " 'Height': 0.010676798410713673,\n", " 'Left': 0.09873555600643158,\n", " 'Top': 0.4244430959224701},\n", " 'Polygon': [{'X': 0.09873555600643158, 'Y': 0.4244430959224701},\n", " {'X': 0.21888196468353271, 'Y': 0.4244789779186249},\n", " {'X': 0.21893781423568726, 'Y': 0.4351198971271515},\n", " {'X': 0.09879285842180252, 'Y': 0.43509629368782043}]},\n", " 'Confidence': 96.31539916992188},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.01464390754699707,\n", " 'Height': 0.010014243423938751,\n", " 'Left': 0.08258085697889328,\n", " 'Top': 0.4239303171634674},\n", " 'Polygon': [{'X': 0.08258085697889328, 'Y': 0.4239303171634674},\n", " {'X': 0.09717090427875519, 'Y': 0.4239347577095032},\n", " {'X': 0.09722476452589035, 'Y': 0.43394458293914795},\n", " {'X': 0.08263488858938217, 'Y': 0.4339415431022644}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 96.0},\n", " 'LabelDetection': {'Text': '12 Mo',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04926685988903046,\n", " 'Height': 0.01091374084353447,\n", " 'Left': 0.5017852783203125,\n", " 'Top': 0.9013385772705078},\n", " 'Polygon': [{'X': 0.5017852783203125, 'Y': 0.9015499949455261},\n", " {'X': 0.5509998798370361, 'Y': 0.9013385772705078},\n", " {'X': 0.5510521531105042, 'Y': 0.9120357632637024},\n", " {'X': 0.501838207244873, 'Y': 0.9122523069381714}]},\n", " 'Confidence': 64.79031372070312},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.016481652855873108,\n", " 'Height': 0.012412488460540771,\n", " 'Left': 0.4822356104850769,\n", " 'Top': 0.9004089832305908},\n", " 'Polygon': [{'X': 0.4822356104850769, 'Y': 0.9004793167114258},\n", " {'X': 0.4986562132835388, 'Y': 0.9004089832305908},\n", " {'X': 0.4987172484397888, 'Y': 0.9127491116523743},\n", " {'X': 0.4822968542575836, 'Y': 0.9128214716911316}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 95.5},\n", " 'LabelDetection': {'Text': 'Phone',\n", " 'Geometry': {'BoundingBox': {'Width': 0.0415608249604702,\n", " 'Height': 0.010550999082624912,\n", " 'Left': 0.07793831080198288,\n", " 'Top': 0.3300623297691345},\n", " 'Polygon': [{'X': 0.07793831080198288, 'Y': 0.3300623297691345},\n", " {'X': 0.1194428950548172, 'Y': 0.3301123082637787},\n", " {'X': 0.11949913948774338, 'Y': 0.34061333537101746},\n", " {'X': 0.07799505442380905, 'Y': 0.34056755900382996}]},\n", " 'Confidence': 95.25244903564453},\n", " 'ValueDetection': {'Text': '615-373-6883',\n", " 'Geometry': {'BoundingBox': {'Width': 0.21608000993728638,\n", " 'Height': 0.0200358759611845,\n", " 'Left': 0.12751396000385284,\n", " 'Top': 0.3235915005207062},\n", " 'Polygon': [{'X': 0.12751396000385284, 'Y': 0.3235915005207062},\n", " {'X': 0.34349295496940613, 'Y': 0.3238651156425476},\n", " {'X': 0.3435939848423004, 'Y': 0.34362736344337463},\n", " {'X': 0.12761986255645752, 'Y': 0.34339481592178345}]},\n", " 'Confidence': 94.58015441894531},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 95.5},\n", " 'LabelDetection': {'Text': 'Loose Seams',\n", " 'Geometry': {'BoundingBox': {'Width': 0.09154075384140015,\n", " 'Height': 0.011243871413171291,\n", " 'Left': 0.2909635007381439,\n", " 'Top': 0.42348718643188477},\n", " 'Polygon': [{'X': 0.2909635007381439, 'Y': 0.42348718643188477},\n", " {'X': 0.38244742155075073, 'Y': 0.4235154092311859},\n", " {'X': 0.38250425457954407, 'Y': 0.43473106622695923},\n", " {'X': 0.29102155566215515, 'Y': 0.4347127377986908}]},\n", " 'Confidence': 95.17913055419922},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.014086964540183544,\n", " 'Height': 0.009878362528979778,\n", " 'Left': 0.27309396862983704,\n", " 'Top': 0.42410069704055786},\n", " 'Polygon': [{'X': 0.27309396862983704, 'Y': 0.42410069704055786},\n", " {'X': 0.28712984919548035, 'Y': 0.4241049289703369},\n", " {'X': 0.28718096017837524, 'Y': 0.4339790642261505},\n", " {'X': 0.27314522862434387, 'Y': 0.4339761435985565}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 95.0},\n", " 'LabelDetection': {'Text': 'Permanent Shading',\n", " 'Geometry': {'BoundingBox': {'Width': 0.13924720883369446,\n", " 'Height': 0.012071557343006134,\n", " 'Left': 0.0985599234700203,\n", " 'Top': 0.43874838948249817},\n", " 'Polygon': [{'X': 0.0985599234700203, 'Y': 0.43874838948249817},\n", " {'X': 0.23774413764476776, 'Y': 0.4387708604335785},\n", " {'X': 0.23780712485313416, 'Y': 0.4508199393749237},\n", " {'X': 0.0986248254776001, 'Y': 0.4508135914802551}]},\n", " 'Confidence': 94.83258819580078},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.014641131274402142,\n", " 'Height': 0.009928502142429352,\n", " 'Left': 0.08259167522192001,\n", " 'Top': 0.43825197219848633},\n", " 'Polygon': [{'X': 0.08259167522192001, 'Y': 0.43825197219848633},\n", " {'X': 0.09717939794063568, 'Y': 0.43825438618659973},\n", " {'X': 0.09723281115293503, 'Y': 0.4481804668903351},\n", " {'X': 0.08264525979757309, 'Y': 0.4481794238090515}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 95.0},\n", " 'LabelDetection': {'Text': 'Allergy Concerns',\n", " 'Geometry': {'BoundingBox': {'Width': 0.11545991897583008,\n", " 'Height': 0.012368067167699337,\n", " 'Left': 0.28926894068717957,\n", " 'Top': 0.39615729451179504},\n", " 'Polygon': [{'X': 0.28926894068717957, 'Y': 0.39615729451179504},\n", " {'X': 0.4046667814254761, 'Y': 0.3962232172489166},\n", " {'X': 0.40472885966300964, 'Y': 0.40852534770965576},\n", " {'X': 0.28933262825012207, 'Y': 0.40847310423851013}]},\n", " 'Confidence': 91.31575775146484},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.013979844748973846,\n", " 'Height': 0.010146879591047764,\n", " 'Left': 0.27254408597946167,\n", " 'Top': 0.39582815766334534},\n", " 'Polygon': [{'X': 0.27254408597946167, 'Y': 0.39582815766334534},\n", " {'X': 0.2864714562892914, 'Y': 0.3958361744880676},\n", " {'X': 0.2865239381790161, 'Y': 0.4059750437736511},\n", " {'X': 0.27259671688079834, 'Y': 0.40596839785575867}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 93.0},\n", " 'LabelDetection': {'Text': 'Excessive Wear',\n", " 'Geometry': {'BoundingBox': {'Width': 0.10464227199554443,\n", " 'Height': 0.01053692027926445,\n", " 'Left': 0.0990402102470398,\n", " 'Top': 0.4101735055446625},\n", " 'Polygon': [{'X': 0.0990402102470398, 'Y': 0.4101735055446625},\n", " {'X': 0.20362724363803864, 'Y': 0.41021907329559326},\n", " {'X': 0.20368248224258423, 'Y': 0.42071041464805603},\n", " {'X': 0.09909669309854507, 'Y': 0.4206753969192505}]},\n", " 'Confidence': 92.89436340332031},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.01583889126777649,\n", " 'Height': 0.01004171371459961,\n", " 'Left': 0.08204009383916855,\n", " 'Top': 0.4095456898212433},\n", " 'Polygon': [{'X': 0.08204009383916855, 'Y': 0.4095456898212433},\n", " {'X': 0.09782499074935913, 'Y': 0.409552663564682},\n", " {'X': 0.09787898510694504, 'Y': 0.4195874035358429},\n", " {'X': 0.08209425956010818, 'Y': 0.41958194971084595}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 92.5},\n", " 'LabelDetection': {'Text': 'Time',\n", " 'Geometry': {'BoundingBox': {'Width': 0.02681553363800049,\n", " 'Height': 0.010385806672275066,\n", " 'Left': 0.659330427646637,\n", " 'Top': 0.3567666709423065},\n", " 'Polygon': [{'X': 0.659330427646637, 'Y': 0.3567666709423065},\n", " {'X': 0.6860969066619873, 'Y': 0.3567921817302704},\n", " {'X': 0.6861459612846375, 'Y': 0.36715248227119446},\n", " {'X': 0.6593798398971558, 'Y': 0.3671296536922455}]},\n", " 'Confidence': 92.33248901367188},\n", " 'ValueDetection': {'Text': '12.30 P.M.',\n", " 'Geometry': {'BoundingBox': {'Width': 0.1608247458934784,\n", " 'Height': 0.019669130444526672,\n", " 'Left': 0.6893413662910461,\n", " 'Top': 0.350131094455719},\n", " 'Polygon': [{'X': 0.6893413662910461, 'Y': 0.350131094455719},\n", " {'X': 0.8500771522521973, 'Y': 0.35029467940330505},\n", " {'X': 0.8501660823822021, 'Y': 0.36980023980140686},\n", " {'X': 0.6894338726997375, 'Y': 0.3696669638156891}]},\n", " 'Confidence': 91.03388214111328},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 92.0},\n", " 'LabelDetection': {'Text': 'Cleaning Tech',\n", " 'Geometry': {'BoundingBox': {'Width': 0.11247267574071884,\n", " 'Height': 0.015330612659454346,\n", " 'Left': 0.5303084850311279,\n", " 'Top': 0.8699572086334229},\n", " 'Polygon': [{'X': 0.5303084850311279, 'Y': 0.8704065084457397},\n", " {'X': 0.6427100300788879, 'Y': 0.8699572086334229},\n", " {'X': 0.6427811980247498, 'Y': 0.8848223686218262},\n", " {'X': 0.5303815603256226, 'Y': 0.8852878212928772}]},\n", " 'Confidence': 90.90103912353516},\n", " 'ValueDetection': {'Text': 'JOHN LEWIS',\n", " 'Geometry': {'BoundingBox': {'Width': 0.1771693378686905,\n", " 'Height': 0.026054145768284798,\n", " 'Left': 0.6595302224159241,\n", " 'Top': 0.858439028263092},\n", " 'Polygon': [{'X': 0.6595302224159241, 'Y': 0.8591284155845642},\n", " {'X': 0.83658367395401, 'Y': 0.858439028263092},\n", " {'X': 0.8366995453834534, 'Y': 0.8837604522705078},\n", " {'X': 0.6596512198448181, 'Y': 0.8844931721687317}]},\n", " 'Confidence': 91.7969970703125},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 91.0},\n", " 'LabelDetection': {'Text': 'Cellular',\n", " 'Geometry': {'BoundingBox': {'Width': 0.045506563037633896,\n", " 'Height': 0.009642691351473331,\n", " 'Left': 0.6373825669288635,\n", " 'Top': 0.33319979906082153},\n", " 'Polygon': [{'X': 0.6373825669288635, 'Y': 0.33319979906082153},\n", " {'X': 0.6828436851501465, 'Y': 0.3332534432411194},\n", " {'X': 0.6828891634941101, 'Y': 0.3428424894809723},\n", " {'X': 0.6374285221099854, 'Y': 0.3427930176258087}]},\n", " 'Confidence': 90.93302154541016},\n", " 'ValueDetection': {'Text': '683-426-2200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.21450038254261017,\n", " 'Height': 0.018960552290081978,\n", " 'Left': 0.6977348923683167,\n", " 'Top': 0.3263414204120636},\n", " 'Polygon': [{'X': 0.6977348923683167, 'Y': 0.3263414204120636},\n", " {'X': 0.9121513366699219, 'Y': 0.3266088664531708},\n", " {'X': 0.9122353196144104, 'Y': 0.3453019857406616},\n", " {'X': 0.6978234052658081, 'Y': 0.34507331252098083}]},\n", " 'Confidence': 90.27494812011719},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 90.5},\n", " 'LabelDetection': {'Text': 'Customer',\n", " 'Geometry': {'BoundingBox': {'Width': 0.08403262495994568,\n", " 'Height': 0.014190987683832645,\n", " 'Left': 0.0689774751663208,\n", " 'Top': 0.882927656173706},\n", " 'Polygon': [{'X': 0.0689774751663208, 'Y': 0.883272111415863},\n", " {'X': 0.15293645858764648, 'Y': 0.882927656173706},\n", " {'X': 0.15301010012626648, 'Y': 0.8967629671096802},\n", " {'X': 0.06905244290828705, 'Y': 0.8971186280250549}]},\n", " 'Confidence': 90.06220245361328},\n", " 'ValueDetection': {'Text': 'ELIZABETH CAMPBELL',\n", " 'Geometry': {'BoundingBox': {'Width': 0.29250043630599976,\n", " 'Height': 0.022797495126724243,\n", " 'Left': 0.16023072600364685,\n", " 'Top': 0.870701789855957},\n", " 'Polygon': [{'X': 0.16023072600364685, 'Y': 0.8718706369400024},\n", " {'X': 0.4526234269142151, 'Y': 0.870701789855957},\n", " {'X': 0.4527311623096466, 'Y': 0.8922697901725769},\n", " {'X': 0.1603456735610962, 'Y': 0.8934993147850037}]},\n", " 'Confidence': 88.27864837646484},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 89.0},\n", " 'LabelDetection': {'Text': 'Laminate Floor Concerns',\n", " 'Geometry': {'BoundingBox': {'Width': 0.17273929715156555,\n", " 'Height': 0.010896960273385048,\n", " 'Left': 0.28804612159729004,\n", " 'Top': 0.4380652606487274},\n", " 'Polygon': [{'X': 0.28804612159729004, 'Y': 0.4380652606487274},\n", " {'X': 0.46073126792907715, 'Y': 0.4380943477153778},\n", " {'X': 0.4607854187488556, 'Y': 0.4489622414112091},\n", " {'X': 0.2881024479866028, 'Y': 0.44895124435424805}]},\n", " 'Confidence': 88.91796112060547},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.013887431472539902,\n", " 'Height': 0.00963879656046629,\n", " 'Left': 0.274356871843338,\n", " 'Top': 0.4379328787326813},\n", " 'Polygon': [{'X': 0.274356871843338, 'Y': 0.4379328787326813},\n", " {'X': 0.288194477558136, 'Y': 0.4379352033138275},\n", " {'X': 0.2882443070411682, 'Y': 0.44757166504859924},\n", " {'X': 0.27440688014030457, 'Y': 0.4475705921649933}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 88.5},\n", " 'LabelDetection': {'Text': 'Work',\n", " 'Geometry': {'BoundingBox': {'Width': 0.03447243198752403,\n", " 'Height': 0.010814260691404343,\n", " 'Left': 0.36020827293395996,\n", " 'Top': 0.3312617838382721},\n", " 'Polygon': [{'X': 0.36020827293395996, 'Y': 0.3312617838382721},\n", " {'X': 0.3946262300014496, 'Y': 0.3313029408454895},\n", " {'X': 0.3946807086467743, 'Y': 0.34207603335380554},\n", " {'X': 0.3602631688117981, 'Y': 0.34203845262527466}]},\n", " 'Confidence': 87.25090026855469},\n", " 'ValueDetection': {'Text': '726-448-6720',\n", " 'Geometry': {'BoundingBox': {'Width': 0.20375339686870575,\n", " 'Height': 0.016855981200933456,\n", " 'Left': 0.40063172578811646,\n", " 'Top': 0.3286469280719757},\n", " 'Polygon': [{'X': 0.40063172578811646, 'Y': 0.3286469280719757},\n", " {'X': 0.6043049693107605, 'Y': 0.3288957476615906},\n", " {'X': 0.6043851375579834, 'Y': 0.34550291299819946},\n", " {'X': 0.40071573853492737, 'Y': 0.3452867567539215}]},\n", " 'Confidence': 88.27705383300781},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 86.0},\n", " 'LabelDetection': {'Text': 'Soiled Furniture',\n", " 'Geometry': {'BoundingBox': {'Width': 0.1096150204539299,\n", " 'Height': 0.010698831640183926,\n", " 'Left': 0.2868221700191498,\n", " 'Top': 0.4100326895713806},\n", " 'Polygon': [{'X': 0.2868221700191498, 'Y': 0.4100326895713806},\n", " {'X': 0.3963833749294281, 'Y': 0.4100806713104248},\n", " {'X': 0.3964371979236603, 'Y': 0.4207315444946289},\n", " {'X': 0.2868773341178894, 'Y': 0.4206947982311249}]},\n", " 'Confidence': 85.47489166259766},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.014085855334997177,\n", " 'Height': 0.009900099597871304,\n", " 'Left': 0.2727871239185333,\n", " 'Top': 0.409950852394104},\n", " 'Polygon': [{'X': 0.2727871239185333, 'Y': 0.409950852394104},\n", " {'X': 0.28682178258895874, 'Y': 0.40995699167251587},\n", " {'X': 0.2868729829788208, 'Y': 0.4198509454727173},\n", " {'X': 0.2728384733200073, 'Y': 0.4198461174964905}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 85.5},\n", " 'LabelDetection': {'Text': 'Day',\n", " 'Geometry': {'BoundingBox': {'Width': 0.023388784378767014,\n", " 'Height': 0.01174582913517952,\n", " 'Left': 0.3718755841255188,\n", " 'Top': 0.35564300417900085},\n", " 'Polygon': [{'X': 0.3718755841255188, 'Y': 0.35564300417900085},\n", " {'X': 0.3952050805091858, 'Y': 0.3556654453277588},\n", " {'X': 0.3952643573284149, 'Y': 0.36738884449005127},\n", " {'X': 0.3719351589679718, 'Y': 0.36736905574798584}]},\n", " 'Confidence': 83.72608947753906},\n", " 'ValueDetection': {'Text': 'Wednesday',\n", " 'Geometry': {'BoundingBox': {'Width': 0.1386369913816452,\n", " 'Height': 0.024107282981276512,\n", " 'Left': 0.3993149697780609,\n", " 'Top': 0.34607401490211487},\n", " 'Polygon': [{'X': 0.3993149697780609, 'Y': 0.34607401490211487},\n", " {'X': 0.5378345847129822, 'Y': 0.3462199866771698},\n", " {'X': 0.5379520058631897, 'Y': 0.37018129229545593},\n", " {'X': 0.39943617582321167, 'Y': 0.370067298412323}]},\n", " 'Confidence': 85.09841918945312},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 82.5},\n", " 'LabelDetection': {'Text': 'City',\n", " 'Geometry': {'BoundingBox': {'Width': 0.025909116491675377,\n", " 'Height': 0.012501001358032227,\n", " 'Left': 0.6205770373344421,\n", " 'Top': 0.30859360098838806},\n", " 'Polygon': [{'X': 0.6205770373344421, 'Y': 0.30859360098838806},\n", " {'X': 0.6464265584945679, 'Y': 0.30863022804260254},\n", " {'X': 0.6464861631393433, 'Y': 0.3210946023464203},\n", " {'X': 0.6206369996070862, 'Y': 0.32106107473373413}]},\n", " 'Confidence': 82.48185729980469},\n", " 'ValueDetection': {'Text': 'NEX YORK',\n", " 'Geometry': {'BoundingBox': {'Width': 0.14043879508972168,\n", " 'Height': 0.022677812725305557,\n", " 'Left': 0.6687309741973877,\n", " 'Top': 0.3000532388687134},\n", " 'Polygon': [{'X': 0.6687309741973877, 'Y': 0.3000532388687134},\n", " {'X': 0.8090663552284241, 'Y': 0.30026382207870483},\n", " {'X': 0.8091697692871094, 'Y': 0.32273104786872864},\n", " {'X': 0.6688379645347595, 'Y': 0.3225509226322174}]},\n", " 'Confidence': 77.6738052368164},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 76.0},\n", " 'LabelDetection': {'Text': 'Other',\n", " 'Geometry': {'BoundingBox': {'Width': 0.038350123912096024,\n", " 'Height': 0.01023342739790678,\n", " 'Left': 0.5778354406356812,\n", " 'Top': 0.9006713032722473},\n", " 'Polygon': [{'X': 0.5778354406356812, 'Y': 0.9008357524871826},\n", " {'X': 0.6161370873451233, 'Y': 0.9006713032722473},\n", " {'X': 0.6161856055259705, 'Y': 0.910736620426178},\n", " {'X': 0.5778843760490417, 'Y': 0.9109047651290894}]},\n", " 'Confidence': 75.64922332763672},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.10774315148591995,\n", " 'Height': 0.014557065442204475,\n", " 'Left': 0.618475079536438,\n", " 'Top': 0.8954559564590454},\n", " 'Polygon': [{'X': 0.618475079536438, 'Y': 0.8959132432937622},\n", " {'X': 0.7261521220207214, 'Y': 0.8954559564590454},\n", " {'X': 0.7262182831764221, 'Y': 0.9095410704612732},\n", " {'X': 0.6185429692268372, 'Y': 0.9100130200386047}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 72.5},\n", " 'LabelDetection': {'Text': 'Late Fee',\n", " 'Geometry': {'BoundingBox': {'Width': 0.05245355889201164,\n", " 'Height': 0.010045165196061134,\n", " 'Left': 0.7530027031898499,\n", " 'Top': 0.8006049990653992},\n", " 'Polygon': [{'X': 0.7530027031898499, 'Y': 0.8007797598838806},\n", " {'X': 0.8054107427597046, 'Y': 0.8006049990653992},\n", " {'X': 0.805456280708313, 'Y': 0.810470461845398},\n", " {'X': 0.7530487775802612, 'Y': 0.8106501698493958}]},\n", " 'Confidence': 71.52510833740234},\n", " 'ValueDetection': {'Text': '5.00 00',\n", " 'Geometry': {'BoundingBox': {'Width': 0.102896548807621,\n", " 'Height': 0.018782688304781914,\n", " 'Left': 0.8197110891342163,\n", " 'Top': 0.7978001236915588},\n", " 'Polygon': [{'X': 0.8197110891342163, 'Y': 0.7981404662132263},\n", " {'X': 0.9225250482559204, 'Y': 0.7978001236915588},\n", " {'X': 0.9226076602935791, 'Y': 0.8162241578102112},\n", " {'X': 0.8197958469390869, 'Y': 0.8165827989578247}]},\n", " 'Confidence': 72.34652709960938},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 65.5},\n", " 'LabelDetection': {'Text': 'Pet Odors',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07304596155881882,\n", " 'Height': 0.011095465160906315,\n", " 'Left': 0.09350176900625229,\n", " 'Top': 0.3958131670951843},\n", " 'Polygon': [{'X': 0.09350176900625229, 'Y': 0.3958131670951843},\n", " {'X': 0.16648907959461212, 'Y': 0.39585503935813904},\n", " {'X': 0.1665477305650711, 'Y': 0.40690866112709045},\n", " {'X': 0.0935613289475441, 'Y': 0.40687453746795654}]},\n", " 'Confidence': 64.05148315429688},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.015264553017914295,\n", " 'Height': 0.01028513628989458,\n", " 'Left': 0.08149563521146774,\n", " 'Top': 0.39627742767333984},\n", " 'Polygon': [{'X': 0.08149563521146774, 'Y': 0.39627742767333984},\n", " {'X': 0.0967048853635788, 'Y': 0.39628610014915466},\n", " {'X': 0.09676019102334976, 'Y': 0.40656256675720215},\n", " {'X': 0.08155111223459244, 'Y': 0.4065554141998291}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 62.5},\n", " 'LabelDetection': {'Text': 'E-Mail\"',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04665113240480423,\n", " 'Height': 0.010710757225751877,\n", " 'Left': 0.5200080275535583,\n", " 'Top': 0.282549649477005},\n", " 'Polygon': [{'X': 0.5200080275535583, 'Y': 0.282549649477005},\n", " {'X': 0.5666074156761169, 'Y': 0.28262731432914734},\n", " {'X': 0.566659152507782, 'Y': 0.293260395526886},\n", " {'X': 0.5200603604316711, 'Y': 0.2931874990463257}]},\n", " 'Confidence': 53.310401916503906},\n", " 'ValueDetection': {'Text': 'vilcomp@gmail.com',\n", " 'Geometry': {'BoundingBox': {'Width': 0.251456081867218,\n", " 'Height': 0.019417790696024895,\n", " 'Left': 0.5722715258598328,\n", " 'Top': 0.2792922258377075},\n", " 'Polygon': [{'X': 0.5722715258598328, 'Y': 0.2792922258377075},\n", " {'X': 0.8236405253410339, 'Y': 0.27971941232681274},\n", " {'X': 0.8237276077270508, 'Y': 0.29871001839637756},\n", " {'X': 0.572364091873169, 'Y': 0.2983289957046509}]},\n", " 'Confidence': 60.13902282714844},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 54.000003814697266},\n", " 'LabelDetection': {'Text': 'Special Instructions or Directions:',\n", " 'Geometry': {'BoundingBox': {'Width': 0.225040003657341,\n", " 'Height': 0.012653539888560772,\n", " 'Left': 0.5206770300865173,\n", " 'Top': 0.38298773765563965},\n", " 'Polygon': [{'X': 0.5206770300865173, 'Y': 0.38298773765563965},\n", " {'X': 0.7456586360931396, 'Y': 0.3831450641155243},\n", " {'X': 0.7457170486450195, 'Y': 0.3956412672996521},\n", " {'X': 0.5207386016845703, 'Y': 0.39551106095314026}]},\n", " 'Confidence': 53.9756965637207},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.4266812801361084,\n", " 'Height': 0.05497416481375694,\n", " 'Left': 0.49419888854026794,\n", " 'Top': 0.3973137438297272},\n", " 'Polygon': [{'X': 0.49419888854026794, 'Y': 0.3973137438297272},\n", " {'X': 0.9206348061561584, 'Y': 0.39755305647850037},\n", " {'X': 0.920880138874054, 'Y': 0.4522879123687744},\n", " {'X': 0.49447083473205566, 'Y': 0.452274352312088}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'TOTAL', 'Confidence': 99.76947784423828},\n", " 'LabelDetection': {'Text': 'TOTAL',\n", " 'Geometry': {'BoundingBox': {'Width': 0.05073551461100578,\n", " 'Height': 0.011950855143368244,\n", " 'Left': 0.753889262676239,\n", " 'Top': 0.8247276544570923},\n", " 'Polygon': [{'X': 0.753889262676239, 'Y': 0.824908435344696},\n", " {'X': 0.8045705556869507, 'Y': 0.8247276544570923},\n", " {'X': 0.8046247959136963, 'Y': 0.8364920020103455},\n", " {'X': 0.7539442181587219, 'Y': 0.8366785049438477}]},\n", " 'Confidence': 98.64350128173828},\n", " 'ValueDetection': {'Text': '450 00',\n", " 'Geometry': {'BoundingBox': {'Width': 0.11582565307617188,\n", " 'Height': 0.020770881325006485,\n", " 'Left': 0.8102607727050781,\n", " 'Top': 0.8224866986274719},\n", " 'Polygon': [{'X': 0.8102607727050781, 'Y': 0.8228974938392639},\n", " {'X': 0.9259952902793884, 'Y': 0.8224866986274719},\n", " {'X': 0.92608642578125, 'Y': 0.8428241014480591},\n", " {'X': 0.8103545308113098, 'Y': 0.8432576060295105}]},\n", " 'Confidence': 99.65402221679688},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'RECEIVER_ADDRESS', 'Confidence': 95.90914916992188},\n", " 'LabelDetection': {'Text': 'Address',\n", " 'Geometry': {'BoundingBox': {'Width': 0.053993821144104004,\n", " 'Height': 0.009652351029217243,\n", " 'Left': 0.07546723634004593,\n", " 'Top': 0.30529722571372986},\n", " 'Polygon': [{'X': 0.07546723634004593, 'Y': 0.30529722571372986},\n", " {'X': 0.12940987944602966, 'Y': 0.30537497997283936},\n", " {'X': 0.12946105003356934, 'Y': 0.31494957208633423},\n", " {'X': 0.07551900297403336, 'Y': 0.3148767352104187}]},\n", " 'Confidence': 95.75353240966797},\n", " 'ValueDetection': {'Text': '90 OLD HICKORY BLVD',\n", " 'Geometry': {'BoundingBox': {'Width': 0.3442087769508362,\n", " 'Height': 0.02733050473034382,\n", " 'Left': 0.14412643015384674,\n", " 'Top': 0.29719048738479614},\n", " 'Polygon': [{'X': 0.14412643015384674, 'Y': 0.29719048738479614},\n", " {'X': 0.48820242285728455, 'Y': 0.29771366715431213},\n", " {'X': 0.4883352220058441, 'Y': 0.324521005153656},\n", " {'X': 0.14426976442337036, 'Y': 0.32408666610717773}]},\n", " 'Confidence': 95.65865325927734},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'INVOICE_RECEIPT_DATE', 'Confidence': 99.79714965820312},\n", " 'LabelDetection': {'Text': 'Date',\n", " 'Geometry': {'BoundingBox': {'Width': 0.03216955438256264,\n", " 'Height': 0.010518710128962994,\n", " 'Left': 0.07637345790863037,\n", " 'Top': 0.35410577058792114},\n", " 'Polygon': [{'X': 0.07637345790863037, 'Y': 0.35410577058792114},\n", " {'X': 0.10848671942949295, 'Y': 0.35413703322410583},\n", " {'X': 0.1085430160164833, 'Y': 0.3646245002746582},\n", " {'X': 0.07643014192581177, 'Y': 0.3645964562892914}]},\n", " 'Confidence': 99.3871841430664},\n", " 'ValueDetection': {'Text': '04/23/2020',\n", " 'Geometry': {'BoundingBox': {'Width': 0.19812610745429993,\n", " 'Height': 0.022963088005781174,\n", " 'Left': 0.11229494959115982,\n", " 'Top': 0.34593334794044495},\n", " 'Polygon': [{'X': 0.11229494959115982, 'Y': 0.34593334794044495},\n", " {'X': 0.3103039264678955, 'Y': 0.3461417257785797},\n", " {'X': 0.31042104959487915, 'Y': 0.3688964545726776},\n", " {'X': 0.11241724342107773, 'Y': 0.36873140931129456}]},\n", " 'Confidence': 96.017333984375},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'TAX', 'Confidence': 99.81538391113281},\n", " 'LabelDetection': {'Text': 'Sales Tax',\n", " 'Geometry': {'BoundingBox': {'Width': 0.05706123635172844,\n", " 'Height': 0.009684447199106216,\n", " 'Left': 0.752395510673523,\n", " 'Top': 0.7762940526008606},\n", " 'Polygon': [{'X': 0.752395510673523, 'Y': 0.7764707207679749},\n", " {'X': 0.809412956237793, 'Y': 0.7762940526008606},\n", " {'X': 0.8094567060470581, 'Y': 0.7857965230941772},\n", " {'X': 0.7524398565292358, 'Y': 0.7859784960746765}]},\n", " 'Confidence': 99.48528289794922},\n", " 'ValueDetection': {'Text': '1445.0 00',\n", " 'Geometry': {'BoundingBox': {'Width': 0.11331885308027267,\n", " 'Height': 0.024326913058757782,\n", " 'Left': 0.8112874627113342,\n", " 'Top': 0.7705132365226746},\n", " 'Polygon': [{'X': 0.8112874627113342, 'Y': 0.7708581686019897},\n", " {'X': 0.924498975276947, 'Y': 0.7705132365226746},\n", " {'X': 0.9246063232421875, 'Y': 0.7944690585136414},\n", " {'X': 0.8113978505134583, 'Y': 0.7948401570320129}]},\n", " 'Confidence': 99.66134643554688},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 90.92475128173828},\n", " 'LabelDetection': {'Text': 'Phone',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04250941425561905,\n", " 'Height': 0.009687976911664009,\n", " 'Left': 0.7301319241523743,\n", " 'Top': 0.8958988785743713},\n", " 'Polygon': [{'X': 0.7301319241523743, 'Y': 0.8960794806480408},\n", " {'X': 0.7725971341133118, 'Y': 0.8958988785743713},\n", " {'X': 0.7726413011550903, 'Y': 0.9054023623466492},\n", " {'X': 0.7301765084266663, 'Y': 0.905586838722229}]},\n", " 'Confidence': 89.14117431640625},\n", " 'ValueDetection': {'Text': '626-200-4890',\n", " 'Geometry': {'BoundingBox': {'Width': 0.20498627424240112,\n", " 'Height': 0.028003590181469917,\n", " 'Left': 0.7725487947463989,\n", " 'Top': 0.8846393823623657},\n", " 'Polygon': [{'X': 0.7725487947463989, 'Y': 0.8854900598526001},\n", " {'X': 0.9774152040481567, 'Y': 0.8846393823623657},\n", " {'X': 0.9775350689888, 'Y': 0.9117385149002075},\n", " {'X': 0.7726749777793884, 'Y': 0.9126429557800293}]},\n", " 'Confidence': 90.69705200195312},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 96.4910659790039},\n", " 'LabelDetection': {'Text': 'Name',\n", " 'Geometry': {'BoundingBox': {'Width': 0.039872702211141586,\n", " 'Height': 0.009643582627177238,\n", " 'Left': 0.07532918453216553,\n", " 'Top': 0.279750794172287},\n", " 'Polygon': [{'X': 0.07532918453216553, 'Y': 0.279750794172287},\n", " {'X': 0.1151505559682846, 'Y': 0.27981796860694885},\n", " {'X': 0.11520189046859741, 'Y': 0.2893943786621094},\n", " {'X': 0.07538095861673355, 'Y': 0.2893308699131012}]},\n", " 'Confidence': 96.34061431884766},\n", " 'ValueDetection': {'Text': 'ELIZABETH CAMPBELL',\n", " 'Geometry': {'BoundingBox': {'Width': 0.35332366824150085,\n", " 'Height': 0.031524498015642166,\n", " 'Left': 0.1202450692653656,\n", " 'Top': 0.27207455039024353},\n", " 'Polygon': [{'X': 0.1202450692653656, 'Y': 0.27207455039024353},\n", " {'X': 0.47341516613960266, 'Y': 0.2726965844631195},\n", " {'X': 0.47356873750686646, 'Y': 0.3035990595817566},\n", " {'X': 0.12041110545396805, 'Y': 0.303082138299942}]},\n", " 'Confidence': 95.9389877319336},\n", " 'PageNumber': 1}],\n", " 'LineItemGroups': [{'LineItemGroupIndex': 1,\n", " 'LineItems': [{'LineItemExpenseFields': [{'Type': {'Text': 'ITEM',\n", " 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'Pet odors',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368755340576172,\n", " 'Height': 0.023374218493700027,\n", " 'Left': 0.07752513885498047,\n", " 'Top': 0.47615158557891846},\n", " 'Polygon': [{'X': 0.07752513885498047, 'Y': 0.47629809379577637},\n", " {'X': 0.8142945766448975, 'Y': 0.47615158557891846},\n", " {'X': 0.8144006729125977, 'Y': 0.49921509623527527},\n", " {'X': 0.07765062898397446, 'Y': 0.4995258152484894}]},\n", " 'Confidence': 99.95892333984375},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '50',\n", " 'Geometry': {'BoundingBox': {'Width': 0.0722079947590828,\n", " 'Height': 0.02307785488665104,\n", " 'Left': 0.8142945766448975,\n", " 'Top': 0.47613725066185},\n", " 'Polygon': [{'X': 0.8142945766448975, 'Y': 0.47615158557891846},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8865025639533997, 'Y': 0.4991846978664398},\n", " {'X': 0.8144006729125977, 'Y': 0.49921509623527527}]},\n", " 'Confidence': 99.98512268066406},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04211711138486862,\n", " 'Height': 0.023055803030729294,\n", " 'Left': 0.886398434638977,\n", " 'Top': 0.4761289060115814},\n", " 'Polygon': [{'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.9285155534744263, 'Y': 0.49916699528694153},\n", " {'X': 0.8865026235580444, 'Y': 0.4991846978664398}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'Pet odors 50',\n", " 'Geometry': {'BoundingBox': {'Width': 0.850990355014801,\n", " 'Height': 0.023396912962198257,\n", " 'Left': 0.07752513885498047,\n", " 'Top': 0.4761289060115814},\n", " 'Polygon': [{'X': 0.07752513885498047, 'Y': 0.47629809379577637},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.9285155534744263, 'Y': 0.49916699528694153},\n", " {'X': 0.07765062898397446, 'Y': 0.4995258152484894}]},\n", " 'Confidence': 99.96765899658203},\n", " 'PageNumber': 1}]},\n", " {'LineItemExpenseFields': [{'Type': {'Text': 'ITEM', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'Food Stains',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368581891059875,\n", " 'Height': 0.02399268001317978,\n", " 'Left': 0.07765062898397446,\n", " 'Top': 0.49921512603759766},\n", " 'Polygon': [{'X': 0.07765062898397446, 'Y': 0.4995258152484894},\n", " {'X': 0.8144006729125977, 'Y': 0.49921512603759766},\n", " {'X': 0.8145087957382202, 'Y': 0.5227296948432922},\n", " {'X': 0.07777857780456543, 'Y': 0.5232077836990356}]},\n", " 'Confidence': 99.95933532714844},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '45',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07220814377069473,\n", " 'Height': 0.02354499325156212,\n", " 'Left': 0.8144006729125977,\n", " 'Top': 0.4991847276687622},\n", " 'Polygon': [{'X': 0.8144006729125977, 'Y': 0.49921512603759766},\n", " {'X': 0.8865025639533997, 'Y': 0.4991847276687622},\n", " {'X': 0.8866088390350342, 'Y': 0.5226829051971436},\n", " {'X': 0.8145087957382202, 'Y': 0.5227296948432922}]},\n", " 'Confidence': 99.9857177734375},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04211802780628204,\n", " 'Height': 0.02351592294871807,\n", " 'Left': 0.8865026235580444,\n", " 'Top': 0.49916699528694153},\n", " 'Polygon': [{'X': 0.8865026235580444, 'Y': 0.4991847276687622},\n", " {'X': 0.9285155534744263, 'Y': 0.49916699528694153},\n", " {'X': 0.9286206364631653, 'Y': 0.5226556658744812},\n", " {'X': 0.8866088390350342, 'Y': 0.5226829051971436}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'Food Stains 45',\n", " 'Geometry': {'BoundingBox': {'Width': 0.8509699702262878,\n", " 'Height': 0.02404080517590046,\n", " 'Left': 0.07765062898397446,\n", " 'Top': 0.49916699528694153},\n", " 'Polygon': [{'X': 0.07765062898397446, 'Y': 0.4995258152484894},\n", " {'X': 0.9285155534744263, 'Y': 0.49916699528694153},\n", " {'X': 0.9286206364631653, 'Y': 0.5226556658744812},\n", " {'X': 0.07777857780456543, 'Y': 0.5232077836990356}]},\n", " 'Confidence': 99.96813201904297},\n", " 'PageNumber': 1}]},\n", " {'LineItemExpenseFields': [{'Type': {'Text': 'ITEM', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'Steam cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368404865264893,\n", " 'Height': 0.02461421862244606,\n", " 'Left': 0.07777857780456543,\n", " 'Top': 0.5227296948432922},\n", " 'Polygon': [{'X': 0.07777857780456543, 'Y': 0.5232077836990356},\n", " {'X': 0.8145087957382202, 'Y': 0.5227296948432922},\n", " {'X': 0.8146190643310547, 'Y': 0.5466952323913574},\n", " {'X': 0.07790897786617279, 'Y': 0.547343909740448}]},\n", " 'Confidence': 99.97703552246094},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '100',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07220825552940369,\n", " 'Height': 0.02401232160627842,\n", " 'Left': 0.8145087957382202,\n", " 'Top': 0.5226829051971436},\n", " 'Polygon': [{'X': 0.8145087957382202, 'Y': 0.5227296948432922},\n", " {'X': 0.8866088390350342, 'Y': 0.5226829051971436},\n", " {'X': 0.8867170810699463, 'Y': 0.5466317534446716},\n", " {'X': 0.8146190047264099, 'Y': 0.5466952323913574}]},\n", " 'Confidence': 99.98554992675781},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04211892560124397,\n", " 'Height': 0.023976100608706474,\n", " 'Left': 0.8866088390350342,\n", " 'Top': 0.5226556658744812},\n", " 'Polygon': [{'X': 0.8866088390350342, 'Y': 0.5226829051971436},\n", " {'X': 0.9286206364631653, 'Y': 0.5226556658744812},\n", " {'X': 0.9287277460098267, 'Y': 0.5465947985649109},\n", " {'X': 0.8867170810699463, 'Y': 0.5466317534446716}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'Steam cleaning 100',\n", " 'Geometry': {'BoundingBox': {'Width': 0.8509491682052612,\n", " 'Height': 0.024688269942998886,\n", " 'Left': 0.07777857780456543,\n", " 'Top': 0.5226556658744812},\n", " 'Polygon': [{'X': 0.07777857780456543, 'Y': 0.5232077836990356},\n", " {'X': 0.9286206364631653, 'Y': 0.5226556658744812},\n", " {'X': 0.9287277460098267, 'Y': 0.5465947985649109},\n", " {'X': 0.07790897786617279, 'Y': 0.547343909740448}]},\n", " 'Confidence': 99.97987365722656},\n", " 'PageNumber': 1}]},\n", " {'LineItemExpenseFields': [{'Type': {'Text': 'ITEM', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'Water Damage',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368161082267761,\n", " 'Height': 0.02387278899550438,\n", " 'Left': 0.07790897786617279,\n", " 'Top': 0.5466952323913574},\n", " 'Polygon': [{'X': 0.07790897786617279, 'Y': 0.547343909740448},\n", " {'X': 0.8146190643310547, 'Y': 0.5466952323913574},\n", " {'X': 0.8147251009941101, 'Y': 0.5697551965713501},\n", " {'X': 0.07803444564342499, 'Y': 0.5705680251121521}]},\n", " 'Confidence': 99.97860717773438},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '400',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07220220565795898,\n", " 'Height': 0.023123450577259064,\n", " 'Left': 0.8146190047264099,\n", " 'Top': 0.5466317534446716},\n", " 'Polygon': [{'X': 0.8146190047264099, 'Y': 0.5466952323913574},\n", " {'X': 0.8867170810699463, 'Y': 0.5466317534446716},\n", " {'X': 0.8868212103843689, 'Y': 0.569675624370575},\n", " {'X': 0.8147251009941101, 'Y': 0.5697551965713501}]},\n", " 'Confidence': 99.9887466430664},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.042113736271858215,\n", " 'Height': 0.023080894723534584,\n", " 'Left': 0.8867170810699463,\n", " 'Top': 0.5465947389602661},\n", " 'Polygon': [{'X': 0.8867170810699463, 'Y': 0.5466317534446716},\n", " {'X': 0.9287277460098267, 'Y': 0.5465947389602661},\n", " {'X': 0.9288308024406433, 'Y': 0.5696293115615845},\n", " {'X': 0.8868212699890137, 'Y': 0.569675624370575}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'Water Damage 400',\n", " 'Geometry': {'BoundingBox': {'Width': 0.8509218096733093,\n", " 'Height': 0.023973261937499046,\n", " 'Left': 0.07790897786617279,\n", " 'Top': 0.5465947389602661},\n", " 'Polygon': [{'X': 0.07790897786617279, 'Y': 0.547343909740448},\n", " {'X': 0.9287277460098267, 'Y': 0.5465947389602661},\n", " {'X': 0.9288308024406433, 'Y': 0.5696293115615845},\n", " {'X': 0.07803444564342499, 'Y': 0.5705680251121521}]},\n", " 'Confidence': 99.98198699951172},\n", " 'PageNumber': 1}]},\n", " {'LineItemExpenseFields': [{'Type': {'Text': 'ITEM', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'loose Repair\\nseams',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7367925047874451,\n", " 'Height': 0.023125097155570984,\n", " 'Left': 0.07803444564342499,\n", " 'Top': 0.5697551965713501},\n", " 'Polygon': [{'X': 0.07803444564342499, 'Y': 0.5705680251121521},\n", " {'X': 0.8147251009941101, 'Y': 0.5697551965713501},\n", " {'X': 0.8148269653320312, 'Y': 0.5919098258018494},\n", " {'X': 0.07815499603748322, 'Y': 0.5928803086280823}]},\n", " 'Confidence': 99.87442016601562},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219623029232025,\n", " 'Height': 0.02223413810133934,\n", " 'Left': 0.8147251009941101,\n", " 'Top': 0.5696756839752197},\n", " 'Polygon': [{'X': 0.8147251009941101, 'Y': 0.5697551965713501},\n", " {'X': 0.8868212103843689, 'Y': 0.5696756839752197},\n", " {'X': 0.8869212865829468, 'Y': 0.5918148159980774},\n", " {'X': 0.8148269653320312, 'Y': 0.5919098258018494}]},\n", " 'Confidence': 99.98649597167969},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210859164595604,\n", " 'Height': 0.022185510024428368,\n", " 'Left': 0.8868212699890137,\n", " 'Top': 0.5696293115615845},\n", " 'Polygon': [{'X': 0.8868212699890137, 'Y': 0.5696756839752197},\n", " {'X': 0.9288308024406433, 'Y': 0.5696293115615845},\n", " {'X': 0.9289298057556152, 'Y': 0.5917595028877258},\n", " {'X': 0.8869213461875916, 'Y': 0.5918148159980774}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'loose Repair\\nseams 200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.8508954048156738,\n", " 'Height': 0.023250995203852654,\n", " 'Left': 0.07803444564342499,\n", " 'Top': 0.5696293115615845},\n", " 'Polygon': [{'X': 0.07803444564342499, 'Y': 0.5705680251121521},\n", " {'X': 0.9288308024406433, 'Y': 0.5696293115615845},\n", " {'X': 0.9289298057556152, 'Y': 0.5917595028877258},\n", " {'X': 0.07815499603748322, 'Y': 0.5928803086280823}]},\n", " 'Confidence': 99.90242767333984},\n", " 'PageNumber': 1}]},\n", " {'LineItemExpenseFields': [{'Type': {'Text': 'ITEM', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'Tile cleaning repair',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7367738485336304,\n", " 'Height': 0.02328164130449295,\n", " 'Left': 0.07815499603748322,\n", " 'Top': 0.5919098258018494},\n", " 'Polygon': [{'X': 0.07815499603748322, 'Y': 0.5928803086280823},\n", " {'X': 0.8148269653320312, 'Y': 0.5919098258018494},\n", " {'X': 0.8149288892745972, 'Y': 0.6140632629394531},\n", " {'X': 0.07827553153038025, 'Y': 0.6151914596557617}]},\n", " 'Confidence': 99.86579132080078},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.0721944123506546,\n", " 'Height': 0.022248445078730583,\n", " 'Left': 0.8148269653320312,\n", " 'Top': 0.5918148159980774},\n", " 'Polygon': [{'X': 0.8148269653320312, 'Y': 0.5919098258018494},\n", " {'X': 0.8869212865829468, 'Y': 0.5918148159980774},\n", " {'X': 0.8870213627815247, 'Y': 0.6139528751373291},\n", " {'X': 0.8149288296699524, 'Y': 0.6140632629394531}]},\n", " 'Confidence': 99.98596954345703},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210752993822098,\n", " 'Height': 0.02219337783753872,\n", " 'Left': 0.8869213461875916,\n", " 'Top': 0.5917595028877258},\n", " 'Polygon': [{'X': 0.8869213461875916, 'Y': 0.5918148159980774},\n", " {'X': 0.9289298057556152, 'Y': 0.5917595028877258},\n", " {'X': 0.9290288686752319, 'Y': 0.6138885021209717},\n", " {'X': 0.8870214223861694, 'Y': 0.6139528751373291}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'Tile cleaning repair 200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.8508738279342651,\n", " 'Height': 0.023431962355971336,\n", " 'Left': 0.07815499603748322,\n", " 'Top': 0.5917595028877258},\n", " 'Polygon': [{'X': 0.07815499603748322, 'Y': 0.5928803086280823},\n", " {'X': 0.9289298057556152, 'Y': 0.5917595028877258},\n", " {'X': 0.9290288686752319, 'Y': 0.6138885021209717},\n", " {'X': 0.07827553153038025, 'Y': 0.6151914596557617}]},\n", " 'Confidence': 99.89582061767578},\n", " 'PageNumber': 1}]},\n", " {'LineItemExpenseFields': [{'Type': {'Text': 'ITEM', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'Delivery cost',\n", " 'Geometry': {'BoundingBox': {'Width': 0.73675936460495,\n", " 'Height': 0.024348895996809006,\n", " 'Left': 0.07827553153038025,\n", " 'Top': 0.6140632629394531},\n", " 'Polygon': [{'X': 0.07827553153038025, 'Y': 0.6151914596557617},\n", " {'X': 0.8149288892745972, 'Y': 0.6140632629394531},\n", " {'X': 0.8150349259376526, 'Y': 0.6371198892593384},\n", " {'X': 0.07840099185705185, 'Y': 0.6384121775627136}]},\n", " 'Confidence': 99.94113159179688},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219667732715607,\n", " 'Height': 0.023167040199041367,\n", " 'Left': 0.8149288296699524,\n", " 'Top': 0.6139528751373291},\n", " 'Polygon': [{'X': 0.8149288296699524, 'Y': 0.6140632629394531},\n", " {'X': 0.8870213627815247, 'Y': 0.6139528751373291},\n", " {'X': 0.887125551700592, 'Y': 0.636993408203125},\n", " {'X': 0.8150349259376526, 'Y': 0.6371198892593384}]},\n", " 'Confidence': 99.97767639160156},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.042110513895750046,\n", " 'Height': 0.02310490794479847,\n", " 'Left': 0.8870214223861694,\n", " 'Top': 0.6138885021209717},\n", " 'Polygon': [{'X': 0.8870214223861694, 'Y': 0.6139528751373291},\n", " {'X': 0.9290288686752319, 'Y': 0.6138885021209717},\n", " {'X': 0.9291319251060486, 'Y': 0.6369197368621826},\n", " {'X': 0.887125551700592, 'Y': 0.636993408203125}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'Delivery cost 200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.850856363773346,\n", " 'Height': 0.02452363818883896,\n", " 'Left': 0.07827553153038025,\n", " 'Top': 0.6138885021209717},\n", " 'Polygon': [{'X': 0.07827553153038025, 'Y': 0.6151914596557617},\n", " {'X': 0.9290288686752319, 'Y': 0.6138885021209717},\n", " {'X': 0.9291319251060486, 'Y': 0.6369197368621826},\n", " {'X': 0.07840099185705185, 'Y': 0.6384121775627136}]},\n", " 'Confidence': 99.95330810546875},\n", " 'PageNumber': 1}]}]}]}],\n", " 'ResponseMetadata': {'RequestId': '9f34f291-0003-4b28-bb07-7d23aff3c172',\n", " 'HTTPStatusCode': 200,\n", " 'HTTPHeaders': {'x-amzn-requestid': '9f34f291-0003-4b28-bb07-7d23aff3c172',\n", " 'content-type': 'application/x-amz-json-1.1',\n", " 'content-length': '47201',\n", " 'date': 'Tue, 04 Oct 2022 14:06:16 GMT'},\n", " 'RetryAttempts': 0}}" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "document.response" ] }, { "cell_type": "markdown", "id": "a87f8d4b", "metadata": {}, "source": [ "## Finer-grain results\n", "\n", "What if you only want a specific value in the invoice we processed?" ] }, { "cell_type": "code", "execution_count": 3, "id": "6b670ad0", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "626-200-4890" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "document.expense_documents[0][\"Phone\"]" ] }, { "cell_type": "code", "execution_count": 4, "id": "1bdb438b", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'Text': '626-200-4890',\n", " 'Geometry': {'BoundingBox': {'Width': 0.20498627424240112,\n", " 'Height': 0.028003590181469917,\n", " 'Left': 0.7725487947463989,\n", " 'Top': 0.8846393823623657},\n", " 'Polygon': [{'X': 0.7725487947463989, 'Y': 0.8854900598526001},\n", " {'X': 0.9774152040481567, 'Y': 0.8846393823623657},\n", " {'X': 0.9775350689888, 'Y': 0.9117385149002075},\n", " {'X': 0.7726749777793884, 'Y': 0.9126429557800293}]},\n", " 'Confidence': 90.69705200195312}" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "document.expense_documents[0][\"Phone\"].raw_object" ] }, { "cell_type": "markdown", "id": "0df5a34c", "metadata": {}, "source": [ "The `raw_object` property is available on all Textractor objects" ] }, { "cell_type": "code", "execution_count": 5, "id": "7b2a4a25", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'ExpenseIndex': 1,\n", " 'SummaryFields': [{'Type': {'Text': 'VENDOR_NAME',\n", " 'Confidence': 84.23397827148438},\n", " 'ValueDetection': {'Text': 'Royal',\n", " 'Geometry': {'BoundingBox': {'Width': 0.33433136343955994,\n", " 'Height': 0.1101887971162796,\n", " 'Left': 0.16748881340026855,\n", " 'Top': 0.10576257109642029},\n", " 'Polygon': [{'X': 0.16748881340026855, 'Y': 0.10576257109642029},\n", " {'X': 0.5012815594673157, 'Y': 0.10688383132219315},\n", " {'X': 0.5018202066421509, 'Y': 0.2159513682126999},\n", " {'X': 0.168068990111351, 'Y': 0.2151809185743332}]},\n", " 'Confidence': 83.68743133544922},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 97.5},\n", " 'LabelDetection': {'Text': '6 Mo',\n", " 'Geometry': {'BoundingBox': {'Width': 0.037598639726638794,\n", " 'Height': 0.010990276001393795,\n", " 'Left': 0.4355943500995636,\n", " 'Top': 0.9032412171363831},\n", " 'Polygon': [{'X': 0.4355943500995636, 'Y': 0.903403103351593},\n", " {'X': 0.4731391668319702, 'Y': 0.9032412171363831},\n", " {'X': 0.4731929898262024, 'Y': 0.9140657186508179},\n", " {'X': 0.435648649930954, 'Y': 0.9142314791679382}]},\n", " 'Confidence': 87.35102081298828},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.015726225450634956,\n", " 'Height': 0.011696578934788704,\n", " 'Left': 0.4170108139514923,\n", " 'Top': 0.9020209908485413},\n", " 'Polygon': [{'X': 0.4170108139514923, 'Y': 0.9020882844924927},\n", " {'X': 0.4326786994934082, 'Y': 0.9020209908485413},\n", " {'X': 0.4327370524406433, 'Y': 0.9136484265327454},\n", " {'X': 0.41706937551498413, 'Y': 0.9137175679206848}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 96.5},\n", " 'LabelDetection': {'Text': 'Permanent Wear',\n", " 'Geometry': {'BoundingBox': {'Width': 0.12020225077867508,\n", " 'Height': 0.010676798410713673,\n", " 'Left': 0.09873555600643158,\n", " 'Top': 0.4244430959224701},\n", " 'Polygon': [{'X': 0.09873555600643158, 'Y': 0.4244430959224701},\n", " {'X': 0.21888196468353271, 'Y': 0.4244789779186249},\n", " {'X': 0.21893781423568726, 'Y': 0.4351198971271515},\n", " {'X': 0.09879285842180252, 'Y': 0.43509629368782043}]},\n", " 'Confidence': 96.31539916992188},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.01464390754699707,\n", " 'Height': 0.010014243423938751,\n", " 'Left': 0.08258085697889328,\n", " 'Top': 0.4239303171634674},\n", " 'Polygon': [{'X': 0.08258085697889328, 'Y': 0.4239303171634674},\n", " {'X': 0.09717090427875519, 'Y': 0.4239347577095032},\n", " {'X': 0.09722476452589035, 'Y': 0.43394458293914795},\n", " {'X': 0.08263488858938217, 'Y': 0.4339415431022644}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 96.0},\n", " 'LabelDetection': {'Text': '12 Mo',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04926685988903046,\n", " 'Height': 0.01091374084353447,\n", " 'Left': 0.5017852783203125,\n", " 'Top': 0.9013385772705078},\n", " 'Polygon': [{'X': 0.5017852783203125, 'Y': 0.9015499949455261},\n", " {'X': 0.5509998798370361, 'Y': 0.9013385772705078},\n", " {'X': 0.5510521531105042, 'Y': 0.9120357632637024},\n", " {'X': 0.501838207244873, 'Y': 0.9122523069381714}]},\n", " 'Confidence': 64.79031372070312},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.016481652855873108,\n", " 'Height': 0.012412488460540771,\n", " 'Left': 0.4822356104850769,\n", " 'Top': 0.9004089832305908},\n", " 'Polygon': [{'X': 0.4822356104850769, 'Y': 0.9004793167114258},\n", " {'X': 0.4986562132835388, 'Y': 0.9004089832305908},\n", " {'X': 0.4987172484397888, 'Y': 0.9127491116523743},\n", " {'X': 0.4822968542575836, 'Y': 0.9128214716911316}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 95.5},\n", " 'LabelDetection': {'Text': 'Phone',\n", " 'Geometry': {'BoundingBox': {'Width': 0.0415608249604702,\n", " 'Height': 0.010550999082624912,\n", " 'Left': 0.07793831080198288,\n", " 'Top': 0.3300623297691345},\n", " 'Polygon': [{'X': 0.07793831080198288, 'Y': 0.3300623297691345},\n", " {'X': 0.1194428950548172, 'Y': 0.3301123082637787},\n", " {'X': 0.11949913948774338, 'Y': 0.34061333537101746},\n", " {'X': 0.07799505442380905, 'Y': 0.34056755900382996}]},\n", " 'Confidence': 95.25244903564453},\n", " 'ValueDetection': {'Text': '615-373-6883',\n", " 'Geometry': {'BoundingBox': {'Width': 0.21608000993728638,\n", " 'Height': 0.0200358759611845,\n", " 'Left': 0.12751396000385284,\n", " 'Top': 0.3235915005207062},\n", " 'Polygon': [{'X': 0.12751396000385284, 'Y': 0.3235915005207062},\n", " {'X': 0.34349295496940613, 'Y': 0.3238651156425476},\n", " {'X': 0.3435939848423004, 'Y': 0.34362736344337463},\n", " {'X': 0.12761986255645752, 'Y': 0.34339481592178345}]},\n", " 'Confidence': 94.58015441894531},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 95.5},\n", " 'LabelDetection': {'Text': 'Loose Seams',\n", " 'Geometry': {'BoundingBox': {'Width': 0.09154075384140015,\n", " 'Height': 0.011243871413171291,\n", " 'Left': 0.2909635007381439,\n", " 'Top': 0.42348718643188477},\n", " 'Polygon': [{'X': 0.2909635007381439, 'Y': 0.42348718643188477},\n", " {'X': 0.38244742155075073, 'Y': 0.4235154092311859},\n", " {'X': 0.38250425457954407, 'Y': 0.43473106622695923},\n", " {'X': 0.29102155566215515, 'Y': 0.4347127377986908}]},\n", " 'Confidence': 95.17913055419922},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.014086964540183544,\n", " 'Height': 0.009878362528979778,\n", " 'Left': 0.27309396862983704,\n", " 'Top': 0.42410069704055786},\n", " 'Polygon': [{'X': 0.27309396862983704, 'Y': 0.42410069704055786},\n", " {'X': 0.28712984919548035, 'Y': 0.4241049289703369},\n", " {'X': 0.28718096017837524, 'Y': 0.4339790642261505},\n", " {'X': 0.27314522862434387, 'Y': 0.4339761435985565}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 95.0},\n", " 'LabelDetection': {'Text': 'Permanent Shading',\n", " 'Geometry': {'BoundingBox': {'Width': 0.13924720883369446,\n", " 'Height': 0.012071557343006134,\n", " 'Left': 0.0985599234700203,\n", " 'Top': 0.43874838948249817},\n", " 'Polygon': [{'X': 0.0985599234700203, 'Y': 0.43874838948249817},\n", " {'X': 0.23774413764476776, 'Y': 0.4387708604335785},\n", " {'X': 0.23780712485313416, 'Y': 0.4508199393749237},\n", " {'X': 0.0986248254776001, 'Y': 0.4508135914802551}]},\n", " 'Confidence': 94.83258819580078},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.014641131274402142,\n", " 'Height': 0.009928502142429352,\n", " 'Left': 0.08259167522192001,\n", " 'Top': 0.43825197219848633},\n", " 'Polygon': [{'X': 0.08259167522192001, 'Y': 0.43825197219848633},\n", " {'X': 0.09717939794063568, 'Y': 0.43825438618659973},\n", " {'X': 0.09723281115293503, 'Y': 0.4481804668903351},\n", " {'X': 0.08264525979757309, 'Y': 0.4481794238090515}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 95.0},\n", " 'LabelDetection': {'Text': 'Allergy Concerns',\n", " 'Geometry': {'BoundingBox': {'Width': 0.11545991897583008,\n", " 'Height': 0.012368067167699337,\n", " 'Left': 0.28926894068717957,\n", " 'Top': 0.39615729451179504},\n", " 'Polygon': [{'X': 0.28926894068717957, 'Y': 0.39615729451179504},\n", " {'X': 0.4046667814254761, 'Y': 0.3962232172489166},\n", " {'X': 0.40472885966300964, 'Y': 0.40852534770965576},\n", " {'X': 0.28933262825012207, 'Y': 0.40847310423851013}]},\n", " 'Confidence': 91.31575775146484},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.013979844748973846,\n", " 'Height': 0.010146879591047764,\n", " 'Left': 0.27254408597946167,\n", " 'Top': 0.39582815766334534},\n", " 'Polygon': [{'X': 0.27254408597946167, 'Y': 0.39582815766334534},\n", " {'X': 0.2864714562892914, 'Y': 0.3958361744880676},\n", " {'X': 0.2865239381790161, 'Y': 0.4059750437736511},\n", " {'X': 0.27259671688079834, 'Y': 0.40596839785575867}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 93.0},\n", " 'LabelDetection': {'Text': 'Excessive Wear',\n", " 'Geometry': {'BoundingBox': {'Width': 0.10464227199554443,\n", " 'Height': 0.01053692027926445,\n", " 'Left': 0.0990402102470398,\n", " 'Top': 0.4101735055446625},\n", " 'Polygon': [{'X': 0.0990402102470398, 'Y': 0.4101735055446625},\n", " {'X': 0.20362724363803864, 'Y': 0.41021907329559326},\n", " {'X': 0.20368248224258423, 'Y': 0.42071041464805603},\n", " {'X': 0.09909669309854507, 'Y': 0.4206753969192505}]},\n", " 'Confidence': 92.89436340332031},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.01583889126777649,\n", " 'Height': 0.01004171371459961,\n", " 'Left': 0.08204009383916855,\n", " 'Top': 0.4095456898212433},\n", " 'Polygon': [{'X': 0.08204009383916855, 'Y': 0.4095456898212433},\n", " {'X': 0.09782499074935913, 'Y': 0.409552663564682},\n", " {'X': 0.09787898510694504, 'Y': 0.4195874035358429},\n", " {'X': 0.08209425956010818, 'Y': 0.41958194971084595}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 92.5},\n", " 'LabelDetection': {'Text': 'Time',\n", " 'Geometry': {'BoundingBox': {'Width': 0.02681553363800049,\n", " 'Height': 0.010385806672275066,\n", " 'Left': 0.659330427646637,\n", " 'Top': 0.3567666709423065},\n", " 'Polygon': [{'X': 0.659330427646637, 'Y': 0.3567666709423065},\n", " {'X': 0.6860969066619873, 'Y': 0.3567921817302704},\n", " {'X': 0.6861459612846375, 'Y': 0.36715248227119446},\n", " {'X': 0.6593798398971558, 'Y': 0.3671296536922455}]},\n", " 'Confidence': 92.33248901367188},\n", " 'ValueDetection': {'Text': '12.30 P.M.',\n", " 'Geometry': {'BoundingBox': {'Width': 0.1608247458934784,\n", " 'Height': 0.019669130444526672,\n", " 'Left': 0.6893413662910461,\n", " 'Top': 0.350131094455719},\n", " 'Polygon': [{'X': 0.6893413662910461, 'Y': 0.350131094455719},\n", " {'X': 0.8500771522521973, 'Y': 0.35029467940330505},\n", " {'X': 0.8501660823822021, 'Y': 0.36980023980140686},\n", " {'X': 0.6894338726997375, 'Y': 0.3696669638156891}]},\n", " 'Confidence': 91.03388214111328},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 92.0},\n", " 'LabelDetection': {'Text': 'Cleaning Tech',\n", " 'Geometry': {'BoundingBox': {'Width': 0.11247267574071884,\n", " 'Height': 0.015330612659454346,\n", " 'Left': 0.5303084850311279,\n", " 'Top': 0.8699572086334229},\n", " 'Polygon': [{'X': 0.5303084850311279, 'Y': 0.8704065084457397},\n", " {'X': 0.6427100300788879, 'Y': 0.8699572086334229},\n", " {'X': 0.6427811980247498, 'Y': 0.8848223686218262},\n", " {'X': 0.5303815603256226, 'Y': 0.8852878212928772}]},\n", " 'Confidence': 90.90103912353516},\n", " 'ValueDetection': {'Text': 'JOHN LEWIS',\n", " 'Geometry': {'BoundingBox': {'Width': 0.1771693378686905,\n", " 'Height': 0.026054145768284798,\n", " 'Left': 0.6595302224159241,\n", " 'Top': 0.858439028263092},\n", " 'Polygon': [{'X': 0.6595302224159241, 'Y': 0.8591284155845642},\n", " {'X': 0.83658367395401, 'Y': 0.858439028263092},\n", " {'X': 0.8366995453834534, 'Y': 0.8837604522705078},\n", " {'X': 0.6596512198448181, 'Y': 0.8844931721687317}]},\n", " 'Confidence': 91.7969970703125},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 91.0},\n", " 'LabelDetection': {'Text': 'Cellular',\n", " 'Geometry': {'BoundingBox': {'Width': 0.045506563037633896,\n", " 'Height': 0.009642691351473331,\n", " 'Left': 0.6373825669288635,\n", " 'Top': 0.33319979906082153},\n", " 'Polygon': [{'X': 0.6373825669288635, 'Y': 0.33319979906082153},\n", " {'X': 0.6828436851501465, 'Y': 0.3332534432411194},\n", " {'X': 0.6828891634941101, 'Y': 0.3428424894809723},\n", " {'X': 0.6374285221099854, 'Y': 0.3427930176258087}]},\n", " 'Confidence': 90.93302154541016},\n", " 'ValueDetection': {'Text': '683-426-2200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.21450038254261017,\n", " 'Height': 0.018960552290081978,\n", " 'Left': 0.6977348923683167,\n", " 'Top': 0.3263414204120636},\n", " 'Polygon': [{'X': 0.6977348923683167, 'Y': 0.3263414204120636},\n", " {'X': 0.9121513366699219, 'Y': 0.3266088664531708},\n", " {'X': 0.9122353196144104, 'Y': 0.3453019857406616},\n", " {'X': 0.6978234052658081, 'Y': 0.34507331252098083}]},\n", " 'Confidence': 90.27494812011719},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 90.5},\n", " 'LabelDetection': {'Text': 'Customer',\n", " 'Geometry': {'BoundingBox': {'Width': 0.08403262495994568,\n", " 'Height': 0.014190987683832645,\n", " 'Left': 0.0689774751663208,\n", " 'Top': 0.882927656173706},\n", " 'Polygon': [{'X': 0.0689774751663208, 'Y': 0.883272111415863},\n", " {'X': 0.15293645858764648, 'Y': 0.882927656173706},\n", " {'X': 0.15301010012626648, 'Y': 0.8967629671096802},\n", " {'X': 0.06905244290828705, 'Y': 0.8971186280250549}]},\n", " 'Confidence': 90.06220245361328},\n", " 'ValueDetection': {'Text': 'ELIZABETH CAMPBELL',\n", " 'Geometry': {'BoundingBox': {'Width': 0.29250043630599976,\n", " 'Height': 0.022797495126724243,\n", " 'Left': 0.16023072600364685,\n", " 'Top': 0.870701789855957},\n", " 'Polygon': [{'X': 0.16023072600364685, 'Y': 0.8718706369400024},\n", " {'X': 0.4526234269142151, 'Y': 0.870701789855957},\n", " {'X': 0.4527311623096466, 'Y': 0.8922697901725769},\n", " {'X': 0.1603456735610962, 'Y': 0.8934993147850037}]},\n", " 'Confidence': 88.27864837646484},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 89.0},\n", " 'LabelDetection': {'Text': 'Laminate Floor Concerns',\n", " 'Geometry': {'BoundingBox': {'Width': 0.17273929715156555,\n", " 'Height': 0.010896960273385048,\n", " 'Left': 0.28804612159729004,\n", " 'Top': 0.4380652606487274},\n", " 'Polygon': [{'X': 0.28804612159729004, 'Y': 0.4380652606487274},\n", " {'X': 0.46073126792907715, 'Y': 0.4380943477153778},\n", " {'X': 0.4607854187488556, 'Y': 0.4489622414112091},\n", " {'X': 0.2881024479866028, 'Y': 0.44895124435424805}]},\n", " 'Confidence': 88.91796112060547},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.013887431472539902,\n", " 'Height': 0.00963879656046629,\n", " 'Left': 0.274356871843338,\n", " 'Top': 0.4379328787326813},\n", " 'Polygon': [{'X': 0.274356871843338, 'Y': 0.4379328787326813},\n", " {'X': 0.288194477558136, 'Y': 0.4379352033138275},\n", " {'X': 0.2882443070411682, 'Y': 0.44757166504859924},\n", " {'X': 0.27440688014030457, 'Y': 0.4475705921649933}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 88.5},\n", " 'LabelDetection': {'Text': 'Work',\n", " 'Geometry': {'BoundingBox': {'Width': 0.03447243198752403,\n", " 'Height': 0.010814260691404343,\n", " 'Left': 0.36020827293395996,\n", " 'Top': 0.3312617838382721},\n", " 'Polygon': [{'X': 0.36020827293395996, 'Y': 0.3312617838382721},\n", " {'X': 0.3946262300014496, 'Y': 0.3313029408454895},\n", " {'X': 0.3946807086467743, 'Y': 0.34207603335380554},\n", " {'X': 0.3602631688117981, 'Y': 0.34203845262527466}]},\n", " 'Confidence': 87.25090026855469},\n", " 'ValueDetection': {'Text': '726-448-6720',\n", " 'Geometry': {'BoundingBox': {'Width': 0.20375339686870575,\n", " 'Height': 0.016855981200933456,\n", " 'Left': 0.40063172578811646,\n", " 'Top': 0.3286469280719757},\n", " 'Polygon': [{'X': 0.40063172578811646, 'Y': 0.3286469280719757},\n", " {'X': 0.6043049693107605, 'Y': 0.3288957476615906},\n", " {'X': 0.6043851375579834, 'Y': 0.34550291299819946},\n", " {'X': 0.40071573853492737, 'Y': 0.3452867567539215}]},\n", " 'Confidence': 88.27705383300781},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 86.0},\n", " 'LabelDetection': {'Text': 'Soiled Furniture',\n", " 'Geometry': {'BoundingBox': {'Width': 0.1096150204539299,\n", " 'Height': 0.010698831640183926,\n", " 'Left': 0.2868221700191498,\n", " 'Top': 0.4100326895713806},\n", " 'Polygon': [{'X': 0.2868221700191498, 'Y': 0.4100326895713806},\n", " {'X': 0.3963833749294281, 'Y': 0.4100806713104248},\n", " {'X': 0.3964371979236603, 'Y': 0.4207315444946289},\n", " {'X': 0.2868773341178894, 'Y': 0.4206947982311249}]},\n", " 'Confidence': 85.47489166259766},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.014085855334997177,\n", " 'Height': 0.009900099597871304,\n", " 'Left': 0.2727871239185333,\n", " 'Top': 0.409950852394104},\n", " 'Polygon': [{'X': 0.2727871239185333, 'Y': 0.409950852394104},\n", " {'X': 0.28682178258895874, 'Y': 0.40995699167251587},\n", " {'X': 0.2868729829788208, 'Y': 0.4198509454727173},\n", " {'X': 0.2728384733200073, 'Y': 0.4198461174964905}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 85.5},\n", " 'LabelDetection': {'Text': 'Day',\n", " 'Geometry': {'BoundingBox': {'Width': 0.023388784378767014,\n", " 'Height': 0.01174582913517952,\n", " 'Left': 0.3718755841255188,\n", " 'Top': 0.35564300417900085},\n", " 'Polygon': [{'X': 0.3718755841255188, 'Y': 0.35564300417900085},\n", " {'X': 0.3952050805091858, 'Y': 0.3556654453277588},\n", " {'X': 0.3952643573284149, 'Y': 0.36738884449005127},\n", " {'X': 0.3719351589679718, 'Y': 0.36736905574798584}]},\n", " 'Confidence': 83.72608947753906},\n", " 'ValueDetection': {'Text': 'Wednesday',\n", " 'Geometry': {'BoundingBox': {'Width': 0.1386369913816452,\n", " 'Height': 0.024107282981276512,\n", " 'Left': 0.3993149697780609,\n", " 'Top': 0.34607401490211487},\n", " 'Polygon': [{'X': 0.3993149697780609, 'Y': 0.34607401490211487},\n", " {'X': 0.5378345847129822, 'Y': 0.3462199866771698},\n", " {'X': 0.5379520058631897, 'Y': 0.37018129229545593},\n", " {'X': 0.39943617582321167, 'Y': 0.370067298412323}]},\n", " 'Confidence': 85.09841918945312},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 82.5},\n", " 'LabelDetection': {'Text': 'City',\n", " 'Geometry': {'BoundingBox': {'Width': 0.025909116491675377,\n", " 'Height': 0.012501001358032227,\n", " 'Left': 0.6205770373344421,\n", " 'Top': 0.30859360098838806},\n", " 'Polygon': [{'X': 0.6205770373344421, 'Y': 0.30859360098838806},\n", " {'X': 0.6464265584945679, 'Y': 0.30863022804260254},\n", " {'X': 0.6464861631393433, 'Y': 0.3210946023464203},\n", " {'X': 0.6206369996070862, 'Y': 0.32106107473373413}]},\n", " 'Confidence': 82.48185729980469},\n", " 'ValueDetection': {'Text': 'NEX YORK',\n", " 'Geometry': {'BoundingBox': {'Width': 0.14043879508972168,\n", " 'Height': 0.022677812725305557,\n", " 'Left': 0.6687309741973877,\n", " 'Top': 0.3000532388687134},\n", " 'Polygon': [{'X': 0.6687309741973877, 'Y': 0.3000532388687134},\n", " {'X': 0.8090663552284241, 'Y': 0.30026382207870483},\n", " {'X': 0.8091697692871094, 'Y': 0.32273104786872864},\n", " {'X': 0.6688379645347595, 'Y': 0.3225509226322174}]},\n", " 'Confidence': 77.6738052368164},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 76.0},\n", " 'LabelDetection': {'Text': 'Other',\n", " 'Geometry': {'BoundingBox': {'Width': 0.038350123912096024,\n", " 'Height': 0.01023342739790678,\n", " 'Left': 0.5778354406356812,\n", " 'Top': 0.9006713032722473},\n", " 'Polygon': [{'X': 0.5778354406356812, 'Y': 0.9008357524871826},\n", " {'X': 0.6161370873451233, 'Y': 0.9006713032722473},\n", " {'X': 0.6161856055259705, 'Y': 0.910736620426178},\n", " {'X': 0.5778843760490417, 'Y': 0.9109047651290894}]},\n", " 'Confidence': 75.64922332763672},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.10774315148591995,\n", " 'Height': 0.014557065442204475,\n", " 'Left': 0.618475079536438,\n", " 'Top': 0.8954559564590454},\n", " 'Polygon': [{'X': 0.618475079536438, 'Y': 0.8959132432937622},\n", " {'X': 0.7261521220207214, 'Y': 0.8954559564590454},\n", " {'X': 0.7262182831764221, 'Y': 0.9095410704612732},\n", " {'X': 0.6185429692268372, 'Y': 0.9100130200386047}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 72.5},\n", " 'LabelDetection': {'Text': 'Late Fee',\n", " 'Geometry': {'BoundingBox': {'Width': 0.05245355889201164,\n", " 'Height': 0.010045165196061134,\n", " 'Left': 0.7530027031898499,\n", " 'Top': 0.8006049990653992},\n", " 'Polygon': [{'X': 0.7530027031898499, 'Y': 0.8007797598838806},\n", " {'X': 0.8054107427597046, 'Y': 0.8006049990653992},\n", " {'X': 0.805456280708313, 'Y': 0.810470461845398},\n", " {'X': 0.7530487775802612, 'Y': 0.8106501698493958}]},\n", " 'Confidence': 71.52510833740234},\n", " 'ValueDetection': {'Text': '5.00 00',\n", " 'Geometry': {'BoundingBox': {'Width': 0.102896548807621,\n", " 'Height': 0.018782688304781914,\n", " 'Left': 0.8197110891342163,\n", " 'Top': 0.7978001236915588},\n", " 'Polygon': [{'X': 0.8197110891342163, 'Y': 0.7981404662132263},\n", " {'X': 0.9225250482559204, 'Y': 0.7978001236915588},\n", " {'X': 0.9226076602935791, 'Y': 0.8162241578102112},\n", " {'X': 0.8197958469390869, 'Y': 0.8165827989578247}]},\n", " 'Confidence': 72.34652709960938},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 65.5},\n", " 'LabelDetection': {'Text': 'Pet Odors',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07304596155881882,\n", " 'Height': 0.011095465160906315,\n", " 'Left': 0.09350176900625229,\n", " 'Top': 0.3958131670951843},\n", " 'Polygon': [{'X': 0.09350176900625229, 'Y': 0.3958131670951843},\n", " {'X': 0.16648907959461212, 'Y': 0.39585503935813904},\n", " {'X': 0.1665477305650711, 'Y': 0.40690866112709045},\n", " {'X': 0.0935613289475441, 'Y': 0.40687453746795654}]},\n", " 'Confidence': 64.05148315429688},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.015264553017914295,\n", " 'Height': 0.01028513628989458,\n", " 'Left': 0.08149563521146774,\n", " 'Top': 0.39627742767333984},\n", " 'Polygon': [{'X': 0.08149563521146774, 'Y': 0.39627742767333984},\n", " {'X': 0.0967048853635788, 'Y': 0.39628610014915466},\n", " {'X': 0.09676019102334976, 'Y': 0.40656256675720215},\n", " {'X': 0.08155111223459244, 'Y': 0.4065554141998291}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 62.5},\n", " 'LabelDetection': {'Text': 'E-Mail\"',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04665113240480423,\n", " 'Height': 0.010710757225751877,\n", " 'Left': 0.5200080275535583,\n", " 'Top': 0.282549649477005},\n", " 'Polygon': [{'X': 0.5200080275535583, 'Y': 0.282549649477005},\n", " {'X': 0.5666074156761169, 'Y': 0.28262731432914734},\n", " {'X': 0.566659152507782, 'Y': 0.293260395526886},\n", " {'X': 0.5200603604316711, 'Y': 0.2931874990463257}]},\n", " 'Confidence': 53.310401916503906},\n", " 'ValueDetection': {'Text': 'vilcomp@gmail.com',\n", " 'Geometry': {'BoundingBox': {'Width': 0.251456081867218,\n", " 'Height': 0.019417790696024895,\n", " 'Left': 0.5722715258598328,\n", " 'Top': 0.2792922258377075},\n", " 'Polygon': [{'X': 0.5722715258598328, 'Y': 0.2792922258377075},\n", " {'X': 0.8236405253410339, 'Y': 0.27971941232681274},\n", " {'X': 0.8237276077270508, 'Y': 0.29871001839637756},\n", " {'X': 0.572364091873169, 'Y': 0.2983289957046509}]},\n", " 'Confidence': 60.13902282714844},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 54.000003814697266},\n", " 'LabelDetection': {'Text': 'Special Instructions or Directions:',\n", " 'Geometry': {'BoundingBox': {'Width': 0.225040003657341,\n", " 'Height': 0.012653539888560772,\n", " 'Left': 0.5206770300865173,\n", " 'Top': 0.38298773765563965},\n", " 'Polygon': [{'X': 0.5206770300865173, 'Y': 0.38298773765563965},\n", " {'X': 0.7456586360931396, 'Y': 0.3831450641155243},\n", " {'X': 0.7457170486450195, 'Y': 0.3956412672996521},\n", " {'X': 0.5207386016845703, 'Y': 0.39551106095314026}]},\n", " 'Confidence': 53.9756965637207},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.4266812801361084,\n", " 'Height': 0.05497416481375694,\n", " 'Left': 0.49419888854026794,\n", " 'Top': 0.3973137438297272},\n", " 'Polygon': [{'X': 0.49419888854026794, 'Y': 0.3973137438297272},\n", " {'X': 0.9206348061561584, 'Y': 0.39755305647850037},\n", " {'X': 0.920880138874054, 'Y': 0.4522879123687744},\n", " {'X': 0.49447083473205566, 'Y': 0.452274352312088}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'TOTAL', 'Confidence': 99.76947784423828},\n", " 'LabelDetection': {'Text': 'TOTAL',\n", " 'Geometry': {'BoundingBox': {'Width': 0.05073551461100578,\n", " 'Height': 0.011950855143368244,\n", " 'Left': 0.753889262676239,\n", " 'Top': 0.8247276544570923},\n", " 'Polygon': [{'X': 0.753889262676239, 'Y': 0.824908435344696},\n", " {'X': 0.8045705556869507, 'Y': 0.8247276544570923},\n", " {'X': 0.8046247959136963, 'Y': 0.8364920020103455},\n", " {'X': 0.7539442181587219, 'Y': 0.8366785049438477}]},\n", " 'Confidence': 98.64350128173828},\n", " 'ValueDetection': {'Text': '450 00',\n", " 'Geometry': {'BoundingBox': {'Width': 0.11582565307617188,\n", " 'Height': 0.020770881325006485,\n", " 'Left': 0.8102607727050781,\n", " 'Top': 0.8224866986274719},\n", " 'Polygon': [{'X': 0.8102607727050781, 'Y': 0.8228974938392639},\n", " {'X': 0.9259952902793884, 'Y': 0.8224866986274719},\n", " {'X': 0.92608642578125, 'Y': 0.8428241014480591},\n", " {'X': 0.8103545308113098, 'Y': 0.8432576060295105}]},\n", " 'Confidence': 99.65402221679688},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'RECEIVER_ADDRESS', 'Confidence': 95.90914916992188},\n", " 'LabelDetection': {'Text': 'Address',\n", " 'Geometry': {'BoundingBox': {'Width': 0.053993821144104004,\n", " 'Height': 0.009652351029217243,\n", " 'Left': 0.07546723634004593,\n", " 'Top': 0.30529722571372986},\n", " 'Polygon': [{'X': 0.07546723634004593, 'Y': 0.30529722571372986},\n", " {'X': 0.12940987944602966, 'Y': 0.30537497997283936},\n", " {'X': 0.12946105003356934, 'Y': 0.31494957208633423},\n", " {'X': 0.07551900297403336, 'Y': 0.3148767352104187}]},\n", " 'Confidence': 95.75353240966797},\n", " 'ValueDetection': {'Text': '90 OLD HICKORY BLVD',\n", " 'Geometry': {'BoundingBox': {'Width': 0.3442087769508362,\n", " 'Height': 0.02733050473034382,\n", " 'Left': 0.14412643015384674,\n", " 'Top': 0.29719048738479614},\n", " 'Polygon': [{'X': 0.14412643015384674, 'Y': 0.29719048738479614},\n", " {'X': 0.48820242285728455, 'Y': 0.29771366715431213},\n", " {'X': 0.4883352220058441, 'Y': 0.324521005153656},\n", " {'X': 0.14426976442337036, 'Y': 0.32408666610717773}]},\n", " 'Confidence': 95.65865325927734},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'INVOICE_RECEIPT_DATE', 'Confidence': 99.79714965820312},\n", " 'LabelDetection': {'Text': 'Date',\n", " 'Geometry': {'BoundingBox': {'Width': 0.03216955438256264,\n", " 'Height': 0.010518710128962994,\n", " 'Left': 0.07637345790863037,\n", " 'Top': 0.35410577058792114},\n", " 'Polygon': [{'X': 0.07637345790863037, 'Y': 0.35410577058792114},\n", " {'X': 0.10848671942949295, 'Y': 0.35413703322410583},\n", " {'X': 0.1085430160164833, 'Y': 0.3646245002746582},\n", " {'X': 0.07643014192581177, 'Y': 0.3645964562892914}]},\n", " 'Confidence': 99.3871841430664},\n", " 'ValueDetection': {'Text': '04/23/2020',\n", " 'Geometry': {'BoundingBox': {'Width': 0.19812610745429993,\n", " 'Height': 0.022963088005781174,\n", " 'Left': 0.11229494959115982,\n", " 'Top': 0.34593334794044495},\n", " 'Polygon': [{'X': 0.11229494959115982, 'Y': 0.34593334794044495},\n", " {'X': 0.3103039264678955, 'Y': 0.3461417257785797},\n", " {'X': 0.31042104959487915, 'Y': 0.3688964545726776},\n", " {'X': 0.11241724342107773, 'Y': 0.36873140931129456}]},\n", " 'Confidence': 96.017333984375},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'TAX', 'Confidence': 99.81538391113281},\n", " 'LabelDetection': {'Text': 'Sales Tax',\n", " 'Geometry': {'BoundingBox': {'Width': 0.05706123635172844,\n", " 'Height': 0.009684447199106216,\n", " 'Left': 0.752395510673523,\n", " 'Top': 0.7762940526008606},\n", " 'Polygon': [{'X': 0.752395510673523, 'Y': 0.7764707207679749},\n", " {'X': 0.809412956237793, 'Y': 0.7762940526008606},\n", " {'X': 0.8094567060470581, 'Y': 0.7857965230941772},\n", " {'X': 0.7524398565292358, 'Y': 0.7859784960746765}]},\n", " 'Confidence': 99.48528289794922},\n", " 'ValueDetection': {'Text': '1445.0 00',\n", " 'Geometry': {'BoundingBox': {'Width': 0.11331885308027267,\n", " 'Height': 0.024326913058757782,\n", " 'Left': 0.8112874627113342,\n", " 'Top': 0.7705132365226746},\n", " 'Polygon': [{'X': 0.8112874627113342, 'Y': 0.7708581686019897},\n", " {'X': 0.924498975276947, 'Y': 0.7705132365226746},\n", " {'X': 0.9246063232421875, 'Y': 0.7944690585136414},\n", " {'X': 0.8113978505134583, 'Y': 0.7948401570320129}]},\n", " 'Confidence': 99.66134643554688},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 90.92475128173828},\n", " 'LabelDetection': {'Text': 'Phone',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04250941425561905,\n", " 'Height': 0.009687976911664009,\n", " 'Left': 0.7301319241523743,\n", " 'Top': 0.8958988785743713},\n", " 'Polygon': [{'X': 0.7301319241523743, 'Y': 0.8960794806480408},\n", " {'X': 0.7725971341133118, 'Y': 0.8958988785743713},\n", " {'X': 0.7726413011550903, 'Y': 0.9054023623466492},\n", " {'X': 0.7301765084266663, 'Y': 0.905586838722229}]},\n", " 'Confidence': 89.14117431640625},\n", " 'ValueDetection': {'Text': '626-200-4890',\n", " 'Geometry': {'BoundingBox': {'Width': 0.20498627424240112,\n", " 'Height': 0.028003590181469917,\n", " 'Left': 0.7725487947463989,\n", " 'Top': 0.8846393823623657},\n", " 'Polygon': [{'X': 0.7725487947463989, 'Y': 0.8854900598526001},\n", " {'X': 0.9774152040481567, 'Y': 0.8846393823623657},\n", " {'X': 0.9775350689888, 'Y': 0.9117385149002075},\n", " {'X': 0.7726749777793884, 'Y': 0.9126429557800293}]},\n", " 'Confidence': 90.69705200195312},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 96.4910659790039},\n", " 'LabelDetection': {'Text': 'Name',\n", " 'Geometry': {'BoundingBox': {'Width': 0.039872702211141586,\n", " 'Height': 0.009643582627177238,\n", " 'Left': 0.07532918453216553,\n", " 'Top': 0.279750794172287},\n", " 'Polygon': [{'X': 0.07532918453216553, 'Y': 0.279750794172287},\n", " {'X': 0.1151505559682846, 'Y': 0.27981796860694885},\n", " {'X': 0.11520189046859741, 'Y': 0.2893943786621094},\n", " {'X': 0.07538095861673355, 'Y': 0.2893308699131012}]},\n", " 'Confidence': 96.34061431884766},\n", " 'ValueDetection': {'Text': 'ELIZABETH CAMPBELL',\n", " 'Geometry': {'BoundingBox': {'Width': 0.35332366824150085,\n", " 'Height': 0.031524498015642166,\n", " 'Left': 0.1202450692653656,\n", " 'Top': 0.27207455039024353},\n", " 'Polygon': [{'X': 0.1202450692653656, 'Y': 0.27207455039024353},\n", " {'X': 0.47341516613960266, 'Y': 0.2726965844631195},\n", " {'X': 0.47356873750686646, 'Y': 0.3035990595817566},\n", " {'X': 0.12041110545396805, 'Y': 0.303082138299942}]},\n", " 'Confidence': 95.9389877319336},\n", " 'PageNumber': 1}],\n", " 'LineItemGroups': [{'LineItemGroupIndex': 1,\n", " 'LineItems': [{'LineItemExpenseFields': [{'Type': {'Text': 'ITEM',\n", " 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'Pet odors',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368755340576172,\n", " 'Height': 0.023374218493700027,\n", " 'Left': 0.07752513885498047,\n", " 'Top': 0.47615158557891846},\n", " 'Polygon': [{'X': 0.07752513885498047, 'Y': 0.47629809379577637},\n", " {'X': 0.8142945766448975, 'Y': 0.47615158557891846},\n", " {'X': 0.8144006729125977, 'Y': 0.49921509623527527},\n", " {'X': 0.07765062898397446, 'Y': 0.4995258152484894}]},\n", " 'Confidence': 99.95892333984375},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '50',\n", " 'Geometry': {'BoundingBox': {'Width': 0.0722079947590828,\n", " 'Height': 0.02307785488665104,\n", " 'Left': 0.8142945766448975,\n", " 'Top': 0.47613725066185},\n", " 'Polygon': [{'X': 0.8142945766448975, 'Y': 0.47615158557891846},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8865025639533997, 'Y': 0.4991846978664398},\n", " {'X': 0.8144006729125977, 'Y': 0.49921509623527527}]},\n", " 'Confidence': 99.98512268066406},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04211711138486862,\n", " 'Height': 0.023055803030729294,\n", " 'Left': 0.886398434638977,\n", " 'Top': 0.4761289060115814},\n", " 'Polygon': [{'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.9285155534744263, 'Y': 0.49916699528694153},\n", " {'X': 0.8865026235580444, 'Y': 0.4991846978664398}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'Pet odors 50',\n", " 'Geometry': {'BoundingBox': {'Width': 0.850990355014801,\n", " 'Height': 0.023396912962198257,\n", " 'Left': 0.07752513885498047,\n", " 'Top': 0.4761289060115814},\n", " 'Polygon': [{'X': 0.07752513885498047, 'Y': 0.47629809379577637},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.9285155534744263, 'Y': 0.49916699528694153},\n", " {'X': 0.07765062898397446, 'Y': 0.4995258152484894}]},\n", " 'Confidence': 99.96765899658203},\n", " 'PageNumber': 1}]},\n", " {'LineItemExpenseFields': [{'Type': {'Text': 'ITEM', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'Food Stains',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368581891059875,\n", " 'Height': 0.02399268001317978,\n", " 'Left': 0.07765062898397446,\n", " 'Top': 0.49921512603759766},\n", " 'Polygon': [{'X': 0.07765062898397446, 'Y': 0.4995258152484894},\n", " {'X': 0.8144006729125977, 'Y': 0.49921512603759766},\n", " {'X': 0.8145087957382202, 'Y': 0.5227296948432922},\n", " {'X': 0.07777857780456543, 'Y': 0.5232077836990356}]},\n", " 'Confidence': 99.95933532714844},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '45',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07220814377069473,\n", " 'Height': 0.02354499325156212,\n", " 'Left': 0.8144006729125977,\n", " 'Top': 0.4991847276687622},\n", " 'Polygon': [{'X': 0.8144006729125977, 'Y': 0.49921512603759766},\n", " {'X': 0.8865025639533997, 'Y': 0.4991847276687622},\n", " {'X': 0.8866088390350342, 'Y': 0.5226829051971436},\n", " {'X': 0.8145087957382202, 'Y': 0.5227296948432922}]},\n", " 'Confidence': 99.9857177734375},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04211802780628204,\n", " 'Height': 0.02351592294871807,\n", " 'Left': 0.8865026235580444,\n", " 'Top': 0.49916699528694153},\n", " 'Polygon': [{'X': 0.8865026235580444, 'Y': 0.4991847276687622},\n", " {'X': 0.9285155534744263, 'Y': 0.49916699528694153},\n", " {'X': 0.9286206364631653, 'Y': 0.5226556658744812},\n", " {'X': 0.8866088390350342, 'Y': 0.5226829051971436}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'Food Stains 45',\n", " 'Geometry': {'BoundingBox': {'Width': 0.8509699702262878,\n", " 'Height': 0.02404080517590046,\n", " 'Left': 0.07765062898397446,\n", " 'Top': 0.49916699528694153},\n", " 'Polygon': [{'X': 0.07765062898397446, 'Y': 0.4995258152484894},\n", " {'X': 0.9285155534744263, 'Y': 0.49916699528694153},\n", " {'X': 0.9286206364631653, 'Y': 0.5226556658744812},\n", " {'X': 0.07777857780456543, 'Y': 0.5232077836990356}]},\n", " 'Confidence': 99.96813201904297},\n", " 'PageNumber': 1}]},\n", " {'LineItemExpenseFields': [{'Type': {'Text': 'ITEM', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'Steam cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368404865264893,\n", " 'Height': 0.02461421862244606,\n", " 'Left': 0.07777857780456543,\n", " 'Top': 0.5227296948432922},\n", " 'Polygon': [{'X': 0.07777857780456543, 'Y': 0.5232077836990356},\n", " {'X': 0.8145087957382202, 'Y': 0.5227296948432922},\n", " {'X': 0.8146190643310547, 'Y': 0.5466952323913574},\n", " {'X': 0.07790897786617279, 'Y': 0.547343909740448}]},\n", " 'Confidence': 99.97703552246094},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '100',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07220825552940369,\n", " 'Height': 0.02401232160627842,\n", " 'Left': 0.8145087957382202,\n", " 'Top': 0.5226829051971436},\n", " 'Polygon': [{'X': 0.8145087957382202, 'Y': 0.5227296948432922},\n", " {'X': 0.8866088390350342, 'Y': 0.5226829051971436},\n", " {'X': 0.8867170810699463, 'Y': 0.5466317534446716},\n", " {'X': 0.8146190047264099, 'Y': 0.5466952323913574}]},\n", " 'Confidence': 99.98554992675781},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04211892560124397,\n", " 'Height': 0.023976100608706474,\n", " 'Left': 0.8866088390350342,\n", " 'Top': 0.5226556658744812},\n", " 'Polygon': [{'X': 0.8866088390350342, 'Y': 0.5226829051971436},\n", " {'X': 0.9286206364631653, 'Y': 0.5226556658744812},\n", " {'X': 0.9287277460098267, 'Y': 0.5465947985649109},\n", " {'X': 0.8867170810699463, 'Y': 0.5466317534446716}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'Steam cleaning 100',\n", " 'Geometry': {'BoundingBox': {'Width': 0.8509491682052612,\n", " 'Height': 0.024688269942998886,\n", " 'Left': 0.07777857780456543,\n", " 'Top': 0.5226556658744812},\n", " 'Polygon': [{'X': 0.07777857780456543, 'Y': 0.5232077836990356},\n", " {'X': 0.9286206364631653, 'Y': 0.5226556658744812},\n", " {'X': 0.9287277460098267, 'Y': 0.5465947985649109},\n", " {'X': 0.07790897786617279, 'Y': 0.547343909740448}]},\n", " 'Confidence': 99.97987365722656},\n", " 'PageNumber': 1}]},\n", " {'LineItemExpenseFields': [{'Type': {'Text': 'ITEM', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'Water Damage',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368161082267761,\n", " 'Height': 0.02387278899550438,\n", " 'Left': 0.07790897786617279,\n", " 'Top': 0.5466952323913574},\n", " 'Polygon': [{'X': 0.07790897786617279, 'Y': 0.547343909740448},\n", " {'X': 0.8146190643310547, 'Y': 0.5466952323913574},\n", " {'X': 0.8147251009941101, 'Y': 0.5697551965713501},\n", " {'X': 0.07803444564342499, 'Y': 0.5705680251121521}]},\n", " 'Confidence': 99.97860717773438},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '400',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07220220565795898,\n", " 'Height': 0.023123450577259064,\n", " 'Left': 0.8146190047264099,\n", " 'Top': 0.5466317534446716},\n", " 'Polygon': [{'X': 0.8146190047264099, 'Y': 0.5466952323913574},\n", " {'X': 0.8867170810699463, 'Y': 0.5466317534446716},\n", " {'X': 0.8868212103843689, 'Y': 0.569675624370575},\n", " {'X': 0.8147251009941101, 'Y': 0.5697551965713501}]},\n", " 'Confidence': 99.9887466430664},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.042113736271858215,\n", " 'Height': 0.023080894723534584,\n", " 'Left': 0.8867170810699463,\n", " 'Top': 0.5465947389602661},\n", " 'Polygon': [{'X': 0.8867170810699463, 'Y': 0.5466317534446716},\n", " {'X': 0.9287277460098267, 'Y': 0.5465947389602661},\n", " {'X': 0.9288308024406433, 'Y': 0.5696293115615845},\n", " {'X': 0.8868212699890137, 'Y': 0.569675624370575}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'Water Damage 400',\n", " 'Geometry': {'BoundingBox': {'Width': 0.8509218096733093,\n", " 'Height': 0.023973261937499046,\n", " 'Left': 0.07790897786617279,\n", " 'Top': 0.5465947389602661},\n", " 'Polygon': [{'X': 0.07790897786617279, 'Y': 0.547343909740448},\n", " {'X': 0.9287277460098267, 'Y': 0.5465947389602661},\n", " {'X': 0.9288308024406433, 'Y': 0.5696293115615845},\n", " {'X': 0.07803444564342499, 'Y': 0.5705680251121521}]},\n", " 'Confidence': 99.98198699951172},\n", " 'PageNumber': 1}]},\n", " {'LineItemExpenseFields': [{'Type': {'Text': 'ITEM', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'loose Repair\\nseams',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7367925047874451,\n", " 'Height': 0.023125097155570984,\n", " 'Left': 0.07803444564342499,\n", " 'Top': 0.5697551965713501},\n", " 'Polygon': [{'X': 0.07803444564342499, 'Y': 0.5705680251121521},\n", " {'X': 0.8147251009941101, 'Y': 0.5697551965713501},\n", " {'X': 0.8148269653320312, 'Y': 0.5919098258018494},\n", " {'X': 0.07815499603748322, 'Y': 0.5928803086280823}]},\n", " 'Confidence': 99.87442016601562},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219623029232025,\n", " 'Height': 0.02223413810133934,\n", " 'Left': 0.8147251009941101,\n", " 'Top': 0.5696756839752197},\n", " 'Polygon': [{'X': 0.8147251009941101, 'Y': 0.5697551965713501},\n", " {'X': 0.8868212103843689, 'Y': 0.5696756839752197},\n", " {'X': 0.8869212865829468, 'Y': 0.5918148159980774},\n", " {'X': 0.8148269653320312, 'Y': 0.5919098258018494}]},\n", " 'Confidence': 99.98649597167969},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210859164595604,\n", " 'Height': 0.022185510024428368,\n", " 'Left': 0.8868212699890137,\n", " 'Top': 0.5696293115615845},\n", " 'Polygon': [{'X': 0.8868212699890137, 'Y': 0.5696756839752197},\n", " {'X': 0.9288308024406433, 'Y': 0.5696293115615845},\n", " {'X': 0.9289298057556152, 'Y': 0.5917595028877258},\n", " {'X': 0.8869213461875916, 'Y': 0.5918148159980774}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'loose Repair\\nseams 200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.8508954048156738,\n", " 'Height': 0.023250995203852654,\n", " 'Left': 0.07803444564342499,\n", " 'Top': 0.5696293115615845},\n", " 'Polygon': [{'X': 0.07803444564342499, 'Y': 0.5705680251121521},\n", " {'X': 0.9288308024406433, 'Y': 0.5696293115615845},\n", " {'X': 0.9289298057556152, 'Y': 0.5917595028877258},\n", " {'X': 0.07815499603748322, 'Y': 0.5928803086280823}]},\n", " 'Confidence': 99.90242767333984},\n", " 'PageNumber': 1}]},\n", " {'LineItemExpenseFields': [{'Type': {'Text': 'ITEM', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'Tile cleaning repair',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7367738485336304,\n", " 'Height': 0.02328164130449295,\n", " 'Left': 0.07815499603748322,\n", " 'Top': 0.5919098258018494},\n", " 'Polygon': [{'X': 0.07815499603748322, 'Y': 0.5928803086280823},\n", " {'X': 0.8148269653320312, 'Y': 0.5919098258018494},\n", " {'X': 0.8149288892745972, 'Y': 0.6140632629394531},\n", " {'X': 0.07827553153038025, 'Y': 0.6151914596557617}]},\n", " 'Confidence': 99.86579132080078},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.0721944123506546,\n", " 'Height': 0.022248445078730583,\n", " 'Left': 0.8148269653320312,\n", " 'Top': 0.5918148159980774},\n", " 'Polygon': [{'X': 0.8148269653320312, 'Y': 0.5919098258018494},\n", " {'X': 0.8869212865829468, 'Y': 0.5918148159980774},\n", " {'X': 0.8870213627815247, 'Y': 0.6139528751373291},\n", " {'X': 0.8149288296699524, 'Y': 0.6140632629394531}]},\n", " 'Confidence': 99.98596954345703},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210752993822098,\n", " 'Height': 0.02219337783753872,\n", " 'Left': 0.8869213461875916,\n", " 'Top': 0.5917595028877258},\n", " 'Polygon': [{'X': 0.8869213461875916, 'Y': 0.5918148159980774},\n", " {'X': 0.9289298057556152, 'Y': 0.5917595028877258},\n", " {'X': 0.9290288686752319, 'Y': 0.6138885021209717},\n", " {'X': 0.8870214223861694, 'Y': 0.6139528751373291}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'Tile cleaning repair 200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.8508738279342651,\n", " 'Height': 0.023431962355971336,\n", " 'Left': 0.07815499603748322,\n", " 'Top': 0.5917595028877258},\n", " 'Polygon': [{'X': 0.07815499603748322, 'Y': 0.5928803086280823},\n", " {'X': 0.9289298057556152, 'Y': 0.5917595028877258},\n", " {'X': 0.9290288686752319, 'Y': 0.6138885021209717},\n", " {'X': 0.07827553153038025, 'Y': 0.6151914596557617}]},\n", " 'Confidence': 99.89582061767578},\n", " 'PageNumber': 1}]},\n", " {'LineItemExpenseFields': [{'Type': {'Text': 'ITEM', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': 'Carpet Cleaning',\n", " 'Geometry': {'BoundingBox': {'Width': 0.7368801832199097,\n", " 'Height': 0.020497675985097885,\n", " 'Left': 0.07741440832614899,\n", " 'Top': 0.45580044388771057},\n", " 'Polygon': [{'X': 0.07741440832614899, 'Y': 0.4558020830154419},\n", " {'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084},\n", " {'X': 0.07752513885498047, 'Y': 0.47629812359809875}]},\n", " 'Confidence': 74.46519470214844},\n", " 'ValueDetection': {'Text': 'Delivery cost',\n", " 'Geometry': {'BoundingBox': {'Width': 0.73675936460495,\n", " 'Height': 0.024348895996809006,\n", " 'Left': 0.07827553153038025,\n", " 'Top': 0.6140632629394531},\n", " 'Polygon': [{'X': 0.07827553153038025, 'Y': 0.6151914596557617},\n", " {'X': 0.8149288892745972, 'Y': 0.6140632629394531},\n", " {'X': 0.8150349259376526, 'Y': 0.6371198892593384},\n", " {'X': 0.07840099185705185, 'Y': 0.6384121775627136}]},\n", " 'Confidence': 99.94113159179688},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'PRICE', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '250',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219740748405457,\n", " 'Height': 0.020351318642497063,\n", " 'Left': 0.8142009973526001,\n", " 'Top': 0.45580029487609863},\n", " 'Polygon': [{'X': 0.8142009973526001, 'Y': 0.45580044388771057},\n", " {'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185},\n", " {'X': 0.8142945766448975, 'Y': 0.47615161538124084}]},\n", " 'Confidence': 74.48655700683594},\n", " 'ValueDetection': {'Text': '200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.07219667732715607,\n", " 'Height': 0.023167040199041367,\n", " 'Left': 0.8149288296699524,\n", " 'Top': 0.6139528751373291},\n", " 'Polygon': [{'X': 0.8149288296699524, 'Y': 0.6140632629394531},\n", " {'X': 0.8870213627815247, 'Y': 0.6139528751373291},\n", " {'X': 0.887125551700592, 'Y': 0.636993408203125},\n", " {'X': 0.8150349259376526, 'Y': 0.6371198892593384}]},\n", " 'Confidence': 99.97767639160156},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'OTHER', 'Confidence': 70.0},\n", " 'LabelDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.04210595414042473,\n", " 'Height': 0.020337073132395744,\n", " 'Left': 0.8863064646720886,\n", " 'Top': 0.4558001756668091},\n", " 'Polygon': [{'X': 0.8863064646720886, 'Y': 0.45580029487609863},\n", " {'X': 0.9283214807510376, 'Y': 0.4558001756668091},\n", " {'X': 0.9284124374389648, 'Y': 0.4761289060115814},\n", " {'X': 0.886398434638977, 'Y': 0.47613725066185}]},\n", " 'Confidence': 0.0},\n", " 'ValueDetection': {'Text': '',\n", " 'Geometry': {'BoundingBox': {'Width': 0.042110513895750046,\n", " 'Height': 0.02310490794479847,\n", " 'Left': 0.8870214223861694,\n", " 'Top': 0.6138885021209717},\n", " 'Polygon': [{'X': 0.8870214223861694, 'Y': 0.6139528751373291},\n", " {'X': 0.9290288686752319, 'Y': 0.6138885021209717},\n", " {'X': 0.9291319251060486, 'Y': 0.6369197368621826},\n", " {'X': 0.887125551700592, 'Y': 0.636993408203125}]},\n", " 'Confidence': 0.0},\n", " 'PageNumber': 1},\n", " {'Type': {'Text': 'EXPENSE_ROW', 'Confidence': 99.99797058105469},\n", " 'ValueDetection': {'Text': 'Delivery cost 200',\n", " 'Geometry': {'BoundingBox': {'Width': 0.850856363773346,\n", " 'Height': 0.02452363818883896,\n", " 'Left': 0.07827553153038025,\n", " 'Top': 0.6138885021209717},\n", " 'Polygon': [{'X': 0.07827553153038025, 'Y': 0.6151914596557617},\n", " {'X': 0.9290288686752319, 'Y': 0.6138885021209717},\n", " {'X': 0.9291319251060486, 'Y': 0.6369197368621826},\n", " {'X': 0.07840099185705185, 'Y': 0.6384121775627136}]},\n", " 'Confidence': 99.95330810546875},\n", " 'PageNumber': 1}]}]}]}" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "document.expense_documents[0].raw_object" ] }, { "cell_type": "markdown", "id": "ce8f609e", "metadata": {}, "source": [ "## Conclusion\n", "\n", "With Textractor, we strived to offer a tool that does most of the work, but also one that gets out of the way when you know better. If you find a Textractor object that does not have a `raw_object` property, open an issue on our official GitHub repository." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.10" } }, "nbformat": 4, "nbformat_minor": 5 }