File size: 15,892 Bytes
ed4561c
1
{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 640.0, "y": 0.0}, {"x": 640.0, "y": 640.0}, {"x": 0.0, "y": 640.0}]}], "spans": [{"offset": 0, "length": 1116}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 29296.0, "symbol": "Rs"}, "content": "Rs. 1,29,296.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 465.0}, {"x": 545.0, "y": 465.0}, {"x": 545.0, "y": 475.0}, {"x": 484.0, "y": 475.0}]}], "spans": [{"offset": 783, "length": 15}], "confidence": 0.597}, "BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Noida", "state": "Uttar Pradesh", "postal_code": "Sector-200", "country_region": null, "street_address": ""}, "content": "Sector-200, Noida, U.P.\nUttar Pradesh", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 212.0}, {"x": 190.0, "y": 212.0}, {"x": 190.0, "y": 234.0}, {"x": 96.0, "y": 234.0}]}], "spans": [{"offset": 146, "length": 37}], "confidence": 0.908}, "BillingAddressRecipient": {"value_type": "string", "value": "TechGuruPlus", "content": "TechGuruPlus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 200.0}, {"x": 155.0, "y": 199.0}, {"x": 155.0, "y": 209.0}, {"x": 98.0, "y": 209.0}]}], "spans": [{"offset": 133, "length": 12}], "confidence": 0.957}, "CustomerName": {"value_type": "string", "value": "TechGuruPlus", "content": "TechGuruPlus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 200.0}, {"x": 155.0, "y": 199.0}, {"x": 155.0, "y": 209.0}, {"x": 98.0, "y": 209.0}]}], "spans": [{"offset": 133, "length": 12}], "confidence": 0.957}, "CustomerTaxId": {"value_type": "string", "value": "6969696969696969", "content": "6969696969696969", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 387.0, "y": 248.0}, {"x": 464.0, "y": 248.0}, {"x": 464.0, "y": 257.0}, {"x": 387.0, "y": 257.0}]}], "spans": [{"offset": 314, "length": 16}], "confidence": 0.723}, "DueDate": {"value_type": "date", "value": "2021-03-21", "content": "21-03-2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 161.0}, {"x": 529.0, "y": 161.0}, {"x": 529.0, "y": 172.0}, {"x": 473.0, "y": 172.0}]}], "spans": [{"offset": 95, "length": 10}], "confidence": 0.958}, "InvoiceDate": {"value_type": "date", "value": "2021-03-14", "content": "14-03-2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 472.0, "y": 147.0}, {"x": 529.0, "y": 147.0}, {"x": 529.0, "y": 159.0}, {"x": 472.0, "y": 158.0}]}], "spans": [{"offset": 84, "length": 10}], "confidence": 0.961}, "InvoiceId": {"value_type": "string", "value": "#00356", "content": "#00356", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 481.0, "y": 131.0}, {"x": 519.0, "y": 131.0}, {"x": 519.0, "y": 143.0}, {"x": 481.0, "y": 142.0}]}], "spans": [{"offset": 115, "length": 6}], "confidence": 0.948}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 29296.0, "symbol": "Rs"}, "content": "Rs. 1,29,296.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 465.0}, {"x": 545.0, "y": 465.0}, {"x": 545.0, "y": 475.0}, {"x": 484.0, "y": 475.0}]}], "spans": [{"offset": 783, "length": 15}], "confidence": 0.597}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1875.0, "symbol": "Rs"}, "content": "Rs. 1,875.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 497.0, "y": 285.0}, {"x": 544.0, "y": 287.0}, {"x": 544.0, "y": 298.0}, {"x": 497.0, "y": 296.0}]}], "spans": [{"offset": 405, "length": 12}], "confidence": 0.896}, "Description": {"value_type": "string", "value": "ITEM NAME 1", "content": "ITEM NAME 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 192.0, "y": 286.0}, {"x": 247.0, "y": 286.0}, {"x": 247.0, "y": 297.0}, {"x": 192.0, "y": 297.0}]}], "spans": [{"offset": 375, "length": 11}], "confidence": 0.894}, "ProductCode": {"value_type": "string", "value": "546", "content": "546", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 327.0, "y": 288.0}, {"x": 341.0, "y": 288.0}, {"x": 341.0, "y": 295.0}, {"x": 327.0, "y": 294.0}]}], "spans": [{"offset": 387, "length": 3}], "confidence": 0.647}, "Quantity": {"value_type": "float", "value": 15.0, "content": "15", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 365.0, "y": 286.0}, {"x": 374.0, "y": 286.0}, {"x": 374.0, "y": 295.0}, {"x": 365.0, "y": 295.0}]}], "spans": [{"offset": 391, "length": 2}], "confidence": 0.895}, "UnitPrice": {"value_type": "currency", "value": {"amount": 125.0, "symbol": "Rs"}, "content": "Rs. 125.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 411.0, "y": 284.0}, {"x": 451.0, "y": 286.0}, {"x": 451.0, "y": 298.0}, {"x": 411.0, "y": 296.0}]}], "spans": [{"offset": 394, "length": 10}], "confidence": 0.895}}, "content": "1\nITEM NAME 1\n546\n15\nRs. 125.00\nRs. 1,875.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 286.0}, {"x": 544.0, "y": 286.0}, {"x": 544.0, "y": 297.0}, {"x": 108.0, "y": 297.0}]}], "spans": [{"offset": 373, "length": 44}], "confidence": 0.887}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 14170.0, "symbol": "Rs"}, "content": "Rs. 14,170.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 299.0}, {"x": 545.0, "y": 299.0}, {"x": 545.0, "y": 309.0}, {"x": 492.0, "y": 309.0}]}], "spans": [{"offset": 451, "length": 13}], "confidence": 0.898}, "Description": {"value_type": "string", "value": "ITEM NAME 2", "content": "ITEM NAME 2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 192.0, "y": 299.0}, {"x": 247.0, "y": 299.0}, {"x": 247.0, "y": 309.0}, {"x": 192.0, "y": 309.0}]}], "spans": [{"offset": 420, "length": 11}], "confidence": 0.894}, "ProductCode": {"value_type": "string", "value": "2541", "content": "2541", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 325.0, "y": 300.0}, {"x": 343.0, "y": 300.0}, {"x": 343.0, "y": 309.0}, {"x": 325.0, "y": 309.0}]}], "spans": [{"offset": 432, "length": 4}], "confidence": 0.645}, "Quantity": {"value_type": "float", "value": 26.0, "content": "26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 365.0, "y": 299.0}, {"x": 374.0, "y": 299.0}, {"x": 374.0, "y": 308.0}, {"x": 365.0, "y": 308.0}]}], "spans": [{"offset": 437, "length": 2}], "confidence": 0.896}, "UnitPrice": {"value_type": "currency", "value": {"amount": 545.0, "symbol": "Rs"}, "content": "Rs. 545.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 410.0, "y": 300.0}, {"x": 452.0, "y": 300.0}, {"x": 452.0, "y": 309.0}, {"x": 410.0, "y": 309.0}]}], "spans": [{"offset": 440, "length": 10}], "confidence": 0.897}}, "content": "2\nITEM NAME 2\n2541\n26\nRs. 545.00\nRs. 14,170.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 299.0}, {"x": 545.0, "y": 299.0}, {"x": 545.0, "y": 309.0}, {"x": 108.0, "y": 309.0}]}], "spans": [{"offset": 418, "length": 46}], "confidence": 0.89}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 65556.0, "symbol": "Rs"}, "content": "Rs. 65,556.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 313.0}, {"x": 545.0, "y": 313.0}, {"x": 545.0, "y": 322.0}, {"x": 492.0, "y": 322.0}]}], "spans": [{"offset": 497, "length": 13}], "confidence": 0.899}, "Description": {"value_type": "string", "value": "ITEM NAME 3", "content": "ITEM NAME 3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 192.0, "y": 313.0}, {"x": 247.0, "y": 313.0}, {"x": 247.0, "y": 322.0}, {"x": 192.0, "y": 322.0}]}], "spans": [{"offset": 465, "length": 11}], "confidence": 0.888}, "ProductCode": {"value_type": "string", "value": "254", "content": "254", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 328.0, "y": 314.0}, {"x": 340.0, "y": 314.0}, {"x": 340.0, "y": 321.0}, {"x": 328.0, "y": 321.0}]}], "spans": [{"offset": 477, "length": 3}], "confidence": 0.646}, "Quantity": {"value_type": "float", "value": 54.0, "content": "54", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 365.0, "y": 313.0}, {"x": 374.0, "y": 313.0}, {"x": 374.0, "y": 321.0}, {"x": 365.0, "y": 321.0}]}], "spans": [{"offset": 481, "length": 2}], "confidence": 0.895}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1214.0, "symbol": "Rs"}, "content": "Rs. 1,214.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 403.0, "y": 311.0}, {"x": 451.0, "y": 313.0}, {"x": 451.0, "y": 323.0}, {"x": 403.0, "y": 321.0}]}], "spans": [{"offset": 484, "length": 12}], "confidence": 0.894}}, "content": "ITEM NAME 3\n254\n54\nRs. 1,214.00\nRs. 65,556.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 192.0, "y": 313.0}, {"x": 545.0, "y": 313.0}, {"x": 545.0, "y": 322.0}, {"x": 192.0, "y": 322.0}]}], "spans": [{"offset": 465, "length": 45}], "confidence": 0.89}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 18618.0, "symbol": "Rs"}, "content": "Rs. 18,618.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 326.0}, {"x": 544.0, "y": 326.0}, {"x": 544.0, "y": 335.0}, {"x": 492.0, "y": 335.0}]}], "spans": [{"offset": 544, "length": 13}], "confidence": 0.895}, "Description": {"value_type": "string", "value": "ITEM NAME 4", "content": "ITEM NAME 4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 192.0, "y": 325.0}, {"x": 247.0, "y": 325.0}, {"x": 247.0, "y": 335.0}, {"x": 192.0, "y": 335.0}]}], "spans": [{"offset": 513, "length": 11}], "confidence": 0.894}, "ProductCode": {"value_type": "string", "value": "4554", "content": "4554", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 324.0, "y": 326.0}, {"x": 344.0, "y": 326.0}, {"x": 344.0, "y": 335.0}, {"x": 324.0, "y": 335.0}]}], "spans": [{"offset": 525, "length": 4}], "confidence": 0.643}, "Quantity": {"value_type": "float", "value": 58.0, "content": "58", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 364.0, "y": 326.0}, {"x": 374.0, "y": 326.0}, {"x": 374.0, "y": 334.0}, {"x": 364.0, "y": 334.0}]}], "spans": [{"offset": 530, "length": 2}], "confidence": 0.897}, "UnitPrice": {"value_type": "currency", "value": {"amount": 321.0, "symbol": "Rs"}, "content": "Rs. 321.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 411.0, "y": 324.0}, {"x": 451.0, "y": 326.0}, {"x": 451.0, "y": 336.0}, {"x": 411.0, "y": 334.0}]}], "spans": [{"offset": 533, "length": 10}], "confidence": 0.896}}, "content": "4\nITEM NAME 4\n4554\n58\nRs. 321.00\nRs. 18,618.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 325.0}, {"x": 544.0, "y": 325.0}, {"x": 544.0, "y": 335.0}, {"x": 108.0, "y": 335.0}]}], "spans": [{"offset": 511, "length": 46}], "confidence": 0.89}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 8825.0, "symbol": "Rs"}, "content": "Rs. 8,825.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 497.0, "y": 339.0}, {"x": 544.0, "y": 339.0}, {"x": 544.0, "y": 348.0}, {"x": 497.0, "y": 348.0}]}], "spans": [{"offset": 591, "length": 12}], "confidence": 0.897}, "Description": {"value_type": "string", "value": "ITEM NAME 5", "content": "ITEM NAME 5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 192.0, "y": 339.0}, {"x": 247.0, "y": 339.0}, {"x": 247.0, "y": 348.0}, {"x": 192.0, "y": 348.0}]}], "spans": [{"offset": 560, "length": 11}], "confidence": 0.893}, "ProductCode": {"value_type": "string", "value": "8151", "content": "8151", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 324.0, "y": 340.0}, {"x": 342.0, "y": 340.0}, {"x": 341.0, "y": 348.0}, {"x": 324.0, "y": 347.0}]}], "spans": [{"offset": 572, "length": 4}], "confidence": 0.645}, "Quantity": {"value_type": "float", "value": 25.0, "content": "25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 365.0, "y": 339.0}, {"x": 374.0, "y": 339.0}, {"x": 374.0, "y": 347.0}, {"x": 365.0, "y": 347.0}]}], "spans": [{"offset": 577, "length": 2}], "confidence": 0.897}, "UnitPrice": {"value_type": "currency", "value": {"amount": 353.0, "symbol": "Rs"}, "content": "Rs. 353.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 410.0, "y": 339.0}, {"x": 451.0, "y": 339.0}, {"x": 451.0, "y": 348.0}, {"x": 410.0, "y": 348.0}]}], "spans": [{"offset": 580, "length": 10}], "confidence": 0.896}}, "content": "5\nITEM NAME 5\n8151\n25\nRs. 353.00\nRs. 8,825.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 339.0}, {"x": 544.0, "y": 339.0}, {"x": 544.0, "y": 348.0}, {"x": 108.0, "y": 348.0}]}], "spans": [{"offset": 558, "length": 45}], "confidence": 0.889}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Noida", "state": "Uttar Pradesh", "postal_code": "Sector-200", "country_region": null, "street_address": ""}, "content": "Sector-200, Noida, U.P. Uttar Pradesh", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 354.0, "y": 212.0}, {"x": 447.0, "y": 212.0}, {"x": 447.0, "y": 234.0}, {"x": 354.0, "y": 234.0}]}], "spans": [{"offset": 249, "length": 37}], "confidence": 0.77}, "ShippingAddressRecipient": {"value_type": "string", "value": "TechGuruPlus", "content": "TechGuruPlus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 354.0, "y": 199.0}, {"x": 412.0, "y": 199.0}, {"x": 412.0, "y": 209.0}, {"x": 355.0, "y": 208.0}]}], "spans": [{"offset": 236, "length": 12}], "confidence": 0.725}, "SubTotal": {"value_type": "currency", "value": {"amount": 9044.0, "symbol": "Rs"}, "content": "Rs. 1,09,044.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 390.0}, {"x": 545.0, "y": 391.0}, {"x": 545.0, "y": 401.0}, {"x": 484.0, "y": 400.0}]}], "spans": [{"offset": 618, "length": 15}], "confidence": 0.499}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 1526.62, "symbol": "Rs"}, "content": "Rs. 1,526.62", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 496.0, "y": 402.0}, {"x": 545.0, "y": 403.0}, {"x": 545.0, "y": 413.0}, {"x": 496.0, "y": 412.0}]}], "spans": [{"offset": 648, "length": 12}], "confidence": 0.84}, "TotalTax": {"value_type": "currency", "value": {"amount": 19627.0, "symbol": "Rs"}, "content": "Rs. 19,627,92", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 440.0}, {"x": 545.0, "y": 440.0}, {"x": 545.0, "y": 450.0}, {"x": 492.0, "y": 450.0}]}], "spans": [{"offset": 739, "length": 13}], "confidence": 0.918}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Okhla Industrial Area, New Delhi-110020", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "Okhla Industrial Area, New Delhi-110020"}, "content": "Okhla Industrial Area, New Delhi-110020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 193.0, "y": 109.0}, {"x": 425.0, "y": 109.0}, {"x": 425.0, "y": 123.0}, {"x": 193.0, "y": 123.0}]}], "spans": [{"offset": 20, "length": 39}], "confidence": 0.917}, "VendorAddressRecipient": {"value_type": "string", "value": "CATIS U", "content": "CATIS U", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 83.0}, {"x": 259.0, "y": 86.0}, {"x": 258.0, "y": 109.0}, {"x": 188.0, "y": 106.0}]}], "spans": [{"offset": 0, "length": 7}], "confidence": 0.652}, "VendorName": {"value_type": "string", "value": "CATIS U", "content": "CATIS U", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 83.0}, {"x": 259.0, "y": 86.0}, {"x": 258.0, "y": 109.0}, {"x": 188.0, "y": 106.0}]}], "spans": [{"offset": 0, "length": 7}], "confidence": 0.652}}, "confidence": 1.0}