diff --git a/Data/test/00000D51616813-png-1_png_jpg.rf.6013693ea5ee42d25d16eefe1600580b.json b/Data/test/00000D51616813-png-1_png_jpg.rf.6013693ea5ee42d25d16eefe1600580b.json new file mode 100644 index 0000000000000000000000000000000000000000..5000ac334769b4cbcd9376b6d36e9cb3eca99ecd --- /dev/null +++ b/Data/test/00000D51616813-png-1_png_jpg.rf.6013693ea5ee42d25d16eefe1600580b.json @@ -0,0 +1,1578 @@ +{ + "doc_type": "invoice", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 0.0, + "y": 0.0 + }, + { + "x": 900.0, + "y": 0.0 + }, + { + "x": 900.0, + "y": 1100.0 + }, + { + "x": 0.0, + "y": 1100.0 + } + ] + } + ], + "spans": [ + { + "offset": 0, + "length": 1073 + } + ], + "fields": { + "BillingAddress": { + "value_type": "address", + "value": { + "house_number": "31825", + "po_box": null, + "road": "GREAT WESTERN DR", + "city": "WINDSOR", + "state": "CO", + "postal_code": "80550", + "country_region": null, + "street_address": "31825 GREAT WESTERN DR" + }, + "content": "31825 GREAT WESTERN DR\nWINDSOR, CO 80550", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 537.0, + "y": 249.0 + }, + { + "x": 712.0, + "y": 249.0 + }, + { + "x": 712.0, + "y": 278.0 + }, + { + "x": 537.0, + "y": 278.0 + } + ] + } + ], + "spans": [ + { + "offset": 370, + "length": 40 + } + ], + "confidence": 0.889 + }, + "BillingAddressRecipient": { + "value_type": "string", + "value": "PLAREPLUS INC", + "content": "PLAREPLUS INC", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 538.0, + "y": 236.0 + }, + { + "x": 640.0, + "y": 236.0 + }, + { + "x": 640.0, + "y": 249.0 + }, + { + "x": 538.0, + "y": 249.0 + } + ] + } + ], + "spans": [ + { + "offset": 356, + "length": 13 + } + ], + "confidence": 0.934 + }, + "CustomerId": { + "value_type": "string", + "value": "37876", + "content": "37876", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 540.0, + "y": 139.0 + }, + { + "x": 579.0, + "y": 139.0 + }, + { + "x": 579.0, + "y": 152.0 + }, + { + "x": 540.0, + "y": 153.0 + } + ] + } + ], + "spans": [ + { + "offset": 117, + "length": 5 + } + ], + "confidence": 0.943 + }, + "CustomerName": { + "value_type": "string", + "value": "PLAREPLUS INC", + "content": "PLAREPLUS INC", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 538.0, + "y": 236.0 + }, + { + "x": 640.0, + "y": 236.0 + }, + { + "x": 640.0, + "y": 249.0 + }, + { + "x": 538.0, + "y": 249.0 + } + ] + } + ], + "spans": [ + { + "offset": 356, + "length": 13 + } + ], + "confidence": 0.934 + }, + "InvoiceDate": { + "value_type": "date", + "value": "2018-10-24", + "content": "10/24/2018", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 721.0, + "y": 125.0 + }, + { + "x": 798.0, + "y": 126.0 + }, + { + "x": 798.0, + "y": 137.0 + }, + { + "x": 722.0, + "y": 138.0 + } + ] + } + ], + "spans": [ + { + "offset": 172, + "length": 10 + } + ], + "confidence": 0.953 + }, + "InvoiceId": { + "value_type": "string", + "value": "0051616813", + "content": "0051616813", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 538.0, + "y": 125.0 + }, + { + "x": 619.0, + "y": 125.0 + }, + { + "x": 619.0, + "y": 138.0 + }, + { + "x": 539.0, + "y": 139.0 + } + ] + } + ], + "spans": [ + { + "offset": 95, + "length": 10 + } + ], + "confidence": 0.942 + }, + "InvoiceTotal": { + "value_type": "currency", + "value": { + "amount": 711.0, + "symbol": null + }, + "content": "711.00", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 729.0, + "y": 583.0 + }, + { + "x": 775.0, + "y": 583.0 + }, + { + "x": 775.0, + "y": 596.0 + }, + { + "x": 729.0, + "y": 596.0 + } + ] + } + ], + "spans": [ + { + "offset": 760, + "length": 6 + } + ], + "confidence": 0.941 + }, + "Items": { + "value_type": "list", + "value": [ + { + "value_type": "dictionary", + "value": { + "Amount": { + "value_type": "currency", + "value": { + "amount": 250.0, + "symbol": null + }, + "content": "250.00", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 721.0, + "y": 446.0 + }, + { + "x": 767.0, + "y": 446.0 + }, + { + "x": 767.0, + "y": 458.0 + }, + { + "x": 722.0, + "y": 457.0 + } + ] + } + ], + "spans": [ + { + "offset": 568, + "length": 6 + } + ], + "confidence": 0.928 + }, + "Description": { + "value_type": "string", + "value": "INSPECTION, ANNUAL ALARM SYSTEM", + "content": "INSPECTION, ANNUAL ALARM SYSTEM", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 248.0, + "y": 445.0 + }, + { + "x": 490.0, + "y": 445.0 + }, + { + "x": 490.0, + "y": 459.0 + }, + { + "x": 248.0, + "y": 459.0 + } + ] + } + ], + "spans": [ + { + "offset": 529, + "length": 31 + } + ], + "confidence": 0.928 + }, + "ProductCode": { + "value_type": "string", + "value": "INFA", + "content": "INFA", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 129.0, + "y": 446.0 + }, + { + "x": 158.0, + "y": 446.0 + }, + { + "x": 158.0, + "y": 458.0 + }, + { + "x": 129.0, + "y": 458.0 + } + ] + } + ], + "spans": [ + { + "offset": 522, + "length": 4 + } + ], + "confidence": 0.908 + }, + "Quantity": { + "value_type": "float", + "value": 1.0, + "content": "1", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 225.0, + "y": 445.0 + }, + { + "x": 231.0, + "y": 445.0 + }, + { + "x": 231.0, + "y": 457.0 + }, + { + "x": 225.0, + "y": 457.0 + } + ] + } + ], + "spans": [ + { + "offset": 527, + "length": 1 + } + ], + "confidence": 0.927 + }, + "Tax": { + "value_type": "currency", + "value": null, + "content": "N", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 791.0, + "y": 446.0 + }, + { + "x": 797.0, + "y": 446.0 + }, + { + "x": 797.0, + "y": 457.0 + }, + { + "x": 791.0, + "y": 457.0 + } + ] + } + ], + "spans": [ + { + "offset": 575, + "length": 1 + } + ], + "confidence": 0.515 + }, + "UnitPrice": { + "value_type": "currency", + "value": { + "amount": 250.0, + "symbol": null + }, + "content": "250.00", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 571.0, + "y": 445.0 + }, + { + "x": 617.0, + "y": 445.0 + }, + { + "x": 617.0, + "y": 459.0 + }, + { + "x": 571.0, + "y": 458.0 + } + ] + } + ], + "spans": [ + { + "offset": 561, + "length": 6 + } + ], + "confidence": 0.929 + } + }, + "content": "INFA\n1\nINSPECTION, ANNUAL ALARM SYSTEM\n250.00\n250.00\nN", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 129.0, + "y": 445.0 + }, + { + "x": 797.0, + "y": 445.0 + }, + { + "x": 797.0, + "y": 459.0 + }, + { + "x": 129.0, + "y": 459.0 + } + ] + } + ], + "spans": [ + { + "offset": 522, + "length": 54 + } + ], + "confidence": 0.89 + }, + { + "value_type": "dictionary", + "value": { + "Amount": { + "value_type": "currency", + "value": { + "amount": 130.0, + "symbol": null + }, + "content": "130.00", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 721.0, + "y": 472.0 + }, + { + "x": 767.0, + "y": 473.0 + }, + { + "x": 767.0, + "y": 485.0 + }, + { + "x": 721.0, + "y": 484.0 + } + ] + } + ], + "spans": [ + { + "offset": 631, + "length": 6 + } + ], + "confidence": 0.928 + }, + "Description": { + "value_type": "string", + "value": "INSPECTION, SPRINKLER SYSTEM BACK FLOW", + "content": "INSPECTION, SPRINKLER SYSTEM BACK FLOW", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 247.0, + "y": 471.0 + }, + { + "x": 545.0, + "y": 471.0 + }, + { + "x": 545.0, + "y": 486.0 + }, + { + "x": 247.0, + "y": 486.0 + } + ] + } + ], + "spans": [ + { + "offset": 586, + "length": 38 + } + ], + "confidence": 0.927 + }, + "ProductCode": { + "value_type": "string", + "value": "INSPBF", + "content": "INSPBF", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 129.0, + "y": 472.0 + }, + { + "x": 174.0, + "y": 472.0 + }, + { + "x": 174.0, + "y": 485.0 + }, + { + "x": 129.0, + "y": 485.0 + } + ] + } + ], + "spans": [ + { + "offset": 577, + "length": 6 + } + ], + "confidence": 0.915 + }, + "Quantity": { + "value_type": "float", + "value": 2.0, + "content": "2", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 225.0, + "y": 471.0 + }, + { + "x": 231.0, + "y": 471.0 + }, + { + "x": 231.0, + "y": 484.0 + }, + { + "x": 224.0, + "y": 483.0 + } + ] + } + ], + "spans": [ + { + "offset": 584, + "length": 1 + } + ], + "confidence": 0.927 + }, + "Tax": { + "value_type": "currency", + "value": null, + "content": "N", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 791.0, + "y": 473.0 + }, + { + "x": 796.0, + "y": 473.0 + }, + { + "x": 796.0, + "y": 483.0 + }, + { + "x": 791.0, + "y": 483.0 + } + ] + } + ], + "spans": [ + { + "offset": 638, + "length": 1 + } + ], + "confidence": 0.573 + }, + "UnitPrice": { + "value_type": "currency", + "value": { + "amount": 65.0, + "symbol": null + }, + "content": "65.00", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 579.0, + "y": 472.0 + }, + { + "x": 617.0, + "y": 472.0 + }, + { + "x": 616.0, + "y": 486.0 + }, + { + "x": 579.0, + "y": 485.0 + } + ] + } + ], + "spans": [ + { + "offset": 625, + "length": 5 + } + ], + "confidence": 0.929 + } + }, + "content": "INSPBF\n2\nINSPECTION, SPRINKLER SYSTEM BACK FLOW\n65.00\n130.00\nN", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 129.0, + "y": 471.0 + }, + { + "x": 796.0, + "y": 471.0 + }, + { + "x": 796.0, + "y": 486.0 + }, + { + "x": 129.0, + "y": 486.0 + } + ] + } + ], + "spans": [ + { + "offset": 577, + "length": 62 + } + ], + "confidence": 0.89 + }, + { + "value_type": "dictionary", + "value": { + "Amount": { + "value_type": "currency", + "value": { + "amount": 257.0, + "symbol": null + }, + "content": "257.00", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 721.0, + "y": 501.0 + }, + { + "x": 767.0, + "y": 501.0 + }, + { + "x": 767.0, + "y": 513.0 + }, + { + "x": 721.0, + "y": 513.0 + } + ] + } + ], + "spans": [ + { + "offset": 682, + "length": 6 + } + ], + "confidence": 0.928 + }, + "Description": { + "value_type": "string", + "value": "INSP. SPRINKLER RISER EACH", + "content": "INSP. SPRINKLER RISER EACH", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 248.0, + "y": 499.0 + }, + { + "x": 451.0, + "y": 499.0 + }, + { + "x": 451.0, + "y": 513.0 + }, + { + "x": 248.0, + "y": 513.0 + } + ] + } + ], + "spans": [ + { + "offset": 648, + "length": 26 + } + ], + "confidence": 0.928 + }, + "ProductCode": { + "value_type": "string", + "value": "INSPW", + "content": "INSPW", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 130.0, + "y": 502.0 + }, + { + "x": 164.0, + "y": 501.0 + }, + { + "x": 165.0, + "y": 513.0 + }, + { + "x": 130.0, + "y": 512.0 + } + ] + } + ], + "spans": [ + { + "offset": 640, + "length": 5 + } + ], + "confidence": 0.908 + }, + "Quantity": { + "value_type": "float", + "value": 1.0, + "content": "1", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 224.0, + "y": 500.0 + }, + { + "x": 230.0, + "y": 500.0 + }, + { + "x": 231.0, + "y": 512.0 + }, + { + "x": 224.0, + "y": 512.0 + } + ] + } + ], + "spans": [ + { + "offset": 646, + "length": 1 + } + ], + "confidence": 0.927 + }, + "Tax": { + "value_type": "currency", + "value": null, + "content": "N", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 792.0, + "y": 501.0 + }, + { + "x": 797.0, + "y": 501.0 + }, + { + "x": 797.0, + "y": 511.0 + }, + { + "x": 792.0, + "y": 511.0 + } + ] + } + ], + "spans": [ + { + "offset": 689, + "length": 1 + } + ], + "confidence": 0.535 + }, + "UnitPrice": { + "value_type": "currency", + "value": { + "amount": 257.0, + "symbol": null + }, + "content": "257.00", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 571.0, + "y": 500.0 + }, + { + "x": 617.0, + "y": 500.0 + }, + { + "x": 617.0, + "y": 513.0 + }, + { + "x": 571.0, + "y": 513.0 + } + ] + } + ], + "spans": [ + { + "offset": 675, + "length": 6 + } + ], + "confidence": 0.929 + } + }, + "content": "INSPW\n1\nINSP. SPRINKLER RISER EACH\n257.00\n257.00\nN", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 130.0, + "y": 499.0 + }, + { + "x": 797.0, + "y": 499.0 + }, + { + "x": 797.0, + "y": 513.0 + }, + { + "x": 130.0, + "y": 513.0 + } + ] + } + ], + "spans": [ + { + "offset": 640, + "length": 50 + } + ], + "confidence": 0.89 + }, + { + "value_type": "dictionary", + "value": { + "Amount": { + "value_type": "currency", + "value": { + "amount": 74.0, + "symbol": null + }, + "content": "74.00", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 729.0, + "y": 528.0 + }, + { + "x": 768.0, + "y": 528.0 + }, + { + "x": 768.0, + "y": 541.0 + }, + { + "x": 729.0, + "y": 541.0 + } + ] + } + ], + "spans": [ + { + "offset": 717, + "length": 5 + } + ], + "confidence": 0.928 + }, + "Description": { + "value_type": "string", + "value": "SERVICE CHARGE", + "content": "SERVICE CHARGE", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 247.0, + "y": 527.0 + }, + { + "x": 356.0, + "y": 527.0 + }, + { + "x": 356.0, + "y": 542.0 + }, + { + "x": 247.0, + "y": 542.0 + } + ] + } + ], + "spans": [ + { + "offset": 696, + "length": 14 + } + ], + "confidence": 0.928 + }, + "ProductCode": { + "value_type": "string", + "value": "SC", + "content": "SC", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 129.0, + "y": 528.0 + }, + { + "x": 142.0, + "y": 528.0 + }, + { + "x": 143.0, + "y": 540.0 + }, + { + "x": 129.0, + "y": 540.0 + } + ] + } + ], + "spans": [ + { + "offset": 691, + "length": 2 + } + ], + "confidence": 0.769 + }, + "Quantity": { + "value_type": "float", + "value": 1.0, + "content": "1", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 224.0, + "y": 527.0 + }, + { + "x": 231.0, + "y": 527.0 + }, + { + "x": 231.0, + "y": 540.0 + }, + { + "x": 224.0, + "y": 540.0 + } + ] + } + ], + "spans": [ + { + "offset": 694, + "length": 1 + } + ], + "confidence": 0.925 + }, + "Tax": { + "value_type": "currency", + "value": null, + "content": "N", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 792.0, + "y": 529.0 + }, + { + "x": 797.0, + "y": 529.0 + }, + { + "x": 797.0, + "y": 539.0 + }, + { + "x": 792.0, + "y": 539.0 + } + ] + } + ], + "spans": [ + { + "offset": 723, + "length": 1 + } + ], + "confidence": 0.518 + }, + "UnitPrice": { + "value_type": "currency", + "value": { + "amount": 74.0, + "symbol": null + }, + "content": "74.00", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 579.0, + "y": 527.0 + }, + { + "x": 618.0, + "y": 527.0 + }, + { + "x": 618.0, + "y": 541.0 + }, + { + "x": 579.0, + "y": 541.0 + } + ] + } + ], + "spans": [ + { + "offset": 711, + "length": 5 + } + ], + "confidence": 0.929 + } + }, + "content": "SC\n1\nSERVICE CHARGE\n74.00\n74.00\nN", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 129.0, + "y": 527.0 + }, + { + "x": 797.0, + "y": 527.0 + }, + { + "x": 797.0, + "y": 542.0 + }, + { + "x": 129.0, + "y": 542.0 + } + ] + } + ], + "spans": [ + { + "offset": 691, + "length": 33 + } + ], + "confidence": 0.89 + } + ], + "content": null, + "bounding_regions": [], + "spans": [], + "confidence": null + }, + "RemittanceAddress": { + "value_type": "address", + "value": { + "house_number": null, + "po_box": "P.O. BOX 636525", + "road": null, + "city": "CINCINNATI", + "state": "OH", + "postal_code": "452636525", + "country_region": null, + "street_address": "P.O. BOX 636525" + }, + "content": "P.O. BOX 636525 CINCINNATI, OH 452636525", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 175.0, + "y": 249.0 + }, + { + "x": 373.0, + "y": 249.0 + }, + { + "x": 373.0, + "y": 278.0 + }, + { + "x": 175.0, + "y": 278.0 + } + ] + } + ], + "spans": [ + { + "offset": 291, + "length": 40 + } + ], + "confidence": 0.891 + }, + "RemittanceAddressRecipient": { + "value_type": "string", + "value": "CINTAS FIRE 636525", + "content": "CINTAS FIRE 636525", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 175.0, + "y": 235.0 + }, + { + "x": 318.0, + "y": 235.0 + }, + { + "x": 318.0, + "y": 250.0 + }, + { + "x": 175.0, + "y": 250.0 + } + ] + } + ], + "spans": [ + { + "offset": 272, + "length": 18 + } + ], + "confidence": 0.926 + }, + "ServiceAddress": { + "value_type": "address", + "value": { + "house_number": "31825", + "po_box": null, + "road": "GREAT WESTERN DR", + "city": "WINDSOR", + "state": "CO", + "postal_code": "80550", + "country_region": null, + "street_address": "31825 GREAT WESTERN DR" + }, + "content": "31825 GREAT WESTERN DR WINDSOR, CO 80550", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 174.0, + "y": 332.0 + }, + { + "x": 348.0, + "y": 332.0 + }, + { + "x": 348.0, + "y": 361.0 + }, + { + "x": 174.0, + "y": 361.0 + } + ] + } + ], + "spans": [ + { + "offset": 435, + "length": 40 + } + ], + "confidence": 0.889 + }, + "ServiceAddressRecipient": { + "value_type": "string", + "value": "PLATEPLUS INC", + "content": "PLATEPLUS INC", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 175.0, + "y": 319.0 + }, + { + "x": 277.0, + "y": 319.0 + }, + { + "x": 277.0, + "y": 333.0 + }, + { + "x": 175.0, + "y": 333.0 + } + ] + } + ], + "spans": [ + { + "offset": 421, + "length": 13 + } + ], + "confidence": 0.932 + }, + "SubTotal": { + "value_type": "currency", + "value": { + "amount": 711.0, + "symbol": null + }, + "content": "711.00", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 729.0, + "y": 557.0 + }, + { + "x": 774.0, + "y": 556.0 + }, + { + "x": 774.0, + "y": 569.0 + }, + { + "x": 729.0, + "y": 568.0 + } + ] + } + ], + "spans": [ + { + "offset": 737, + "length": 6 + } + ], + "confidence": 0.95 + }, + "TotalTax": { + "value_type": "currency", + "value": { + "amount": 0.0, + "symbol": null + }, + "content": ".00", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 752.0, + "y": 570.0 + }, + { + "x": 775.0, + "y": 570.0 + }, + { + "x": 775.0, + "y": 582.0 + }, + { + "x": 752.0, + "y": 582.0 + } + ] + } + ], + "spans": [ + { + "offset": 748, + "length": 3 + } + ], + "confidence": 0.829 + }, + "VendorName": { + "value_type": "string", + "value": "CINTAS\nFIRE PROTECTION", + "content": "CINTAS FIRE PROTECTION", + "bounding_regions": [ + { + "page_number": 1, + "polygon": [ + { + "x": 131.0, + "y": 35.0 + }, + { + "x": 262.0, + "y": 35.0 + }, + { + "x": 262.0, + "y": 91.0 + }, + { + "x": 131.0, + "y": 91.0 + } + ] + } + ], + "spans": [ + { + "offset": 0, + "length": 22 + } + ], + "confidence": 0.416 + } + }, + "confidence": 1.0 +} \ No newline at end of file diff --git a/Data/test/0000BEA-5587291-VR-8176-PDF-png-1_png_jpg.rf.ff308b7fe96ee1d874b947d0d9ece911.json b/Data/test/0000BEA-5587291-VR-8176-PDF-png-1_png_jpg.rf.ff308b7fe96ee1d874b947d0d9ece911.json new file mode 100644 index 0000000000000000000000000000000000000000..3dc808a28e62f78cbfaacdc2f7aecb3e4d97feba --- /dev/null +++ b/Data/test/0000BEA-5587291-VR-8176-PDF-png-1_png_jpg.rf.ff308b7fe96ee1d874b947d0d9ece911.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 940}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 241.05, "symbol": null}, "content": "241.05", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 802.0, "y": 1040.0}, {"x": 842.0, "y": 1040.0}, {"x": 841.0, "y": 1059.0}, {"x": 802.0, "y": 1058.0}]}], "spans": [{"offset": 934, "length": 6}], "confidence": 0.968}, "BillingAddress": {"value_type": "address", "value": {"house_number": "333", "po_box": null, "road": "OLD ROCK ROAD", "city": "GRANITE CITY", "state": "IL", "postal_code": "62040", "country_region": null, "street_address": "333 OLD ROCK ROAD"}, "content": "333 OLD ROCK ROAD\nGRANITE CITY, IL 62040", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 67.0, "y": 241.0}, {"x": 211.0, "y": 241.0}, {"x": 211.0, "y": 284.0}, {"x": 67.0, "y": 284.0}]}], "spans": [{"offset": 143, "length": 40}], "confidence": 0.765}, "BillingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC\nATTN: 19885-50249849", "content": "PLATEPLUS INC\nATTN: 19885-50249849", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 68.0, "y": 199.0}, {"x": 196.0, "y": 199.0}, {"x": 196.0, "y": 240.0}, {"x": 68.0, "y": 240.0}]}], "spans": [{"offset": 108, "length": 34}], "confidence": 0.693}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "333", "po_box": null, "road": "OLD ROCK ROAD", "city": "GRANITE CITY", "state": "IL", "postal_code": "62040", "country_region": null, "street_address": "333 OLD ROCK ROAD"}, "content": "333 OLD ROCK ROAD\nGRANITE CITY, IL 62040", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 419.0, "y": 229.0}, {"x": 563.0, "y": 229.0}, {"x": 563.0, "y": 269.0}, {"x": 419.0, "y": 269.0}]}], "spans": [{"offset": 298, "length": 40}], "confidence": 0.492}, "CustomerAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC\nATTN: 19885-50249849", "content": "PLATEPLUS INC\nATTN: 19885-50249849", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 419.0, "y": 190.0}, {"x": 548.0, "y": 190.0}, {"x": 548.0, "y": 229.0}, {"x": 419.0, "y": 229.0}]}], "spans": [{"offset": 263, "length": 34}], "confidence": 0.583}, "CustomerId": {"value_type": "string", "value": "R68378", "content": "R68378", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 68.0, "y": 177.0}, {"x": 111.0, "y": 177.0}, {"x": 111.0, "y": 196.0}, {"x": 68.0, "y": 196.0}]}], "spans": [{"offset": 101, "length": 6}], "confidence": 0.418}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS INC\nATTN: 19885-50249849", "content": "PLATEPLUS INC\nATTN: 19885-50249849", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 419.0, "y": 190.0}, {"x": 548.0, "y": 190.0}, {"x": 548.0, "y": 229.0}, {"x": 419.0, "y": 229.0}]}], "spans": [{"offset": 263, "length": 34}], "confidence": 0.583}, "InvoiceDate": {"value_type": "date", "value": "2020-06-17", "content": "6/17/20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 799.0, "y": 125.0}, {"x": 842.0, "y": 125.0}, {"x": 842.0, "y": 145.0}, {"x": 799.0, "y": 144.0}]}], "spans": [{"offset": 379, "length": 7}], "confidence": 0.971}, "InvoiceId": {"value_type": "string", "value": "5587291", "content": "5587291", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 801.0, "y": 85.0}, {"x": 850.0, "y": 85.0}, {"x": 850.0, "y": 107.0}, {"x": 801.0, "y": 107.0}]}], "spans": [{"offset": 358, "length": 7}], "confidence": 0.973}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 241.05, "symbol": null}, "content": "241.05", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 802.0, "y": 1040.0}, {"x": 842.0, "y": 1040.0}, {"x": 841.0, "y": 1059.0}, {"x": 802.0, "y": 1058.0}]}], "spans": [{"offset": 934, "length": 6}], "confidence": 0.968}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 223.5, "symbol": null}, "content": "223.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 819.0, "y": 478.0}, {"x": 853.0, "y": 478.0}, {"x": 853.0, "y": 494.0}, {"x": 819.0, "y": 494.0}]}], "spans": [{"offset": 814, "length": 6}], "confidence": 0.932}, "Description": {"value_type": "string", "value": "G13KG00066\n4657-1559 8M2T X REEL GATES\n330'REEL", "content": "G13KG00066 4657-1559 8M2T X REEL GATES 330'REEL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 366.0, "y": 478.0}, {"x": 540.0, "y": 478.0}, {"x": 540.0, "y": 534.0}, {"x": 366.0, "y": 534.0}]}], "spans": [{"offset": 761, "length": 47}], "confidence": 0.647}, "OrderQuantity": {"value_type": "float", "value": 50.0, "content": "50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 478.0}, {"x": 115.0, "y": 478.0}, {"x": 115.0, "y": 495.0}, {"x": 86.0, "y": 494.0}]}], "spans": [{"offset": 743, "length": 5}], "confidence": 0.928}, "Quantity": {"value_type": "float", "value": 50.0, "content": "50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 181.0, "y": 477.0}, {"x": 211.0, "y": 477.0}, {"x": 211.0, "y": 495.0}, {"x": 181.0, "y": 495.0}]}], "spans": [{"offset": 749, "length": 5}], "confidence": 0.928}, "Unit": {"value_type": "string", "value": "FT", "content": "FT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 318.0, "y": 478.0}, {"x": 331.0, "y": 478.0}, {"x": 331.0, "y": 494.0}, {"x": 318.0, "y": 494.0}]}], "spans": [{"offset": 758, "length": 2}], "confidence": 0.927}, "UnitPrice": {"value_type": "currency", "value": {"amount": 4.47, "symbol": null}, "content": "4.47", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 712.0, "y": 478.0}, {"x": 736.0, "y": 478.0}, {"x": 735.0, "y": 495.0}, {"x": 712.0, "y": 494.0}]}], "spans": [{"offset": 809, "length": 4}], "confidence": 0.929}}, "content": "50.00\n50.00\n00\nFT\nG13KG00066 4657-1559 8M2T X REEL GATES 330'REEL\n4.47\n223.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 477.0}, {"x": 853.0, "y": 477.0}, {"x": 853.0, "y": 534.0}, {"x": 86.0, "y": 534.0}]}], "spans": [{"offset": 743, "length": 77}], "confidence": 0.746}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Net 30", "content": "Net 30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 471.0, "y": 371.0}, {"x": 508.0, "y": 371.0}, {"x": 508.0, "y": 390.0}, {"x": 471.0, "y": 390.0}]}], "spans": [{"offset": 605, "length": 6}], "confidence": 0.936}, "PurchaseOrder": {"value_type": "string", "value": "J Hose", "content": "J Hose", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 52.0, "y": 370.0}, {"x": 94.0, "y": 370.0}, {"x": 94.0, "y": 390.0}, {"x": 52.0, "y": 390.0}]}], "spans": [{"offset": 590, "length": 6}], "confidence": 0.686}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. Box 6267", "road": null, "city": "Broadview", "state": "Illinois", "postal_code": "60155-6267", "country_region": null, "street_address": "P.O. Box 6267"}, "content": "P.O. Box 6267\nBroadview, Illinois 60155-6267", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 114.0}, {"x": 579.0, "y": 117.0}, {"x": 579.0, "y": 157.0}, {"x": 396.0, "y": 155.0}]}], "spans": [{"offset": 196, "length": 13}, {"offset": 219, "length": 30}], "confidence": 0.844}, "SubTotal": {"value_type": "currency", "value": {"amount": 223.5, "symbol": null}, "content": "223.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 113.0, "y": 1040.0}, {"x": 152.0, "y": 1040.0}, {"x": 152.0, "y": 1058.0}, {"x": 113.0, "y": 1058.0}]}], "spans": [{"offset": 908, "length": 6}], "confidence": 0.955}, "TotalTax": {"value_type": "currency", "value": {"amount": 17.55, "symbol": null}, "content": "17.55", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 215.0, "y": 1035.0}, {"x": 247.0, "y": 1035.0}, {"x": 247.0, "y": 1057.0}, {"x": 215.0, "y": 1056.0}]}], "spans": [{"offset": 915, "length": 5}], "confidence": 0.966}, "VendorAddress": {"value_type": "address", "value": {"house_number": "3689", "po_box": null, "road": "East Broadway", "city": "Alton", "state": "IL", "postal_code": "62002", "country_region": null, "street_address": "3689 East Broadway"}, "content": "3689 East Broadway Alton IL 62002", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 68.0}, {"x": 250.0, "y": 68.0}, {"x": 250.0, "y": 107.0}, {"x": 133.0, "y": 107.0}]}], "spans": [{"offset": 29, "length": 33}], "confidence": 0.9}, "VendorName": {"value_type": "string", "value": "Bearing Headquarters Company", "content": "Bearing Headquarters Company", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 27.0}, {"x": 297.0, "y": 29.0}, {"x": 297.0, "y": 52.0}, {"x": 134.0, "y": 51.0}]}], "spans": [{"offset": 0, "length": 28}], "confidence": 0.293}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/0000BIZ-0000495-png-1_png_jpg.rf.7ad38d30eb5e026c2d83fb675fb679b7.json b/Data/test/0000BIZ-0000495-png-1_png_jpg.rf.7ad38d30eb5e026c2d83fb675fb679b7.json new file mode 100644 index 0000000000000000000000000000000000000000..607a785b9d3ed91bb0e73ec2febb69dbf14c2d02 --- /dev/null +++ b/Data/test/0000BIZ-0000495-png-1_png_jpg.rf.7ad38d30eb5e026c2d83fb675fb679b7.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 532}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 14500.0, "symbol": "$"}, "content": "$14,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 745.0, "y": 715.0}, {"x": 825.0, "y": 714.0}, {"x": 825.0, "y": 732.0}, {"x": 746.0, "y": 732.0}]}], "spans": [{"offset": 509, "length": 10}], "confidence": 0.957}, "BillingAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "Waterway Ave", "city": "The Woodlands", "state": "Texas", "postal_code": "77380", "country_region": "United States", "street_address": "21 Waterway Ave Ste 525"}, "content": "21 Waterway Ave Ste 525,\nThe Woodlands, Texas\n77380\nUnited States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 316.0}, {"x": 259.0, "y": 316.0}, {"x": 259.0, "y": 391.0}, {"x": 74.0, "y": 391.0}]}], "spans": [{"offset": 101, "length": 65}], "confidence": 0.861}, "BillingAddressRecipient": {"value_type": "string", "value": "Attention: 19855-50249855\nPlateplus Inc.", "content": "Attention: 19855-50249855\nPlateplus Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 73.0, "y": 279.0}, {"x": 261.0, "y": 279.0}, {"x": 261.0, "y": 316.0}, {"x": 73.0, "y": 316.0}]}], "spans": [{"offset": 60, "length": 40}], "confidence": 0.685}, "CustomerName": {"value_type": "string", "value": "Attention: 19855-50249855\nPlateplus Inc.", "content": "Attention: 19855-50249855\nPlateplus Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 73.0, "y": 279.0}, {"x": 261.0, "y": 279.0}, {"x": 261.0, "y": 316.0}, {"x": 73.0, "y": 316.0}]}], "spans": [{"offset": 60, "length": 40}], "confidence": 0.685}, "DueDate": {"value_type": "date", "value": "2021-05-31", "content": "05/31/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 299.0, "y": 333.0}, {"x": 377.0, "y": 333.0}, {"x": 377.0, "y": 350.0}, {"x": 299.0, "y": 350.0}]}], "spans": [{"offset": 201, "length": 10}], "confidence": 0.978}, "InvoiceDate": {"value_type": "date", "value": "2021-05-01", "content": "05/01/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 299.0, "y": 280.0}, {"x": 377.0, "y": 280.0}, {"x": 377.0, "y": 297.0}, {"x": 300.0, "y": 296.0}]}], "spans": [{"offset": 181, "length": 10}], "confidence": 0.978}, "InvoiceId": {"value_type": "string", "value": "0000495", "content": "0000495", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 466.0, "y": 280.0}, {"x": 526.0, "y": 279.0}, {"x": 526.0, "y": 296.0}, {"x": 466.0, "y": 296.0}]}], "spans": [{"offset": 227, "length": 7}], "confidence": 0.978}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 14500.0, "symbol": null}, "content": "14,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 756.0, "y": 656.0}, {"x": 824.0, "y": 656.0}, {"x": 825.0, "y": 673.0}, {"x": 756.0, "y": 673.0}]}], "spans": [{"offset": 465, "length": 9}], "confidence": 0.973}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 14500.0, "symbol": "$"}, "content": "$14,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 746.0, "y": 507.0}, {"x": 824.0, "y": 507.0}, {"x": 824.0, "y": 524.0}, {"x": 747.0, "y": 524.0}]}], "spans": [{"offset": 420, "length": 10}], "confidence": 0.928}, "Description": {"value_type": "string", "value": "Regular Time - BI and MTM Support\nApril BI and MTM Support", "content": "Regular Time - BI and MTM Support April BI and MTM Support", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 506.0}, {"x": 326.0, "y": 506.0}, {"x": 326.0, "y": 543.0}, {"x": 74.0, "y": 543.0}]}], "spans": [{"offset": 348, "length": 58}], "confidence": 0.672}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 707.0, "y": 506.0}, {"x": 715.0, "y": 506.0}, {"x": 715.0, "y": 522.0}, {"x": 707.0, "y": 522.0}]}], "spans": [{"offset": 418, "length": 1}], "confidence": 0.927}, "UnitPrice": {"value_type": "currency", "value": {"amount": 14500.0, "symbol": "$"}, "content": "$14,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 524.0, "y": 507.0}, {"x": 604.0, "y": 506.0}, {"x": 604.0, "y": 525.0}, {"x": 525.0, "y": 525.0}]}], "spans": [{"offset": 407, "length": 10}], "confidence": 0.927}}, "content": "Regular Time - BI and MTM Support April BI and MTM Support\n$14,500.00\n1\n$14,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 506.0}, {"x": 824.0, "y": 506.0}, {"x": 824.0, "y": 543.0}, {"x": 74.0, "y": 543.0}]}], "spans": [{"offset": 348, "length": 82}], "confidence": 0.803}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Net 30", "content": "Net 30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 73.0, "y": 811.0}, {"x": 121.0, "y": 811.0}, {"x": 121.0, "y": 828.0}, {"x": 73.0, "y": 828.0}]}], "spans": [{"offset": 526, "length": 6}], "confidence": 0.935}, "SubTotal": {"value_type": "currency", "value": {"amount": 14500.0, "symbol": null}, "content": "14,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 757.0, "y": 592.0}, {"x": 824.0, "y": 590.0}, {"x": 824.0, "y": 607.0}, {"x": 757.0, "y": 606.0}]}], "spans": [{"offset": 440, "length": 9}], "confidence": 0.977}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 794.0, "y": 615.0}, {"x": 824.0, "y": 615.0}, {"x": 824.0, "y": 631.0}, {"x": 794.0, "y": 631.0}]}], "spans": [{"offset": 454, "length": 4}], "confidence": 0.977}, "VendorAddress": {"value_type": "address", "value": {"house_number": "506", "po_box": null, "road": "Somerset Dr", "city": "Sugarland", "state": "Texas", "postal_code": "77479", "country_region": "United States", "street_address": "506 Somerset Dr"}, "content": "506 Somerset Dr Sugarland, Texas 77479 United States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 700.0, "y": 53.0}, {"x": 827.0, "y": 53.0}, {"x": 827.0, "y": 126.0}, {"x": 700.0, "y": 126.0}]}], "spans": [{"offset": 235, "length": 52}], "confidence": 0.877}, "VendorAddressRecipient": {"value_type": "string", "value": "BIZ-METRIC PARTNERS, Inc.", "content": "BIZ-METRIC PARTNERS, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 51.0}, {"x": 679.0, "y": 52.0}, {"x": 679.0, "y": 71.0}, {"x": 464.0, "y": 70.0}]}], "spans": [{"offset": 13, "length": 25}], "confidence": 0.596}, "VendorName": {"value_type": "string", "value": "bm\nBIZMETRIC", "content": "bm BIZMETRIC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 68.0, "y": 49.0}, {"x": 192.0, "y": 49.0}, {"x": 192.0, "y": 147.0}, {"x": 68.0, "y": 147.0}]}], "spans": [{"offset": 0, "length": 12}], "confidence": 0.93}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/0000USS-161-103842-png-1_png_jpg.rf.b34488da78685542b2158db19b55bb1d.json b/Data/test/0000USS-161-103842-png-1_png_jpg.rf.b34488da78685542b2158db19b55bb1d.json new file mode 100644 index 0000000000000000000000000000000000000000..c51aeadc9def415af017d21a9174b6bf560fdb6c --- /dev/null +++ b/Data/test/0000USS-161-103842-png-1_png_jpg.rf.b34488da78685542b2158db19b55bb1d.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1768}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "WATERWAY AVE", "city": "THE WOODLANDS", "state": "TX", "postal_code": "77380-3129", "country_region": null, "street_address": "21 WATERWAY AVE STE 525"}, "content": "21 WATERWAY AVE\nSTE 525\nTHE WOODLANDS TX 77380-3129", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 153.0, "y": 257.0}, {"x": 368.0, "y": 257.0}, {"x": 368.0, "y": 295.0}, {"x": 153.0, "y": 295.0}]}], "spans": [{"offset": 351, "length": 51}], "confidence": 0.189}, "CustomerAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC", "content": "PLATEPLUS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 244.0}, {"x": 255.0, "y": 244.0}, {"x": 255.0, "y": 256.0}, {"x": 152.0, "y": 256.0}]}], "spans": [{"offset": 337, "length": 13}], "confidence": 0.282}, "CustomerId": {"value_type": "string", "value": "33911", "content": "33911", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 132.0}, {"x": 438.0, "y": 132.0}, {"x": 438.0, "y": 144.0}, {"x": 400.0, "y": 144.0}]}], "spans": [{"offset": 178, "length": 5}], "confidence": 0.18}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS INC", "content": "PLATEPLUS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 244.0}, {"x": 255.0, "y": 244.0}, {"x": 255.0, "y": 256.0}, {"x": 152.0, "y": 256.0}]}], "spans": [{"offset": 337, "length": 13}], "confidence": 0.282}, "InvoiceDate": {"value_type": "date", "value": "2020-12-04", "content": "12-04-20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 543.0, "y": 181.0}, {"x": 605.0, "y": 182.0}, {"x": 605.0, "y": 194.0}, {"x": 543.0, "y": 194.0}]}], "spans": [{"offset": 257, "length": 8}], "confidence": 0.92}, "InvoiceId": {"value_type": "string", "value": "161-103842", "content": "161-103842", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 622.0, "y": 182.0}, {"x": 700.0, "y": 182.0}, {"x": 700.0, "y": 194.0}, {"x": 623.0, "y": 194.0}]}], "spans": [{"offset": 266, "length": 10}], "confidence": 0.285}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 25980.88, "symbol": null}, "content": "25980.88", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 670.0, "y": 993.0}, {"x": 732.0, "y": 993.0}, {"x": 732.0, "y": 1006.0}, {"x": 670.0, "y": 1006.0}]}], "spans": [{"offset": 1528, "length": 8}], "confidence": 0.597}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 25620.3, "symbol": null}, "content": "25620.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 670.0, "y": 618.0}, {"x": 732.0, "y": 618.0}, {"x": 731.0, "y": 632.0}, {"x": 670.0, "y": 632.0}]}], "spans": [{"offset": 1206, "length": 8}], "confidence": 0.228}, "UnitPrice": {"value_type": "currency", "value": {"amount": 27.0, "symbol": null}, "content": "27.0000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 598.0, "y": 618.0}, {"x": 653.0, "y": 618.0}, {"x": 653.0, "y": 632.0}, {"x": 598.0, "y": 632.0}]}], "spans": [{"offset": 1198, "length": 7}], "confidence": 0.873}}, "content": "2550\n94890\n94890\n27.0000\n25620.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 360.0, "y": 618.0}, {"x": 732.0, "y": 618.0}, {"x": 732.0, "y": 632.0}, {"x": 360.0, "y": 632.0}]}], "spans": [{"offset": 1166, "length": 10}, {"offset": 1183, "length": 5}, {"offset": 1198, "length": 16}], "confidence": 0.006}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 360.58, "symbol": null}, "content": "360.58", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 686.0, "y": 681.0}, {"x": 732.0, "y": 681.0}, {"x": 732.0, "y": 695.0}, {"x": 686.0, "y": 694.0}]}], "spans": [{"offset": 1298, "length": 6}], "confidence": 0.688}, "Description": {"value_type": "string", "value": "PLUS TRANSPORTATION CHARGE\nCOMP", "content": "PLUS TRANSPORTATION CHARGE COMP", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 668.0}, {"x": 334.0, "y": 669.0}, {"x": 334.0, "y": 695.0}, {"x": 129.0, "y": 694.0}]}], "spans": [{"offset": 1244, "length": 31}], "confidence": 0.066}, "Quantity": {"value_type": "float", "value": 94890.0, "content": "94890", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 527.0, "y": 681.0}, {"x": 565.0, "y": 681.0}, {"x": 565.0, "y": 694.0}, {"x": 528.0, "y": 694.0}]}], "spans": [{"offset": 1286, "length": 5}], "confidence": 0.471}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.38, "symbol": null}, "content": ".3800", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 615.0, "y": 682.0}, {"x": 652.0, "y": 681.0}, {"x": 652.0, "y": 694.0}, {"x": 615.0, "y": 694.0}]}], "spans": [{"offset": 1292, "length": 5}], "confidence": 0.654}}, "content": "PLUS TRANSPORTATION CHARGE COMP\nPER 100LB\n94890\n.3800\n360.58", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 668.0}, {"x": 732.0, "y": 668.0}, {"x": 732.0, "y": 695.0}, {"x": 129.0, "y": 695.0}]}], "spans": [{"offset": 1244, "length": 60}], "confidence": 0.005}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "96", "content": "96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 344.0, "y": 107.0}, {"x": 360.0, "y": 107.0}, {"x": 360.0, "y": 119.0}, {"x": 344.0, "y": 118.0}]}], "spans": [{"offset": 111, "length": 2}], "confidence": 0.269}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "4502", "po_box": null, "road": "W CLINE AVENUE", "city": "EAST CHICAGO", "state": "IN", "postal_code": "46312", "country_region": null, "street_address": "4502 W CLINE AVENUE"}, "content": "4502 W CLINE AVENUE\nEAST CHICAGO IN 46312", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 268.0}, {"x": 630.0, "y": 268.0}, {"x": 630.0, "y": 295.0}, {"x": 462.0, "y": 295.0}]}], "spans": [{"offset": 437, "length": 41}], "confidence": 0.01}, "ShippingAddressRecipient": {"value_type": "string", "value": "NATIONAL PROCESSING\nC/O", "content": "NATIONAL PROCESSING\nC/O", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 243.0}, {"x": 612.0, "y": 243.0}, {"x": 612.0, "y": 269.0}, {"x": 462.0, "y": 269.0}]}], "spans": [{"offset": 403, "length": 23}], "confidence": 0.008}, "VendorAddress": {"value_type": "address", "value": {"house_number": "6800", "po_box": null, "road": "RELIABLE PARKWAY", "city": "CHICAGO", "state": "IL", "postal_code": "60686", "country_region": null, "street_address": "6800 RELIABLE PARKWAY"}, "content": "6800 RELIABLE PARKWAY\nCHICAGO IL\n60686", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 177.0, "y": 156.0}, {"x": 344.0, "y": 156.0}, {"x": 344.0, "y": 182.0}, {"x": 177.0, "y": 182.0}]}], "spans": [{"offset": 124, "length": 38}], "confidence": 0.261}, "VendorName": {"value_type": "string", "value": "UNITED STATES STEEL\nUSS", "content": "USS\nUNITED STATES STEEL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 31.0, "y": 57.0}, {"x": 280.0, "y": 57.0}, {"x": 280.0, "y": 101.0}, {"x": 31.0, "y": 101.0}]}], "spans": [{"offset": 0, "length": 23}], "confidence": 0.711}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/0001AET-H3942068A-VR-10712-png-1_png_jpg.rf.80fe703d90e69d8badf4c47c44c72399.json b/Data/test/0001AET-H3942068A-VR-10712-png-1_png_jpg.rf.80fe703d90e69d8badf4c47c44c72399.json new file mode 100644 index 0000000000000000000000000000000000000000..1d9eb88df600cb3d00bf0e22940b16af3e2224aa --- /dev/null +++ b/Data/test/0001AET-H3942068A-VR-10712-png-1_png_jpg.rf.80fe703d90e69d8badf4c47c44c72399.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1455}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "6250", "po_box": null, "road": "N River Road", "city": "Rosemont", "state": "IL", "postal_code": "60018-4247", "country_region": null, "street_address": "6250 N River Road"}, "content": "6250 N River Road\nRosemont, IL 60018-4247", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 131.0, "y": 262.0}, {"x": 322.0, "y": 261.0}, {"x": 322.0, "y": 292.0}, {"x": 131.0, "y": 294.0}]}], "spans": [{"offset": 207, "length": 41}], "confidence": 0.284}, "BillingAddressRecipient": {"value_type": "string", "value": "INC", "content": "INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 211.0, "y": 246.0}, {"x": 234.0, "y": 246.0}, {"x": 234.0, "y": 261.0}, {"x": 212.0, "y": 261.0}]}], "spans": [{"offset": 203, "length": 3}], "confidence": null}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "1033", "po_box": null, "road": "Freeman Sw", "city": "Grand Rapids", "state": "MI", "postal_code": "49503", "country_region": null, "street_address": "1033 Freeman Sw"}, "content": "1033 Freeman Sw\nGrand Rapids, MI 49503", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 165.0}, {"x": 695.0, "y": 165.0}, {"x": 695.0, "y": 196.0}, {"x": 512.0, "y": 196.0}]}], "spans": [{"offset": 312, "length": 38}], "confidence": 0.923}, "CustomerAddressRecipient": {"value_type": "string", "value": "ALRO STEEL", "content": "ALRO STEEL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 151.0}, {"x": 591.0, "y": 150.0}, {"x": 591.0, "y": 165.0}, {"x": 512.0, "y": 166.0}]}], "spans": [{"offset": 301, "length": 10}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "ALRO STEEL", "content": "ALRO STEEL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 151.0}, {"x": 591.0, "y": 150.0}, {"x": 591.0, "y": 165.0}, {"x": 512.0, "y": 166.0}]}], "spans": [{"offset": 301, "length": 10}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2021-06-17", "content": "6/17:2121", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 284.0, "y": 366.0}, {"x": 325.0, "y": 366.0}, {"x": 325.0, "y": 378.0}, {"x": 284.0, "y": 378.0}]}], "spans": [{"offset": 561, "length": 9}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "H3942068A", "content": "H3942068A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 664.0, "y": 105.0}, {"x": 735.0, "y": 106.0}, {"x": 735.0, "y": 119.0}, {"x": 664.0, "y": 119.0}]}], "spans": [{"offset": 280, "length": 9}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 746.73, "symbol": "$"}, "content": "$746.73", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 750.0, "y": 888.0}, {"x": 805.0, "y": 888.0}, {"x": 805.0, "y": 902.0}, {"x": 750.0, "y": 902.0}]}], "spans": [{"offset": 894, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 700.0, "symbol": "$"}, "content": "$700.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 758.0, "y": 514.0}, {"x": 808.0, "y": 514.0}, {"x": 807.0, "y": 527.0}, {"x": 758.0, "y": 527.0}]}], "spans": [{"offset": 766, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "Freight {{Ist:", "content": "Freight {{Ist:", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 88.0, "y": 511.0}, {"x": 187.0, "y": 511.0}, {"x": 187.0, "y": 526.0}, {"x": 88.0, "y": 526.0}]}], "spans": [{"offset": 731, "length": 14}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1. Flat", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 538.0, "y": 514.0}, {"x": 588.0, "y": 514.0}, {"x": 588.0, "y": 528.0}, {"x": 538.0, "y": 528.0}]}], "spans": [{"offset": 746, "length": 7}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 700.0, "symbol": null}, "content": "700.00 Flat", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 637.0, "y": 513.0}, {"x": 715.0, "y": 514.0}, {"x": 715.0, "y": 528.0}, {"x": 637.0, "y": 527.0}]}], "spans": [{"offset": 754, "length": 11}], "confidence": null}}, "content": "Freight {{Ist:\n1. Flat\n700.00 Flat\n$700.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 88.0, "y": 511.0}, {"x": 808.0, "y": 511.0}, {"x": 808.0, "y": 528.0}, {"x": 88.0, "y": 528.0}]}], "spans": [{"offset": 731, "length": 42}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 35.69, "symbol": "$"}, "content": "$35.69", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 766.0, "y": 541.0}, {"x": 808.0, "y": 541.0}, {"x": 807.0, "y": 552.0}, {"x": 766.0, "y": 552.0}]}], "spans": [{"offset": 810, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Fuel Surcharge B", "content": "Fuel Surcharge B", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 537.0}, {"x": 202.0, "y": 537.0}, {"x": 202.0, "y": 553.0}, {"x": 87.0, "y": 553.0}]}], "spans": [{"offset": 774, "length": 16}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1. Flat", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 538.0, "y": 540.0}, {"x": 586.0, "y": 540.0}, {"x": 586.0, "y": 553.0}, {"x": 538.0, "y": 553.0}]}], "spans": [{"offset": 791, "length": 7}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 35.69, "symbol": null}, "content": "35.69 Flat", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 644.0, "y": 539.0}, {"x": 714.0, "y": 540.0}, {"x": 714.0, "y": 553.0}, {"x": 644.0, "y": 552.0}]}], "spans": [{"offset": 799, "length": 10}], "confidence": null}}, "content": "Fuel Surcharge B\n1. Flat\n35.69 Flat\n$35.69", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 537.0}, {"x": 808.0, "y": 537.0}, {"x": 808.0, "y": 553.0}, {"x": 87.0, "y": 553.0}]}], "spans": [{"offset": 774, "length": 42}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P O Box 644631", "road": null, "city": "Pittsburgh", "state": "PA", "postal_code": "15264-4031", "country_region": null, "street_address": "P O Box 644631 Dept AFL"}, "content": "P O Box 644631\nDept AFL\nPittsburgh, PA 15264-4031", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 263.0}, {"x": 711.0, "y": 263.0}, {"x": 711.0, "y": 310.0}, {"x": 511.0, "y": 310.0}]}], "spans": [{"offset": 393, "length": 49}], "confidence": 0.988}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Aetna Freight Lines, Inc", "content": "Aetna Freight Lines, Inc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 246.0}, {"x": 701.0, "y": 246.0}, {"x": 701.0, "y": 262.0}, {"x": 512.0, "y": 262.0}]}], "spans": [{"offset": 368, "length": 24}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "100", "po_box": null, "road": "Industry Drive", "city": "Pittsburgh", "state": "PA", "postal_code": "15275", "country_region": null, "street_address": "100 Industry Drive"}, "content": "100 Industry Drive Pittsburgh,PA 15275", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 106.0}, {"x": 174.0, "y": 106.0}, {"x": 174.0, "y": 128.0}, {"x": 86.0, "y": 128.0}]}], "spans": [{"offset": 67, "length": 38}], "confidence": 0.007}, "VendorAddressRecipient": {"value_type": "string", "value": "Tli of", "content": "Tli\nof", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 92.0}, {"x": 140.0, "y": 95.0}, {"x": 139.0, "y": 109.0}, {"x": 85.0, "y": 106.0}]}], "spans": [{"offset": 42, "length": 3}, {"offset": 53, "length": 2}], "confidence": null}, "VendorName": {"value_type": "string", "value": "Aetna Freight Lines, Inc", "content": "Aetna Freight Lines, Inc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 186.0, "y": 44.0}, {"x": 599.0, "y": 47.0}, {"x": 599.0, "y": 88.0}, {"x": 186.0, "y": 85.0}]}], "spans": [{"offset": 0, "length": 24}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/0001AET-H3942068A-VR-10712-png-1_png_jpg.rf.9b8a15a33dae1fe0d60c8204509beff7.json b/Data/test/0001AET-H3942068A-VR-10712-png-1_png_jpg.rf.9b8a15a33dae1fe0d60c8204509beff7.json new file mode 100644 index 0000000000000000000000000000000000000000..c9157408f78bd90970d8517fe97d8d33d1b67d7e --- /dev/null +++ b/Data/test/0001AET-H3942068A-VR-10712-png-1_png_jpg.rf.9b8a15a33dae1fe0d60c8204509beff7.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1465}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "6250", "po_box": null, "road": "N River Road", "city": "Rosemont", "state": "IL", "postal_code": "60018-4247", "country_region": null, "street_address": "6250 N River Road"}, "content": "6250 N River Road\nRosemont, IL 60018-4247", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 131.0, "y": 262.0}, {"x": 322.0, "y": 262.0}, {"x": 322.0, "y": 293.0}, {"x": 131.0, "y": 293.0}]}], "spans": [{"offset": 207, "length": 41}], "confidence": 0.025}, "BillingAddressRecipient": {"value_type": "string", "value": "INC", "content": "INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 211.0, "y": 246.0}, {"x": 234.0, "y": 247.0}, {"x": 234.0, "y": 261.0}, {"x": 211.0, "y": 261.0}]}], "spans": [{"offset": 203, "length": 3}], "confidence": null}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "1033", "po_box": null, "road": "Freeman Sw", "city": "Grand Rapids", "state": "MI", "postal_code": "49503", "country_region": null, "street_address": "1033 Freeman Sw"}, "content": "1033 Freeman Sw\nGrand Rapids, MI 49503", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 165.0}, {"x": 695.0, "y": 165.0}, {"x": 695.0, "y": 196.0}, {"x": 512.0, "y": 196.0}]}], "spans": [{"offset": 312, "length": 38}], "confidence": 0.953}, "CustomerAddressRecipient": {"value_type": "string", "value": "ALRO STEEL", "content": "ALRO STEEL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 151.0}, {"x": 591.0, "y": 151.0}, {"x": 591.0, "y": 166.0}, {"x": 512.0, "y": 166.0}]}], "spans": [{"offset": 301, "length": 10}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "ALRO STEEL", "content": "ALRO STEEL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 151.0}, {"x": 591.0, "y": 151.0}, {"x": 591.0, "y": 166.0}, {"x": 512.0, "y": 166.0}]}], "spans": [{"offset": 301, "length": 10}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2021-12-02", "content": "6/1222021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 367.0}, {"x": 394.0, "y": 366.0}, {"x": 394.0, "y": 378.0}, {"x": 352.0, "y": 378.0}]}], "spans": [{"offset": 581, "length": 9}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 746.73, "symbol": "$"}, "content": "$746.73", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 750.0, "y": 887.0}, {"x": 806.0, "y": 887.0}, {"x": 806.0, "y": 902.0}, {"x": 750.0, "y": 902.0}]}], "spans": [{"offset": 904, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 700.0, "symbol": "$"}, "content": "$700.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 758.0, "y": 514.0}, {"x": 807.0, "y": 514.0}, {"x": 807.0, "y": 527.0}, {"x": 758.0, "y": 527.0}]}], "spans": [{"offset": 776, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "Freight (#Ist!", "content": "Freight (#Ist!", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 88.0, "y": 511.0}, {"x": 187.0, "y": 511.0}, {"x": 187.0, "y": 526.0}, {"x": 88.0, "y": 526.0}]}], "spans": [{"offset": 741, "length": 14}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1. Flat", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 538.0, "y": 513.0}, {"x": 588.0, "y": 513.0}, {"x": 588.0, "y": 528.0}, {"x": 538.0, "y": 528.0}]}], "spans": [{"offset": 756, "length": 7}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 700.0, "symbol": null}, "content": "700.00 Flat", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 637.0, "y": 512.0}, {"x": 715.0, "y": 514.0}, {"x": 715.0, "y": 528.0}, {"x": 637.0, "y": 526.0}]}], "spans": [{"offset": 764, "length": 11}], "confidence": null}}, "content": "Freight (#Ist!\n1. Flat\n700.00 Flat\n$700.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 88.0, "y": 511.0}, {"x": 807.0, "y": 511.0}, {"x": 807.0, "y": 528.0}, {"x": 88.0, "y": 528.0}]}], "spans": [{"offset": 741, "length": 42}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 35.69, "symbol": "$"}, "content": "$35.69", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 765.0, "y": 541.0}, {"x": 808.0, "y": 541.0}, {"x": 808.0, "y": 552.0}, {"x": 765.0, "y": 552.0}]}], "spans": [{"offset": 820, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Fuel Surcharge B", "content": "Fuel Surcharge B", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 537.0}, {"x": 203.0, "y": 537.0}, {"x": 203.0, "y": 553.0}, {"x": 87.0, "y": 553.0}]}], "spans": [{"offset": 784, "length": 16}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1. Flat", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 538.0, "y": 539.0}, {"x": 587.0, "y": 539.0}, {"x": 587.0, "y": 554.0}, {"x": 538.0, "y": 554.0}]}], "spans": [{"offset": 801, "length": 7}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 35.69, "symbol": null}, "content": "35.69 Flat", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 644.0, "y": 539.0}, {"x": 713.0, "y": 540.0}, {"x": 713.0, "y": 553.0}, {"x": 644.0, "y": 552.0}]}], "spans": [{"offset": 809, "length": 10}], "confidence": null}}, "content": "Fuel Surcharge B\n1. Flat\n35.69 Flat\n$35.69", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 537.0}, {"x": 808.0, "y": 537.0}, {"x": 808.0, "y": 554.0}, {"x": 87.0, "y": 554.0}]}], "spans": [{"offset": 784, "length": 42}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P O Box 644631", "road": null, "city": "Pittsburgh", "state": "PA", "postal_code": "15264-4831", "country_region": null, "street_address": "P O Box 644631 Dept AFL"}, "content": "P O Box 644631\nDept AFL\nPittsburgh, PA 15264-4831", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 263.0}, {"x": 710.0, "y": 263.0}, {"x": 710.0, "y": 310.0}, {"x": 511.0, "y": 310.0}]}], "spans": [{"offset": 393, "length": 49}], "confidence": 0.99}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Aetna Freight Lines, Inc", "content": "Aetna Freight Lines, Inc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 246.0}, {"x": 701.0, "y": 246.0}, {"x": 701.0, "y": 262.0}, {"x": 512.0, "y": 262.0}]}], "spans": [{"offset": 368, "length": 24}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "100", "po_box": null, "road": "Industry Drive", "city": "Pittsburgh", "state": "PA", "postal_code": "15275", "country_region": null, "street_address": "100 Industry Drive"}, "content": "100 Industry Drive Pittsburgh,PA 15275", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 106.0}, {"x": 175.0, "y": 106.0}, {"x": 175.0, "y": 128.0}, {"x": 86.0, "y": 128.0}]}], "spans": [{"offset": 67, "length": 38}], "confidence": 0.008}, "VendorAddressRecipient": {"value_type": "string", "value": "Tli of", "content": "Tli\nof", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 95.0}, {"x": 139.0, "y": 95.0}, {"x": 139.0, "y": 107.0}, {"x": 87.0, "y": 107.0}]}], "spans": [{"offset": 42, "length": 3}, {"offset": 53, "length": 2}], "confidence": null}, "VendorName": {"value_type": "string", "value": "Aetna Freight Lines, Inc", "content": "Aetna Freight Lines, Inc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 185.0, "y": 44.0}, {"x": 599.0, "y": 47.0}, {"x": 599.0, "y": 88.0}, {"x": 185.0, "y": 85.0}]}], "spans": [{"offset": 0, "length": 24}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/0001AK-Steel-3-png-1_png_jpg.rf.09bc4cecff20ae61f2da1a8dfbe7e9d9.json b/Data/test/0001AK-Steel-3-png-1_png_jpg.rf.09bc4cecff20ae61f2da1a8dfbe7e9d9.json new file mode 100644 index 0000000000000000000000000000000000000000..bb68543e2f31dc94d8270678bca50ee4aaeb38f7 --- /dev/null +++ b/Data/test/0001AK-Steel-3-png-1_png_jpg.rf.09bc4cecff20ae61f2da1a8dfbe7e9d9.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1840}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "333", "po_box": null, "road": "OLD ROCK RD", "city": "GRANITE CITY", "state": "IL", "postal_code": "62040", "country_region": null, "street_address": "333 OLD ROCK RD"}, "content": "333 OLD ROCK RD\nGRANITE CITY IL 62040", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 83.0, "y": 243.0}, {"x": 287.0, "y": 243.0}, {"x": 287.0, "y": 275.0}, {"x": 83.0, "y": 275.0}]}], "spans": [{"offset": 493, "length": 37}], "confidence": 0.826}, "BillingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC", "content": "PLATEPLUS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 83.0, "y": 228.0}, {"x": 210.0, "y": 228.0}, {"x": 210.0, "y": 243.0}, {"x": 83.0, "y": 243.0}]}], "spans": [{"offset": 479, "length": 13}], "confidence": 0.84}, "CustomerId": {"value_type": "string", "value": "000296608", "content": "000296608", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 112.0}, {"x": 548.0, "y": 113.0}, {"x": 549.0, "y": 127.0}, {"x": 462.0, "y": 127.0}]}], "spans": [{"offset": 351, "length": 9}], "confidence": 0.943}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS INC", "content": "PLATEPLUS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 83.0, "y": 228.0}, {"x": 210.0, "y": 228.0}, {"x": 210.0, "y": 243.0}, {"x": 83.0, "y": 243.0}]}], "spans": [{"offset": 479, "length": 13}], "confidence": 0.84}, "InvoiceDate": {"value_type": "date", "value": "2020-08-02", "content": "08/02/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 577.0, "y": 80.0}, {"x": 673.0, "y": 80.0}, {"x": 673.0, "y": 95.0}, {"x": 577.0, "y": 95.0}]}], "spans": [{"offset": 303, "length": 10}], "confidence": 0.953}, "InvoiceId": {"value_type": "string", "value": "3668699", "content": "3668699", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 700.0, "y": 39.0}, {"x": 772.0, "y": 39.0}, {"x": 773.0, "y": 55.0}, {"x": 700.0, "y": 54.0}]}], "spans": [{"offset": 32, "length": 7}], "confidence": 0.949}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 552.8, "symbol": "USD"}, "content": "USD 46.552.80", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 718.0, "y": 847.0}, {"x": 878.0, "y": 847.0}, {"x": 878.0, "y": 863.0}, {"x": 718.0, "y": 863.0}]}], "spans": [{"offset": 1591, "length": 13}], "confidence": 0.746}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 44100.0, "symbol": null}, "content": "44,100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 799.0, "y": 504.0}, {"x": 878.0, "y": 504.0}, {"x": 878.0, "y": 520.0}, {"x": 800.0, "y": 520.0}]}], "spans": [{"offset": 1168, "length": 9}], "confidence": 0.01}, "ProductCode": {"value_type": "string", "value": "060121", "content": "060121", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 81.0, "y": 505.0}, {"x": 134.0, "y": 504.0}, {"x": 134.0, "y": 520.0}, {"x": 81.0, "y": 519.0}]}], "spans": [{"offset": 1135, "length": 6}], "confidence": 0.002}, "Quantity": {"value_type": "float", "value": 168000.0, "content": "168,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 592.0, "y": 505.0}, {"x": 652.0, "y": 505.0}, {"x": 652.0, "y": 520.0}, {"x": 592.0, "y": 520.0}]}], "spans": [{"offset": 1152, "length": 7}], "confidence": 0.008}, "UnitPrice": {"value_type": "currency", "value": {"amount": 26.25, "symbol": null}, "content": "26.2500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 691.0, "y": 505.0}, {"x": 751.0, "y": 505.0}, {"x": 751.0, "y": 520.0}, {"x": 691.0, "y": 519.0}]}], "spans": [{"offset": 1160, "length": 7}], "confidence": 0.003}}, "content": "060121 3 8,403\nN\n168,000\n26.2500\n44,100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 81.0, "y": 504.0}, {"x": 878.0, "y": 504.0}, {"x": 878.0, "y": 520.0}, {"x": 81.0, "y": 520.0}]}], "spans": [{"offset": 1135, "length": 42}], "confidence": 0.991}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2452.8, "symbol": null}, "content": "2,452.80", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 808.0, "y": 670.0}, {"x": 879.0, "y": 670.0}, {"x": 879.0, "y": 686.0}, {"x": 808.0, "y": 686.0}]}], "spans": [{"offset": 1566, "length": 8}], "confidence": 0.004}, "Description": {"value_type": "string", "value": "PER 100#", "content": "PER 100#", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 337.0, "y": 670.0}, {"x": 409.0, "y": 670.0}, {"x": 409.0, "y": 684.0}, {"x": 337.0, "y": 684.0}]}], "spans": [{"offset": 1355, "length": 8}], "confidence": 0.002}, "Quantity": {"value_type": "float", "value": 168000.0, "content": "168,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 595.0, "y": 670.0}, {"x": 656.0, "y": 670.0}, {"x": 656.0, "y": 685.0}, {"x": 595.0, "y": 685.0}]}], "spans": [{"offset": 1366, "length": 7}], "confidence": 0.004}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1.46, "symbol": null}, "content": "1.4600", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 702.0, "y": 670.0}, {"x": 755.0, "y": 670.0}, {"x": 755.0, "y": 685.0}, {"x": 703.0, "y": 685.0}]}], "spans": [{"offset": 1559, "length": 6}], "confidence": 0.003}}, "content": "FREIGHT\nPER 100#\nG\n168,000\n1.4600\n2,452.80", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 73.0, "y": 670.0}, {"x": 879.0, "y": 670.0}, {"x": 879.0, "y": 686.0}, {"x": 73.0, "y": 686.0}]}], "spans": [{"offset": 1347, "length": 26}, {"offset": 1559, "length": 15}], "confidence": 0.993}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "NET 30", "content": "NET 30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 576.0, "y": 175.0}, {"x": 634.0, "y": 177.0}, {"x": 634.0, "y": 192.0}, {"x": 576.0, "y": 190.0}]}], "spans": [{"offset": 637, "length": 6}], "confidence": 0.845}, "PurchaseOrder": {"value_type": "string", "value": "GC-11186", "content": "GC-11186", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 576.0, "y": 145.0}, {"x": 653.0, "y": 144.0}, {"x": 653.0, "y": 159.0}, {"x": 576.0, "y": 159.0}]}], "spans": [{"offset": 461, "length": 8}], "confidence": 0.848}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "333", "po_box": null, "road": "OLD ROCK RD", "city": "GRANITE CITY", "state": "IL", "postal_code": "62040", "country_region": null, "street_address": "333 OLD ROCK RD"}, "content": "333 OLD ROCK RD\nGRANITE CITY IL 62040", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 252.0}, {"x": 698.0, "y": 252.0}, {"x": 698.0, "y": 283.0}, {"x": 494.0, "y": 283.0}]}], "spans": [{"offset": 674, "length": 15}, {"offset": 692, "length": 21}], "confidence": 0.727}, "ShippingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC - GRANITE CITY\nGC IN-TRANSIT WAREHOUSE", "content": "GC IN-TRANSIT WAREHOUSE\nPLATEPLUS INC - GRANITE CITY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 219.0}, {"x": 767.0, "y": 219.0}, {"x": 767.0, "y": 251.0}, {"x": 494.0, "y": 251.0}]}], "spans": [{"offset": 648, "length": 23}, {"offset": 714, "length": 28}], "confidence": 0.65}, "VendorAddress": {"value_type": "address", "value": {"house_number": "9227", "po_box": null, "road": "CENTRE POINTE DRIVE", "city": "WEST CHESTER", "state": "OH", "postal_code": "45069", "country_region": null, "street_address": "9227 CENTRE POINTE DRIVE"}, "content": "9227 CENTRE POINTE DRIVE, WEST CHESTER, OH 45069", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 45.0}, {"x": 531.0, "y": 45.0}, {"x": 531.0, "y": 60.0}, {"x": 191.0, "y": 60.0}]}], "spans": [{"offset": 40, "length": 48}], "confidence": 0.799}, "VendorAddressRecipient": {"value_type": "string", "value": "AK STEEL CORPORATION", "content": "AK STEEL CORPORATION", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 113.0}, {"x": 339.0, "y": 113.0}, {"x": 339.0, "y": 130.0}, {"x": 129.0, "y": 130.0}]}], "spans": [{"offset": 177, "length": 20}], "confidence": 0.596}, "VendorName": {"value_type": "string", "value": "AKSteel", "content": "AKSteel", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 48.0, "y": 143.0}, {"x": 116.0, "y": 143.0}, {"x": 117.0, "y": 161.0}, {"x": 49.0, "y": 160.0}]}], "spans": [{"offset": 255, "length": 7}], "confidence": 0.846}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/0001BES-JVT-SI-15552-VR-14895-png-1_png_jpg.rf.abf70a79b228851293eb40de9d84b7bb.json b/Data/test/0001BES-JVT-SI-15552-VR-14895-png-1_png_jpg.rf.abf70a79b228851293eb40de9d84b7bb.json new file mode 100644 index 0000000000000000000000000000000000000000..60b5b3e12b92a98a26a54a1a30e461f74cffa743 --- /dev/null +++ b/Data/test/0001BES-JVT-SI-15552-VR-14895-png-1_png_jpg.rf.abf70a79b228851293eb40de9d84b7bb.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1482}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "WATERWAY AVE", "city": "THE WOODLANDS", "state": "TX", "postal_code": "77380", "country_region": null, "street_address": "21 WATERWAY AVE STE# 525"}, "content": "21 WATERWAY AVE STE# 525\nTHE WOODLANDS, TX 77380", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 271.0}, {"x": 309.0, "y": 271.0}, {"x": 309.0, "y": 302.0}, {"x": 112.0, "y": 302.0}]}], "spans": [{"offset": 54, "length": 48}], "confidence": 0.747}, "CustomerAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC", "content": "PLATEPLUS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 258.0}, {"x": 215.0, "y": 258.0}, {"x": 215.0, "y": 273.0}, {"x": 111.0, "y": 273.0}]}], "spans": [{"offset": 40, "length": 13}], "confidence": 0.925}, "CustomerId": {"value_type": "string", "value": "158429", "content": "158429", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 556.0, "y": 126.0}, {"x": 594.0, "y": 126.0}, {"x": 594.0, "y": 137.0}, {"x": 557.0, "y": 137.0}]}], "spans": [{"offset": 168, "length": 6}], "confidence": 0.943}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS INC", "content": "PLATEPLUS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 258.0}, {"x": 215.0, "y": 258.0}, {"x": 215.0, "y": 273.0}, {"x": 111.0, "y": 273.0}]}], "spans": [{"offset": 40, "length": 13}], "confidence": 0.925}, "DueDate": {"value_type": "date", "value": "2021-09-04", "content": "9/4/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 569.0}, {"x": 182.0, "y": 568.0}, {"x": 182.0, "y": 583.0}, {"x": 136.0, "y": 583.0}]}], "spans": [{"offset": 1226, "length": 8}], "confidence": 0.933}, "InvoiceDate": {"value_type": "date", "value": "2021-08-05", "content": "8/5/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 555.0, "y": 113.0}, {"x": 600.0, "y": 112.0}, {"x": 601.0, "y": 124.0}, {"x": 555.0, "y": 124.0}]}], "spans": [{"offset": 147, "length": 8}], "confidence": 0.943}, "InvoiceId": {"value_type": "string", "value": "JVT SI-15552", "content": "JVT SI-15552", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 555.0, "y": 97.0}, {"x": 628.0, "y": 97.0}, {"x": 628.0, "y": 111.0}, {"x": 555.0, "y": 111.0}]}], "spans": [{"offset": 129, "length": 12}], "confidence": 0.837}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 3727.65, "symbol": null}, "content": "3,727.65", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 799.0, "y": 570.0}, {"x": 846.0, "y": 569.0}, {"x": 846.0, "y": 583.0}, {"x": 799.0, "y": 582.0}]}], "spans": [{"offset": 1251, "length": 8}], "confidence": 0.597}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Description": {"value_type": "string", "value": "TEMPERED LEVELED PLATE CUSTOMER OWNED A36/SA36\n0.5000\" x 72\" x 240\"", "content": "TEMPERED LEVELED PLATE CUSTOMER OWNED A36/SA36 0.5000\" x 72\" x 240\"", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 70.0, "y": 435.0}, {"x": 413.0, "y": 435.0}, {"x": 413.0, "y": 460.0}, {"x": 70.0, "y": 460.0}]}], "spans": [{"offset": 737, "length": 67}], "confidence": 0.427}, "ProductCode": {"value_type": "string", "value": "1-1", "content": "1-1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 33.0, "y": 437.0}, {"x": 50.0, "y": 437.0}, {"x": 50.0, "y": 450.0}, {"x": 33.0, "y": 450.0}]}], "spans": [{"offset": 733, "length": 3}], "confidence": 0.292}, "Quantity": {"value_type": "float", "value": 18.0, "content": "18 PCS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 518.0, "y": 437.0}, {"x": 554.0, "y": 438.0}, {"x": 554.0, "y": 450.0}, {"x": 518.0, "y": 449.0}]}], "spans": [{"offset": 805, "length": 6}], "confidence": 0.276}}, "content": "Packing List 52967-1\nBy CUST PICK UP\n1-1\nTEMPERED LEVELED PLATE CUSTOMER OWNED A36/SA36 0.5000\" x 72\" x 240\"\n18 PCS CUT-TO-LENGTH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 32.0, "y": 414.0}, {"x": 601.0, "y": 414.0}, {"x": 601.0, "y": 460.0}, {"x": 32.0, "y": 460.0}]}], "spans": [{"offset": 670, "length": 20}, {"offset": 712, "length": 15}, {"offset": 733, "length": 92}], "confidence": 0.657}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1279.54, "symbol": null}, "content": "1,279.54", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 800.0, "y": 449.0}, {"x": 845.0, "y": 448.0}, {"x": 845.0, "y": 458.0}, {"x": 801.0, "y": 458.0}]}], "spans": [{"offset": 905, "length": 8}], "confidence": 0.949}, "Description": {"value_type": "string", "value": "TEST SAMPLES", "content": "TEST SAMPLES", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 468.0}, {"x": 603.0, "y": 469.0}, {"x": 603.0, "y": 481.0}, {"x": 515.0, "y": 479.0}]}], "spans": [{"offset": 840, "length": 12}], "confidence": 0.417}, "Quantity": {"value_type": "float", "value": 44122.0, "content": "44,122 LBS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 606.0, "y": 437.0}, {"x": 666.0, "y": 437.0}, {"x": 666.0, "y": 449.0}, {"x": 606.0, "y": 449.0}]}], "spans": [{"offset": 853, "length": 10}], "confidence": 0.235}, "UnitPrice": {"value_type": "currency", "value": {"amount": 2.9, "symbol": null}, "content": "2.90/CWT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 686.0, "y": 449.0}, {"x": 739.0, "y": 447.0}, {"x": 739.0, "y": 459.0}, {"x": 686.0, "y": 458.0}]}], "spans": [{"offset": 870, "length": 8}], "confidence": 0.937}}, "content": "TEST SAMPLES\n44,122 LBS\nPrice 2.90/CWT 105.00/EA 25.00/EA\nAmount 1,279.54 1,890.00 450.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 437.0}, {"x": 847.0, "y": 437.0}, {"x": 847.0, "y": 480.0}, {"x": 515.0, "y": 480.0}]}], "spans": [{"offset": 840, "length": 89}], "confidence": 0.747}, {"value_type": "dictionary", "value": {"Description": {"value_type": "string", "value": "Y.T.E TESTING", "content": "Y.T.E TESTING", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 521.0, "y": 459.0}, {"x": 601.0, "y": 459.0}, {"x": 601.0, "y": 470.0}, {"x": 521.0, "y": 470.0}]}], "spans": [{"offset": 826, "length": 13}], "confidence": 0.478}}, "content": "Y.T.E TESTING", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 521.0, "y": 459.0}, {"x": 601.0, "y": 459.0}, {"x": 601.0, "y": 470.0}, {"x": 521.0, "y": 470.0}]}], "spans": [{"offset": 826, "length": 13}], "confidence": 0.744}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 72.56, "symbol": null}, "content": "72.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 816.0, "y": 495.0}, {"x": 847.0, "y": 495.0}, {"x": 847.0, "y": 508.0}, {"x": 816.0, "y": 508.0}]}], "spans": [{"offset": 1039, "length": 5}], "confidence": 0.936}, "Description": {"value_type": "string", "value": "TEMPERED LEVELED PLATE CUSTOMER OWNED A36/SA36\n0.5000\" x 72\" x 1\"", "content": "TEMPERED LEVELED PLATE CUSTOMER OWNED A36/SA36 0.5000\" x 72\" x 1\"", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 71.0, "y": 483.0}, {"x": 414.0, "y": 483.0}, {"x": 414.0, "y": 509.0}, {"x": 71.0, "y": 509.0}]}], "spans": [{"offset": 934, "length": 65}], "confidence": 0.446}, "ProductCode": {"value_type": "string", "value": "2-1", "content": "2-1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 33.0, "y": 485.0}, {"x": 51.0, "y": 485.0}, {"x": 50.0, "y": 497.0}, {"x": 33.0, "y": 497.0}]}], "spans": [{"offset": 930, "length": 3}], "confidence": 0.292}, "Quantity": {"value_type": "float", "value": 2502.0, "content": "2,502 LBS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 612.0, "y": 484.0}, {"x": 667.0, "y": 485.0}, {"x": 667.0, "y": 498.0}, {"x": 612.0, "y": 497.0}]}], "spans": [{"offset": 1020, "length": 9}], "confidence": 0.227}, "UnitPrice": {"value_type": "currency", "value": {"amount": 2.9, "symbol": null}, "content": "2.90/CWT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 686.0, "y": 496.0}, {"x": 740.0, "y": 495.0}, {"x": 740.0, "y": 509.0}, {"x": 686.0, "y": 508.0}]}], "spans": [{"offset": 1030, "length": 8}], "confidence": 0.936}}, "content": "2-1\nTEMPERED LEVELED PLATE CUSTOMER OWNED A36/SA36 0.5000\" x 72\" x 1\"\n2 PCS CUT-TO-LENGTH\n2,502 LBS\n2.90/CWT\n72.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 33.0, "y": 483.0}, {"x": 847.0, "y": 483.0}, {"x": 847.0, "y": 509.0}, {"x": 33.0, "y": 509.0}]}], "spans": [{"offset": 930, "length": 114}], "confidence": 0.742}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 35.55, "symbol": null}, "content": "35.55", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 816.0, "y": 525.0}, {"x": 845.0, "y": 525.0}, {"x": 845.0, "y": 537.0}, {"x": 817.0, "y": 536.0}]}], "spans": [{"offset": 1156, "length": 5}], "confidence": 0.937}, "Description": {"value_type": "string", "value": "TEMPERED LEVELED PLATE CUSTOMER OWNED A36/SA36\n0.5000\" x 72\" x 120\"", "content": "TEMPERED LEVELED PLATE CUSTOMER OWNED A36/SA36 0.5000\" x 72\" x 120\"", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 70.0, "y": 510.0}, {"x": 413.0, "y": 510.0}, {"x": 413.0, "y": 537.0}, {"x": 70.0, "y": 537.0}]}], "spans": [{"offset": 1049, "length": 67}], "confidence": 0.479}, "ProductCode": {"value_type": "string", "value": "3-1", "content": "3-1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 32.0, "y": 512.0}, {"x": 50.0, "y": 512.0}, {"x": 50.0, "y": 525.0}, {"x": 32.0, "y": 525.0}]}], "spans": [{"offset": 1045, "length": 3}], "confidence": 0.292}, "Quantity": {"value_type": "float", "value": 1226.0, "content": "1,226", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 612.0, "y": 512.0}, {"x": 641.0, "y": 512.0}, {"x": 641.0, "y": 525.0}, {"x": 613.0, "y": 525.0}]}], "spans": [{"offset": 1137, "length": 5}], "confidence": 0.589}, "UnitPrice": {"value_type": "currency", "value": {"amount": 2.9, "symbol": null}, "content": "2.90/CWT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 686.0, "y": 524.0}, {"x": 740.0, "y": 523.0}, {"x": 740.0, "y": 537.0}, {"x": 687.0, "y": 537.0}]}], "spans": [{"offset": 1147, "length": 8}], "confidence": 0.938}}, "content": "3-1\nTEMPERED LEVELED PLATE CUSTOMER OWNED A36/SA36 0.5000\" x 72\" x 120\"\n1 PCS CUT-TO-LENGTH\n1,226 LBS\n2.90/CWT\n35.55", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 32.0, "y": 510.0}, {"x": 845.0, "y": 510.0}, {"x": 845.0, "y": 537.0}, {"x": 32.0, "y": 537.0}]}], "spans": [{"offset": 1045, "length": 116}], "confidence": 0.681}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "233431-1003402", "content": "233431-1003402", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 401.0}, {"x": 176.0, "y": 401.0}, {"x": 176.0, "y": 415.0}, {"x": 87.0, "y": 415.0}]}], "spans": [{"offset": 600, "length": 14}], "confidence": 0.712}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. BOX 205258", "road": null, "city": "DALLAS", "state": "TX", "postal_code": "75320-5258", "country_region": null, "street_address": "P.O. BOX 205258"}, "content": "P.O. BOX 205258\nDALLAS, TX 75320-5258", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 309.0}, {"x": 637.0, "y": 309.0}, {"x": 637.0, "y": 335.0}, {"x": 484.0, "y": 335.0}]}], "spans": [{"offset": 469, "length": 37}], "confidence": 0.894}, "RemittanceAddressRecipient": {"value_type": "string", "value": "BESHERT STEEL PROCESSING-A JOINT\nVENTURE OF STEEL WAREHOUSE &\nTRIPLE-S STEEL HOLDINGS", "content": "BESHERT STEEL PROCESSING-A JOINT\nVENTURE OF STEEL WAREHOUSE &\nTRIPLE-S STEEL HOLDINGS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 485.0, "y": 272.0}, {"x": 740.0, "y": 272.0}, {"x": 740.0, "y": 312.0}, {"x": 485.0, "y": 312.0}]}], "spans": [{"offset": 383, "length": 85}], "confidence": 0.565}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "8807", "po_box": null, "road": "LIBERTY ROAD", "city": "HOUSTON", "state": "TX", "postal_code": "77028", "country_region": null, "street_address": "8807 LIBERTY ROAD"}, "content": "8807 LIBERTY ROAD, HOUSTON, TX 77028", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 257.0, "y": 384.0}, {"x": 499.0, "y": 384.0}, {"x": 499.0, "y": 400.0}, {"x": 257.0, "y": 400.0}]}], "spans": [{"offset": 555, "length": 36}], "confidence": 0.828}, "ShippingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC,", "content": "PLATEPLUS INC,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 158.0, "y": 385.0}, {"x": 255.0, "y": 385.0}, {"x": 255.0, "y": 400.0}, {"x": 158.0, "y": 400.0}]}], "spans": [{"offset": 540, "length": 14}], "confidence": 0.79}, "VendorAddress": {"value_type": "address", "value": {"house_number": "15355", "po_box": null, "road": "JACINTO PORT BOULEVARD", "city": "HOUSTON", "state": "TX", "postal_code": "77015", "country_region": null, "street_address": "15355 JACINTO PORT BOULEVARD"}, "content": "15355 JACINTO PORT BOULEVARD\nHOUSTON, TX 77015", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 491.0, "y": 206.0}, {"x": 664.0, "y": 206.0}, {"x": 664.0, "y": 226.0}, {"x": 491.0, "y": 226.0}]}], "spans": [{"offset": 297, "length": 46}], "confidence": 0.877}, "VendorAddressRecipient": {"value_type": "string", "value": "BESHERT STEEL PROCESSING\nJOINT VENTURE OF\nSTEEL WAREHOUSE CO. &\nTRIPLE-S STEEL HOLDINGS INC.", "content": "BESHERT STEEL PROCESSING\nJOINT VENTURE OF\nSTEEL WAREHOUSE CO. &\nTRIPLE-S STEEL HOLDINGS INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 168.0}, {"x": 653.0, "y": 168.0}, {"x": 653.0, "y": 207.0}, {"x": 492.0, "y": 207.0}]}], "spans": [{"offset": 204, "length": 92}], "confidence": 0.651}, "VendorName": {"value_type": "string", "value": "Beshert\nSTEEL PROCESSING", "content": "Beshert STEEL PROCESSING", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 37.0, "y": 46.0}, {"x": 277.0, "y": 46.0}, {"x": 277.0, "y": 133.0}, {"x": 37.0, "y": 133.0}]}], "spans": [{"offset": 3, "length": 24}], "confidence": 0.928}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/0001BLD-HOU-008993-VR-11309-png-1_png_jpg.rf.7674c1cae001adbe339ec7a5d4164958.json b/Data/test/0001BLD-HOU-008993-VR-11309-png-1_png_jpg.rf.7674c1cae001adbe339ec7a5d4164958.json new file mode 100644 index 0000000000000000000000000000000000000000..c5b4c6cc0e1e5d8bb0e7cf3ab4940a051c2d3f23 --- /dev/null +++ b/Data/test/0001BLD-HOU-008993-VR-11309-png-1_png_jpg.rf.7674c1cae001adbe339ec7a5d4164958.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1005}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 1615.91, "symbol": "$"}, "content": "$1,615.91", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 766.0, "y": 950.0}, {"x": 828.0, "y": 950.0}, {"x": 829.0, "y": 965.0}, {"x": 766.0, "y": 964.0}]}], "spans": [{"offset": 994, "length": 9}], "confidence": 0.957}, "BillingAddress": {"value_type": "address", "value": {"house_number": "8807", "po_box": null, "road": "Liberty Road", "city": "Houston", "state": "TX", "postal_code": "77028", "country_region": null, "street_address": "8807 Liberty Road"}, "content": "8807 Liberty Road\nHouston, TX 77028", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 254.0}, {"x": 165.0, "y": 254.0}, {"x": 165.0, "y": 289.0}, {"x": 60.0, "y": 289.0}]}], "spans": [{"offset": 134, "length": 35}], "confidence": 0.917}, "BillingAddressRecipient": {"value_type": "string", "value": "Plateplus, Inc.", "content": "Plateplus, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 61.0, "y": 235.0}, {"x": 155.0, "y": 235.0}, {"x": 155.0, "y": 252.0}, {"x": 61.0, "y": 252.0}]}], "spans": [{"offset": 118, "length": 15}], "confidence": 0.937}, "CustomerName": {"value_type": "string", "value": "Plateplus, Inc.", "content": "Plateplus, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 61.0, "y": 235.0}, {"x": 155.0, "y": 235.0}, {"x": 155.0, "y": 252.0}, {"x": 61.0, "y": 252.0}]}], "spans": [{"offset": 118, "length": 15}], "confidence": 0.937}, "DueDate": {"value_type": "date", "value": "2021-08-01", "content": "2021/08/01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 690.0, "y": 303.0}, {"x": 751.0, "y": 304.0}, {"x": 751.0, "y": 316.0}, {"x": 691.0, "y": 316.0}]}], "spans": [{"offset": 284, "length": 10}], "confidence": 0.957}, "InvoiceDate": {"value_type": "date", "value": "2021-07-01", "content": "2021/07/01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 690.0, "y": 248.0}, {"x": 752.0, "y": 247.0}, {"x": 752.0, "y": 260.0}, {"x": 691.0, "y": 259.0}]}], "spans": [{"offset": 247, "length": 10}], "confidence": 0.957}, "InvoiceId": {"value_type": "string", "value": "HOU-008993", "content": "HOU-008993", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 689.0, "y": 219.0}, {"x": 760.0, "y": 219.0}, {"x": 760.0, "y": 232.0}, {"x": 689.0, "y": 232.0}]}], "spans": [{"offset": 223, "length": 10}], "confidence": 0.958}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1615.91, "symbol": "$"}, "content": "$1,615.91", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 773.0, "y": 911.0}, {"x": 827.0, "y": 911.0}, {"x": 827.0, "y": 924.0}, {"x": 773.0, "y": 924.0}]}], "spans": [{"offset": 972, "length": 9}], "confidence": 0.952}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1220.62, "symbol": null}, "content": "1,220.62", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 779.0, "y": 452.0}, {"x": 825.0, "y": 452.0}, {"x": 825.0, "y": 464.0}, {"x": 779.0, "y": 464.0}]}], "spans": [{"offset": 485, "length": 8}], "confidence": 0.864}, "Description": {"value_type": "string", "value": "Recurring : Custodial\nMonthly Custodial Services: Five (5x)\nTimes Weekly (Mon-Fri) August 2021", "content": "Recurring : Custodial Monthly Custodial Services: Five (5x) Times Weekly (Mon-Fri) August 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 450.0}, {"x": 311.0, "y": 450.0}, {"x": 311.0, "y": 495.0}, {"x": 111.0, "y": 495.0}]}], "spans": [{"offset": 362, "length": 94}], "confidence": 0.914}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 451.0}, {"x": 419.0, "y": 451.0}, {"x": 419.0, "y": 463.0}, {"x": 397.0, "y": 463.0}]}], "spans": [{"offset": 457, "length": 4}], "confidence": 0.866}, "Tax": {"value_type": "currency", "value": {"amount": 100.71, "symbol": null}, "content": "100.71", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 639.0, "y": 452.0}, {"x": 676.0, "y": 451.0}, {"x": 675.0, "y": 464.0}, {"x": 639.0, "y": 464.0}]}], "spans": [{"offset": 478, "length": 6}], "confidence": 0.872}, "TaxRate": {"value_type": "string", "value": "8.25", "content": "8.25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 567.0, "y": 451.0}, {"x": 590.0, "y": 451.0}, {"x": 589.0, "y": 463.0}, {"x": 567.0, "y": 463.0}]}], "spans": [{"offset": 473, "length": 4}], "confidence": 0.86}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1220.62, "symbol": null}, "content": "1,220.62", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 452.0}, {"x": 504.0, "y": 452.0}, {"x": 505.0, "y": 464.0}, {"x": 459.0, "y": 464.0}]}], "spans": [{"offset": 464, "length": 8}], "confidence": 0.859}}, "content": "1\nRecurring : Custodial Monthly Custodial Services: Five (5x) Times Weekly (Mon-Fri) August 2021\n1.00 R\n1,220.62\n8.25\n100.71\n1,220.62", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 450.0}, {"x": 825.0, "y": 450.0}, {"x": 825.0, "y": 495.0}, {"x": 80.0, "y": 495.0}]}], "spans": [{"offset": 360, "length": 133}], "confidence": 0.781}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 200.85, "symbol": null}, "content": "200.85", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 788.0, "y": 542.0}, {"x": 825.0, "y": 541.0}, {"x": 825.0, "y": 554.0}, {"x": 788.0, "y": 554.0}]}], "spans": [{"offset": 641, "length": 6}], "confidence": 0.868}, "Description": {"value_type": "string", "value": "Recurring : Custodial\nMonthly Custodial Services: Five (5x)\nTimes Weekly (Mon-Fri) to additional\nbreak room August 2021", "content": "Recurring : Custodial Monthly Custodial Services: Five (5x) Times Weekly (Mon-Fri) to additional break room August 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 540.0}, {"x": 312.0, "y": 540.0}, {"x": 312.0, "y": 599.0}, {"x": 111.0, "y": 599.0}]}], "spans": [{"offset": 496, "length": 119}], "confidence": 0.904}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 542.0}, {"x": 418.0, "y": 542.0}, {"x": 418.0, "y": 553.0}, {"x": 397.0, "y": 553.0}]}], "spans": [{"offset": 616, "length": 4}], "confidence": 0.865}, "Tax": {"value_type": "currency", "value": {"amount": 16.57, "symbol": null}, "content": "16.57", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 645.0, "y": 541.0}, {"x": 675.0, "y": 541.0}, {"x": 675.0, "y": 553.0}, {"x": 645.0, "y": 553.0}]}], "spans": [{"offset": 635, "length": 5}], "confidence": 0.863}, "TaxRate": {"value_type": "string", "value": "8.25", "content": "8.25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 567.0, "y": 541.0}, {"x": 589.0, "y": 541.0}, {"x": 589.0, "y": 553.0}, {"x": 567.0, "y": 553.0}]}], "spans": [{"offset": 630, "length": 4}], "confidence": 0.858}, "UnitPrice": {"value_type": "currency", "value": {"amount": 200.85, "symbol": null}, "content": "200.85", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 468.0, "y": 542.0}, {"x": 503.0, "y": 542.0}, {"x": 503.0, "y": 554.0}, {"x": 468.0, "y": 554.0}]}], "spans": [{"offset": 623, "length": 6}], "confidence": 0.86}}, "content": "2\nRecurring : Custodial Monthly Custodial Services: Five (5x) Times Weekly (Mon-Fri) to additional break room August 2021\n1.00 R\n200.85\n8.25\n16.57\n200.85", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 78.0, "y": 540.0}, {"x": 825.0, "y": 540.0}, {"x": 825.0, "y": 599.0}, {"x": 78.0, "y": 599.0}]}], "spans": [{"offset": 494, "length": 153}], "confidence": 0.797}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 71.28, "symbol": null}, "content": "71.28", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 795.0, "y": 647.0}, {"x": 825.0, "y": 646.0}, {"x": 825.0, "y": 659.0}, {"x": 795.0, "y": 659.0}]}], "spans": [{"offset": 794, "length": 5}], "confidence": 0.861}, "Description": {"value_type": "string", "value": "Recurring : Custodial\nMonthly Custodial Services: Five (5x)\nTimes Weekly (Mon-Fri) to additional\nlocker room August 2021", "content": "Recurring : Custodial Monthly Custodial Services: Five (5x) Times Weekly (Mon-Fri) to additional locker room August 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 645.0}, {"x": 312.0, "y": 645.0}, {"x": 312.0, "y": 704.0}, {"x": 110.0, "y": 704.0}]}], "spans": [{"offset": 650, "length": 120}], "confidence": 0.904}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 646.0}, {"x": 419.0, "y": 647.0}, {"x": 419.0, "y": 658.0}, {"x": 397.0, "y": 657.0}]}], "spans": [{"offset": 771, "length": 4}], "confidence": 0.903}, "Tax": {"value_type": "currency", "value": {"amount": 5.88, "symbol": null}, "content": "5.88", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 651.0, "y": 646.0}, {"x": 674.0, "y": 646.0}, {"x": 674.0, "y": 658.0}, {"x": 651.0, "y": 658.0}]}], "spans": [{"offset": 789, "length": 4}], "confidence": 0.867}, "TaxRate": {"value_type": "string", "value": "8.25", "content": "8.25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 566.0, "y": 646.0}, {"x": 590.0, "y": 646.0}, {"x": 590.0, "y": 658.0}, {"x": 566.0, "y": 658.0}]}], "spans": [{"offset": 784, "length": 4}], "confidence": 0.859}, "UnitPrice": {"value_type": "currency", "value": {"amount": 71.28, "symbol": null}, "content": "71.28", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 475.0, "y": 647.0}, {"x": 504.0, "y": 646.0}, {"x": 505.0, "y": 658.0}, {"x": 476.0, "y": 659.0}]}], "spans": [{"offset": 778, "length": 5}], "confidence": 0.861}}, "content": "3\nRecurring : Custodial Monthly Custodial Services: Five (5x) Times Weekly (Mon-Fri) to additional locker room August 2021\n1.00 R\n71.28\n8.25\n5.88\n71.28", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 645.0}, {"x": 825.0, "y": 645.0}, {"x": 825.0, "y": 704.0}, {"x": 79.0, "y": 704.0}]}], "spans": [{"offset": 648, "length": 151}], "confidence": 0.788}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Due on 1st", "content": "Due on 1st", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 690.0, "y": 276.0}, {"x": 751.0, "y": 276.0}, {"x": 751.0, "y": 289.0}, {"x": 690.0, "y": 289.0}]}], "spans": [{"offset": 264, "length": 10}], "confidence": 0.935}, "PurchaseOrder": {"value_type": "string", "value": "4500001411", "content": "4500001411", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 689.0, "y": 347.0}, {"x": 757.0, "y": 348.0}, {"x": 757.0, "y": 359.0}, {"x": 690.0, "y": 359.0}]}], "spans": [{"offset": 301, "length": 10}], "confidence": 0.955}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. Box 165332", "road": null, "city": "Irving", "state": "TX", "postal_code": "75016-5332", "country_region": null, "street_address": "P.O. Box 165332"}, "content": "P.O. Box 165332 Irving, TX 75016-5332", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 729.0, "y": 118.0}, {"x": 847.0, "y": 118.0}, {"x": 847.0, "y": 146.0}, {"x": 729.0, "y": 146.0}]}], "spans": [{"offset": 40, "length": 37}], "confidence": 0.89}, "RemittanceAddressRecipient": {"value_type": "string", "value": "BLDG.WORKS", "content": "BLDG.WORKS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 768.0, "y": 104.0}, {"x": 846.0, "y": 103.0}, {"x": 846.0, "y": 117.0}, {"x": 769.0, "y": 116.0}]}], "spans": [{"offset": 29, "length": 10}], "confidence": 0.954}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "8807", "po_box": null, "road": "Liberty Road", "city": "Houston", "state": "TX", "postal_code": "77028", "country_region": null, "street_address": "8807 Liberty Road"}, "content": "8807 Liberty Road\nHouston, TX 77028", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 61.0, "y": 335.0}, {"x": 165.0, "y": 335.0}, {"x": 165.0, "y": 369.0}, {"x": 61.0, "y": 369.0}]}], "spans": [{"offset": 178, "length": 35}], "confidence": 0.91}, "SubTotal": {"value_type": "currency", "value": {"amount": 1492.75, "symbol": null}, "content": "1,492.75", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 781.0, "y": 768.0}, {"x": 826.0, "y": 768.0}, {"x": 827.0, "y": 782.0}, {"x": 781.0, "y": 781.0}]}], "spans": [{"offset": 877, "length": 8}], "confidence": 0.956}, "VendorName": {"value_type": "string", "value": "BLDG.WORKS", "content": "BLDG.WORKS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 125.0}, {"x": 322.0, "y": 124.0}, {"x": 323.0, "y": 157.0}, {"x": 94.0, "y": 155.0}]}], "spans": [{"offset": 0, "length": 10}], "confidence": 0.956}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/0001Grainger-9707310430-png-1_png_jpg.rf.c25c74cf117741afa51d78f7ac9f0ca2.json b/Data/test/0001Grainger-9707310430-png-1_png_jpg.rf.c25c74cf117741afa51d78f7ac9f0ca2.json new file mode 100644 index 0000000000000000000000000000000000000000..fba6e4c3e32e854cb50a7891b00807a5b12e191e --- /dev/null +++ b/Data/test/0001Grainger-9707310430-png-1_png_jpg.rf.c25c74cf117741afa51d78f7ac9f0ca2.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 2239}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 682.3, "symbol": "$"}, "content": "$682.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 778.0, "y": 1056.0}, {"x": 833.0, "y": 1056.0}, {"x": 834.0, "y": 1072.0}, {"x": 779.0, "y": 1072.0}]}], "spans": [{"offset": 2221, "length": 7}], "confidence": 0.936}, "BillingAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "WATERWAY AVE", "city": "THE WOODLANDS", "state": "TX", "postal_code": "77380-3129", "country_region": null, "street_address": "21 WATERWAY AVE STE 525"}, "content": "21 WATERWAY AVE, STE 525\nTHE WOODLANDS TX 77380-3129", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 277.0}, {"x": 268.0, "y": 277.0}, {"x": 268.0, "y": 300.0}, {"x": 75.0, "y": 300.0}]}], "spans": [{"offset": 440, "length": 52}], "confidence": 0.863}, "BillingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC\nATTN ACCOUNTS PAYABLE", "content": "PLATEPLUS INC\nATTN ACCOUNTS PAYABLE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 256.0}, {"x": 232.0, "y": 256.0}, {"x": 232.0, "y": 278.0}, {"x": 75.0, "y": 278.0}]}], "spans": [{"offset": 404, "length": 35}], "confidence": 0.921}, "CustomerId": {"value_type": "string", "value": "883458499", "content": "883458499", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 218.0, "y": 1057.0}, {"x": 286.0, "y": 1057.0}, {"x": 286.0, "y": 1072.0}, {"x": 219.0, "y": 1071.0}]}], "spans": [{"offset": 2089, "length": 9}], "confidence": 0.94}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS INC\nATTN ACCOUNTS PAYABLE", "content": "PLATEPLUS INC\nATTN ACCOUNTS PAYABLE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 256.0}, {"x": 232.0, "y": 256.0}, {"x": 232.0, "y": 278.0}, {"x": 75.0, "y": 278.0}]}], "spans": [{"offset": 404, "length": 35}], "confidence": 0.921}, "DueDate": {"value_type": "date", "value": "2020-12-04", "content": "12/04/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 733.0, "y": 101.0}, {"x": 791.0, "y": 100.0}, {"x": 791.0, "y": 114.0}, {"x": 733.0, "y": 113.0}]}], "spans": [{"offset": 243, "length": 10}], "confidence": 0.942}, "InvoiceDate": {"value_type": "date", "value": "2020-11-04", "content": "11/04/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 733.0, "y": 86.0}, {"x": 791.0, "y": 86.0}, {"x": 791.0, "y": 99.0}, {"x": 733.0, "y": 99.0}]}], "spans": [{"offset": 223, "length": 10}], "confidence": 0.942}, "InvoiceId": {"value_type": "string", "value": "9707310430", "content": "9707310430", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 725.0, "y": 72.0}, {"x": 792.0, "y": 73.0}, {"x": 792.0, "y": 86.0}, {"x": 726.0, "y": 86.0}]}], "spans": [{"offset": 199, "length": 10}], "confidence": 0.943}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 682.3, "symbol": "$"}, "content": "$682.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 778.0, "y": 1056.0}, {"x": 833.0, "y": 1056.0}, {"x": 834.0, "y": 1072.0}, {"x": 779.0, "y": 1072.0}]}], "spans": [{"offset": 2221, "length": 7}], "confidence": 0.936}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 77.5, "symbol": null}, "content": "77.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 759.0, "y": 385.0}, {"x": 789.0, "y": 385.0}, {"x": 789.0, "y": 397.0}, {"x": 759.0, "y": 397.0}]}], "spans": [{"offset": 750, "length": 5}], "confidence": 0.848}, "Description": {"value_type": "string", "value": "WEAR PLUG\nMANUFACTURER # 017939", "content": "WEAR PLUG MANUFACTURER # 017939", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 162.0, "y": 395.0}, {"x": 315.0, "y": 395.0}, {"x": 315.0, "y": 418.0}, {"x": 162.0, "y": 418.0}]}], "spans": [{"offset": 710, "length": 31}], "confidence": 0.477}, "ProductCode": {"value_type": "string", "value": "22ZH55", "content": "22ZH55", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 385.0}, {"x": 138.0, "y": 386.0}, {"x": 138.0, "y": 398.0}, {"x": 96.0, "y": 398.0}]}], "spans": [{"offset": 703, "length": 6}], "confidence": 0.816}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 594.0, "y": 386.0}, {"x": 600.0, "y": 386.0}, {"x": 600.0, "y": 396.0}, {"x": 594.0, "y": 396.0}]}], "spans": [{"offset": 742, "length": 1}], "confidence": 0.589}, "UnitPrice": {"value_type": "currency", "value": {"amount": 77.5, "symbol": null}, "content": "77.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 651.0, "y": 385.0}, {"x": 679.0, "y": 385.0}, {"x": 679.0, "y": 397.0}, {"x": 651.0, "y": 397.0}]}], "spans": [{"offset": 744, "length": 5}], "confidence": 0.846}}, "content": "1 1 2\n22ZH55\nWEAR PLUG MANUFACTURER # 017939\n1\n77.50\n77.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 45.0, "y": 385.0}, {"x": 789.0, "y": 385.0}, {"x": 789.0, "y": 424.0}, {"x": 45.0, "y": 424.0}]}], "spans": [{"offset": 697, "length": 58}], "confidence": 0.674}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 472.6, "symbol": null}, "content": "472.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 752.0, "y": 418.0}, {"x": 788.0, "y": 418.0}, {"x": 788.0, "y": 430.0}, {"x": 752.0, "y": 430.0}]}], "spans": [{"offset": 837, "length": 6}], "confidence": 0.849}, "Description": {"value_type": "string", "value": "STEEL STRAPPING TENSIONER,MANUAL,HVY DT\nMANUFACTURER # MIP-1620", "content": "STEEL STRAPPING TENSIONER,MANUAL,HVY DT MANUFACTURER # MIP-1620", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 161.0, "y": 426.0}, {"x": 448.0, "y": 426.0}, {"x": 448.0, "y": 451.0}, {"x": 161.0, "y": 451.0}]}], "spans": [{"offset": 764, "length": 63}], "confidence": 0.295}, "ProductCode": {"value_type": "string", "value": "5ZW74", "content": "5ZW74", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 417.0}, {"x": 134.0, "y": 417.0}, {"x": 134.0, "y": 430.0}, {"x": 96.0, "y": 430.0}]}], "spans": [{"offset": 758, "length": 5}], "confidence": 0.813}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 594.0, "y": 419.0}, {"x": 600.0, "y": 419.0}, {"x": 600.0, "y": 429.0}, {"x": 594.0, "y": 429.0}]}], "spans": [{"offset": 828, "length": 1}], "confidence": 0.822}, "UnitPrice": {"value_type": "currency", "value": {"amount": 472.6, "symbol": null}, "content": "472.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 642.0, "y": 418.0}, {"x": 678.0, "y": 418.0}, {"x": 678.0, "y": 430.0}, {"x": 642.0, "y": 430.0}]}], "spans": [{"offset": 830, "length": 6}], "confidence": 0.847}}, "content": "2\n5ZW74\nSTEEL STRAPPING TENSIONER,MANUAL,HVY DT MANUFACTURER # MIP-1620\n1\n472.60\n472.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 46.0, "y": 417.0}, {"x": 788.0, "y": 417.0}, {"x": 788.0, "y": 451.0}, {"x": 46.0, "y": 451.0}]}], "spans": [{"offset": 756, "length": 87}], "confidence": 0.809}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 73.0, "symbol": null}, "content": "73.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 759.0, "y": 451.0}, {"x": 789.0, "y": 451.0}, {"x": 789.0, "y": 463.0}, {"x": 759.0, "y": 463.0}]}], "spans": [{"offset": 894, "length": 5}], "confidence": 0.848}, "Description": {"value_type": "string", "value": "FEED WHEEL\nMANUFACTURER # 020517", "content": "FEED WHEEL MANUFACTURER # 020517", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 162.0, "y": 461.0}, {"x": 316.0, "y": 461.0}, {"x": 316.0, "y": 485.0}, {"x": 162.0, "y": 485.0}]}], "spans": [{"offset": 853, "length": 32}], "confidence": 0.327}, "ProductCode": {"value_type": "string", "value": "22UP47", "content": "22UP47", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 451.0}, {"x": 140.0, "y": 451.0}, {"x": 140.0, "y": 464.0}, {"x": 97.0, "y": 463.0}]}], "spans": [{"offset": 846, "length": 6}], "confidence": 0.827}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 593.0, "y": 450.0}, {"x": 600.0, "y": 450.0}, {"x": 601.0, "y": 462.0}, {"x": 594.0, "y": 463.0}]}], "spans": [{"offset": 886, "length": 1}], "confidence": 0.578}, "UnitPrice": {"value_type": "currency", "value": {"amount": 73.0, "symbol": null}, "content": "73.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 650.0, "y": 450.0}, {"x": 680.0, "y": 450.0}, {"x": 680.0, "y": 463.0}, {"x": 650.0, "y": 463.0}]}], "spans": [{"offset": 888, "length": 5}], "confidence": 0.846}}, "content": "3\n22UP47\nFEED WHEEL MANUFACTURER # 020517\n1\n73.00\n73.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 46.0, "y": 450.0}, {"x": 789.0, "y": 450.0}, {"x": 789.0, "y": 485.0}, {"x": 46.0, "y": 485.0}]}], "spans": [{"offset": 844, "length": 55}], "confidence": 0.837}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "FOB ORIGIN", "content": "FOB ORIGIN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 631.0, "y": 193.0}, {"x": 692.0, "y": 193.0}, {"x": 692.0, "y": 206.0}, {"x": 631.0, "y": 206.0}]}], "spans": [{"offset": 385, "length": 10}], "confidence": 0.936}, "PurchaseOrder": {"value_type": "string", "value": "WEB1799858845", "content": "WEB1799858845", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 631.0, "y": 147.0}, {"x": 714.0, "y": 147.0}, {"x": 714.0, "y": 159.0}, {"x": 632.0, "y": 158.0}]}], "spans": [{"offset": 284, "length": 13}], "confidence": 0.936}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. BOX 419267", "road": null, "city": "KANSAS CITY", "state": "MO", "postal_code": "64141-6267", "country_region": null, "street_address": "P.O. BOX 419267"}, "content": "P.O. BOX 419267\nKANSAS CITY, MO 64141-6267", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 904.0}, {"x": 637.0, "y": 904.0}, {"x": 637.0, "y": 929.0}, {"x": 462.0, "y": 929.0}]}], "spans": [{"offset": 1968, "length": 42}], "confidence": 0.867}, "RemittanceAddressRecipient": {"value_type": "string", "value": "GRAINGER\nDEPT. 886857658", "content": "GRAINGER\nDEPT. 886857658", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 879.0}, {"x": 562.0, "y": 880.0}, {"x": 562.0, "y": 909.0}, {"x": 464.0, "y": 908.0}]}], "spans": [{"offset": 1943, "length": 24}], "confidence": 0.926}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "266", "po_box": null, "road": "Blair Bend Dr", "city": "Loudon", "state": "TN", "postal_code": "37774-6564", "country_region": null, "street_address": "266 Blair Bend Dr"}, "content": "266 Blair Bend Dr\nLoudon TN 37774-6564", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 160.0}, {"x": 204.0, "y": 160.0}, {"x": 204.0, "y": 183.0}, {"x": 74.0, "y": 183.0}]}], "spans": [{"offset": 87, "length": 38}], "confidence": 0.907}, "ShippingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS", "content": "PLATEPLUS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 149.0}, {"x": 142.0, "y": 149.0}, {"x": 142.0, "y": 162.0}, {"x": 75.0, "y": 161.0}]}], "spans": [{"offset": 77, "length": 9}], "confidence": 0.941}, "SubTotal": {"value_type": "currency", "value": {"amount": 623.1, "symbol": null}, "content": "623.10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 746.0, "y": 671.0}, {"x": 782.0, "y": 671.0}, {"x": 782.0, "y": 683.0}, {"x": 746.0, "y": 683.0}]}], "spans": [{"offset": 1718, "length": 6}], "confidence": 0.942}, "TotalTax": {"value_type": "currency", "value": {"amount": 59.2, "symbol": null}, "content": "59.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 754.0, "y": 681.0}, {"x": 784.0, "y": 681.0}, {"x": 784.0, "y": 692.0}, {"x": 754.0, "y": 693.0}]}], "spans": [{"offset": 1729, "length": 5}], "confidence": 0.941}, "VendorAddress": {"value_type": "address", "value": {"house_number": "6500", "po_box": null, "road": "BAUM DR.", "city": "KNOXVILLE", "state": "TN", "postal_code": "37919-7309", "country_region": null, "street_address": "6500 BAUM DR."}, "content": "6500 BAUM DR. KNOXVILLE, TN 37919-7309", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 44.0, "y": 69.0}, {"x": 204.0, "y": 69.0}, {"x": 204.0, "y": 94.0}, {"x": 44.0, "y": 94.0}]}], "spans": [{"offset": 13, "length": 38}], "confidence": 0.893}, "VendorAddressRecipient": {"value_type": "string", "value": "DC MINOOKA 005", "content": "DC MINOOKA 005", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 259.0, "y": 524.0}, {"x": 359.0, "y": 524.0}, {"x": 359.0, "y": 537.0}, {"x": 259.0, "y": 537.0}]}], "spans": [{"offset": 1029, "length": 14}], "confidence": 0.3}, "VendorName": {"value_type": "string", "value": "GRAINGER.", "content": "GRAINGER.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 42.0, "y": 16.0}, {"x": 255.0, "y": 15.0}, {"x": 257.0, "y": 51.0}, {"x": 42.0, "y": 50.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": 0.937}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/0001Grainger-Invoice-png-1_png_jpg.rf.e19ddc6ac09dd6e2707f092dc0646185.json b/Data/test/0001Grainger-Invoice-png-1_png_jpg.rf.e19ddc6ac09dd6e2707f092dc0646185.json new file mode 100644 index 0000000000000000000000000000000000000000..cc0756dcdf65f9b8f76690d66cb4570ea15c1729 --- /dev/null +++ b/Data/test/0001Grainger-Invoice-png-1_png_jpg.rf.e19ddc6ac09dd6e2707f092dc0646185.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 2223}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 103.19, "symbol": "$"}, "content": "$103.19", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 778.0, "y": 1055.0}, {"x": 834.0, "y": 1055.0}, {"x": 834.0, "y": 1072.0}, {"x": 779.0, "y": 1072.0}]}], "spans": [{"offset": 2205, "length": 7}], "confidence": 0.936}, "BillingAddress": {"value_type": "address", "value": {"house_number": "31825", "po_box": null, "road": "GREAT WESTERN DR", "city": "WINDSOR", "state": "CO", "postal_code": "80550-3240", "country_region": null, "street_address": "31825 GREAT WESTERN DR"}, "content": "31825 GREAT WESTERN DR\nWINDSOR CO 80550-3240", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 276.0}, {"x": 233.0, "y": 276.0}, {"x": 233.0, "y": 300.0}, {"x": 74.0, "y": 300.0}]}], "spans": [{"offset": 460, "length": 44}], "confidence": 0.827}, "BillingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC.\nATTN 19865-50249842", "content": "PLATEPLUS INC.\nATTN 19865-50249842", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 255.0}, {"x": 199.0, "y": 255.0}, {"x": 199.0, "y": 279.0}, {"x": 74.0, "y": 279.0}]}], "spans": [{"offset": 425, "length": 34}], "confidence": 0.91}, "CustomerId": {"value_type": "string", "value": "881935191", "content": "881935191", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 218.0, "y": 1057.0}, {"x": 286.0, "y": 1056.0}, {"x": 286.0, "y": 1072.0}, {"x": 219.0, "y": 1071.0}]}], "spans": [{"offset": 2073, "length": 9}], "confidence": 0.936}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS INC.\nATTN 19865-50249842", "content": "PLATEPLUS INC.\nATTN 19865-50249842", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 255.0}, {"x": 199.0, "y": 255.0}, {"x": 199.0, "y": 279.0}, {"x": 74.0, "y": 279.0}]}], "spans": [{"offset": 425, "length": 34}], "confidence": 0.91}, "DueDate": {"value_type": "date", "value": "2020-10-29", "content": "10/29/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 733.0, "y": 100.0}, {"x": 791.0, "y": 100.0}, {"x": 791.0, "y": 113.0}, {"x": 733.0, "y": 113.0}]}], "spans": [{"offset": 261, "length": 10}], "confidence": 0.943}, "InvoiceDate": {"value_type": "date", "value": "2020-09-29", "content": "09/29/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 732.0, "y": 86.0}, {"x": 791.0, "y": 86.0}, {"x": 791.0, "y": 99.0}, {"x": 733.0, "y": 99.0}]}], "spans": [{"offset": 241, "length": 10}], "confidence": 0.943}, "InvoiceId": {"value_type": "string", "value": "9668759567", "content": "9668759567", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 725.0, "y": 73.0}, {"x": 792.0, "y": 73.0}, {"x": 793.0, "y": 86.0}, {"x": 725.0, "y": 86.0}]}], "spans": [{"offset": 217, "length": 10}], "confidence": 0.943}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 103.19, "symbol": "$"}, "content": "$103.19", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 778.0, "y": 1055.0}, {"x": 834.0, "y": 1055.0}, {"x": 834.0, "y": 1072.0}, {"x": 779.0, "y": 1072.0}]}], "spans": [{"offset": 2205, "length": 7}], "confidence": 0.936}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 7.44, "symbol": null}, "content": "7.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 766.0, "y": 385.0}, {"x": 789.0, "y": 385.0}, {"x": 789.0, "y": 397.0}, {"x": 766.0, "y": 397.0}]}], "spans": [{"offset": 810, "length": 4}], "confidence": 0.646}, "Description": {"value_type": "string", "value": "REDUCER ADAPTER,BRASS,3/8 IN. X 1/4 IN.\nMANUFACTURER # VS222P-6-4", "content": "REDUCER ADAPTER,BRASS,3/8 IN. X 1/4 IN. MANUFACTURER # VS222P-6-4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 161.0, "y": 395.0}, {"x": 417.0, "y": 395.0}, {"x": 417.0, "y": 418.0}, {"x": 161.0, "y": 418.0}]}], "spans": [{"offset": 731, "length": 65}], "confidence": 0.125}, "ProductCode": {"value_type": "string", "value": "13Y821", "content": "13Y821", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 385.0}, {"x": 136.0, "y": 386.0}, {"x": 136.0, "y": 398.0}, {"x": 97.0, "y": 398.0}]}], "spans": [{"offset": 717, "length": 6}], "confidence": 0.309}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 593.0, "y": 385.0}, {"x": 599.0, "y": 385.0}, {"x": 599.0, "y": 396.0}, {"x": 594.0, "y": 396.0}]}], "spans": [{"offset": 797, "length": 1}], "confidence": 0.638}, "UnitPrice": {"value_type": "currency", "value": {"amount": 3.72, "symbol": null}, "content": "3.72", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 656.0, "y": 385.0}, {"x": 680.0, "y": 385.0}, {"x": 680.0, "y": 398.0}, {"x": 656.0, "y": 398.0}]}], "spans": [{"offset": 799, "length": 4}], "confidence": 0.646}}, "content": "1 1 2\n13Y821\nREDUCER ADAPTER,BRASS,3/8 IN. X 1/4 IN. MANUFACTURER # VS222P-6-4\n2\n3.72\n7.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 45.0, "y": 385.0}, {"x": 789.0, "y": 385.0}, {"x": 789.0, "y": 424.0}, {"x": 45.0, "y": 424.0}]}], "spans": [{"offset": 709, "length": 5}, {"offset": 717, "length": 6}, {"offset": 731, "length": 72}, {"offset": 810, "length": 4}], "confidence": 0.767}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 88.42, "symbol": null}, "content": "88.42", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 759.0, "y": 417.0}, {"x": 789.0, "y": 417.0}, {"x": 789.0, "y": 429.0}, {"x": 759.0, "y": 429.0}]}], "spans": [{"offset": 815, "length": 5}], "confidence": 0.648}, "Description": {"value_type": "string", "value": "WEB SLING,TYPE 3,POLYESTER 2INW,20 FT.L\nMANUFACTURER # EE2802DFX20", "content": "WEB SLING,TYPE 3,POLYESTER 2INW,20 FT.L MANUFACTURER # EE2802DFX20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 162.0, "y": 426.0}, {"x": 427.0, "y": 426.0}, {"x": 427.0, "y": 451.0}, {"x": 162.0, "y": 451.0}]}], "spans": [{"offset": 821, "length": 66}], "confidence": 0.019}, "ProductCode": {"value_type": "string", "value": "38U490", "content": "38U490", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 418.0}, {"x": 137.0, "y": 418.0}, {"x": 137.0, "y": 430.0}, {"x": 96.0, "y": 430.0}]}], "spans": [{"offset": 724, "length": 6}], "confidence": 0.641}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 594.0, "y": 418.0}, {"x": 600.0, "y": 418.0}, {"x": 600.0, "y": 429.0}, {"x": 594.0, "y": 429.0}]}], "spans": [{"offset": 888, "length": 1}], "confidence": 0.637}, "UnitPrice": {"value_type": "currency", "value": {"amount": 88.42, "symbol": null}, "content": "88.42", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 650.0, "y": 417.0}, {"x": 680.0, "y": 417.0}, {"x": 680.0, "y": 429.0}, {"x": 650.0, "y": 429.0}]}], "spans": [{"offset": 804, "length": 5}], "confidence": 0.647}}, "content": "2\n38U490\n88.42\n88.42\nWEB SLING,TYPE 3,POLYESTER 2INW,20 FT.L MANUFACTURER # EE2802DFX20\n1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 46.0, "y": 417.0}, {"x": 789.0, "y": 417.0}, {"x": 789.0, "y": 451.0}, {"x": 46.0, "y": 451.0}]}], "spans": [{"offset": 715, "length": 1}, {"offset": 724, "length": 6}, {"offset": 804, "length": 5}, {"offset": 815, "length": 74}], "confidence": 0.825}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "FOB ORIGIN", "content": "FOB ORIGIN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 631.0, "y": 193.0}, {"x": 691.0, "y": 193.0}, {"x": 691.0, "y": 206.0}, {"x": 631.0, "y": 206.0}]}], "spans": [{"offset": 406, "length": 10}], "confidence": 0.936}, "PurchaseOrder": {"value_type": "string", "value": "WEB1768337456", "content": "WEB1768337456", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 631.0, "y": 147.0}, {"x": 714.0, "y": 147.0}, {"x": 714.0, "y": 158.0}, {"x": 631.0, "y": 158.0}]}], "spans": [{"offset": 302, "length": 13}], "confidence": 0.94}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. BOX 419267", "road": null, "city": "KANSAS CITY", "state": "MO", "postal_code": "64141-6267", "country_region": null, "street_address": "P.O. BOX 419267"}, "content": "P.O. BOX 419267\nKANSAS CITY, MO 64141-6267", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 904.0}, {"x": 637.0, "y": 904.0}, {"x": 637.0, "y": 929.0}, {"x": 462.0, "y": 929.0}]}], "spans": [{"offset": 1952, "length": 42}], "confidence": 0.9}, "RemittanceAddressRecipient": {"value_type": "string", "value": "GRAINGER\nDEPT. 886857658", "content": "GRAINGER\nDEPT. 886857658", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 879.0}, {"x": 563.0, "y": 880.0}, {"x": 563.0, "y": 909.0}, {"x": 463.0, "y": 908.0}]}], "spans": [{"offset": 1927, "length": 24}], "confidence": 0.93}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "31825", "po_box": null, "road": "Great Western Dr", "city": "Windsor", "state": "CO", "postal_code": "80550-3240", "country_region": null, "street_address": "31825 Great Western Dr"}, "content": "31825 Great Western Dr\nWindsor CO 80550-3240", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 160.0}, {"x": 210.0, "y": 160.0}, {"x": 210.0, "y": 182.0}, {"x": 74.0, "y": 182.0}]}], "spans": [{"offset": 98, "length": 44}], "confidence": 0.9}, "ShippingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC.", "content": "PLATEPLUS INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 149.0}, {"x": 173.0, "y": 149.0}, {"x": 173.0, "y": 162.0}, {"x": 75.0, "y": 162.0}]}], "spans": [{"offset": 83, "length": 14}], "confidence": 0.936}, "SubTotal": {"value_type": "currency", "value": {"amount": 95.86, "symbol": null}, "content": "95.86", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 754.0, "y": 670.0}, {"x": 784.0, "y": 670.0}, {"x": 784.0, "y": 683.0}, {"x": 754.0, "y": 683.0}]}], "spans": [{"offset": 1713, "length": 5}], "confidence": 0.942}, "TotalTax": {"value_type": "currency", "value": {"amount": 7.33, "symbol": null}, "content": "7.33", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 761.0, "y": 681.0}, {"x": 783.0, "y": 681.0}, {"x": 783.0, "y": 693.0}, {"x": 761.0, "y": 693.0}]}], "spans": [{"offset": 1723, "length": 4}], "confidence": 0.942}, "VendorAddress": {"value_type": "address", "value": {"house_number": "4531", "po_box": null, "road": "INNOVATION DR.", "city": "FORT COLLINS", "state": "CO", "postal_code": "80525-3406", "country_region": null, "street_address": "4531 INNOVATION DR."}, "content": "4531 INNOVATION DR. FORT COLLINS, CO 80525-3406", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 45.0, "y": 69.0}, {"x": 226.0, "y": 69.0}, {"x": 226.0, "y": 94.0}, {"x": 45.0, "y": 94.0}]}], "spans": [{"offset": 10, "length": 47}], "confidence": 0.9}, "VendorAddressRecipient": {"value_type": "string", "value": "DC KANSAS CITY 002", "content": "DC KANSAS CITY 002", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 259.0, "y": 490.0}, {"x": 382.0, "y": 490.0}, {"x": 382.0, "y": 504.0}, {"x": 259.0, "y": 504.0}]}], "spans": [{"offset": 1017, "length": 18}], "confidence": 0.285}, "VendorName": {"value_type": "string", "value": "GRAINGER\u00ae", "content": "GRAINGER\u00ae", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 42.0, "y": 16.0}, {"x": 258.0, "y": 15.0}, {"x": 259.0, "y": 51.0}, {"x": 42.0, "y": 50.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": 0.938}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/0002NSBS-1122668-png-1_png_jpg.rf.564e4de3143f3ab0aeaf98d75d5a64cc.json b/Data/test/0002NSBS-1122668-png-1_png_jpg.rf.564e4de3143f3ab0aeaf98d75d5a64cc.json new file mode 100644 index 0000000000000000000000000000000000000000..a6dc8390a568fb3e669f36ce2ede2ccdebec5b84 --- /dev/null +++ b/Data/test/0002NSBS-1122668-png-1_png_jpg.rf.564e4de3143f3ab0aeaf98d75d5a64cc.json @@ -0,0 +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": 1515}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": "P.O. Box suite 525", "road": "Waterway Avenue", "city": "The Woodlands", "state": "TX", "postal_code": "77385", "country_region": null, "street_address": "21 Waterway Avenue P.O. Box suite 525"}, "content": "21 Waterway Avenue\nP.O. Box suite 525\nThe Woodlands, TX 77385", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 57.0, "y": 100.0}, {"x": 160.0, "y": 100.0}, {"x": 160.0, "y": 126.0}, {"x": 57.0, "y": 126.0}]}], "spans": [{"offset": 67, "length": 61}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "Plateplus, Inc.\nAttn Accounts Payable", "content": "Plateplus, Inc.\nAttn Accounts Payable", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 58.0, "y": 92.0}, {"x": 144.0, "y": 92.0}, {"x": 144.0, "y": 134.0}, {"x": 58.0, "y": 134.0}]}], "spans": [{"offset": 51, "length": 15}, {"offset": 129, "length": 21}], "confidence": null}, "CustomerId": {"value_type": "string", "value": "1959", "content": "1959", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 71.0, "y": 153.0}, {"x": 89.0, "y": 153.0}, {"x": 89.0, "y": 161.0}, {"x": 71.0, "y": 161.0}]}], "spans": [{"offset": 381, "length": 4}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Plateplus, Inc.\nAttn Accounts Payable", "content": "Plateplus, Inc.\nAttn Accounts Payable", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 58.0, "y": 92.0}, {"x": 144.0, "y": 92.0}, {"x": 144.0, "y": 134.0}, {"x": 58.0, "y": 134.0}]}], "spans": [{"offset": 51, "length": 15}, {"offset": 129, "length": 21}], "confidence": null}, "DueDate": {"value_type": "date", "value": "2020-08-23", "content": "Aug 23, 2020.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 167.0, "y": 560.0}, {"x": 220.0, "y": 560.0}, {"x": 220.0, "y": 570.0}, {"x": 167.0, "y": 570.0}]}], "spans": [{"offset": 960, "length": 13}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2020-07-24", "content": "07/24/20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 95.0}, {"x": 496.0, "y": 95.0}, {"x": 496.0, "y": 104.0}, {"x": 463.0, "y": 103.0}]}], "spans": [{"offset": 322, "length": 8}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "1122668", "content": "1122668", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 544.0, "y": 96.0}, {"x": 574.0, "y": 96.0}, {"x": 574.0, "y": 103.0}, {"x": 544.0, "y": 102.0}]}], "spans": [{"offset": 341, "length": 7}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 10064.64, "symbol": "$"}, "content": "$10,064.64", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 544.0, "y": 578.0}, {"x": 586.0, "y": 577.0}, {"x": 586.0, "y": 586.0}, {"x": 544.0, "y": 586.0}]}], "spans": [{"offset": 1070, "length": 10}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Description": {"value_type": "string", "value": "Hot Rolled Bands\n1018-36-2\n0.243 Min X48.000\nin", "content": "Hot Rolled Bands 1018-36-2 0.243 Min X48.000 in", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 207.0, "y": 206.0}, {"x": 311.0, "y": 206.0}, {"x": 311.0, "y": 231.0}, {"x": 207.0, "y": 231.0}]}], "spans": [{"offset": 717, "length": 47}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "464321 - 1", "content": "464321 - 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 206.0}, {"x": 198.0, "y": 206.0}, {"x": 198.0, "y": 214.0}, {"x": 159.0, "y": 214.0}]}], "spans": [{"offset": 706, "length": 10}], "confidence": null}}, "content": "EC-8891-3\n464321 - 1\nHot Rolled Bands 1018-36-2 0.243 Min X48.000 in", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 68.0, "y": 206.0}, {"x": 311.0, "y": 206.0}, {"x": 311.0, "y": 231.0}, {"x": 68.0, "y": 231.0}]}], "spans": [{"offset": 696, "length": 68}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 796.52, "symbol": "$"}, "content": "$9.796.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 546.0, "y": 206.0}, {"x": 583.0, "y": 206.0}, {"x": 583.0, "y": 214.0}, {"x": 546.0, "y": 214.0}]}], "spans": [{"offset": 851, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Prepaid Freight: $1.25\nFrt. Equal.", "content": "Prepaid Freight: $1.25 Frt. Equal.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 206.0, "y": 232.0}, {"x": 343.0, "y": 232.0}, {"x": 343.0, "y": 241.0}, {"x": 206.0, "y": 241.0}]}], "spans": [{"offset": 765, "length": 34}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 21.1, "symbol": "$"}, "content": "$21.10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 206.0}, {"x": 536.0, "y": 206.0}, {"x": 537.0, "y": 214.0}, {"x": 512.0, "y": 213.0}]}], "spans": [{"offset": 836, "length": 6}], "confidence": null}}, "content": "Prepaid Freight: $1.25 Frt. Equal.\n253711\n2044104\n46.429 lbs 21,060 kg\n$21.10 (50.01)\n$9.796.52 ($376.00)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 206.0, "y": 206.0}, {"x": 588.0, "y": 206.0}, {"x": 588.0, "y": 241.0}, {"x": 206.0, "y": 241.0}]}], "spans": [{"offset": 765, "length": 105}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "EC-8891-3", "content": "EC-8891-3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 68.0, "y": 206.0}, {"x": 109.0, "y": 206.0}, {"x": 109.0, "y": 214.0}, {"x": 68.0, "y": 213.0}]}], "spans": [{"offset": 696, "length": 9}], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": "25544", "po_box": null, "road": "Network Place", "city": "Chicago", "state": "IL", "postal_code": "60673-1255", "country_region": null, "street_address": "25544 Network Place"}, "content": "25544 Network Place Chicago, IL 60673-1255", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 231.0, "y": 48.0}, {"x": 347.0, "y": 48.0}, {"x": 347.0, "y": 69.0}, {"x": 231.0, "y": 69.0}]}], "spans": [{"offset": 182, "length": 42}], "confidence": null}, "RemittanceAddressRecipient": {"value_type": "string", "value": "North Star BlueScope Steel LLC", "content": "North Star BlueScope Steel LLC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 230.0, "y": 38.0}, {"x": 387.0, "y": 38.0}, {"x": 387.0, "y": 49.0}, {"x": 230.0, "y": 49.0}]}], "spans": [{"offset": 151, "length": 30}], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "4303", "po_box": null, "road": "Kennedy Ave", "city": "East Chicago", "state": "IN", "postal_code": "46312", "country_region": null, "street_address": "4303 Kennedy Ave"}, "content": "4303 Kennedy Ave\nEast Chicago, IN 46312", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 271.0, "y": 101.0}, {"x": 362.0, "y": 101.0}, {"x": 362.0, "y": 127.0}, {"x": 271.0, "y": 127.0}]}], "spans": [{"offset": 269, "length": 39}], "confidence": null}, "ShippingAddressRecipient": {"value_type": "string", "value": "Plateplus-EC#2 PRIME", "content": "Plateplus-EC#2 PRIME", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 270.0, "y": 92.0}, {"x": 360.0, "y": 92.0}, {"x": 360.0, "y": 101.0}, {"x": 270.0, "y": 101.0}]}], "spans": [{"offset": 248, "length": 20}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 9420.44, "symbol": "$"}, "content": "$9,420.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 549.0, "y": 515.0}, {"x": 586.0, "y": 515.0}, {"x": 586.0, "y": 524.0}, {"x": 549.0, "y": 523.0}]}], "spans": [{"offset": 984, "length": 9}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 564.0, "y": 532.0}, {"x": 585.0, "y": 532.0}, {"x": 585.0, "y": 539.0}, {"x": 565.0, "y": 538.0}]}], "spans": [{"offset": 998, "length": 5}], "confidence": null}, "VendorName": {"value_type": "string", "value": "NORTH STAR BLUESCOPE STEEL LLC", "content": "NORTH STAR BLUESCOPE STEEL LLC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 12.0, "y": 20.0}, {"x": 312.0, "y": 20.0}, {"x": 312.0, "y": 34.0}, {"x": 12.0, "y": 34.0}]}], "spans": [{"offset": 0, "length": 30}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/0110ecd2-0000CAN-4036840375-VR-12093-png-1_png_jpg.rf.31455bfad74c6ebff6d4f6be15a96711.json b/Data/test/0110ecd2-0000CAN-4036840375-VR-12093-png-1_png_jpg.rf.31455bfad74c6ebff6d4f6be15a96711.json new file mode 100644 index 0000000000000000000000000000000000000000..529e6555fedb97a0fbb3bee7ad38171ab9a5b0df --- /dev/null +++ b/Data/test/0110ecd2-0000CAN-4036840375-VR-12093-png-1_png_jpg.rf.31455bfad74c6ebff6d4f6be15a96711.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1769}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 21.84, "symbol": "$"}, "content": "$21.84", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 797.0, "y": 702.0}, {"x": 839.0, "y": 702.0}, {"x": 839.0, "y": 717.0}, {"x": 797.0, "y": 717.0}]}], "spans": [{"offset": 1138, "length": 6}], "confidence": 0.838}, "BillingAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "WATERWAY AVE", "city": "THE WOODLANDS", "state": "TX", "postal_code": "77380-3129", "country_region": null, "street_address": "21 WATERWAY AVE STE 525"}, "content": "21 WATERWAY AVE STE 525\nTHE WOODLANDS, TX 77380-3129", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 277.0}, {"x": 341.0, "y": 277.0}, {"x": 341.0, "y": 309.0}, {"x": 123.0, "y": 309.0}]}], "spans": [{"offset": 295, "length": 52}], "confidence": 0.866}, "BillingAddressRecipient": {"value_type": "string", "value": "Attn: 8550\nPLATEPLUS, INC", "content": "Attn: 8550\nPLATEPLUS, INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 244.0}, {"x": 229.0, "y": 244.0}, {"x": 229.0, "y": 276.0}, {"x": 122.0, "y": 276.0}]}], "spans": [{"offset": 269, "length": 25}], "confidence": 0.889}, "CustomerId": {"value_type": "string", "value": "2143617", "content": "2143617", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 229.0}, {"x": 176.0, "y": 228.0}, {"x": 176.0, "y": 243.0}, {"x": 124.0, "y": 242.0}]}], "spans": [{"offset": 261, "length": 7}], "confidence": 0.723}, "CustomerName": {"value_type": "string", "value": "Attn: 8550\nPLATEPLUS, INC", "content": "Attn: 8550\nPLATEPLUS, INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 244.0}, {"x": 229.0, "y": 244.0}, {"x": 229.0, "y": 276.0}, {"x": 122.0, "y": 276.0}]}], "spans": [{"offset": 269, "length": 25}], "confidence": 0.889}, "DueDate": {"value_type": "date", "value": "2021-08-12", "content": "August 12, 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 744.0, "y": 117.0}, {"x": 834.0, "y": 117.0}, {"x": 834.0, "y": 132.0}, {"x": 744.0, "y": 132.0}]}], "spans": [{"offset": 217, "length": 15}], "confidence": 0.908}, "InvoiceDate": {"value_type": "date", "value": "2021-07-13", "content": "July 13, 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 744.0, "y": 79.0}, {"x": 816.0, "y": 78.0}, {"x": 816.0, "y": 93.0}, {"x": 744.0, "y": 94.0}]}], "spans": [{"offset": 166, "length": 13}], "confidence": 0.915}, "InvoiceId": {"value_type": "string", "value": "4036840375", "content": "4036840375", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 743.0, "y": 60.0}, {"x": 810.0, "y": 60.0}, {"x": 810.0, "y": 74.0}, {"x": 743.0, "y": 73.0}]}], "spans": [{"offset": 142, "length": 10}], "confidence": 0.943}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 21.84, "symbol": "$"}, "content": "$21.84", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 802.0, "y": 665.0}, {"x": 838.0, "y": 665.0}, {"x": 838.0, "y": 678.0}, {"x": 802.0, "y": 678.0}]}], "spans": [{"offset": 1094, "length": 6}], "confidence": 0.931}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 20.18, "symbol": "$"}, "content": "$20.18", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 803.0, "y": 587.0}, {"x": 838.0, "y": 587.0}, {"x": 838.0, "y": 599.0}, {"x": 803.0, "y": 599.0}]}], "spans": [{"offset": 1016, "length": 6}], "confidence": 0.886}, "Description": {"value_type": "string", "value": "MAINTENANCE\nCOPIER", "content": "MAINTENANCE\nCOPIER", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 51.0, "y": 570.0}, {"x": 198.0, "y": 571.0}, {"x": 198.0, "y": 599.0}, {"x": 51.0, "y": 598.0}]}], "spans": [{"offset": 976, "length": 18}], "confidence": 0.284}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 367.0, "y": 585.0}, {"x": 373.0, "y": 584.0}, {"x": 375.0, "y": 597.0}, {"x": 368.0, "y": 598.0}]}], "spans": [{"offset": 995, "length": 1}], "confidence": 0.875}, "UnitPrice": {"value_type": "currency", "value": {"amount": 20.18, "symbol": "$"}, "content": "$20.18", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 711.0, "y": 587.0}, {"x": 747.0, "y": 587.0}, {"x": 747.0, "y": 599.0}, {"x": 711.0, "y": 599.0}]}], "spans": [{"offset": 1009, "length": 6}], "confidence": 0.276}}, "content": "MAINTENANCE\nCOPIER\n1\n$0.00\n$0.00\n$20.18\n$20.18", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 51.0, "y": 571.0}, {"x": 838.0, "y": 571.0}, {"x": 838.0, "y": 599.0}, {"x": 51.0, "y": 599.0}]}], "spans": [{"offset": 976, "length": 46}], "confidence": 0.753}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "NET 30", "content": "NET 30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 657.0, "y": 226.0}, {"x": 705.0, "y": 228.0}, {"x": 704.0, "y": 245.0}, {"x": 656.0, "y": 243.0}]}], "spans": [{"offset": 355, "length": 6}], "confidence": 0.925}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": "15004", "po_box": null, "road": "COLLECTIONS CENTER DRIVE", "city": "CHICAGO", "state": "IL", "postal_code": "60693-0150", "country_region": null, "street_address": "15004 COLLECTIONS CENTER DRIVE"}, "content": "15004 COLLECTIONS CENTER DRIVE CHICAGO, IL 60693-0150", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 52.0, "y": 1010.0}, {"x": 236.0, "y": 1010.0}, {"x": 236.0, "y": 1034.0}, {"x": 52.0, "y": 1034.0}]}], "spans": [{"offset": 1422, "length": 53}], "confidence": 0.878}, "RemittanceAddressRecipient": {"value_type": "string", "value": "FEIN #: 13-2677004\nCanon Solutions America, Inc.", "content": "FEIN #: 13-2677004 Canon Solutions America, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 51.0, "y": 988.0}, {"x": 191.0, "y": 988.0}, {"x": 191.0, "y": 1011.0}, {"x": 51.0, "y": 1011.0}]}], "spans": [{"offset": 1373, "length": 48}], "confidence": 0.727}, "SubTotal": {"value_type": "currency", "value": {"amount": 20.18, "symbol": "$"}, "content": "$20.18", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 802.0, "y": 606.0}, {"x": 838.0, "y": 606.0}, {"x": 838.0, "y": 618.0}, {"x": 802.0, "y": 618.0}]}], "spans": [{"offset": 1034, "length": 6}], "confidence": 0.936}, "TotalTax": {"value_type": "currency", "value": {"amount": 1.66, "symbol": "$"}, "content": "$1.66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 809.0, "y": 644.0}, {"x": 839.0, "y": 644.0}, {"x": 839.0, "y": 657.0}, {"x": 809.0, "y": 657.0}]}], "spans": [{"offset": 1074, "length": 5}], "confidence": 0.943}, "VendorAddress": {"value_type": "address", "value": {"house_number": "300", "po_box": null, "road": "COMMERCE SQUARE BLVD", "city": "BURLINGTON", "state": "NJ", "postal_code": "08016", "country_region": null, "street_address": "300 COMMERCE SQUARE BLVD"}, "content": "300 COMMERCE SQUARE BLVD BURLINGTON, NJ 08016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 51.0, "y": 149.0}, {"x": 231.0, "y": 149.0}, {"x": 231.0, "y": 176.0}, {"x": 51.0, "y": 176.0}]}], "spans": [{"offset": 30, "length": 45}], "confidence": 0.873}, "VendorName": {"value_type": "string", "value": "Canon\nCANON SOLUTIONS AMERICA", "content": "Canon\nCANON SOLUTIONS AMERICA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 53.0, "y": 872.0}, {"x": 232.0, "y": 872.0}, {"x": 232.0, "y": 941.0}, {"x": 53.0, "y": 941.0}]}], "spans": [{"offset": 1325, "length": 29}], "confidence": 0.892}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/116_jpg.rf.4f9db15b44f142ef99d2d70fceb6d7d3.json b/Data/test/116_jpg.rf.4f9db15b44f142ef99d2d70fceb6d7d3.json new file mode 100644 index 0000000000000000000000000000000000000000..de306a3692a269c95d003871647109fc1fe5c103 --- /dev/null +++ b/Data/test/116_jpg.rf.4f9db15b44f142ef99d2d70fceb6d7d3.json @@ -0,0 +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": 764}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "101 C", "po_box": null, "road": "AVENUE DU PEAGE", "city": "ST STEVENS WOLUWE", "state": null, "postal_code": "1940", "country_region": null, "street_address": "101 C AVENUE DU PEAGE"}, "content": "AVENUE DU PEAGE 101 C\n1940 ST STEVENS WOLUWE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 333.0, "y": 129.0}, {"x": 434.0, "y": 131.0}, {"x": 434.0, "y": 151.0}, {"x": 333.0, "y": 149.0}]}], "spans": [{"offset": 239, "length": 44}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "C.R.C. CONTRACT RESEARCH CENT, SPRL", "content": "C.R.C. CONTRACT RESEARCH CENT, SPRL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 334.0, "y": 119.0}, {"x": 496.0, "y": 119.0}, {"x": 496.0, "y": 132.0}, {"x": 334.0, "y": 132.0}]}], "spans": [{"offset": 203, "length": 35}], "confidence": null}, "CustomerId": {"value_type": "string", "value": "4000178", "content": "4000178", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 116.0, "y": 179.0}, {"x": 149.0, "y": 180.0}, {"x": 149.0, "y": 189.0}, {"x": 117.0, "y": 189.0}]}], "spans": [{"offset": 319, "length": 7}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "C.R.C. CONTRACT RESEARCH CENT, SPRL", "content": "C.R.C. CONTRACT RESEARCH CENT, SPRL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 334.0, "y": 119.0}, {"x": 496.0, "y": 119.0}, {"x": 496.0, "y": 132.0}, {"x": 334.0, "y": 132.0}]}], "spans": [{"offset": 203, "length": 35}], "confidence": null}, "CustomerTaxId": {"value_type": "string", "value": "435.085.085.", "content": "435.085.085.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 388.0, "y": 158.0}, {"x": 443.0, "y": 159.0}, {"x": 443.0, "y": 169.0}, {"x": 388.0, "y": 169.0}]}], "spans": [{"offset": 296, "length": 12}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1990-02-28", "content": "28/02/90", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 278.0, "y": 182.0}, {"x": 315.0, "y": 181.0}, {"x": 314.0, "y": 191.0}, {"x": 278.0, "y": 191.0}]}], "spans": [{"offset": 356, "length": 8}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "NDC90090239", "content": "NDC90090239", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 204.0, "y": 181.0}, {"x": 255.0, "y": 181.0}, {"x": 255.0, "y": 190.0}, {"x": 204.0, "y": 190.0}]}], "spans": [{"offset": 339, "length": 11}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": -1484.0, "symbol": null}, "content": "-1484", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 313.0, "y": 498.0}, {"x": 336.0, "y": 498.0}, {"x": 336.0, "y": 507.0}, {"x": 313.0, "y": 507.0}]}], "spans": [{"offset": 688, "length": 5}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": -878.0, "symbol": null}, "content": "-878", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 267.0}, {"x": 486.0, "y": 267.0}, {"x": 486.0, "y": 275.0}, {"x": 469.0, "y": 275.0}]}], "spans": [{"offset": 640, "length": 4}], "confidence": null}, "Description": {"value_type": "string", "value": "RECTIFICATION DE N/FACTURE N\u00ba FV90004479 DU 28/02/90\nCHANTIER : 000216\nPRESTATION NON EFFECTLEE - ENTRETIEN BUREAUX - LOCAUX\nPRESTATION NON EFFECILEE - ENTRETIEN SUP. LABO", "content": "RECTIFICATION DE N/FACTURE N\u00ba FV90004479 DU 28/02/90 CHANTIER : 000216 PRESTATION NON EFFECTLEE - ENTRETIEN BUREAUX - LOCAUX PRESTATION NON EFFECILEE - ENTRETIEN SUP. LABO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 116.0, "y": 244.0}, {"x": 361.0, "y": 244.0}, {"x": 361.0, "y": 284.0}, {"x": 116.0, "y": 284.0}]}], "spans": [{"offset": 390, "length": 171}], "confidence": null}}, "content": "RECTIFICATION DE N/FACTURE N\u00ba FV90004479 DU 28/02/90 CHANTIER : 000216 PRESTATION NON EFFECTLEE - ENTRETIEN BUREAUX - LOCAUX PRESTATION NON EFFECILEE - ENTRETIEN SUP. LABO TAXE A ACQUITTER PAR LE CO-CONTRACTANT A.R. N\u00ba 1 ART. 17 BIS (= LES CODES 07)\n-878", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 116.0, "y": 244.0}, {"x": 486.0, "y": 244.0}, {"x": 486.0, "y": 312.0}, {"x": 116.0, "y": 312.0}]}], "spans": [{"offset": 390, "length": 254}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "17", "po_box": null, "road": "Rue d'kiallestraat", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "17 Rue d'kiallestraat"}, "content": "17, Rue d'kiallestraat - 1040 Bruxelles-Brussel", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 47.0}, {"x": 310.0, "y": 47.0}, {"x": 310.0, "y": 59.0}, {"x": 165.0, "y": 59.0}]}], "spans": [{"offset": 75, "length": 47}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "S.A. TEMC\u00d3 SERVICE INDUSTRI\u00c9S N.V.", "content": "S.A. TEMC\u00d3 SERVICE INDUSTRI\u00c9S N.V.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 164.0, "y": 12.0}, {"x": 323.0, "y": 12.0}, {"x": 323.0, "y": 28.0}, {"x": 164.0, "y": 28.0}]}], "spans": [{"offset": 10, "length": 34}], "confidence": null}, "VendorName": {"value_type": "string", "value": "EUROCLEAN", "content": "EUROCLEAN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 85.0, "y": 6.0}, {"x": 151.0, "y": 7.0}, {"x": 151.0, "y": 23.0}, {"x": 86.0, "y": 22.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/11_jpg.rf.3685b70e005819d9cc6da56fe0da7b8a.json b/Data/test/11_jpg.rf.3685b70e005819d9cc6da56fe0da7b8a.json new file mode 100644 index 0000000000000000000000000000000000000000..1c3a14a5f83e20e1e6b5df802c9d6f2674a5d463 --- /dev/null +++ b/Data/test/11_jpg.rf.3685b70e005819d9cc6da56fe0da7b8a.json @@ -0,0 +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": 713}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 74870.0, "symbol": "Rs"}, "content": "Rs. 74,870", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 567.0}, {"x": 544.0, "y": 567.0}, {"x": 544.0, "y": 578.0}, {"x": 498.0, "y": 578.0}]}], "spans": [{"offset": 676, "length": 10}], "confidence": 0.908}, "CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Brenthouse Road", "city": "London", "state": null, "postal_code": "E9 6QQ", "country_region": "UK", "street_address": "Brenthouse Road"}, "content": "Brenthouse Road\nLondon\nUK - E9 6QQ", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 121.0, "y": 215.0}, {"x": 197.0, "y": 215.0}, {"x": 197.0, "y": 259.0}, {"x": 121.0, "y": 259.0}]}], "spans": [{"offset": 122, "length": 34}], "confidence": 0.64}, "CustomerAddressRecipient": {"value_type": "string", "value": "Louise Miller", "content": "Louise Miller", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 200.0}, {"x": 178.0, "y": 200.0}, {"x": 178.0, "y": 211.0}, {"x": 122.0, "y": 211.0}]}], "spans": [{"offset": 108, "length": 13}], "confidence": 0.766}, "CustomerName": {"value_type": "string", "value": "Louise Miller", "content": "Louise Miller", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 200.0}, {"x": 178.0, "y": 200.0}, {"x": 178.0, "y": 211.0}, {"x": 122.0, "y": 211.0}]}], "spans": [{"offset": 108, "length": 13}], "confidence": 0.766}, "InvoiceDate": {"value_type": "date", "value": "2021-09-26", "content": "9/26/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 215.0}, {"x": 554.0, "y": 216.0}, {"x": 554.0, "y": 227.0}, {"x": 511.0, "y": 227.0}]}], "spans": [{"offset": 234, "length": 9}], "confidence": 0.971}, "InvoiceId": {"value_type": "string", "value": "2001321", "content": "2001321", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 200.0}, {"x": 549.0, "y": 200.0}, {"x": 549.0, "y": 212.0}, {"x": 511.0, "y": 211.0}]}], "spans": [{"offset": 221, "length": 7}], "confidence": 0.974}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 74870.0, "symbol": "Rs"}, "content": "Rs. 74,870", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 518.0}, {"x": 544.0, "y": 520.0}, {"x": 544.0, "y": 534.0}, {"x": 498.0, "y": 532.0}]}], "spans": [{"offset": 636, "length": 10}], "confidence": 0.922}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 62500.0, "symbol": "Rs"}, "content": "Rs. 62,500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 405.0}, {"x": 545.0, "y": 405.0}, {"x": 545.0, "y": 416.0}, {"x": 498.0, "y": 416.0}]}], "spans": [{"offset": 530, "length": 10}], "confidence": 0.935}, "Description": {"value_type": "string", "value": "Grandfather Clock - Brown", "content": "Grandfather Clock - Brown", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 404.0}, {"x": 172.0, "y": 404.0}, {"x": 172.0, "y": 417.0}, {"x": 59.0, "y": 417.0}]}], "spans": [{"offset": 491, "length": 25}], "confidence": 0.931}, "Quantity": {"value_type": "float", "value": 5.0, "content": "5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 287.0, "y": 405.0}, {"x": 292.0, "y": 405.0}, {"x": 293.0, "y": 415.0}, {"x": 287.0, "y": 415.0}]}], "spans": [{"offset": 517, "length": 1}], "confidence": 0.932}, "UnitPrice": {"value_type": "currency", "value": {"amount": 12500.0, "symbol": "Rs"}, "content": "Rs. 12,500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 374.0, "y": 405.0}, {"x": 422.0, "y": 405.0}, {"x": 422.0, "y": 417.0}, {"x": 374.0, "y": 417.0}]}], "spans": [{"offset": 519, "length": 10}], "confidence": 0.935}}, "content": "Grandfather Clock - Brown\n5\nRs. 12,500\nRs. 62,500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 404.0}, {"x": 545.0, "y": 404.0}, {"x": 545.0, "y": 417.0}, {"x": 59.0, "y": 417.0}]}], "spans": [{"offset": 491, "length": 49}], "confidence": 0.896}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.7, "symbol": "Rs"}, "content": "Rs. 700", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 428.0}, {"x": 532.0, "y": 428.0}, {"x": 532.0, "y": 439.0}, {"x": 498.0, "y": 439.0}]}], "spans": [{"offset": 559, "length": 7}], "confidence": 0.934}, "Description": {"value_type": "string", "value": "Freight", "content": "Freight", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 428.0}, {"x": 91.0, "y": 428.0}, {"x": 91.0, "y": 440.0}, {"x": 59.0, "y": 439.0}]}], "spans": [{"offset": 541, "length": 7}], "confidence": 0.934}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 288.0, "y": 428.0}, {"x": 292.0, "y": 428.0}, {"x": 292.0, "y": 438.0}, {"x": 288.0, "y": 438.0}]}], "spans": [{"offset": 549, "length": 1}], "confidence": 0.932}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.7, "symbol": "Rs"}, "content": "Rs. 700", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 374.0, "y": 428.0}, {"x": 408.0, "y": 428.0}, {"x": 408.0, "y": 439.0}, {"x": 374.0, "y": 439.0}]}], "spans": [{"offset": 551, "length": 7}], "confidence": 0.934}}, "content": "Freight\n1\nRs. 700\nRs. 700", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 428.0}, {"x": 532.0, "y": 428.0}, {"x": 532.0, "y": 440.0}, {"x": 59.0, "y": 440.0}]}], "spans": [{"offset": 541, "length": 25}], "confidence": 0.891}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.42, "symbol": "Rs"}, "content": "Rs. 420", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 450.0}, {"x": 532.0, "y": 451.0}, {"x": 532.0, "y": 464.0}, {"x": 498.0, "y": 462.0}]}], "spans": [{"offset": 587, "length": 7}], "confidence": 0.934}, "Description": {"value_type": "string", "value": "Insurance", "content": "Insurance", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 453.0}, {"x": 101.0, "y": 453.0}, {"x": 101.0, "y": 463.0}, {"x": 60.0, "y": 463.0}]}], "spans": [{"offset": 567, "length": 9}], "confidence": 0.935}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 289.0, "y": 451.0}, {"x": 291.0, "y": 451.0}, {"x": 293.0, "y": 460.0}, {"x": 289.0, "y": 461.0}]}], "spans": [{"offset": 577, "length": 1}], "confidence": 0.931}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.42, "symbol": "Rs"}, "content": "Rs. 420", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 375.0, "y": 451.0}, {"x": 408.0, "y": 451.0}, {"x": 408.0, "y": 463.0}, {"x": 375.0, "y": 463.0}]}], "spans": [{"offset": 579, "length": 7}], "confidence": 0.933}}, "content": "Insurance\n1\nRs. 420\nRs. 420", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 451.0}, {"x": 532.0, "y": 451.0}, {"x": 532.0, "y": 463.0}, {"x": 60.0, "y": 463.0}]}], "spans": [{"offset": 567, "length": 27}], "confidence": 0.89}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Bank Transfer", "content": "Bank Transfer", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 341.0}, {"x": 572.0, "y": 342.0}, {"x": 572.0, "y": 354.0}, {"x": 511.0, "y": 353.0}]}], "spans": [{"offset": 438, "length": 13}], "confidence": 0.936}, "PurchaseOrder": {"value_type": "string", "value": "45172", "content": "45172", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 231.0}, {"x": 538.0, "y": 231.0}, {"x": 538.0, "y": 242.0}, {"x": 511.0, "y": 241.0}]}], "spans": [{"offset": 260, "length": 5}], "confidence": 0.955}, "SubTotal": {"value_type": "currency", "value": {"amount": 83620.0, "symbol": "Rs"}, "content": "Rs. 83,620", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 474.0}, {"x": 545.0, "y": 474.0}, {"x": 545.0, "y": 485.0}, {"x": 498.0, "y": 485.0}]}], "spans": [{"offset": 604, "length": 10}], "confidence": 0.933}, "TotalTax": {"value_type": "currency", "value": {"amount": 11250.0, "symbol": "Rs"}, "content": "Rs. 11,250", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 497.0}, {"x": 543.0, "y": 497.0}, {"x": 543.0, "y": 508.0}, {"x": 498.0, "y": 508.0}]}], "spans": [{"offset": 619, "length": 10}], "confidence": 0.936}, "VendorAddressRecipient": {"value_type": "string", "value": "AFC Enterprises", "content": "AFC Enterprises", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 210.0, "y": 28.0}, {"x": 319.0, "y": 30.0}, {"x": 319.0, "y": 48.0}, {"x": 210.0, "y": 46.0}]}], "spans": [{"offset": 17, "length": 15}], "confidence": 0.298}, "VendorName": {"value_type": "string", "value": "AFC Enterprises", "content": "AFC Enterprises", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 210.0, "y": 28.0}, {"x": 319.0, "y": 30.0}, {"x": 319.0, "y": 48.0}, {"x": 210.0, "y": 46.0}]}], "spans": [{"offset": 17, "length": 15}], "confidence": 0.298}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/129_png.rf.aa71ccbb787c6be49397f7fadb96405f.json b/Data/test/129_png.rf.aa71ccbb787c6be49397f7fadb96405f.json new file mode 100644 index 0000000000000000000000000000000000000000..e3c24400c02f9b3d3ea73f0b1ccfae0f78f08ff3 --- /dev/null +++ b/Data/test/129_png.rf.aa71ccbb787c6be49397f7fadb96405f.json @@ -0,0 +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": 401}], "fields": {"InvoiceDate": {"value_type": "date", "value": "2020-09-15", "content": "15/09/20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 405.0, "y": 120.0}, {"x": 434.0, "y": 119.0}, {"x": 435.0, "y": 127.0}, {"x": 405.0, "y": 128.0}]}], "spans": [{"offset": 21, "length": 8}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "6556/24202", "content": "6556/24202", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 263.0, "y": 241.0}, {"x": 309.0, "y": 241.0}, {"x": 309.0, "y": 249.0}, {"x": 263.0, "y": 249.0}]}], "spans": [{"offset": 121, "length": 10}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 21.0, "symbol": null}, "content": "21 365,12", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 439.0, "y": 363.0}, {"x": 481.0, "y": 365.0}, {"x": 480.0, "y": 379.0}, {"x": 438.0, "y": 376.0}]}], "spans": [{"offset": 201, "length": 9}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 21.0, "symbol": null}, "content": "21 365,12", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 444.0, "y": 313.0}, {"x": 479.0, "y": 314.0}, {"x": 479.0, "y": 323.0}, {"x": 444.0, "y": 322.0}]}], "spans": [{"offset": 185, "length": 9}], "confidence": null}, "Quantity": {"value_type": "float", "value": 4.0, "content": "4 2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 369.0, "y": 315.0}, {"x": 406.0, "y": 315.0}, {"x": 406.0, "y": 322.0}, {"x": 369.0, "y": 322.0}]}], "spans": [{"offset": 181, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 5341.28, "symbol": null}, "content": "5341,28", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 323.0, "y": 316.0}, {"x": 352.0, "y": 315.0}, {"x": 353.0, "y": 324.0}, {"x": 323.0, "y": 323.0}]}], "spans": [{"offset": 173, "length": 7}], "confidence": null}}, "content": "5341,28 4 2 21 365,12", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 323.0, "y": 313.0}, {"x": 479.0, "y": 313.0}, {"x": 479.0, "y": 324.0}, {"x": 323.0, "y": 324.0}]}], "spans": [{"offset": 173, "length": 21}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ServiceEndDate": {"value_type": "date", "value": "2020-06-15", "content": "15/06/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 270.0, "y": 263.0}, {"x": 313.0, "y": 262.0}, {"x": 313.0, "y": 271.0}, {"x": 270.0, "y": 272.0}]}], "spans": [{"offset": 146, "length": 10}], "confidence": null}, "ServiceStartDate": {"value_type": "date", "value": "2020-11-08", "content": "11/08/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 211.0, "y": 263.0}, {"x": 254.0, "y": 263.0}, {"x": 254.0, "y": 272.0}, {"x": 212.0, "y": 272.0}]}], "spans": [{"offset": 132, "length": 10}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 1942.25, "symbol": null}, "content": "1942,25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 330.0, "y": 389.0}, {"x": 352.0, "y": 388.0}, {"x": 353.0, "y": 395.0}, {"x": 330.0, "y": 395.0}]}], "spans": [{"offset": 226, "length": 7}], "confidence": null}, "VendorName": {"value_type": "string", "value": "RIU\nPALACE", "content": "RIU PALACE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 121.0, "y": 52.0}, {"x": 186.0, "y": 52.0}, {"x": 186.0, "y": 101.0}, {"x": 121.0, "y": 101.0}]}], "spans": [{"offset": 0, "length": 10}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/12_jpg.rf.d93046725185b0468e260d2eed967c9a.json b/Data/test/12_jpg.rf.d93046725185b0468e260d2eed967c9a.json new file mode 100644 index 0000000000000000000000000000000000000000..1c17721430e7a752fb094b8ba856baa2a427422d --- /dev/null +++ b/Data/test/12_jpg.rf.d93046725185b0468e260d2eed967c9a.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1583.0, "y": 0.0}, {"x": 1583.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 813}], "fields": {"CustomerId": {"value_type": "string", "value": "[123]", "content": "[123]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1324.0, "y": 298.0}, {"x": 1388.0, "y": 298.0}, {"x": 1388.0, "y": 328.0}, {"x": 1324.0, "y": 328.0}]}], "spans": [{"offset": 165, "length": 5}], "confidence": 0.955}, "DueDate": {"value_type": "date", "value": "2020-10-22", "content": "2020/10/22", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1286.0, "y": 332.0}, {"x": 1427.0, "y": 332.0}, {"x": 1427.0, "y": 361.0}, {"x": 1286.0, "y": 361.0}]}], "spans": [{"offset": 180, "length": 10}], "confidence": 0.972}, "InvoiceDate": {"value_type": "date", "value": "2020-09-22", "content": "2020/9/22", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1295.0, "y": 230.0}, {"x": 1417.0, "y": 230.0}, {"x": 1417.0, "y": 254.0}, {"x": 1295.0, "y": 254.0}]}], "spans": [{"offset": 124, "length": 9}], "confidence": 0.971}, "InvoiceId": {"value_type": "string", "value": "[123456]", "content": "[123456]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1304.0, "y": 263.0}, {"x": 1406.0, "y": 263.0}, {"x": 1406.0, "y": 293.0}, {"x": 1304.0, "y": 294.0}]}], "spans": [{"offset": 144, "length": 8}], "confidence": 0.972}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 971.56, "symbol": "$"}, "content": "$ 971.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1264.0, "y": 1218.0}, {"x": 1443.0, "y": 1218.0}, {"x": 1443.0, "y": 1247.0}, {"x": 1264.0, "y": 1247.0}]}], "spans": [{"offset": 529, "length": 8}], "confidence": 0.768}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 230.0, "symbol": null}, "content": "230.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1368.0, "y": 723.0}, {"x": 1445.0, "y": 722.0}, {"x": 1444.0, "y": 747.0}, {"x": 1368.0, "y": 746.0}]}], "spans": [{"offset": 300, "length": 6}], "confidence": 0.897}, "Description": {"value_type": "string", "value": "[Service Fee]", "content": "[Service Fee]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 721.0}, {"x": 314.0, "y": 722.0}, {"x": 314.0, "y": 753.0}, {"x": 159.0, "y": 752.0}]}], "spans": [{"offset": 286, "length": 13}], "confidence": 0.884}}, "content": "[Service Fee]\n230.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 721.0}, {"x": 1445.0, "y": 721.0}, {"x": 1445.0, "y": 752.0}, {"x": 159.0, "y": 752.0}]}], "spans": [{"offset": 286, "length": 20}], "confidence": 0.89}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 375.0, "symbol": null}, "content": "375.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1367.0, "y": 757.0}, {"x": 1443.0, "y": 757.0}, {"x": 1443.0, "y": 782.0}, {"x": 1368.0, "y": 781.0}]}], "spans": [{"offset": 334, "length": 6}], "confidence": 0.9}, "Description": {"value_type": "string", "value": "[Labor: 5 hours at $75/hr]", "content": "[Labor: 5 hours at $75/hr]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 755.0}, {"x": 464.0, "y": 755.0}, {"x": 464.0, "y": 786.0}, {"x": 160.0, "y": 786.0}]}], "spans": [{"offset": 307, "length": 26}], "confidence": 0.678}}, "content": "[Labor: 5 hours at $75/hr]\n375.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 755.0}, {"x": 1443.0, "y": 755.0}, {"x": 1443.0, "y": 786.0}, {"x": 160.0, "y": 786.0}]}], "spans": [{"offset": 307, "length": 33}], "confidence": 0.675}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 345.0, "symbol": null}, "content": "345.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1367.0, "y": 793.0}, {"x": 1444.0, "y": 792.0}, {"x": 1444.0, "y": 817.0}, {"x": 1368.0, "y": 817.0}]}], "spans": [{"offset": 351, "length": 6}], "confidence": 0.895}, "Description": {"value_type": "string", "value": "[Parts]", "content": "[Parts]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 792.0}, {"x": 236.0, "y": 792.0}, {"x": 236.0, "y": 821.0}, {"x": 159.0, "y": 820.0}]}], "spans": [{"offset": 341, "length": 7}], "confidence": 0.75}, "Tax": {"value_type": "currency", "value": null, "content": "X", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1176.0, "y": 795.0}, {"x": 1186.0, "y": 795.0}, {"x": 1187.0, "y": 814.0}, {"x": 1176.0, "y": 814.0}]}], "spans": [{"offset": 349, "length": 1}], "confidence": 0.648}}, "content": "[Parts]\nX\n345.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 792.0}, {"x": 1444.0, "y": 792.0}, {"x": 1444.0, "y": 821.0}, {"x": 159.0, "y": 821.0}]}], "spans": [{"offset": 341, "length": 16}], "confidence": 0.714}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 950.0, "symbol": null}, "content": "950.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1367.0, "y": 1037.0}, {"x": 1444.0, "y": 1037.0}, {"x": 1444.0, "y": 1063.0}, {"x": 1367.0, "y": 1062.0}]}], "spans": [{"offset": 465, "length": 6}], "confidence": 0.971}, "TotalTax": {"value_type": "currency", "value": {"amount": 21.56, "symbol": null}, "content": "21.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1383.0, "y": 1144.0}, {"x": 1444.0, "y": 1144.0}, {"x": 1444.0, "y": 1169.0}, {"x": 1383.0, "y": 1169.0}]}], "spans": [{"offset": 511, "length": 5}], "confidence": 0.96}, "VendorName": {"value_type": "string", "value": "Company Name", "content": "Company Name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 257.0, "y": 114.0}, {"x": 728.0, "y": 113.0}, {"x": 728.0, "y": 179.0}, {"x": 257.0, "y": 180.0}]}], "spans": [{"offset": 0, "length": 12}], "confidence": 0.583}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/130_jpg.rf.5c9cede3a467234f815785a5ad85b3b9.json b/Data/test/130_jpg.rf.5c9cede3a467234f815785a5ad85b3b9.json new file mode 100644 index 0000000000000000000000000000000000000000..216840fd61b78186d33ae937469bb45bdb3bdfa0 --- /dev/null +++ b/Data/test/130_jpg.rf.5c9cede3a467234f815785a5ad85b3b9.json @@ -0,0 +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": 556}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 247.0, "symbol": "$"}, "content": "$247.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 549.0, "y": 273.0}, {"x": 592.0, "y": 274.0}, {"x": 592.0, "y": 286.0}, {"x": 549.0, "y": 285.0}]}], "spans": [{"offset": 316, "length": 7}], "confidence": 0.953}, "BillingAddress": {"value_type": "address", "value": {"house_number": "422", "po_box": null, "road": "Thomas Light", "city": "Maryberg", "state": "MD", "postal_code": "80362", "country_region": null, "street_address": "422 Thomas Light"}, "content": "422 Thomas Light\nMaryberg, MD 80362", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 49.0, "y": 233.0}, {"x": 150.0, "y": 233.0}, {"x": 150.0, "y": 259.0}, {"x": 49.0, "y": 259.0}]}], "spans": [{"offset": 213, "length": 16}, {"offset": 259, "length": 18}], "confidence": 0.915}, "BillingAddressRecipient": {"value_type": "string", "value": "Aguilar, Grant and Walker Inc", "content": "Aguilar, Grant and Walker Inc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 50.0, "y": 220.0}, {"x": 188.0, "y": 220.0}, {"x": 188.0, "y": 234.0}, {"x": 50.0, "y": 234.0}]}], "spans": [{"offset": 183, "length": 29}], "confidence": 0.923}, "CustomerName": {"value_type": "string", "value": "Aguilar, Grant and Walker Inc", "content": "Aguilar, Grant and Walker Inc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 50.0, "y": 220.0}, {"x": 188.0, "y": 220.0}, {"x": 188.0, "y": 234.0}, {"x": 50.0, "y": 234.0}]}], "spans": [{"offset": 183, "length": 29}], "confidence": 0.923}, "DueDate": {"value_type": "date", "value": "2021-04-21", "content": "April 21, 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 527.0, "y": 247.0}, {"x": 591.0, "y": 247.0}, {"x": 591.0, "y": 260.0}, {"x": 527.0, "y": 260.0}]}], "spans": [{"offset": 288, "length": 14}], "confidence": 0.933}, "InvoiceDate": {"value_type": "date", "value": "2021-04-14", "content": "April 14. 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 527.0, "y": 225.0}, {"x": 592.0, "y": 225.0}, {"x": 592.0, "y": 237.0}, {"x": 527.0, "y": 237.0}]}], "spans": [{"offset": 244, "length": 14}], "confidence": 0.9}, "InvoiceId": {"value_type": "string", "value": "INV-1071", "content": "INV-1071", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 547.0, "y": 179.0}, {"x": 593.0, "y": 177.0}, {"x": 593.0, "y": 190.0}, {"x": 548.0, "y": 189.0}]}], "spans": [{"offset": 141, "length": 8}], "confidence": 0.975}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 247.0, "symbol": "$"}, "content": "$247.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 554.0, "y": 497.0}, {"x": 593.0, "y": 497.0}, {"x": 593.0, "y": 509.0}, {"x": 555.0, "y": 508.0}]}], "spans": [{"offset": 441, "length": 7}], "confidence": 0.972}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 99.0, "symbol": "$"}, "content": "$99.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 560.0, "y": 363.0}, {"x": 593.0, "y": 363.0}, {"x": 593.0, "y": 375.0}, {"x": 561.0, "y": 374.0}]}], "spans": [{"offset": 371, "length": 6}], "confidence": 0.94}, "Description": {"value_type": "string", "value": "Starter plan", "content": "Starter plan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 46.0, "y": 363.0}, {"x": 103.0, "y": 364.0}, {"x": 103.0, "y": 376.0}, {"x": 46.0, "y": 375.0}]}], "spans": [{"offset": 349, "length": 12}], "confidence": 0.934}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 384.0, "y": 363.0}, {"x": 390.0, "y": 363.0}, {"x": 389.0, "y": 374.0}, {"x": 384.0, "y": 373.0}]}], "spans": [{"offset": 362, "length": 1}], "confidence": 0.936}, "UnitPrice": {"value_type": "currency", "value": {"amount": 99.0, "symbol": "$"}, "content": "$99.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 479.0, "y": 362.0}, {"x": 512.0, "y": 362.0}, {"x": 512.0, "y": 374.0}, {"x": 479.0, "y": 374.0}]}], "spans": [{"offset": 364, "length": 6}], "confidence": 0.937}}, "content": "Starter plan\n1\n$99.00\n$99.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 46.0, "y": 355.0}, {"x": 593.0, "y": 363.0}, {"x": 593.0, "y": 383.0}, {"x": 46.0, "y": 375.0}]}], "spans": [{"offset": 349, "length": 28}], "confidence": 0.748}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 98.0, "symbol": "$"}, "content": "$98.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 560.0, "y": 381.0}, {"x": 593.0, "y": 381.0}, {"x": 593.0, "y": 393.0}, {"x": 560.0, "y": 393.0}]}], "spans": [{"offset": 392, "length": 6}], "confidence": 0.941}, "Description": {"value_type": "string", "value": "Fees", "content": "Fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 47.0, "y": 381.0}, {"x": 71.0, "y": 381.0}, {"x": 71.0, "y": 391.0}, {"x": 47.0, "y": 391.0}]}], "spans": [{"offset": 378, "length": 4}], "confidence": 0.943}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 384.0, "y": 381.0}, {"x": 390.0, "y": 381.0}, {"x": 391.0, "y": 391.0}, {"x": 385.0, "y": 391.0}]}], "spans": [{"offset": 383, "length": 1}], "confidence": 0.936}, "UnitPrice": {"value_type": "currency", "value": {"amount": 49.0, "symbol": "$"}, "content": "$49.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 479.0, "y": 382.0}, {"x": 511.0, "y": 382.0}, {"x": 511.0, "y": 393.0}, {"x": 479.0, "y": 393.0}]}], "spans": [{"offset": 385, "length": 6}], "confidence": 0.937}}, "content": "Fees\n2\n$49.00\n$98.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 47.0, "y": 381.0}, {"x": 593.0, "y": 381.0}, {"x": 593.0, "y": 393.0}, {"x": 47.0, "y": 393.0}]}], "spans": [{"offset": 378, "length": 20}], "confidence": 0.777}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 197.0, "symbol": "$"}, "content": "$197.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 554.0, "y": 450.0}, {"x": 592.0, "y": 450.0}, {"x": 592.0, "y": 462.0}, {"x": 555.0, "y": 461.0}]}], "spans": [{"offset": 409, "length": 7}], "confidence": 0.974}, "VendorAddress": {"value_type": "address", "value": {"house_number": "123", "po_box": null, "road": "Somewhere Street", "city": "Your City", "state": "AZ", "postal_code": "12345", "country_region": null, "street_address": "123 Somewhere Street"}, "content": "123 Somewhere Street\nYour City AZ 12345", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 50.0, "y": 136.0}, {"x": 158.0, "y": 136.0}, {"x": 158.0, "y": 162.0}, {"x": 50.0, "y": 162.0}]}], "spans": [{"offset": 48, "length": 39}], "confidence": 0.881}, "VendorAddressRecipient": {"value_type": "string", "value": "Demo Company\nSuite 5A-1204", "content": "Demo Company Suite 5A-1204", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 50.0, "y": 111.0}, {"x": 131.0, "y": 111.0}, {"x": 131.0, "y": 135.0}, {"x": 50.0, "y": 135.0}]}], "spans": [{"offset": 9, "length": 26}], "confidence": 0.892}, "VendorName": {"value_type": "string", "value": "Invoiced", "content": "Invoiced", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 91.0, "y": 62.0}, {"x": 198.0, "y": 62.0}, {"x": 198.0, "y": 88.0}, {"x": 91.0, "y": 87.0}]}], "spans": [{"offset": 0, "length": 8}], "confidence": 0.716}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/1372_jpg.rf.3e5f250ada709420bb0d5785d11e1b4b.json b/Data/test/1372_jpg.rf.3e5f250ada709420bb0d5785d11e1b4b.json new file mode 100644 index 0000000000000000000000000000000000000000..eefbe007298358299507d9bca46ad2c333a93026 --- /dev/null +++ b/Data/test/1372_jpg.rf.3e5f250ada709420bb0d5785d11e1b4b.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1447.0, "y": 0.0}, {"x": 1447.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 2836}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "804C REELICON ALPINE RIDGE\nPAN CARD CLUB ROAD", "city": "PUNE", "state": null, "postal_code": "411005 411005", "country_region": null, "street_address": "804C REELICON ALPINE RIDGE\nPAN CARD CLUB ROAD"}, "content": "804C REELICON ALPINE RIDGE\nPAN CARD CLUB ROAD\nPUNE 411005\n- 411005", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 102.0, "y": 392.0}, {"x": 391.0, "y": 392.0}, {"x": 391.0, "y": 480.0}, {"x": 102.0, "y": 480.0}]}], "spans": [{"offset": 451, "length": 66}], "confidence": 0.762}, "BillingAddressRecipient": {"value_type": "string", "value": "MANMOH SYSTEMS OPC PRIVATE LIMITED", "content": "MANMOH SYSTEMS OPC PRIVATE LIMITED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 102.0, "y": 368.0}, {"x": 501.0, "y": 368.0}, {"x": 501.0, "y": 391.0}, {"x": 102.0, "y": 391.0}]}], "spans": [{"offset": 416, "length": 34}], "confidence": 0.889}, "CustomerId": {"value_type": "string", "value": "40-MASYOP-001-001", "content": "40-MASYOP-001-001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 794.0, "y": 702.0}, {"x": 963.0, "y": 701.0}, {"x": 963.0, "y": 722.0}, {"x": 795.0, "y": 720.0}]}], "spans": [{"offset": 1171, "length": 17}], "confidence": 0.933}, "CustomerName": {"value_type": "string", "value": "MANMOH SYSTEMS OPC PRIVATE LIMITED", "content": "MANMOH SYSTEMS OPC PRIVATE LIMITED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 102.0, "y": 368.0}, {"x": 501.0, "y": 368.0}, {"x": 501.0, "y": 391.0}, {"x": 102.0, "y": 391.0}]}], "spans": [{"offset": 416, "length": 34}], "confidence": 0.889}, "CustomerTaxId": {"value_type": "string", "value": "27AANCM0526F1ZK", "content": "27AANCM0526F1ZK", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 173.0, "y": 508.0}, {"x": 350.0, "y": 508.0}, {"x": 351.0, "y": 528.0}, {"x": 173.0, "y": 527.0}]}], "spans": [{"offset": 553, "length": 15}], "confidence": 0.727}, "InvoiceDate": {"value_type": "date", "value": "2020-03-07", "content": "03/07/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1177.0, "y": 586.0}, {"x": 1264.0, "y": 587.0}, {"x": 1264.0, "y": 604.0}, {"x": 1177.0, "y": 604.0}]}], "spans": [{"offset": 1046, "length": 10}], "confidence": 0.936}, "InvoiceId": {"value_type": "string", "value": "81ID2001286700", "content": "81ID2001286700", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 796.0, "y": 586.0}, {"x": 929.0, "y": 587.0}, {"x": 929.0, "y": 605.0}, {"x": 796.0, "y": 604.0}]}], "spans": [{"offset": 1013, "length": 14}], "confidence": 0.936}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 29500.0, "symbol": null}, "content": "29500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1290.0, "y": 1741.0}, {"x": 1363.0, "y": 1740.0}, {"x": 1364.0, "y": 1756.0}, {"x": 1290.0, "y": 1756.0}]}], "spans": [{"offset": 2005, "length": 8}], "confidence": 0.933}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 29500.0, "symbol": null}, "content": "29,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1294.0, "y": 894.0}, {"x": 1387.0, "y": 894.0}, {"x": 1387.0, "y": 912.0}, {"x": 1295.0, "y": 912.0}]}], "spans": [{"offset": 1483, "length": 9}], "confidence": 0.86}, "Description": {"value_type": "string", "value": "MICROSOFT 365 BUSINESS STANDARDBLAD\n(MONTHLY PRE-PAID)\nREF.TDS DECLARATION 1", "content": "MICROSOFT 365 BUSINESS STANDARDBLAD (MONTHLY PRE-PAID)\nREF.TDS DECLARATION 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 919.0}, {"x": 495.0, "y": 919.0}, {"x": 495.0, "y": 986.0}, {"x": 129.0, "y": 986.0}]}], "spans": [{"offset": 1493, "length": 54}, {"offset": 1552, "length": 21}], "confidence": 0.004}, "ProductCode": {"value_type": "string", "value": "SIVLUM22491", "content": "SIVLUM22491", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 131.0, "y": 895.0}, {"x": 245.0, "y": 893.0}, {"x": 245.0, "y": 911.0}, {"x": 132.0, "y": 911.0}]}], "spans": [{"offset": 1427, "length": 11}], "confidence": 0.651}, "Quantity": {"value_type": "float", "value": 50.0, "content": "50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 411.0, "y": 894.0}, {"x": 430.0, "y": 895.0}, {"x": 431.0, "y": 911.0}, {"x": 412.0, "y": 910.0}]}], "spans": [{"offset": 1439, "length": 2}], "confidence": 0.857}, "TaxRate": {"value_type": "string", "value": "CGST 9.00%", "content": "CGST 9.00%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1086.0, "y": 893.0}, {"x": 1202.0, "y": 893.0}, {"x": 1202.0, "y": 912.0}, {"x": 1086.0, "y": 912.0}]}], "spans": [{"offset": 1472, "length": 10}], "confidence": 0.64}, "Unit": {"value_type": "string", "value": "EA", "content": "EA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 443.0, "y": 895.0}, {"x": 462.0, "y": 895.0}, {"x": 462.0, "y": 911.0}, {"x": 443.0, "y": 911.0}]}], "spans": [{"offset": 1442, "length": 2}], "confidence": 0.839}, "UnitPrice": {"value_type": "currency", "value": {"amount": 500.0, "symbol": null}, "content": "500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 556.0, "y": 894.0}, {"x": 619.0, "y": 895.0}, {"x": 619.0, "y": 912.0}, {"x": 557.0, "y": 910.0}]}], "spans": [{"offset": 1445, "length": 6}], "confidence": 0.859}}, "content": "1\nSIVLUM22491\n50 EA\n500.00\n25,000.00\n25,000.00 CGST 9.00%\n29,500.00\nMICROSOFT 365 BUSINESS STANDARDBLAD (MONTHLY PRE-PAID) *** REF.TDS DECLARATION 1 ***\n2,250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 91.0, "y": 893.0}, {"x": 1387.0, "y": 893.0}, {"x": 1387.0, "y": 986.0}, {"x": 91.0, "y": 986.0}]}], "spans": [{"offset": 1425, "length": 161}], "confidence": 0.079}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "30DAYS PDC", "content": "30DAYS PDC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1180.0, "y": 702.0}, {"x": 1286.0, "y": 702.0}, {"x": 1286.0, "y": 721.0}, {"x": 1180.0, "y": 721.0}]}], "spans": [{"offset": 1247, "length": 10}], "confidence": 0.896}, "PurchaseOrder": {"value_type": "string", "value": "MP-0032951", "content": "MP-0032951", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 317.0, "y": 588.0}, {"x": 417.0, "y": 588.0}, {"x": 417.0, "y": 604.0}, {"x": 318.0, "y": 604.0}]}], "spans": [{"offset": 987, "length": 10}], "confidence": 0.933}, "ServiceEndDate": {"value_type": "date", "value": "2020-07-21", "content": "21/07/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 308.0, "y": 1190.0}, {"x": 413.0, "y": 1189.0}, {"x": 413.0, "y": 1210.0}, {"x": 309.0, "y": 1210.0}]}], "spans": [{"offset": 1740, "length": 10}], "confidence": 0.699}, "ShippingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "804C REELICON ALPINE RIDGE\nPAN CARD CLUB ROAD", "city": "PUNE", "state": null, "postal_code": "411005 411005", "country_region": null, "street_address": "804C REELICON ALPINE RIDGE\nPAN CARD CLUB ROAD"}, "content": "804C REELICON ALPINE RIDGE\nPAN CARD CLUB ROAD\nPUNE 411005\n- 411005", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 932.0, "y": 394.0}, {"x": 1221.0, "y": 394.0}, {"x": 1221.0, "y": 483.0}, {"x": 932.0, "y": 483.0}]}], "spans": [{"offset": 831, "length": 66}], "confidence": 0.728}, "ShippingAddressRecipient": {"value_type": "string", "value": "MANMOH SYSTEMS OPC PRIVATE LIMITED", "content": "MANMOH SYSTEMS OPC PRIVATE LIMITED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 932.0, "y": 370.0}, {"x": 1333.0, "y": 370.0}, {"x": 1333.0, "y": 392.0}, {"x": 932.0, "y": 392.0}]}], "spans": [{"offset": 796, "length": 34}], "confidence": 0.886}, "SubTotal": {"value_type": "currency", "value": {"amount": 25000.0, "symbol": null}, "content": "25000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 127.0, "y": 1741.0}, {"x": 200.0, "y": 1741.0}, {"x": 200.0, "y": 1756.0}, {"x": 127.0, "y": 1756.0}]}], "spans": [{"offset": 1765, "length": 8}], "confidence": 0.934}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Rate": {"value_type": "string", "value": "9.00%", "content": "9.00%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1149.0, "y": 944.0}, {"x": 1202.0, "y": 943.0}, {"x": 1202.0, "y": 962.0}, {"x": 1150.0, "y": 961.0}]}], "spans": [{"offset": 1592, "length": 5}], "confidence": 0.424}}, "content": "SGST 9.00%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1087.0, "y": 943.0}, {"x": 1202.0, "y": 943.0}, {"x": 1202.0, "y": 962.0}, {"x": 1087.0, "y": 962.0}]}], "spans": [{"offset": 1587, "length": 10}], "confidence": 0.124}, {"value_type": "dictionary", "value": {}, "content": "TOTAL SGST", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 398.0, "y": 1715.0}, {"x": 492.0, "y": 1715.0}, {"x": 492.0, "y": 1733.0}, {"x": 398.0, "y": 1733.0}]}], "spans": [{"offset": 1849, "length": 10}], "confidence": 0.287}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2250.0, "symbol": null}, "content": "2250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 444.0, "y": 1740.0}, {"x": 509.0, "y": 1740.0}, {"x": 509.0, "y": 1756.0}, {"x": 445.0, "y": 1756.0}]}], "spans": [{"offset": 1860, "length": 7}], "confidence": 0.746}}, "content": "2250.00\nTOTAL IGST", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 444.0, "y": 1715.0}, {"x": 643.0, "y": 1715.0}, {"x": 643.0, "y": 1756.0}, {"x": 444.0, "y": 1756.0}]}], "spans": [{"offset": 1860, "length": 18}], "confidence": 0.397}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2250.0, "symbol": null}, "content": "2250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 295.0, "y": 1741.0}, {"x": 359.0, "y": 1740.0}, {"x": 359.0, "y": 1757.0}, {"x": 295.0, "y": 1756.0}]}], "spans": [{"offset": 1785, "length": 7}], "confidence": 0.84}}, "content": "TOTAL CGST\n2250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 248.0, "y": 1715.0}, {"x": 359.0, "y": 1715.0}, {"x": 359.0, "y": 1757.0}, {"x": 248.0, "y": 1757.0}]}], "spans": [{"offset": 1774, "length": 18}], "confidence": 0.51}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 4500.0, "symbol": null}, "content": "4500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 895.0, "y": 1740.0}, {"x": 960.0, "y": 1740.0}, {"x": 960.0, "y": 1757.0}, {"x": 895.0, "y": 1756.0}]}], "spans": [{"offset": 1969, "length": 7}], "confidence": 0.651}, "VendorAddress": {"value_type": "address", "value": {"house_number": "083", "po_box": null, "road": "LBS MARG", "city": "MUMBAI", "state": null, "postal_code": null, "country_region": null, "street_address": "083 LBS MARG"}, "content": "5TH FLOOR, EMPIRE PLAZA BUILDING A LBS MARG, VIKHROLI (WEST) MUMBAI, MAHARASHTRA 400 083", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 930.0, "y": 217.0}, {"x": 1304.0, "y": 217.0}, {"x": 1304.0, "y": 297.0}, {"x": 930.0, "y": 297.0}]}], "spans": [{"offset": 643, "length": 88}], "confidence": 0.728}, "VendorAddressRecipient": {"value_type": "string", "value": "INGRAM MICRO INDIA PRIVATE LIMITED", "content": "INGRAM MICRO INDIA PRIVATE LIMITED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 930.0, "y": 189.0}, {"x": 1302.0, "y": 189.0}, {"x": 1302.0, "y": 210.0}, {"x": 930.0, "y": 210.0}]}], "spans": [{"offset": 608, "length": 34}], "confidence": 0.888}, "VendorName": {"value_type": "string", "value": "INGRAM", "content": "INGRAM", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 73.0, "y": 86.0}, {"x": 236.0, "y": 87.0}, {"x": 236.0, "y": 127.0}, {"x": 72.0, "y": 127.0}]}], "spans": [{"offset": 0, "length": 6}], "confidence": 0.916}, "VendorTaxId": {"value_type": "string", "value": "27AABCT1296R1ZN", "content": "27AABCT1296R1ZN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1001.0, "y": 332.0}, {"x": 1175.0, "y": 332.0}, {"x": 1175.0, "y": 353.0}, {"x": 1002.0, "y": 353.0}]}], "spans": [{"offset": 767, "length": 15}], "confidence": 0.773}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/143_jpg.rf.5ad16c12eab9d76bb3e71f46a2f7773d.json b/Data/test/143_jpg.rf.5ad16c12eab9d76bb3e71f46a2f7773d.json new file mode 100644 index 0000000000000000000000000000000000000000..8bacb2d5c07e2bf44d8f6d04d2e62175d7c1cdda --- /dev/null +++ b/Data/test/143_jpg.rf.5ad16c12eab9d76bb3e71f46a2f7773d.json @@ -0,0 +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": 986}], "fields": {"CustomerId": {"value_type": "string", "value": "0900011839", "content": "0900011839", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 179.0}, {"x": 210.0, "y": 178.0}, {"x": 210.0, "y": 187.0}, {"x": 169.0, "y": 187.0}]}], "spans": [{"offset": 272, "length": 10}], "confidence": 0.43}, "CustomerName": {"value_type": "string", "value": "HALLIBURTON WORLDWIDE LTD (OMAN)", "content": "HALLIBURTON WORLDWIDE LTD (OMAN)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 168.0}, {"x": 317.0, "y": 168.0}, {"x": 317.0, "y": 178.0}, {"x": 168.0, "y": 178.0}]}], "spans": [{"offset": 225, "length": 32}], "confidence": 0.712}, "InvoiceDate": {"value_type": "date", "value": "2012-07-01", "content": "7/1/2012", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 442.0, "y": 218.0}, {"x": 471.0, "y": 218.0}, {"x": 471.0, "y": 227.0}, {"x": 442.0, "y": 227.0}]}], "spans": [{"offset": 375, "length": 8}], "confidence": 0.431}, "InvoiceId": {"value_type": "string", "value": "00003716_043", "content": "00003716_043", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 208.0}, {"x": 492.0, "y": 208.0}, {"x": 492.0, "y": 217.0}, {"x": 441.0, "y": 217.0}]}], "spans": [{"offset": 355, "length": 12}], "confidence": 0.435}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2.09, "symbol": null}, "content": "2.090", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 504.0, "y": 419.0}, {"x": 523.0, "y": 419.0}, {"x": 523.0, "y": 428.0}, {"x": 504.0, "y": 428.0}]}], "spans": [{"offset": 691, "length": 5}], "confidence": 0.428}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 504.0, "y": 260.0}, {"x": 523.0, "y": 260.0}, {"x": 523.0, "y": 269.0}, {"x": 504.0, "y": 269.0}]}], "spans": [{"offset": 499, "length": 5}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "KLM Royal Dutch Airlines", "content": "KLM Royal Dutch Airlines", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 260.0}, {"x": 250.0, "y": 260.0}, {"x": 250.0, "y": 270.0}, {"x": 165.0, "y": 270.0}]}], "spans": [{"offset": 457, "length": 24}], "confidence": 0.001}}, "content": "Flight\nKLM Royal Dutch Airlines\nNomie / lan B Mr\n0.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 260.0}, {"x": 523.0, "y": 260.0}, {"x": 523.0, "y": 270.0}, {"x": 90.0, "y": 270.0}]}], "spans": [{"offset": 450, "length": 54}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2.09, "symbol": null}, "content": "2.090", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 505.0, "y": 325.0}, {"x": 523.0, "y": 325.0}, {"x": 523.0, "y": 333.0}, {"x": 505.0, "y": 333.0}]}], "spans": [{"offset": 679, "length": 5}], "confidence": 0.001}, "Description": {"value_type": "string", "value": "SERVICEFEE", "content": "SERVICEFEE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 338.0, "y": 326.0}, {"x": 384.0, "y": 325.0}, {"x": 384.0, "y": 334.0}, {"x": 338.0, "y": 334.0}]}], "spans": [{"offset": 668, "length": 10}], "confidence": 0.002}}, "content": "SERVICEFEE\n2.090", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 338.0, "y": 325.0}, {"x": 523.0, "y": 325.0}, {"x": 523.0, "y": 334.0}, {"x": 338.0, "y": 334.0}]}], "spans": [{"offset": 668, "length": 16}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ServiceEndDate": {"value_type": "date", "value": "2012-08-16", "content": "16-Aug-2012", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 179.0, "y": 300.0}, {"x": 222.0, "y": 300.0}, {"x": 222.0, "y": 309.0}, {"x": 179.0, "y": 309.0}]}], "spans": [{"offset": 606, "length": 11}], "confidence": 0.063}, "ServiceStartDate": {"value_type": "date", "value": "2012-08-01", "content": "01-Aug-2012", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 182.0, "y": 292.0}, {"x": 226.0, "y": 291.0}, {"x": 226.0, "y": 300.0}, {"x": 182.0, "y": 300.0}]}], "spans": [{"offset": 553, "length": 11}], "confidence": 0.033}, "VendorAddress": {"value_type": "address", "value": {"house_number": "BLOCK 240", "po_box": "BOX 131", "road": "WAY", "city": "AL KHUWAIN", "state": null, "postal_code": null, "country_region": null, "street_address": "BLOCK 240 WAY BOX 131 NO. 4146"}, "content": "SHOW ROOM NO. 2, SAMA BLDO. NO. 2899, BLOCK 240, WAY NO. 4146, AL KHUWAIN, MUSCATP. O. BOX 131, CODE 103 AL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 112.0}, {"x": 497.0, "y": 112.0}, {"x": 497.0, "y": 123.0}, {"x": 159.0, "y": 123.0}]}], "spans": [{"offset": 45, "length": 107}], "confidence": 0.16}, "VendorAddressRecipient": {"value_type": "string", "value": "ALSHAMEL TRAVEL &TOURISM LLC", "content": "ALSHAMEL TRAVEL &TOURISM LLC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 249.0, "y": 100.0}, {"x": 395.0, "y": 100.0}, {"x": 395.0, "y": 111.0}, {"x": 249.0, "y": 111.0}]}], "spans": [{"offset": 16, "length": 28}], "confidence": 0.093}, "VendorName": {"value_type": "string", "value": "ALSHAMEL\nTRAVEL", "content": "ALSHAMEL TRAVEL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 200.0, "y": 22.0}, {"x": 282.0, "y": 22.0}, {"x": 282.0, "y": 50.0}, {"x": 200.0, "y": 50.0}]}], "spans": [{"offset": 0, "length": 15}], "confidence": 0.526}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/150_png.rf.45dc9a06d088cc24b3eac6686c3ba440.json b/Data/test/150_png.rf.45dc9a06d088cc24b3eac6686c3ba440.json new file mode 100644 index 0000000000000000000000000000000000000000..8f7f9545c988a7df7fb0bf5045be4fb997451d19 --- /dev/null +++ b/Data/test/150_png.rf.45dc9a06d088cc24b3eac6686c3ba440.json @@ -0,0 +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": 572}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 32.0, "symbol": null}, "content": "32 400,20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 453.0}, {"x": 483.0, "y": 454.0}, {"x": 483.0, "y": 463.0}, {"x": 452.0, "y": 462.0}]}], "spans": [{"offset": 513, "length": 9}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "0924", "content": "0924", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 148.0, "y": 152.0}, {"x": 163.0, "y": 152.0}, {"x": 163.0, "y": 160.0}, {"x": 148.0, "y": 159.0}]}], "spans": [{"offset": 36, "length": 4}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 32.0, "symbol": null}, "content": "32 400,00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 381.0, "y": 451.0}, {"x": 413.0, "y": 453.0}, {"x": 413.0, "y": 462.0}, {"x": 381.0, "y": 460.0}]}], "spans": [{"offset": 503, "length": 9}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1.0, "symbol": null}, "content": "1 507,20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 468.0, "y": 250.0}, {"x": 494.0, "y": 251.0}, {"x": 494.0, "y": 259.0}, {"x": 468.0, "y": 258.0}]}], "spans": [{"offset": 260, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "JU 02 AU 08/03/2020", "content": "JU 02 AU 08/03/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 241.0}, {"x": 186.0, "y": 241.0}, {"x": 186.0, "y": 251.0}, {"x": 119.0, "y": 251.0}]}], "spans": [{"offset": 232, "length": 19}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 727455.0, "symbol": null}, "content": "727,455", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 396.0, "y": 248.0}, {"x": 422.0, "y": 248.0}, {"x": 422.0, "y": 257.0}, {"x": 396.0, "y": 256.0}]}], "spans": [{"offset": 252, "length": 7}], "confidence": null}}, "content": "JU 02 AU 08/03/2020\n727,455\n1 507,20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 241.0}, {"x": 494.0, "y": 241.0}, {"x": 494.0, "y": 259.0}, {"x": 119.0, "y": 259.0}]}], "spans": [{"offset": 232, "length": 36}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 69.8, "symbol": null}, "content": "69.80", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 476.0, "y": 260.0}, {"x": 494.0, "y": 260.0}, {"x": 494.0, "y": 269.0}, {"x": 476.0, "y": 269.0}]}], "spans": [{"offset": 299, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "IAXE CE PROMOTION TOURISTIQUE", "content": "IAXE CE PROMOTION TOURISTIQUE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 252.0}, {"x": 239.0, "y": 255.0}, {"x": 239.0, "y": 265.0}, {"x": 119.0, "y": 262.0}]}], "spans": [{"offset": 269, "length": 29}], "confidence": null}}, "content": "IAXE CE PROMOTION TOURISTIQUE\n69.80", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 253.0}, {"x": 494.0, "y": 253.0}, {"x": 494.0, "y": 269.0}, {"x": 119.0, "y": 269.0}]}], "spans": [{"offset": 269, "length": 35}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 25.0, "symbol": null}, "content": "25 ABO CC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 293.0}, {"x": 492.0, "y": 293.0}, {"x": 492.0, "y": 302.0}, {"x": 462.0, "y": 302.0}]}], "spans": [{"offset": 390, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "BEVINA'RE DU CO AU 07/03/2020", "content": "BEVINA'RE DU CO AU 07/03/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 284.0}, {"x": 225.0, "y": 286.0}, {"x": 225.0, "y": 297.0}, {"x": 117.0, "y": 296.0}]}], "spans": [{"offset": 349, "length": 29}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 24.0, "symbol": null}, "content": "24 436,254", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 385.0, "y": 290.0}, {"x": 421.0, "y": 291.0}, {"x": 421.0, "y": 301.0}, {"x": 385.0, "y": 300.0}]}], "spans": [{"offset": 379, "length": 10}], "confidence": null}}, "content": "BEVINA'RE DU CO AU 07/03/2020\n24 436,254\n25 ABO CC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 285.0}, {"x": 492.0, "y": 285.0}, {"x": 492.0, "y": 302.0}, {"x": 117.0, "y": 302.0}]}], "spans": [{"offset": 349, "length": 50}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/1564_jpg.rf.e27cb0bd5b0650587c658edf5538b8f6.json b/Data/test/1564_jpg.rf.e27cb0bd5b0650587c658edf5538b8f6.json new file mode 100644 index 0000000000000000000000000000000000000000..2c3782d84b225969570afa8c63c67cd3df2a8829 --- /dev/null +++ b/Data/test/1564_jpg.rf.e27cb0bd5b0650587c658edf5538b8f6.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1447.0, "y": 0.0}, {"x": 1447.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 770}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Patna, Bihar", "city": "Patna", "state": null, "postal_code": null, "country_region": null, "street_address": "Patna, Bihar"}, "content": "Patna, Bihar, Patna", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 447.0}, {"x": 250.0, "y": 447.0}, {"x": 250.0, "y": 490.0}, {"x": 152.0, "y": 490.0}]}], "spans": [{"offset": 321, "length": 19}], "confidence": 0.918}, "CustomerAddressRecipient": {"value_type": "string", "value": "Rsy Maa Saraswati Education Private Limited", "content": "Rsy Maa Saraswati Education Private Limited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 421.0}, {"x": 505.0, "y": 421.0}, {"x": 505.0, "y": 442.0}, {"x": 152.0, "y": 442.0}]}], "spans": [{"offset": 277, "length": 43}], "confidence": 0.888}, "CustomerName": {"value_type": "string", "value": "Rsy Maa Saraswati Education Private Limited", "content": "Rsy Maa Saraswati Education Private Limited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 421.0}, {"x": 505.0, "y": 421.0}, {"x": 505.0, "y": 442.0}, {"x": 152.0, "y": 442.0}]}], "spans": [{"offset": 277, "length": 43}], "confidence": 0.888}, "InvoiceDate": {"value_type": "date", "value": "2019-11-15", "content": "15, November 2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1156.0, "y": 290.0}, {"x": 1306.0, "y": 290.0}, {"x": 1306.0, "y": 310.0}, {"x": 1156.0, "y": 310.0}]}], "spans": [{"offset": 417, "length": 17}], "confidence": 0.928}, "InvoiceId": {"value_type": "string", "value": "VS/19-20/138486", "content": "VS/19-20/138486", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1167.0, "y": 222.0}, {"x": 1307.0, "y": 222.0}, {"x": 1307.0, "y": 242.0}, {"x": 1168.0, "y": 242.0}]}], "spans": [{"offset": 388, "length": 15}], "confidence": 0.978}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1999.0, "symbol": "\u20b9"}, "content": "\u20b91,999", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1226.0, "y": 835.0}, {"x": 1298.0, "y": 835.0}, {"x": 1299.0, "y": 858.0}, {"x": 1226.0, "y": 857.0}]}], "spans": [{"offset": 610, "length": 6}], "confidence": 0.972}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1694.0, "symbol": null}, "content": "1,694", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1258.0, "y": 680.0}, {"x": 1299.0, "y": 680.0}, {"x": 1299.0, "y": 696.0}, {"x": 1258.0, "y": 696.0}]}], "spans": [{"offset": 564, "length": 5}], "confidence": 0.911}, "Description": {"value_type": "string", "value": "Professional Fees", "content": "Professional Fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 679.0}, {"x": 301.0, "y": 680.0}, {"x": 301.0, "y": 699.0}, {"x": 159.0, "y": 698.0}]}], "spans": [{"offset": 538, "length": 17}], "confidence": 0.909}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 595.0, "y": 680.0}, {"x": 602.0, "y": 680.0}, {"x": 601.0, "y": 696.0}, {"x": 594.0, "y": 696.0}]}], "spans": [{"offset": 556, "length": 1}], "confidence": 0.911}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1694.0, "symbol": null}, "content": "1,694", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1014.0, "y": 680.0}, {"x": 1056.0, "y": 679.0}, {"x": 1056.0, "y": 697.0}, {"x": 1014.0, "y": 698.0}]}], "spans": [{"offset": 558, "length": 5}], "confidence": 0.911}}, "content": "Professional Fees\n1\n1,694\n1,694", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 679.0}, {"x": 1299.0, "y": 679.0}, {"x": 1299.0, "y": 699.0}, {"x": 159.0, "y": 699.0}]}], "spans": [{"offset": 538, "length": 31}], "confidence": 0.907}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 1999.0, "symbol": "\u20b9"}, "content": "\u20b91,999", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1245.0, "y": 783.0}, {"x": 1298.0, "y": 783.0}, {"x": 1298.0, "y": 800.0}, {"x": 1245.0, "y": 799.0}]}], "spans": [{"offset": 591, "length": 6}], "confidence": 0.525}, "TotalTax": {"value_type": "currency", "value": {"amount": 305.0, "symbol": null}, "content": "305", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1271.0, "y": 731.0}, {"x": 1299.0, "y": 731.0}, {"x": 1299.0, "y": 746.0}, {"x": 1271.0, "y": 747.0}]}], "spans": [{"offset": 581, "length": 3}], "confidence": 0.727}, "VendorAddress": {"value_type": "address", "value": {"house_number": "81B", "po_box": null, "road": "2nd Main road, Block A", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "81B 2nd Main road, Block A"}, "content": "Prince Info Park, 81B, 2nd Main road, Block A, 5th Floor, Ambattur Industrial Estate, Ambattur, Chennai - 600 058.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 208.0}, {"x": 592.0, "y": 208.0}, {"x": 592.0, "y": 254.0}, {"x": 152.0, "y": 254.0}]}], "spans": [{"offset": 61, "length": 114}], "confidence": 0.791}, "VendorAddressRecipient": {"value_type": "string", "value": "UBER9 BUSINESS PROCESS SERVICES PRIVATE LIMITED", "content": "UBER9 BUSINESS PROCESS SERVICES PRIVATE LIMITED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 182.0}, {"x": 597.0, "y": 182.0}, {"x": 597.0, "y": 204.0}, {"x": 152.0, "y": 204.0}]}], "spans": [{"offset": 13, "length": 47}], "confidence": 0.9}, "VendorName": {"value_type": "string", "value": "VAKIL SEARCH", "content": "VAKIL SEARCH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 122.0}, {"x": 340.0, "y": 122.0}, {"x": 340.0, "y": 148.0}, {"x": 159.0, "y": 148.0}]}], "spans": [{"offset": 0, "length": 12}], "confidence": 0.829}, "VendorTaxId": {"value_type": "string", "value": "33AABCU7650C1ZM,", "content": "33AABCU7650C1ZM,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 231.0, "y": 325.0}, {"x": 396.0, "y": 324.0}, {"x": 396.0, "y": 346.0}, {"x": 231.0, "y": 345.0}]}], "spans": [{"offset": 231, "length": 16}], "confidence": 0.574}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/156_jpg.rf.d3db501b88ae97ee13861b56ba21be38.json b/Data/test/156_jpg.rf.d3db501b88ae97ee13861b56ba21be38.json new file mode 100644 index 0000000000000000000000000000000000000000..16feec6e3d13bad6cb53511b50e123439927453d --- /dev/null +++ b/Data/test/156_jpg.rf.d3db501b88ae97ee13861b56ba21be38.json @@ -0,0 +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} \ No newline at end of file diff --git a/Data/test/15_png.rf.1fca1b97279a750a369c021efaef655d.json b/Data/test/15_png.rf.1fca1b97279a750a369c021efaef655d.json new file mode 100644 index 0000000000000000000000000000000000000000..8a24c740ae607e688a5cc97e5b92ae11559ea7ab --- /dev/null +++ b/Data/test/15_png.rf.1fca1b97279a750a369c021efaef655d.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1737.0, "y": 0.0}, {"x": 1737.0, "y": 2042.0}, {"x": 0.0, "y": 2042.0}]}], "spans": [{"offset": 0, "length": 1551}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "757166", "po_box": null, "road": "Rajasthan", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "757166 Rajasthan"}, "content": "Rajasthan - 757166", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 226.0, "y": 592.0}, {"x": 515.0, "y": 591.0}, {"x": 515.0, "y": 626.0}, {"x": 226.0, "y": 627.0}]}], "spans": [{"offset": 395, "length": 18}], "confidence": 0.589}, "BillingAddressRecipient": {"value_type": "string", "value": "Cipla Ltd", "content": "Cipla Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 556.0}, {"x": 278.0, "y": 557.0}, {"x": 278.0, "y": 593.0}, {"x": 129.0, "y": 592.0}]}], "spans": [{"offset": 378, "length": 9}], "confidence": 0.829}, "CustomerName": {"value_type": "string", "value": "Cipla Ltd", "content": "Cipla Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 556.0}, {"x": 278.0, "y": 557.0}, {"x": 278.0, "y": 593.0}, {"x": 129.0, "y": 592.0}]}], "spans": [{"offset": 378, "length": 9}], "confidence": 0.829}, "CustomerTaxId": {"value_type": "string", "value": "08AKOCX6349P1ZL", "content": "08AKOCX6349P1ZL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 247.0, "y": 660.0}, {"x": 570.0, "y": 658.0}, {"x": 570.0, "y": 694.0}, {"x": 247.0, "y": 694.0}]}], "spans": [{"offset": 487, "length": 15}], "confidence": 0.95}, "InvoiceDate": {"value_type": "date", "value": "2017-07-26", "content": "July 26, 2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1076.0, "y": 404.0}, {"x": 1294.0, "y": 403.0}, {"x": 1294.0, "y": 439.0}, {"x": 1076.0, "y": 441.0}]}], "spans": [{"offset": 188, "length": 13}], "confidence": 0.928}, "InvoiceId": {"value_type": "string", "value": "17-18/JH/97", "content": "17-18/JH/97", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1134.0, "y": 370.0}, {"x": 1326.0, "y": 370.0}, {"x": 1326.0, "y": 406.0}, {"x": 1134.0, "y": 405.0}]}], "spans": [{"offset": 145, "length": 11}], "confidence": 0.977}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 47924.68, "symbol": null}, "content": "47,924.68", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1472.0, "y": 1279.0}, {"x": 1599.0, "y": 1280.0}, {"x": 1600.0, "y": 1308.0}, {"x": 1473.0, "y": 1308.0}]}], "spans": [{"offset": 1144, "length": 9}], "confidence": 0.833}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 14273.28, "symbol": null}, "content": "14,273.28", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1485.0, "y": 837.0}, {"x": 1599.0, "y": 837.0}, {"x": 1599.0, "y": 863.0}, {"x": 1485.0, "y": 863.0}]}], "spans": [{"offset": 665, "length": 9}], "confidence": 0.902}, "Description": {"value_type": "string", "value": "OTHR BLCHD WOVN FBRCS WGHNG >200 G/M2", "content": "OTHR BLCHD WOVN FBRCS WGHNG >200 G/M2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 174.0, "y": 834.0}, {"x": 758.0, "y": 834.0}, {"x": 758.0, "y": 864.0}, {"x": 174.0, "y": 864.0}]}], "spans": [{"offset": 602, "length": 37}], "confidence": 0.893}, "Tax": {"value_type": "currency", "value": {"amount": 2177.28, "symbol": null}, "content": "2,177.28", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1285.0, "y": 838.0}, {"x": 1384.0, "y": 837.0}, {"x": 1384.0, "y": 863.0}, {"x": 1285.0, "y": 862.0}]}], "spans": [{"offset": 656, "length": 8}], "confidence": 0.896}, "TaxRate": {"value_type": "string", "value": "18.00", "content": "18.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1181.0, "y": 839.0}, {"x": 1241.0, "y": 838.0}, {"x": 1241.0, "y": 862.0}, {"x": 1181.0, "y": 860.0}]}], "spans": [{"offset": 650, "length": 5}], "confidence": 0.896}}, "content": "1\nOTHR BLCHD WOVN FBRCS WGHNG >200 G/M2\n12,096.00\n18.00\n2,177.28\n14,273.28", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 834.0}, {"x": 1599.0, "y": 834.0}, {"x": 1599.0, "y": 864.0}, {"x": 141.0, "y": 864.0}]}], "spans": [{"offset": 600, "length": 74}], "confidence": 0.895}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9135.56, "symbol": null}, "content": "9,135.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1498.0, "y": 921.0}, {"x": 1599.0, "y": 920.0}, {"x": 1599.0, "y": 947.0}, {"x": 1498.0, "y": 947.0}]}], "spans": [{"offset": 750, "length": 8}], "confidence": 0.902}, "Description": {"value_type": "string", "value": "OTER BEANS DRIED & SHLD", "content": "OTER BEANS DRIED & SHLD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 175.0, "y": 917.0}, {"x": 521.0, "y": 917.0}, {"x": 521.0, "y": 950.0}, {"x": 175.0, "y": 950.0}]}], "spans": [{"offset": 702, "length": 23}], "confidence": 0.894}, "Tax": {"value_type": "currency", "value": {"amount": 1393.56, "symbol": null}, "content": "1,393.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1285.0, "y": 921.0}, {"x": 1383.0, "y": 920.0}, {"x": 1383.0, "y": 947.0}, {"x": 1285.0, "y": 947.0}]}], "spans": [{"offset": 741, "length": 8}], "confidence": 0.896}, "TaxRate": {"value_type": "string", "value": "18.00", "content": "18.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1182.0, "y": 921.0}, {"x": 1242.0, "y": 921.0}, {"x": 1243.0, "y": 945.0}, {"x": 1182.0, "y": 945.0}]}], "spans": [{"offset": 735, "length": 5}], "confidence": 0.898}}, "content": "2\nOTER BEANS DRIED & SHLD\n7,742.00\n18.00\n1,393.56\n9,135.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 917.0}, {"x": 1599.0, "y": 917.0}, {"x": 1599.0, "y": 950.0}, {"x": 140.0, "y": 950.0}]}], "spans": [{"offset": 700, "length": 58}], "confidence": 0.894}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 11961.6, "symbol": null}, "content": "11,961.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1485.0, "y": 1003.0}, {"x": 1599.0, "y": 1003.0}, {"x": 1599.0, "y": 1031.0}, {"x": 1486.0, "y": 1030.0}]}], "spans": [{"offset": 894, "length": 9}], "confidence": 0.902}, "Description": {"value_type": "string", "value": "GLAZIERS & GRAFTING PUTY, RESIN ELEMNTS NON\nRFRCTRY SRFCNG PRPN FR FLOORS, WALL ETC", "content": "GLAZIERS & GRAFTING PUTY, RESIN ELEMNTS NON RFRCTRY SRFCNG PRPN FR FLOORS, WALL ETC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 174.0, "y": 1002.0}, {"x": 807.0, "y": 1002.0}, {"x": 807.0, "y": 1058.0}, {"x": 174.0, "y": 1058.0}]}], "spans": [{"offset": 786, "length": 83}], "confidence": 0.878}, "Tax": {"value_type": "currency", "value": {"amount": 2616.6, "symbol": null}, "content": "2,616.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1285.0, "y": 1004.0}, {"x": 1384.0, "y": 1003.0}, {"x": 1384.0, "y": 1030.0}, {"x": 1286.0, "y": 1031.0}]}], "spans": [{"offset": 885, "length": 8}], "confidence": 0.895}, "TaxRate": {"value_type": "string", "value": "28.00", "content": "28.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1181.0, "y": 1004.0}, {"x": 1242.0, "y": 1004.0}, {"x": 1242.0, "y": 1028.0}, {"x": 1181.0, "y": 1028.0}]}], "spans": [{"offset": 879, "length": 5}], "confidence": 0.899}}, "content": "3\nGLAZIERS & GRAFTING PUTY, RESIN ELEMNTS NON RFRCTRY SRFCNG PRPN FR FLOORS, WALL ETC\n9,345.00\n28.00\n2,616.60\n11,961.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 1002.0}, {"x": 1599.0, "y": 1002.0}, {"x": 1599.0, "y": 1058.0}, {"x": 138.0, "y": 1058.0}]}], "spans": [{"offset": 784, "length": 119}], "confidence": 0.894}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9685.76, "symbol": null}, "content": "9,685.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1499.0, "y": 1114.0}, {"x": 1598.0, "y": 1113.0}, {"x": 1598.0, "y": 1140.0}, {"x": 1499.0, "y": 1140.0}]}], "spans": [{"offset": 979, "length": 8}], "confidence": 0.902}, "Description": {"value_type": "string", "value": "OTHER, FRESH OR CHILLED", "content": "OTHER, FRESH OR CHILLED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 174.0, "y": 1111.0}, {"x": 517.0, "y": 1111.0}, {"x": 517.0, "y": 1141.0}, {"x": 174.0, "y": 1141.0}]}], "spans": [{"offset": 931, "length": 23}], "confidence": 0.897}, "Tax": {"value_type": "currency", "value": {"amount": 2118.76, "symbol": null}, "content": "2,118.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1285.0, "y": 1115.0}, {"x": 1385.0, "y": 1114.0}, {"x": 1385.0, "y": 1140.0}, {"x": 1285.0, "y": 1139.0}]}], "spans": [{"offset": 970, "length": 8}], "confidence": 0.895}, "TaxRate": {"value_type": "string", "value": "28.00", "content": "28.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1180.0, "y": 1115.0}, {"x": 1242.0, "y": 1114.0}, {"x": 1242.0, "y": 1138.0}, {"x": 1180.0, "y": 1138.0}]}], "spans": [{"offset": 964, "length": 5}], "confidence": 0.897}}, "content": "4\nOTHER, FRESH OR CHILLED\n7,567.00\n28.00\n2,118.76\n9,685.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 1111.0}, {"x": 1598.0, "y": 1111.0}, {"x": 1598.0, "y": 1141.0}, {"x": 137.0, "y": 1141.0}]}], "spans": [{"offset": 929, "length": 58}], "confidence": 0.894}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2868.48, "symbol": null}, "content": "2,868.48", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1499.0, "y": 1193.0}, {"x": 1601.0, "y": 1193.0}, {"x": 1601.0, "y": 1226.0}, {"x": 1499.0, "y": 1226.0}]}], "spans": [{"offset": 1071, "length": 8}], "confidence": 0.902}, "Description": {"value_type": "string", "value": "OTHER COSMETIC & TOILT PRPN N E S", "content": "OTHER COSMETIC & TOILT PRPN N E S", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 174.0, "y": 1195.0}, {"x": 654.0, "y": 1195.0}, {"x": 654.0, "y": 1224.0}, {"x": 174.0, "y": 1224.0}]}], "spans": [{"offset": 1015, "length": 33}], "confidence": 0.662}, "Tax": {"value_type": "currency", "value": {"amount": 627.48, "symbol": null}, "content": "627.48", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1305.0, "y": 1198.0}, {"x": 1384.0, "y": 1198.0}, {"x": 1384.0, "y": 1224.0}, {"x": 1305.0, "y": 1222.0}]}], "spans": [{"offset": 1064, "length": 6}], "confidence": 0.896}, "TaxRate": {"value_type": "string", "value": "28.00", "content": "28.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1180.0, "y": 1197.0}, {"x": 1242.0, "y": 1197.0}, {"x": 1242.0, "y": 1222.0}, {"x": 1180.0, "y": 1222.0}]}], "spans": [{"offset": 1058, "length": 5}], "confidence": 0.898}}, "content": "5\nOTHER COSMETIC & TOILT PRPN N E S\n2,241.00\n28.00\n627.48\n2,868.48", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 1193.0}, {"x": 1601.0, "y": 1193.0}, {"x": 1601.0, "y": 1226.0}, {"x": 137.0, "y": 1226.0}]}], "spans": [{"offset": 1013, "length": 66}], "confidence": 0.747}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "757166", "po_box": null, "road": "Rajasthan", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "757166 Rajasthan"}, "content": "Rajasthan - 757166\nRJ", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 591.0}, {"x": 1256.0, "y": 591.0}, {"x": 1256.0, "y": 660.0}, {"x": 967.0, "y": 660.0}]}], "spans": [{"offset": 421, "length": 18}, {"offset": 472, "length": 2}], "confidence": 0.427}, "ShippingAddressRecipient": {"value_type": "string", "value": "Cipla Ltd", "content": "Cipla Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 872.0, "y": 556.0}, {"x": 1020.0, "y": 558.0}, {"x": 1020.0, "y": 594.0}, {"x": 872.0, "y": 593.0}]}], "spans": [{"offset": 368, "length": 9}], "confidence": 0.932}, "SubTotal": {"value_type": "currency", "value": {"amount": 38991.0, "symbol": null}, "content": "38,991.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1019.0, "y": 1279.0}, {"x": 1144.0, "y": 1280.0}, {"x": 1143.0, "y": 1308.0}, {"x": 1019.0, "y": 1308.0}]}], "spans": [{"offset": 1125, "length": 9}], "confidence": 0.717}, "TotalTax": {"value_type": "currency", "value": {"amount": 8933.68, "symbol": null}, "content": "8,933.68", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1275.0, "y": 1280.0}, {"x": 1384.0, "y": 1280.0}, {"x": 1384.0, "y": 1308.0}, {"x": 1276.0, "y": 1308.0}]}], "spans": [{"offset": 1135, "length": 8}], "confidence": 0.712}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": "Jharkhand", "postal_code": null, "country_region": null, "street_address": ""}, "content": "Jharkhand", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 404.0}, {"x": 379.0, "y": 404.0}, {"x": 380.0, "y": 439.0}, {"x": 223.0, "y": 440.0}]}], "spans": [{"offset": 164, "length": 9}], "confidence": 0.407}, "VendorName": {"value_type": "string", "value": "gstzen", "content": "gstzen", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 264.0, "y": 154.0}, {"x": 609.0, "y": 138.0}, {"x": 615.0, "y": 235.0}, {"x": 265.0, "y": 255.0}]}], "spans": [{"offset": 0, "length": 6}], "confidence": 0.974}, "VendorTaxId": {"value_type": "string", "value": "20QXOCC9424D1Z5", "content": "20QXOCC9424D1Z5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 248.0, "y": 473.0}, {"x": 574.0, "y": 471.0}, {"x": 574.0, "y": 507.0}, {"x": 248.0, "y": 508.0}]}], "spans": [{"offset": 259, "length": 15}], "confidence": 0.847}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/163_jpg.rf.861d7ff40a4d120e34e4763f535e99ee.json b/Data/test/163_jpg.rf.861d7ff40a4d120e34e4763f535e99ee.json new file mode 100644 index 0000000000000000000000000000000000000000..8f4efed4d43b0420542404d9fb8385cbb763783b --- /dev/null +++ b/Data/test/163_jpg.rf.861d7ff40a4d120e34e4763f535e99ee.json @@ -0,0 +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": 1134}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 29296.0, "symbol": "Rs"}, "content": "Rs. 1,29,296.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 100.0}, {"x": 538.0, "y": 100.0}, {"x": 538.0, "y": 113.0}, {"x": 464.0, "y": 113.0}]}], "spans": [{"offset": 277, "length": 15}], "confidence": 0.005}, "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": 101.0, "y": 231.0}, {"x": 192.0, "y": 231.0}, {"x": 192.0, "y": 253.0}, {"x": 101.0, "y": 253.0}]}], "spans": [{"offset": 114, "length": 37}], "confidence": 0.068}, "BillingAddressRecipient": {"value_type": "string", "value": "TechOuruPlus", "content": "TechOuruPlus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 101.0, "y": 219.0}, {"x": 158.0, "y": 218.0}, {"x": 158.0, "y": 229.0}, {"x": 102.0, "y": 229.0}]}], "spans": [{"offset": 101, "length": 12}], "confidence": 0.006}, "CustomerName": {"value_type": "string", "value": "TechOuruPlus", "content": "TechOuruPlus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 101.0, "y": 219.0}, {"x": 158.0, "y": 218.0}, {"x": 158.0, "y": 229.0}, {"x": 102.0, "y": 229.0}]}], "spans": [{"offset": 101, "length": 12}], "confidence": 0.006}, "CustomerTaxId": {"value_type": "string", "value": "6968666969695969", "content": "6968666969695969", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 267.0}, {"x": 208.0, "y": 268.0}, {"x": 207.0, "y": 276.0}, {"x": 133.0, "y": 276.0}]}], "spans": [{"offset": 179, "length": 16}], "confidence": 0.002}, "DueDate": {"value_type": "date", "value": "2021-03-21", "content": "21-03-2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 80.0}, {"x": 522.0, "y": 80.0}, {"x": 522.0, "y": 93.0}, {"x": 467.0, "y": 93.0}]}], "spans": [{"offset": 255, "length": 10}], "confidence": 0.003}, "InvoiceDate": {"value_type": "date", "value": "2021-03-14", "content": "14-03-2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 60.0}, {"x": 522.0, "y": 60.0}, {"x": 522.0, "y": 74.0}, {"x": 467.0, "y": 73.0}]}], "spans": [{"offset": 235, "length": 10}], "confidence": 0.003}, "InvoiceId": {"value_type": "string", "value": "#00356", "content": "#00356", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 475.0, "y": 39.0}, {"x": 511.0, "y": 39.0}, {"x": 511.0, "y": 52.0}, {"x": 475.0, "y": 52.0}]}], "spans": [{"offset": 216, "length": 6}], "confidence": 0.003}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 29296.0, "symbol": "Rs"}, "content": "Rs. 1,29,296.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 100.0}, {"x": 538.0, "y": 100.0}, {"x": 538.0, "y": 113.0}, {"x": 464.0, "y": 113.0}]}], "spans": [{"offset": 277, "length": 15}], "confidence": 0.005}, "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": 491.0, "y": 303.0}, {"x": 538.0, "y": 305.0}, {"x": 538.0, "y": 314.0}, {"x": 491.0, "y": 312.0}]}], "spans": [{"offset": 471, "length": 12}], "confidence": 0.03}, "Description": {"value_type": "string", "value": "ITEM NAME 1", "content": "ITEM NAME 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 304.0}, {"x": 248.0, "y": 304.0}, {"x": 248.0, "y": 314.0}, {"x": 194.0, "y": 314.0}]}], "spans": [{"offset": 441, "length": 11}], "confidence": 0.021}, "ProductCode": {"value_type": "string", "value": "546", "content": "546", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 325.0, "y": 304.0}, {"x": 340.0, "y": 304.0}, {"x": 340.0, "y": 313.0}, {"x": 325.0, "y": 313.0}]}], "spans": [{"offset": 453, "length": 3}], "confidence": 0.004}, "Quantity": {"value_type": "float", "value": 15.0, "content": "15", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 304.0}, {"x": 371.0, "y": 304.0}, {"x": 372.0, "y": 313.0}, {"x": 362.0, "y": 313.0}]}], "spans": [{"offset": 457, "length": 2}], "confidence": 0.019}, "UnitPrice": {"value_type": "currency", "value": {"amount": 125.0, "symbol": null}, "content": "Rt. 125.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 407.0, "y": 305.0}, {"x": 446.0, "y": 305.0}, {"x": 446.0, "y": 313.0}, {"x": 407.0, "y": 313.0}]}], "spans": [{"offset": 460, "length": 10}], "confidence": 0.03}}, "content": "1\nITEM NAME 1\n546\n15\nRt. 125.00\nRs. 1,875.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 304.0}, {"x": 538.0, "y": 304.0}, {"x": 538.0, "y": 314.0}, {"x": 112.0, "y": 314.0}]}], "spans": [{"offset": 439, "length": 44}], "confidence": 0.018}, {"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": 486.0, "y": 317.0}, {"x": 538.0, "y": 317.0}, {"x": 538.0, "y": 326.0}, {"x": 486.0, "y": 326.0}]}], "spans": [{"offset": 517, "length": 13}], "confidence": 0.027}, "Description": {"value_type": "string", "value": "ITEM NAME 2", "content": "ITEM NAME 2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 317.0}, {"x": 248.0, "y": 317.0}, {"x": 248.0, "y": 327.0}, {"x": 194.0, "y": 327.0}]}], "spans": [{"offset": 486, "length": 11}], "confidence": 0.026}, "ProductCode": {"value_type": "string", "value": "2541", "content": "2541", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 323.0, "y": 317.0}, {"x": 340.0, "y": 317.0}, {"x": 340.0, "y": 326.0}, {"x": 323.0, "y": 326.0}]}], "spans": [{"offset": 498, "length": 4}], "confidence": 0.004}, "Quantity": {"value_type": "float", "value": 26.0, "content": "26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 317.0}, {"x": 372.0, "y": 317.0}, {"x": 372.0, "y": 326.0}, {"x": 362.0, "y": 326.0}]}], "spans": [{"offset": 503, "length": 2}], "confidence": 0.019}, "UnitPrice": {"value_type": "currency", "value": {"amount": 545.0, "symbol": "Rs"}, "content": "Rs. 545.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 407.0, "y": 317.0}, {"x": 446.0, "y": 317.0}, {"x": 446.0, "y": 326.0}, {"x": 407.0, "y": 326.0}]}], "spans": [{"offset": 506, "length": 10}], "confidence": 0.028}}, "content": "2\nITEM NAME 2\n2541\n26\nRs. 545.00\nRs. 14,170.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 317.0}, {"x": 538.0, "y": 317.0}, {"x": 538.0, "y": 327.0}, {"x": 112.0, "y": 327.0}]}], "spans": [{"offset": 484, "length": 46}], "confidence": 0.018}, {"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": 485.0, "y": 330.0}, {"x": 538.0, "y": 330.0}, {"x": 538.0, "y": 339.0}, {"x": 485.0, "y": 339.0}]}], "spans": [{"offset": 563, "length": 13}], "confidence": 0.027}, "Description": {"value_type": "string", "value": "ITEM NAME 3", "content": "ITEM NAME 3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 329.0}, {"x": 248.0, "y": 329.0}, {"x": 248.0, "y": 340.0}, {"x": 194.0, "y": 340.0}]}], "spans": [{"offset": 531, "length": 11}], "confidence": 0.026}, "ProductCode": {"value_type": "string", "value": "250", "content": "250", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 326.0, "y": 330.0}, {"x": 339.0, "y": 330.0}, {"x": 339.0, "y": 339.0}, {"x": 326.0, "y": 339.0}]}], "spans": [{"offset": 543, "length": 3}], "confidence": 0.003}, "Quantity": {"value_type": "float", "value": 54.0, "content": "54", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 330.0}, {"x": 372.0, "y": 330.0}, {"x": 372.0, "y": 339.0}, {"x": 361.0, "y": 338.0}]}], "spans": [{"offset": 547, "length": 2}], "confidence": 0.019}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1214.0, "symbol": "Rs"}, "content": "Rs. 1,214.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 399.0, "y": 330.0}, {"x": 446.0, "y": 330.0}, {"x": 446.0, "y": 339.0}, {"x": 399.0, "y": 339.0}]}], "spans": [{"offset": 550, "length": 12}], "confidence": 0.027}}, "content": "ITEM NAME 3\n250\n54\nRs. 1,214.00\nRs. 65,556.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 329.0}, {"x": 538.0, "y": 329.0}, {"x": 538.0, "y": 340.0}, {"x": 194.0, "y": 340.0}]}], "spans": [{"offset": 531, "length": 45}], "confidence": 0.02}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 18618.0, "symbol": null}, "content": "Is. 18,618.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 485.0, "y": 342.0}, {"x": 538.0, "y": 342.0}, {"x": 538.0, "y": 352.0}, {"x": 485.0, "y": 352.0}]}], "spans": [{"offset": 607, "length": 13}], "confidence": 0.03}, "Description": {"value_type": "string", "value": "ITEM NAME 4", "content": "ITEM NAME 4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 342.0}, {"x": 249.0, "y": 342.0}, {"x": 249.0, "y": 353.0}, {"x": 194.0, "y": 353.0}]}], "spans": [{"offset": 579, "length": 11}], "confidence": 0.012}, "ProductCode": {"value_type": "string", "value": "4554", "content": "4554", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 323.0, "y": 343.0}, {"x": 342.0, "y": 343.0}, {"x": 342.0, "y": 352.0}, {"x": 323.0, "y": 351.0}]}], "spans": [{"offset": 591, "length": 4}], "confidence": 0.003}, "UnitPrice": {"value_type": "currency", "value": {"amount": 321.0, "symbol": "Rs"}, "content": "Rs. 321.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 406.0, "y": 342.0}, {"x": 446.0, "y": 343.0}, {"x": 446.0, "y": 352.0}, {"x": 406.0, "y": 351.0}]}], "spans": [{"offset": 596, "length": 10}], "confidence": 0.03}}, "content": ".\nITEM NAME 4\n4554\nRs. 321.00\nIs. 18,618.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 342.0}, {"x": 538.0, "y": 342.0}, {"x": 538.0, "y": 353.0}, {"x": 110.0, "y": 353.0}]}], "spans": [{"offset": 577, "length": 43}], "confidence": 0.041}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4825.0, "symbol": null}, "content": "R&. 4825.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 491.0, "y": 355.0}, {"x": 537.0, "y": 355.0}, {"x": 537.0, "y": 363.0}, {"x": 491.0, "y": 363.0}]}], "spans": [{"offset": 654, "length": 11}], "confidence": 0.032}, "Description": {"value_type": "string", "value": "ITEM NAME S", "content": "ITEM NAME S", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 355.0}, {"x": 247.0, "y": 355.0}, {"x": 247.0, "y": 364.0}, {"x": 194.0, "y": 364.0}]}], "spans": [{"offset": 623, "length": 11}], "confidence": 0.022}, "ProductCode": {"value_type": "string", "value": "#151", "content": "#151", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 323.0, "y": 355.0}, {"x": 341.0, "y": 355.0}, {"x": 341.0, "y": 364.0}, {"x": 323.0, "y": 364.0}]}], "spans": [{"offset": 635, "length": 4}], "confidence": 0.004}, "Quantity": {"value_type": "float", "value": 25.0, "content": "25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 354.0}, {"x": 372.0, "y": 354.0}, {"x": 372.0, "y": 364.0}, {"x": 362.0, "y": 364.0}]}], "spans": [{"offset": 640, "length": 2}], "confidence": 0.019}, "UnitPrice": {"value_type": "currency", "value": {"amount": 353.0, "symbol": "Rs"}, "content": "Rs. 353.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 407.0, "y": 354.0}, {"x": 446.0, "y": 355.0}, {"x": 446.0, "y": 364.0}, {"x": 407.0, "y": 363.0}]}], "spans": [{"offset": 643, "length": 10}], "confidence": 0.028}}, "content": "5\nITEM NAME S\n#151\n25\nRs. 353.00\nR&. 4825.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 354.0}, {"x": 537.0, "y": 354.0}, {"x": 537.0, "y": 364.0}, {"x": 112.0, "y": 364.0}]}], "spans": [{"offset": 621, "length": 44}], "confidence": 0.018}], "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.\nUttar Pradesh", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 231.0}, {"x": 442.0, "y": 231.0}, {"x": 442.0, "y": 253.0}, {"x": 351.0, "y": 253.0}]}], "spans": [{"offset": 314, "length": 37}], "confidence": 0.036}, "ShippingAddressRecipient": {"value_type": "string", "value": "TechGuruPlus", "content": "TechGuruPlus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 352.0, "y": 219.0}, {"x": 408.0, "y": 220.0}, {"x": 408.0, "y": 229.0}, {"x": 352.0, "y": 227.0}]}], "spans": [{"offset": 301, "length": 12}], "confidence": 0.002}, "SubTotal": {"value_type": "currency", "value": {"amount": 9044.0, "symbol": "Rs"}, "content": "Rs. 1,09,044.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 479.0, "y": 404.0}, {"x": 538.0, "y": 405.0}, {"x": 538.0, "y": 415.0}, {"x": 479.0, "y": 414.0}]}], "spans": [{"offset": 680, "length": 15}], "confidence": null}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 526.62, "symbol": "Rs"}, "content": "Rs. 1.526.62", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 491.0, "y": 418.0}, {"x": 539.0, "y": 418.0}, {"x": 539.0, "y": 427.0}, {"x": 491.0, "y": 427.0}]}], "spans": [{"offset": 710, "length": 12}], "confidence": 0.004}, "TotalTax": {"value_type": "currency", "value": {"amount": 19627.92, "symbol": null}, "content": "Ps. 19,627.92", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 486.0, "y": 454.0}, {"x": 539.0, "y": 454.0}, {"x": 539.0, "y": 464.0}, {"x": 486.0, "y": 464.0}]}], "spans": [{"offset": 800, "length": 13}], "confidence": 0.007}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Okhla Industrial Area,\nNew Delhi-110020", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "Okhla Industrial Area,\nNew Delhi-110020"}, "content": "Okhla Industrial Area, New Delhi-110020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 121.0}, {"x": 274.0, "y": 121.0}, {"x": 274.0, "y": 153.0}, {"x": 165.0, "y": 153.0}]}], "spans": [{"offset": 10, "length": 39}], "confidence": 0.052}, "VendorAddressRecipient": {"value_type": "string", "value": "EVOL ATIS", "content": "EVOL ATIS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 167.0, "y": 94.0}, {"x": 261.0, "y": 94.0}, {"x": 261.0, "y": 113.0}, {"x": 167.0, "y": 113.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": null}, "VendorName": {"value_type": "string", "value": "EVOL ATIS", "content": "EVOL ATIS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 167.0, "y": 94.0}, {"x": 261.0, "y": 94.0}, {"x": 261.0, "y": 113.0}, {"x": 167.0, "y": 113.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": null}, "VendorTaxId": {"value_type": "string", "value": "898989898989", "content": "898989898989", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 204.0, "y": 170.0}, {"x": 275.0, "y": 170.0}, {"x": 275.0, "y": 181.0}, {"x": 204.0, "y": 181.0}]}], "spans": [{"offset": 77, "length": 12}], "confidence": 0.001}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/1677588151858-1-1-_png.rf.c4d2294d5fc9107d1a40f022049b28bf.json b/Data/test/1677588151858-1-1-_png.rf.c4d2294d5fc9107d1a40f022049b28bf.json new file mode 100644 index 0000000000000000000000000000000000000000..20bacc9782ee3426bd4dbefed155064b7d7c8b28 --- /dev/null +++ b/Data/test/1677588151858-1-1-_png.rf.c4d2294d5fc9107d1a40f022049b28bf.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 794.0, "y": 0.0}, {"x": 794.0, "y": 1123.0}, {"x": 0.0, "y": 1123.0}]}], "spans": [{"offset": 0, "length": 1586}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "15", "po_box": null, "road": "dhanji street white house bldg above chain bazaar mumbai 400", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "15 dhanji street white house bldg above chain bazaar mumbai 400"}, "content": "15, Dhanji Street, White House Bldg,\nAbove Chain Bazaar,\nMumbai- 400 003.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 334.0}, {"x": 239.0, "y": 334.0}, {"x": 239.0, "y": 373.0}, {"x": 92.0, "y": 373.0}]}], "spans": [{"offset": 85, "length": 73}], "confidence": 0.862}, "CustomerAddressRecipient": {"value_type": "string", "value": "Nahata Asset Management Services", "content": "Nahata Asset Management Services", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 322.0}, {"x": 246.0, "y": 322.0}, {"x": 246.0, "y": 334.0}, {"x": 92.0, "y": 334.0}]}], "spans": [{"offset": 52, "length": 32}], "confidence": 0.936}, "CustomerName": {"value_type": "string", "value": "Nahata Asset Management Services", "content": "Nahata Asset Management Services", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 322.0}, {"x": 246.0, "y": 322.0}, {"x": 246.0, "y": 334.0}, {"x": 92.0, "y": 334.0}]}], "spans": [{"offset": 52, "length": 32}], "confidence": 0.936}, "InvoiceId": {"value_type": "string", "value": "GG/2011/12/11-01", "content": "GG/2011/12/11-01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 433.0}, {"x": 230.0, "y": 433.0}, {"x": 230.0, "y": 445.0}, {"x": 154.0, "y": 446.0}]}], "spans": [{"offset": 318, "length": 16}], "confidence": 0.574}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 100000.0, "symbol": null}, "content": "100,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 643.0, "y": 686.0}, {"x": 693.0, "y": 686.0}, {"x": 693.0, "y": 698.0}, {"x": 643.0, "y": 698.0}]}], "spans": [{"offset": 1142, "length": 10}], "confidence": 0.948}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 100000.0, "symbol": null}, "content": "100,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 648.0, "y": 562.0}, {"x": 694.0, "y": 562.0}, {"x": 694.0, "y": 573.0}, {"x": 649.0, "y": 573.0}]}], "spans": [{"offset": 1125, "length": 10}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "Lenovo H330\nLenovo H330 - Intel Core i3 Processor 3.10GHz\n2100, 2nd Generation Processor, 3MB L2\nCache, 2GB DDR 3 1056 MHZ FSB,\n500 GB, DVD Writer, 6in 1 Mobile Card Reader,\n18.5\" LCD Monitor,\nKeyboard & Optical Mouse, OS Dos", "content": "Lenovo H330 Lenovo H330 - Intel Core i3 Processor 3.10GHz 2100, 2nd Generation Processor, 3MB L2 Cache, 2GB DDR 3 1056 MHZ FSB, 500 GB, DVD Writer, 6in 1 Mobile Card Reader, 18.5\" LCD Monitor, Keyboard & Optical Mouse, OS Dos", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 562.0}, {"x": 313.0, "y": 562.0}, {"x": 313.0, "y": 640.0}, {"x": 142.0, "y": 640.0}]}], "spans": [{"offset": 887, "length": 225}], "confidence": 0.819}, "Quantity": {"value_type": "float", "value": 4.0, "content": "4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 563.0}, {"x": 519.0, "y": 563.0}, {"x": 519.0, "y": 570.0}, {"x": 515.0, "y": 570.0}]}], "spans": [{"offset": 1113, "length": 1}], "confidence": 0.003}, "UnitPrice": {"value_type": "currency", "value": {"amount": 25000.0, "symbol": null}, "content": "25,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 568.0, "y": 562.0}, {"x": 609.0, "y": 562.0}, {"x": 608.0, "y": 572.0}, {"x": 568.0, "y": 572.0}]}], "spans": [{"offset": 1115, "length": 9}], "confidence": 0.002}}, "content": "1\nLenovo H330 Lenovo H330 - Intel Core i3 Processor 3.10GHz 2100, 2nd Generation Processor, 3MB L2 Cache, 2GB DDR 3 1056 MHZ FSB, 500 GB, DVD Writer, 6in 1 Mobile Card Reader, 18.5\" LCD Monitor, Keyboard & Optical Mouse, OS Dos\n4\n25,000.00\n100,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 115.0, "y": 562.0}, {"x": 694.0, "y": 562.0}, {"x": 694.0, "y": 640.0}, {"x": 115.0, "y": 640.0}]}], "spans": [{"offset": 885, "length": 250}], "confidence": 0.097}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "PDC Cheque", "content": "PDC Cheque", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 809.0}, {"x": 140.0, "y": 811.0}, {"x": 140.0, "y": 822.0}, {"x": 92.0, "y": 820.0}]}], "spans": [{"offset": 1300, "length": 10}], "confidence": 0.847}, "PurchaseOrder": {"value_type": "string", "value": "GG/2011/12/11-01", "content": "GG/2011/12/11-01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 615.0, "y": 295.0}, {"x": 689.0, "y": 294.0}, {"x": 689.0, "y": 306.0}, {"x": 615.0, "y": 306.0}]}], "spans": [{"offset": 170, "length": 16}], "confidence": 0.846}, "VendorName": {"value_type": "string", "value": "OTS e-Solutions Pvt. Ltd.\nTM\nOTS", "content": "TM OTS\nOTS e-Solutions Pvt. Ltd.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 152.0}, {"x": 599.0, "y": 152.0}, {"x": 599.0, "y": 211.0}, {"x": 155.0, "y": 211.0}]}], "spans": [{"offset": 0, "length": 32}], "confidence": 0.651}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/169_jpg.rf.f3b5d34bd9b30ec3517acb3f43c9183b.json b/Data/test/169_jpg.rf.f3b5d34bd9b30ec3517acb3f43c9183b.json new file mode 100644 index 0000000000000000000000000000000000000000..95d382f2206caa430003efb40669471e812f06f8 --- /dev/null +++ b/Data/test/169_jpg.rf.f3b5d34bd9b30ec3517acb3f43c9183b.json @@ -0,0 +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": 1234}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "3240", "po_box": null, "road": "Walkers Ridge Way", "city": "Buffalo Grove", "state": "IL", "postal_code": "60089", "country_region": null, "street_address": "3240 Walkers Ridge Way"}, "content": "3240 Walkers Ridge Way\nBuffalo Grove, IL 60089", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 202.0}, {"x": 205.0, "y": 202.0}, {"x": 205.0, "y": 223.0}, {"x": 112.0, "y": 223.0}]}], "spans": [{"offset": 121, "length": 46}], "confidence": 0.91}, "BillingAddressRecipient": {"value_type": "string", "value": "Michael E. Manning", "content": "Michael E. Manning", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 190.0}, {"x": 185.0, "y": 191.0}, {"x": 185.0, "y": 202.0}, {"x": 111.0, "y": 201.0}]}], "spans": [{"offset": 102, "length": 18}], "confidence": 0.651}, "CustomerName": {"value_type": "string", "value": "Michael E. Manning", "content": "Michael E. Manning", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 190.0}, {"x": 185.0, "y": 191.0}, {"x": 185.0, "y": 202.0}, {"x": 111.0, "y": 201.0}]}], "spans": [{"offset": 102, "length": 18}], "confidence": 0.651}, "DueDate": {"value_type": "date", "value": "2015-02-08", "content": "02-08-2015", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 204.0, "y": 138.0}, {"x": 251.0, "y": 138.0}, {"x": 251.0, "y": 148.0}, {"x": 205.0, "y": 148.0}]}], "spans": [{"offset": 83, "length": 10}], "confidence": 0.952}, "InvoiceDate": {"value_type": "date", "value": "2015-02-08", "content": "02-08-2015", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 204.0, "y": 125.0}, {"x": 251.0, "y": 126.0}, {"x": 251.0, "y": 136.0}, {"x": 205.0, "y": 136.0}]}], "spans": [{"offset": 63, "length": 10}], "confidence": 0.953}, "InvoiceId": {"value_type": "string", "value": "INV0000004/2015", "content": "INV0000004/2015", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 204.0, "y": 115.0}, {"x": 278.0, "y": 114.0}, {"x": 277.0, "y": 125.0}, {"x": 205.0, "y": 125.0}]}], "spans": [{"offset": 34, "length": 15}], "confidence": 0.95}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 605.96, "symbol": "$"}, "content": "$605.96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 514.0, "y": 343.0}, {"x": 545.0, "y": 343.0}, {"x": 545.0, "y": 353.0}, {"x": 514.0, "y": 353.0}]}], "spans": [{"offset": 886, "length": 7}], "confidence": 0.949}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 119.99, "symbol": "$"}, "content": "$119.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 256.0}, {"x": 545.0, "y": 255.0}, {"x": 545.0, "y": 265.0}, {"x": 515.0, "y": 264.0}]}], "spans": [{"offset": 624, "length": 7}], "confidence": 0.331}, "Description": {"value_type": "string", "value": "GIGABYTE GA-Z97X-Gaming 5 LGA 1150 Intel\nZ97 HDMI SATA 6Gb/s - Intel Z97, Core 17 / 15 /\n(3 / Pentium / Celeron ( LGA1150) , DDR3\n3200 ( OC) /3100 ( OC)", "content": "GIGABYTE GA-Z97X-Gaming 5 LGA 1150 Intel Z97 HDMI SATA 6Gb/s - Intel Z97, Core 17 / 15 / (3 / Pentium / Celeron ( LGA1150) , DDR3 3200 ( OC) /3100 ( OC)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 202.0, "y": 240.0}, {"x": 377.0, "y": 240.0}, {"x": 377.0, "y": 279.0}, {"x": 202.0, "y": 279.0}]}], "spans": [{"offset": 461, "length": 152}], "confidence": 0.918}, "ProductCode": {"value_type": "string", "value": "GB-GA-Z97X", "content": "GB-GA-Z97X", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 255.0}, {"x": 154.0, "y": 255.0}, {"x": 154.0, "y": 265.0}, {"x": 105.0, "y": 265.0}]}], "spans": [{"offset": 450, "length": 10}], "confidence": 0.419}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 255.0}, {"x": 402.0, "y": 255.0}, {"x": 402.0, "y": 263.0}, {"x": 397.0, "y": 263.0}]}], "spans": [{"offset": 614, "length": 1}], "confidence": 0.387}, "UnitPrice": {"value_type": "currency", "value": {"amount": 119.99, "symbol": "$"}, "content": "$119.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 256.0}, {"x": 477.0, "y": 256.0}, {"x": 477.0, "y": 264.0}, {"x": 448.0, "y": 264.0}]}], "spans": [{"offset": 616, "length": 7}], "confidence": 0.331}}, "content": "GB-GA-Z97X\nGIGABYTE GA-Z97X-Gaming 5 LGA 1150 Intel Z97 HDMI SATA 6Gb/s - Intel Z97, Core 17 / 15 / (3 / Pentium / Celeron ( LGA1150) , DDR3 3200 ( OC) /3100 ( OC)\n1\n$119.99\n$119.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 240.0}, {"x": 545.0, "y": 240.0}, {"x": 545.0, "y": 279.0}, {"x": 105.0, "y": 279.0}]}], "spans": [{"offset": 450, "length": 181}], "confidence": 0.374}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 309.99, "symbol": "$"}, "content": "$309.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 285.0}, {"x": 544.0, "y": 285.0}, {"x": 544.0, "y": 294.0}, {"x": 515.0, "y": 293.0}]}], "spans": [{"offset": 718, "length": 7}], "confidence": 0.377}, "Description": {"value_type": "string", "value": "Intel Core 17-4770 Haswell Quad-Core 3.4GHZ\nLGA 1150 84W", "content": "Intel Core 17-4770 Haswell Quad-Core 3.4GHZ LGA 1150 84W", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 203.0, "y": 279.0}, {"x": 371.0, "y": 279.0}, {"x": 371.0, "y": 299.0}, {"x": 203.0, "y": 299.0}]}], "spans": [{"offset": 651, "length": 56}], "confidence": 0.838}, "ProductCode": {"value_type": "string", "value": "Intel Core I7-4770", "content": "Intel Core I7-4770", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 106.0, "y": 283.0}, {"x": 170.0, "y": 283.0}, {"x": 170.0, "y": 294.0}, {"x": 106.0, "y": 294.0}]}], "spans": [{"offset": 632, "length": 18}], "confidence": 0.47}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 398.0, "y": 285.0}, {"x": 402.0, "y": 285.0}, {"x": 402.0, "y": 292.0}, {"x": 398.0, "y": 292.0}]}], "spans": [{"offset": 708, "length": 1}], "confidence": 0.318}, "UnitPrice": {"value_type": "currency", "value": {"amount": 309.99, "symbol": "$"}, "content": "$309.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 285.0}, {"x": 478.0, "y": 285.0}, {"x": 478.0, "y": 294.0}, {"x": 448.0, "y": 293.0}]}], "spans": [{"offset": 710, "length": 7}], "confidence": 0.389}}, "content": "Intel Core I7-4770\nIntel Core 17-4770 Haswell Quad-Core 3.4GHZ LGA 1150 84W\n1\n$309.99\n$309.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 106.0, "y": 279.0}, {"x": 544.0, "y": 279.0}, {"x": 544.0, "y": 299.0}, {"x": 106.0, "y": 299.0}]}], "spans": [{"offset": 632, "length": 93}], "confidence": 0.192}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 139.0, "symbol": "$"}, "content": "$139.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 304.0}, {"x": 545.0, "y": 305.0}, {"x": 545.0, "y": 314.0}, {"x": 515.0, "y": 314.0}]}], "spans": [{"offset": 818, "length": 7}], "confidence": 0.323}, "Description": {"value_type": "string", "value": "HyperX Fury Series 16GB (2 x 8GB) -\n240-Pin DDR3 SDRAM DDR3", "content": "HyperX Fury Series 16GB (2 x 8GB) - 240-Pin DDR3 SDRAM DDR3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 202.0, "y": 299.0}, {"x": 350.0, "y": 299.0}, {"x": 350.0, "y": 319.0}, {"x": 202.0, "y": 319.0}]}], "spans": [{"offset": 748, "length": 59}], "confidence": 0.903}, "ProductCode": {"value_type": "string", "value": "16GB {2\u00d78)\nDDR3-Desk.", "content": "16GB {2\u00d78) DDR3-Desk.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 300.0}, {"x": 151.0, "y": 300.0}, {"x": 151.0, "y": 318.0}, {"x": 105.0, "y": 318.0}]}], "spans": [{"offset": 726, "length": 21}], "confidence": 0.474}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 398.0, "y": 306.0}, {"x": 401.0, "y": 306.0}, {"x": 401.0, "y": 313.0}, {"x": 398.0, "y": 313.0}]}], "spans": [{"offset": 808, "length": 1}], "confidence": 0.317}, "UnitPrice": {"value_type": "currency", "value": {"amount": 139.0, "symbol": "$"}, "content": "$139.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 305.0}, {"x": 478.0, "y": 305.0}, {"x": 478.0, "y": 314.0}, {"x": 448.0, "y": 314.0}]}], "spans": [{"offset": 810, "length": 7}], "confidence": 0.368}}, "content": "16GB {2\u00d78) DDR3-Desk.\nHyperX Fury Series 16GB (2 x 8GB) - 240-Pin DDR3 SDRAM DDR3\n1\n$139.00\n$139.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 299.0}, {"x": 545.0, "y": 299.0}, {"x": 545.0, "y": 319.0}, {"x": 105.0, "y": 319.0}]}], "spans": [{"offset": 726, "length": 99}], "confidence": 0.191}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "3240", "po_box": null, "road": "Walkers Ridge Way", "city": "Buffalo Grove", "state": "IL", "postal_code": "60089", "country_region": null, "street_address": "3240 Walkers Ridge Way"}, "content": "3240 Walkers Ridge Way\nBuffalo Grove, IL 60089", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 329.0, "y": 202.0}, {"x": 423.0, "y": 202.0}, {"x": 423.0, "y": 222.0}, {"x": 329.0, "y": 222.0}]}], "spans": [{"offset": 340, "length": 46}], "confidence": 0.881}, "ShippingAddressRecipient": {"value_type": "string", "value": "Michael E. Manning", "content": "Michael E. Manning", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 329.0, "y": 191.0}, {"x": 402.0, "y": 191.0}, {"x": 402.0, "y": 202.0}, {"x": 329.0, "y": 202.0}]}], "spans": [{"offset": 321, "length": 18}], "confidence": 0.572}, "SubTotal": {"value_type": "currency", "value": {"amount": 568.98, "symbol": "$"}, "content": "$568.98\n$568.98", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 320.0}, {"x": 545.0, "y": 320.0}, {"x": 545.0, "y": 330.0}, {"x": 515.0, "y": 329.0}]}], "spans": [{"offset": 835, "length": 7}, {"offset": 852, "length": 7}], "confidence": 0.724}, "TotalTax": {"value_type": "currency", "value": {"amount": 36.98, "symbol": "$"}, "content": "$36.98", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 520.0, "y": 332.0}, {"x": 545.0, "y": 332.0}, {"x": 545.0, "y": 341.0}, {"x": 520.0, "y": 341.0}]}], "spans": [{"offset": 865, "length": 6}], "confidence": 0.951}, "VendorAddress": {"value_type": "address", "value": {"house_number": "1537", "po_box": null, "road": "Roosevelt Road", "city": "Moundridge", "state": "KS", "postal_code": "67107", "country_region": null, "street_address": "1537 Roosevelt Road"}, "content": "1537 Roosevelt Road Moundridge, KS 67107", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 468.0, "y": 65.0}, {"x": 546.0, "y": 65.0}, {"x": 546.0, "y": 84.0}, {"x": 468.0, "y": 84.0}]}], "spans": [{"offset": 204, "length": 40}], "confidence": 0.899}, "VendorAddressRecipient": {"value_type": "string", "value": "John Doe's Computer Parts & Service", "content": "John Doe's Computer Parts & Service", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 379.0, "y": 49.0}, {"x": 545.0, "y": 49.0}, {"x": 545.0, "y": 62.0}, {"x": 379.0, "y": 62.0}]}], "spans": [{"offset": 168, "length": 35}], "confidence": 0.283}, "VendorName": {"value_type": "string", "value": "COMPANY", "content": "COMPANY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 74.0}, {"x": 265.0, "y": 75.0}, {"x": 266.0, "y": 99.0}, {"x": 169.0, "y": 99.0}]}], "spans": [{"offset": 17, "length": 7}], "confidence": 0.732}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/16th-November-2019-Amazon-Inkjet-Printer-MR-1_jpg.rf.d748a0fd770f44a2dba4a82dc747496e.json b/Data/test/16th-November-2019-Amazon-Inkjet-Printer-MR-1_jpg.rf.d748a0fd770f44a2dba4a82dc747496e.json new file mode 100644 index 0000000000000000000000000000000000000000..b11528d1dc577de24064b7b36c14bfa4b41442bb --- /dev/null +++ b/Data/test/16th-November-2019-Amazon-Inkjet-Printer-MR-1_jpg.rf.d748a0fd770f44a2dba4a82dc747496e.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1448.0, "y": 0.0}, {"x": 1448.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 1614}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Trivandrum", "state": "KERALA", "postal_code": "695583", "country_region": "IN", "street_address": ""}, "content": "A302, Oceanus Serenity, Trivandrum Trivandrum, KERALA, 695583 IN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 891.0, "y": 310.0}, {"x": 1343.0, "y": 310.0}, {"x": 1343.0, "y": 403.0}, {"x": 891.0, "y": 403.0}]}], "spans": [{"offset": 381, "length": 64}], "confidence": 0.718}, "BillingAddressRecipient": {"value_type": "string", "value": "Robin Tommy", "content": "Robin Tommy", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1170.0, "y": 277.0}, {"x": 1345.0, "y": 281.0}, {"x": 1344.0, "y": 313.0}, {"x": 1169.0, "y": 309.0}]}], "spans": [{"offset": 369, "length": 11}], "confidence": 0.733}, "CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Thane\nBHIWANDI", "state": "MAHARASHTRA", "postal_code": "421302", "country_region": "IN", "street_address": ""}, "content": "Building No. 5, BGR Warehousing Complex,\nNear Shiv Sagar Hotel, Village Vahuli, Bhiwandi,\nThane\nBHIWANDI, MAHARASHTRA, 421302\nIN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 101.0, "y": 316.0}, {"x": 693.0, "y": 316.0}, {"x": 693.0, "y": 470.0}, {"x": 101.0, "y": 470.0}]}], "spans": [{"offset": 109, "length": 128}], "confidence": 0.799}, "CustomerAddressRecipient": {"value_type": "string", "value": "Appario Retail Private Ltd", "content": "Appario Retail Private Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 279.0}, {"x": 414.0, "y": 279.0}, {"x": 414.0, "y": 311.0}, {"x": 103.0, "y": 311.0}]}], "spans": [{"offset": 82, "length": 26}], "confidence": 0.908}, "CustomerName": {"value_type": "string", "value": "Appario Retail Private Ltd", "content": "Appario Retail Private Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 279.0}, {"x": 414.0, "y": 279.0}, {"x": 414.0, "y": 311.0}, {"x": 103.0, "y": 311.0}]}], "spans": [{"offset": 82, "length": 26}], "confidence": 0.908}, "CustomerTaxId": {"value_type": "string", "value": "27AALCA0171E1ZZ", "content": "27AALCA0171E1ZZ", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 389.0, "y": 571.0}, {"x": 638.0, "y": 571.0}, {"x": 639.0, "y": 602.0}, {"x": 389.0, "y": 604.0}]}], "spans": [{"offset": 278, "length": 15}], "confidence": 0.283}, "InvoiceDate": {"value_type": "date", "value": "2019-11-16", "content": "16.11.2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1208.0, "y": 872.0}, {"x": 1342.0, "y": 873.0}, {"x": 1343.0, "y": 901.0}, {"x": 1208.0, "y": 901.0}]}], "spans": [{"offset": 721, "length": 10}], "confidence": 0.95}, "InvoiceId": {"value_type": "string", "value": "BOM7-1312958", "content": "BOM7-1312958", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1148.0, "y": 800.0}, {"x": 1344.0, "y": 800.0}, {"x": 1344.0, "y": 829.0}, {"x": 1149.0, "y": 829.0}]}], "spans": [{"offset": 657, "length": 12}], "confidence": 0.844}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3999.0, "symbol": "\u20b9"}, "content": "\u20b93,999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1231.0, "y": 1040.0}, {"x": 1336.0, "y": 1041.0}, {"x": 1336.0, "y": 1066.0}, {"x": 1231.0, "y": 1065.0}]}], "spans": [{"offset": 1006, "length": 9}], "confidence": 0.904}, "Description": {"value_type": "string", "value": "HP DeskJet 2622 All-in-One Wireless Colour Inkjet Printer\n(White) with Voice-Activated Printing (Works with Alexa and\nGoogle Assistant) | B0752J9JQQ ( B0752J9JQQ )\nHSN:8443", "content": "HP DeskJet 2622 All-in-One Wireless Colour Inkjet Printer (White) with Voice-Activated Printing (Works with Alexa and Google Assistant) | B0752J9JQQ ( B0752J9JQQ ) HSN:8443", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 999.0}, {"x": 718.0, "y": 999.0}, {"x": 718.0, "y": 1100.0}, {"x": 138.0, "y": 1100.0}]}], "spans": [{"offset": 821, "length": 172}], "confidence": 0.872}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 891.0, "y": 1042.0}, {"x": 901.0, "y": 1042.0}, {"x": 900.0, "y": 1063.0}, {"x": 890.0, "y": 1063.0}]}], "spans": [{"offset": 1004, "length": 1}], "confidence": 0.905}, "Tax": {"value_type": "currency", "value": {"amount": 610.02, "symbol": "\u20b9"}, "content": "\u20b9610.02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1135.0, "y": 1039.0}, {"x": 1222.0, "y": 1040.0}, {"x": 1222.0, "y": 1065.0}, {"x": 1135.0, "y": 1063.0}]}], "spans": [{"offset": 1036, "length": 7}], "confidence": 0.892}, "TaxRate": {"value_type": "string", "value": "18% |IGST", "content": "18% |IGST", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1028.0, "y": 1039.0}, {"x": 1129.0, "y": 1039.0}, {"x": 1129.0, "y": 1064.0}, {"x": 1028.0, "y": 1064.0}]}], "spans": [{"offset": 1026, "length": 9}], "confidence": 0.513}, "UnitPrice": {"value_type": "currency", "value": {"amount": 3388.98, "symbol": "\u20b9"}, "content": "\u20b93,388.98", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 770.0, "y": 1040.0}, {"x": 871.0, "y": 1039.0}, {"x": 871.0, "y": 1066.0}, {"x": 771.0, "y": 1065.0}]}], "spans": [{"offset": 994, "length": 9}], "confidence": 0.905}}, "content": "1\nHP DeskJet 2622 All-in-One Wireless Colour Inkjet Printer (White) with Voice-Activated Printing (Works with Alexa and Google Assistant) | B0752J9JQQ ( B0752J9JQQ ) HSN:8443\n\u20b93,388.98\n1\n\u20b93,999.00\n\u20b93,388.98 18% |IGST \u20b9610.02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 116.0, "y": 999.0}, {"x": 1336.0, "y": 999.0}, {"x": 1336.0, "y": 1100.0}, {"x": 116.0, "y": 1100.0}]}], "spans": [{"offset": 819, "length": 224}], "confidence": 0.847}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Trivandrum", "state": "KERALA", "postal_code": "695583", "country_region": "IN", "street_address": ""}, "content": "A302, Oceanus Serenity, Trivandrum Trivandrum, KERALA, 695583 IN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 892.0, "y": 597.0}, {"x": 1343.0, "y": 597.0}, {"x": 1343.0, "y": 690.0}, {"x": 892.0, "y": 690.0}]}], "spans": [{"offset": 507, "length": 64}], "confidence": 0.777}, "ShippingAddressRecipient": {"value_type": "string", "value": "Robin Tommy\nRobin Tommy", "content": "Robin Tommy Robin Tommy", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1163.0, "y": 534.0}, {"x": 1345.0, "y": 536.0}, {"x": 1345.0, "y": 599.0}, {"x": 1162.0, "y": 597.0}]}], "spans": [{"offset": 483, "length": 23}], "confidence": 0.75}, "TotalTax": {"value_type": "currency", "value": {"amount": 3999.0, "symbol": "\u20b9"}, "content": "\u20b9610.02\u20b93,999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1134.0, "y": 1115.0}, {"x": 1339.0, "y": 1117.0}, {"x": 1339.0, "y": 1142.0}, {"x": 1134.0, "y": 1140.0}]}], "spans": [{"offset": 1051, "length": 16}], "confidence": 0.809}, "VendorName": {"value_type": "string", "value": "amazon.in", "content": "amazon.in", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 23.0}, {"x": 508.0, "y": 12.0}, {"x": 511.0, "y": 84.0}, {"x": 134.0, "y": 86.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": 0.952}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/170_jpg.rf.aa12429dfdaed687e86fc9dbd95fd41c.json b/Data/test/170_jpg.rf.aa12429dfdaed687e86fc9dbd95fd41c.json new file mode 100644 index 0000000000000000000000000000000000000000..0ddd681635cc124fa73748b7e293228c5c81d7d5 --- /dev/null +++ b/Data/test/170_jpg.rf.aa12429dfdaed687e86fc9dbd95fd41c.json @@ -0,0 +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": 663}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 82608.2, "symbol": null}, "content": "82,608.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 540.0}, {"x": 556.0, "y": 540.0}, {"x": 556.0, "y": 551.0}, {"x": 517.0, "y": 550.0}]}], "spans": [{"offset": 654, "length": 9}], "confidence": null}, "BillingAddress": {"value_type": "address", "value": {"house_number": "1954", "po_box": null, "road": "Bloor Street", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "1954 Bloor Street"}, "content": "1954 Bloor Street Wirst Theprin, ON, MP 3KS Canada", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 81.0, "y": 185.0}, {"x": 172.0, "y": 185.0}, {"x": 172.0, "y": 220.0}, {"x": 81.0, "y": 220.0}]}], "spans": [{"offset": 39, "length": 50}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "Jro Dol", "content": "Jro Dol", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 82.0, "y": 172.0}, {"x": 114.0, "y": 173.0}, {"x": 114.0, "y": 184.0}, {"x": 82.0, "y": 183.0}]}], "spans": [{"offset": 31, "length": 7}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Jro Dol", "content": "Jro Dol", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 82.0, "y": 172.0}, {"x": 114.0, "y": 173.0}, {"x": 114.0, "y": 184.0}, {"x": 82.0, "y": 183.0}]}], "spans": [{"offset": 31, "length": 7}], "confidence": null}, "DueDate": {"value_type": "date", "value": null, "content": "Upon receipt", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 199.0}, {"x": 546.0, "y": 199.0}, {"x": 546.0, "y": 209.0}, {"x": 493.0, "y": 209.0}]}], "spans": [{"offset": 289, "length": 12}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2018-09-25", "content": "2018-09-25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 186.0}, {"x": 540.0, "y": 185.0}, {"x": 540.0, "y": 195.0}, {"x": 494.0, "y": 196.0}]}], "spans": [{"offset": 266, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "14", "content": "14", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 160.0}, {"x": 504.0, "y": 160.0}, {"x": 504.0, "y": 171.0}, {"x": 494.0, "y": 171.0}]}], "spans": [{"offset": 224, "length": 2}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 608.2, "symbol": "$"}, "content": "$2.608:20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 510.0}, {"x": 557.0, "y": 510.0}, {"x": 557.0, "y": 520.0}, {"x": 517.0, "y": 519.0}]}], "spans": [{"offset": 626, "length": 9}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 68.0, "symbol": "$"}, "content": "$68.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 530.0, "y": 316.0}, {"x": 556.0, "y": 316.0}, {"x": 556.0, "y": 326.0}, {"x": 530.0, "y": 326.0}]}], "spans": [{"offset": 420, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Platinum web hosting package\nDown 35etb, Up 100mg", "content": "Platinum web hosting package Down 35etb, Up 100mg", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 315.0}, {"x": 210.0, "y": 317.0}, {"x": 210.0, "y": 341.0}, {"x": 80.0, "y": 339.0}]}], "spans": [{"offset": 361, "length": 49}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 382.0, "y": 316.0}, {"x": 388.0, "y": 316.0}, {"x": 387.0, "y": 327.0}, {"x": 381.0, "y": 327.0}]}], "spans": [{"offset": 411, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 565.0, "symbol": null}, "content": "565.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 315.0}, {"x": 480.0, "y": 315.0}, {"x": 480.0, "y": 325.0}, {"x": 454.0, "y": 325.0}]}], "spans": [{"offset": 413, "length": 6}], "confidence": null}}, "content": "Platinum web hosting package Down 35etb, Up 100mg\n1\n565.00\n$68.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 315.0}, {"x": 556.0, "y": 315.0}, {"x": 556.0, "y": 340.0}, {"x": 80.0, "y": 340.0}]}], "spans": [{"offset": 361, "length": 65}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2100.0, "symbol": "$"}, "content": "$2,100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 357.0}, {"x": 556.0, "y": 357.0}, {"x": 556.0, "y": 367.0}, {"x": 517.0, "y": 367.0}]}], "spans": [{"offset": 511, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "2 page website design\nincludes base wsetrames, and responsive templates", "content": "2 page website design includes base wsetrames, and responsive templates", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 357.0}, {"x": 289.0, "y": 357.0}, {"x": 289.0, "y": 380.0}, {"x": 80.0, "y": 380.0}]}], "spans": [{"offset": 427, "length": 71}], "confidence": null}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 382.0, "y": 357.0}, {"x": 389.0, "y": 357.0}, {"x": 389.0, "y": 367.0}, {"x": 382.0, "y": 367.0}]}], "spans": [{"offset": 499, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 2100.0, "symbol": "$"}, "content": "$2,100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 440.0, "y": 357.0}, {"x": 480.0, "y": 357.0}, {"x": 480.0, "y": 367.0}, {"x": 440.0, "y": 367.0}]}], "spans": [{"offset": 501, "length": 9}], "confidence": null}}, "content": "2 page website design includes base wsetrames, and responsive templates\n3\n$2,100.00\n$2,100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 357.0}, {"x": 556.0, "y": 357.0}, {"x": 556.0, "y": 380.0}, {"x": 80.0, "y": 380.0}]}], "spans": [{"offset": 427, "length": 93}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 250.0, "symbol": "$"}, "content": "$250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 524.0, "y": 399.0}, {"x": 556.0, "y": 399.0}, {"x": 556.0, "y": 409.0}, {"x": 525.0, "y": 409.0}]}], "spans": [{"offset": 575, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "Mobile designs\nmoudes responsive navigation", "content": "Mobile designs moudes responsive navigation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 399.0}, {"x": 202.0, "y": 399.0}, {"x": 202.0, "y": 423.0}, {"x": 79.0, "y": 423.0}]}], "spans": [{"offset": 521, "length": 43}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 382.0, "y": 399.0}, {"x": 387.0, "y": 399.0}, {"x": 387.0, "y": 407.0}, {"x": 382.0, "y": 407.0}]}], "spans": [{"offset": 565, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 250.0, "symbol": "$"}, "content": "$250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 444.0, "y": 399.0}, {"x": 476.0, "y": 399.0}, {"x": 476.0, "y": 409.0}, {"x": 444.0, "y": 409.0}]}], "spans": [{"offset": 567, "length": 7}], "confidence": null}}, "content": "Mobile designs moudes responsive navigation\n1\n$250.00\n$250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 399.0}, {"x": 556.0, "y": 399.0}, {"x": 556.0, "y": 423.0}, {"x": 79.0, "y": 423.0}]}], "spans": [{"offset": 521, "length": 61}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "AD29094", "content": "AD29094", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 173.0}, {"x": 531.0, "y": 173.0}, {"x": 531.0, "y": 182.0}, {"x": 494.0, "y": 183.0}]}], "spans": [{"offset": 244, "length": 7}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 82145.0, "symbol": null}, "content": "82,145.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 464.0}, {"x": 557.0, "y": 464.0}, {"x": 557.0, "y": 475.0}, {"x": 518.0, "y": 475.0}]}], "spans": [{"offset": 593, "length": 9}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 193.2, "symbol": "$"}, "content": "$193.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 524.0, "y": 477.0}, {"x": 557.0, "y": 478.0}, {"x": 557.0, "y": 488.0}, {"x": 524.0, "y": 488.0}]}], "spans": [{"offset": 612, "length": 7}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "156", "po_box": null, "road": "University Ave", "city": "Toronto", "state": "ON", "postal_code": null, "country_region": "Canada", "street_address": "156 University Ave"}, "content": "156 University Ave, Toronto ON, Canada, MISH 2H?", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 68.0}, {"x": 558.0, "y": 68.0}, {"x": 558.0, "y": 93.0}, {"x": 448.0, "y": 93.0}]}], "spans": [{"offset": 146, "length": 48}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "Turnpike Designs", "content": "Turnpike Designs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 55.0}, {"x": 558.0, "y": 56.0}, {"x": 558.0, "y": 69.0}, {"x": 484.0, "y": 68.0}]}], "spans": [{"offset": 129, "length": 16}], "confidence": null}, "VendorName": {"value_type": "string", "value": "T\nTurnpike\nDesigns Co.", "content": "T\nTurnpike Designs Co.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 39.0}, {"x": 269.0, "y": 40.0}, {"x": 269.0, "y": 85.0}, {"x": 105.0, "y": 84.0}]}], "spans": [{"offset": 0, "length": 22}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/174_jpg.rf.4d3eaec6b51c6521efc22730408decb3.json b/Data/test/174_jpg.rf.4d3eaec6b51c6521efc22730408decb3.json new file mode 100644 index 0000000000000000000000000000000000000000..18d1860a78d1c708d68dff7eb7857d521d0f11d8 --- /dev/null +++ b/Data/test/174_jpg.rf.4d3eaec6b51c6521efc22730408decb3.json @@ -0,0 +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": 1353}], "fields": {"CustomerName": {"value_type": "string", "value": "Mr. SNEH GUPTA", "content": "Mr. SNEH GUPTA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 190.0, "y": 103.0}, {"x": 264.0, "y": 103.0}, {"x": 264.0, "y": 113.0}, {"x": 190.0, "y": 113.0}]}], "spans": [{"offset": 122, "length": 14}], "confidence": 0.759}, "InvoiceDate": {"value_type": "date", "value": "2019-12-02", "content": "12/2/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 115.0}, {"x": 486.0, "y": 115.0}, {"x": 486.0, "y": 125.0}, {"x": 448.0, "y": 125.0}]}], "spans": [{"offset": 167, "length": 9}], "confidence": 0.863}, "InvoiceId": {"value_type": "string", "value": "150", "content": "150", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 105.0}, {"x": 459.0, "y": 105.0}, {"x": 459.0, "y": 112.0}, {"x": 448.0, "y": 111.0}]}], "spans": [{"offset": 158, "length": 3}], "confidence": 0.861}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 969821.0, "symbol": null}, "content": "969821.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 480.0, "y": 288.0}, {"x": 529.0, "y": 288.0}, {"x": 529.0, "y": 298.0}, {"x": 480.0, "y": 297.0}]}], "spans": [{"offset": 529, "length": 9}], "confidence": 0.847}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9845771.0, "symbol": null}, "content": "9845771.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 483.0, "y": 183.0}, {"x": 528.0, "y": 183.0}, {"x": 528.0, "y": 192.0}, {"x": 483.0, "y": 192.0}]}], "spans": [{"offset": 291, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "EX-SHOWROOM PRICE", "content": "EX-SHOWROOM PRICE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 179.0}, {"x": 208.0, "y": 180.0}, {"x": 208.0, "y": 190.0}, {"x": 109.0, "y": 189.0}]}], "spans": [{"offset": 273, "length": 17}], "confidence": null}}, "content": "EX-SHOWROOM PRICE\n9845771.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 180.0}, {"x": 528.0, "y": 180.0}, {"x": 528.0, "y": 192.0}, {"x": 109.0, "y": 192.0}]}], "spans": [{"offset": 273, "length": 28}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 100000.0, "symbol": null}, "content": "100000:00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 487.0, "y": 193.0}, {"x": 526.0, "y": 194.0}, {"x": 526.0, "y": 203.0}, {"x": 487.0, "y": 202.0}]}], "spans": [{"offset": 318, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "CASH DISCOUNT", "content": "CASH DISCOUNT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 188.0}, {"x": 183.0, "y": 191.0}, {"x": 183.0, "y": 202.0}, {"x": 109.0, "y": 199.0}]}], "spans": [{"offset": 302, "length": 13}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 194.0}, {"x": 335.0, "y": 194.0}, {"x": 335.0, "y": 201.0}, {"x": 331.0, "y": 201.0}]}], "spans": [{"offset": 316, "length": 1}], "confidence": null}}, "content": "CASH DISCOUNT\n1\n100000:00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 183.0}, {"x": 526.0, "y": 194.0}, {"x": 526.0, "y": 210.0}, {"x": 109.0, "y": 199.0}]}], "spans": [{"offset": 302, "length": 25}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 885771.0, "symbol": null}, "content": "885771.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 204.0}, {"x": 531.0, "y": 204.0}, {"x": 531.0, "y": 213.0}, {"x": 490.0, "y": 213.0}]}], "spans": [{"offset": 328, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "INVOICE PRICE", "content": "INVOICE PRICE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 200.0}, {"x": 175.0, "y": 202.0}, {"x": 175.0, "y": 212.0}, {"x": 108.0, "y": 210.0}]}], "spans": [{"offset": 338, "length": 13}], "confidence": null}}, "content": "885771.00\nINVOICE PRICE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 201.0}, {"x": 531.0, "y": 201.0}, {"x": 531.0, "y": 213.0}, {"x": 108.0, "y": 213.0}]}], "spans": [{"offset": 328, "length": 23}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3750.0, "symbol": null}, "content": "3750.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 215.0}, {"x": 531.0, "y": 215.0}, {"x": 531.0, "y": 224.0}, {"x": 501.0, "y": 223.0}]}], "spans": [{"offset": 352, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "ROAD TAX", "content": "ROAD TAX", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 209.0}, {"x": 156.0, "y": 211.0}, {"x": 156.0, "y": 222.0}, {"x": 109.0, "y": 220.0}]}], "spans": [{"offset": 360, "length": 8}], "confidence": null}}, "content": "3750.00\nROAD TAX", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 208.0}, {"x": 531.0, "y": 215.0}, {"x": 531.0, "y": 228.0}, {"x": 109.0, "y": 221.0}]}], "spans": [{"offset": 352, "length": 16}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 600.0, "symbol": null}, "content": "600.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 504.0, "y": 225.0}, {"x": 530.0, "y": 225.0}, {"x": 530.0, "y": 233.0}, {"x": 504.0, "y": 233.0}]}], "spans": [{"offset": 378, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "FAST TAG", "content": "FAST TAG", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 222.0}, {"x": 152.0, "y": 222.0}, {"x": 152.0, "y": 231.0}, {"x": 109.0, "y": 231.0}]}], "spans": [{"offset": 369, "length": 8}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 225.0}, {"x": 334.0, "y": 225.0}, {"x": 334.0, "y": 232.0}, {"x": 331.0, "y": 232.0}]}], "spans": [{"offset": 385, "length": 1}], "confidence": null}}, "content": "FAST TAG\n600.00\n1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 222.0}, {"x": 530.0, "y": 222.0}, {"x": 530.0, "y": 233.0}, {"x": 109.0, "y": 233.0}]}], "spans": [{"offset": 369, "length": 17}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 11000.0, "symbol": null}, "content": "11000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 495.0, "y": 235.0}, {"x": 530.0, "y": 235.0}, {"x": 530.0, "y": 244.0}, {"x": 495.0, "y": 243.0}]}], "spans": [{"offset": 387, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "REGISTRATION & HANDLING", "content": "REGISTRATION & HANDLING", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 232.0}, {"x": 233.0, "y": 233.0}, {"x": 233.0, "y": 244.0}, {"x": 109.0, "y": 242.0}]}], "spans": [{"offset": 396, "length": 23}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 235.0}, {"x": 334.0, "y": 235.0}, {"x": 334.0, "y": 242.0}, {"x": 331.0, "y": 242.0}]}], "spans": [{"offset": 420, "length": 1}], "confidence": null}}, "content": "11000.00\nREGISTRATION & HANDLING\n1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 230.0}, {"x": 530.0, "y": 235.0}, {"x": 530.0, "y": 247.0}, {"x": 109.0, "y": 242.0}]}], "spans": [{"offset": 387, "length": 34}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 42000.0, "symbol": null}, "content": "42000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 246.0}, {"x": 530.0, "y": 245.0}, {"x": 530.0, "y": 254.0}, {"x": 494.0, "y": 254.0}]}], "spans": [{"offset": 448, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "INSURANCE", "content": "INSURANCE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 243.0}, {"x": 161.0, "y": 243.0}, {"x": 161.0, "y": 252.0}, {"x": 109.0, "y": 252.0}]}], "spans": [{"offset": 422, "length": 9}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 330.0, "y": 245.0}, {"x": 333.0, "y": 245.0}, {"x": 333.0, "y": 253.0}, {"x": 330.0, "y": 253.0}]}], "spans": [{"offset": 446, "length": 1}], "confidence": null}}, "content": "INSURANCE\n1\n42000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 243.0}, {"x": 530.0, "y": 243.0}, {"x": 530.0, "y": 254.0}, {"x": 109.0, "y": 254.0}]}], "spans": [{"offset": 422, "length": 9}, {"offset": 446, "length": 10}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3500.0, "symbol": null}, "content": "3500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 499.0, "y": 256.0}, {"x": 530.0, "y": 256.0}, {"x": 530.0, "y": 265.0}, {"x": 499.0, "y": 265.0}]}], "spans": [{"offset": 457, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "PERMIT(STATE)", "content": "PERMIT(STATE)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 254.0}, {"x": 179.0, "y": 254.0}, {"x": 179.0, "y": 264.0}, {"x": 109.0, "y": 263.0}]}], "spans": [{"offset": 432, "length": 13}], "confidence": null}}, "content": "PERMIT(STATE)\n3500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 253.0}, {"x": 530.0, "y": 256.0}, {"x": 530.0, "y": 267.0}, {"x": 109.0, "y": 263.0}]}], "spans": [{"offset": 432, "length": 13}, {"offset": 457, "length": 7}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10000.0, "symbol": null}, "content": "10000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 495.0, "y": 267.0}, {"x": 530.0, "y": 266.0}, {"x": 530.0, "y": 276.0}, {"x": 495.0, "y": 275.0}]}], "spans": [{"offset": 480, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "SPEED GOVERNOR", "content": "SPEED GOVERNOR", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 263.0}, {"x": 193.0, "y": 264.0}, {"x": 193.0, "y": 275.0}, {"x": 109.0, "y": 273.0}]}], "spans": [{"offset": 465, "length": 14}], "confidence": null}}, "content": "SPEED GOVERNOR\n10000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 264.0}, {"x": 530.0, "y": 264.0}, {"x": 530.0, "y": 276.0}, {"x": 109.0, "y": 276.0}]}], "spans": [{"offset": 465, "length": 23}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 13200.0, "symbol": null}, "content": "13200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 277.0}, {"x": 528.0, "y": 277.0}, {"x": 528.0, "y": 286.0}, {"x": 493.0, "y": 286.0}]}], "spans": [{"offset": 520, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "GPS & PANIC BUTTON", "content": "GPS & PANIC BUTTON", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 274.0}, {"x": 206.0, "y": 276.0}, {"x": 206.0, "y": 286.0}, {"x": 109.0, "y": 285.0}]}], "spans": [{"offset": 489, "length": 18}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 277.0}, {"x": 335.0, "y": 277.0}, {"x": 335.0, "y": 284.0}, {"x": 331.0, "y": 284.0}]}], "spans": [{"offset": 518, "length": 1}], "confidence": null}}, "content": "GPS & PANIC BUTTON\n1\n13200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 275.0}, {"x": 528.0, "y": 275.0}, {"x": 528.0, "y": 286.0}, {"x": 109.0, "y": 286.0}]}], "spans": [{"offset": 489, "length": 18}, {"offset": 518, "length": 10}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "# 97//8", "po_box": null, "road": "095", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "# 97//8 095"}, "content": "# 97//8; 1\" Floor, 6\" Black, Keramangelo, Bangalore 560 095\n# 33/11, Sri hari Towers, Rupensograhora, Madiwala, Bangalore 560 068", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 204.0, "y": 565.0}, {"x": 490.0, "y": 565.0}, {"x": 490.0, "y": 599.0}, {"x": 204.0, "y": 599.0}]}], "spans": [{"offset": 1156, "length": 59}, {"offset": 1257, "length": 69}], "confidence": 0.597}, "VendorName": {"value_type": "string", "value": "GD Mahindra", "content": "GD Mahindra", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 402.0, "y": 29.0}, {"x": 529.0, "y": 30.0}, {"x": 529.0, "y": 44.0}, {"x": 402.0, "y": 43.0}]}], "spans": [{"offset": 12, "length": 11}], "confidence": 0.726}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/179_png.rf.5ce78c0a20795e0168debed282d29d74.json b/Data/test/179_png.rf.5ce78c0a20795e0168debed282d29d74.json new file mode 100644 index 0000000000000000000000000000000000000000..d1d16365794d03d09b2146bb9f16ea0c1e8c4753 --- /dev/null +++ b/Data/test/179_png.rf.5ce78c0a20795e0168debed282d29d74.json @@ -0,0 +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": 497}], "fields": {"CustomerName": {"value_type": "string", "value": "ACADEMUS MANAGEMENT & BUSINESS", "content": "ACADEMUS MANAGEMENT & BUSINESS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 179.0, "y": 132.0}, {"x": 327.0, "y": 132.0}, {"x": 327.0, "y": 141.0}, {"x": 179.0, "y": 141.0}]}], "spans": [{"offset": 71, "length": 30}], "confidence": 0.725}, "InvoiceDate": {"value_type": "date", "value": "2020-07-06", "content": "06 JUILLET 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 112.0}, {"x": 232.0, "y": 112.0}, {"x": 232.0, "y": 121.0}, {"x": 172.0, "y": 121.0}]}], "spans": [{"offset": 25, "length": 15}], "confidence": 0.147}, "InvoiceId": {"value_type": "string", "value": "191-2020", "content": "191-2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 197.0, "y": 122.0}, {"x": 229.0, "y": 122.0}, {"x": 229.0, "y": 131.0}, {"x": 197.0, "y": 131.0}]}], "spans": [{"offset": 53, "length": 8}], "confidence": 0.045}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2610.2, "symbol": null}, "content": "2610,20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 416.0, "y": 235.0}, {"x": 438.0, "y": 235.0}, {"x": 439.0, "y": 242.0}, {"x": 416.0, "y": 242.0}]}], "spans": [{"offset": 371, "length": 7}], "confidence": 0.068}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2083.5, "symbol": null}, "content": "2083,50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 416.0, "y": 189.0}, {"x": 440.0, "y": 189.0}, {"x": 440.0, "y": 196.0}, {"x": 416.0, "y": 196.0}]}], "spans": [{"offset": 325, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "PACK TROUSSE GRAND NODEL AVEC\nLOGO SOLUTION DESINFECTANTE\nHYDICO 100 ML - 10 BAVETTE JETABLE\nGEL DESINFECTANT HYDRO 100 ML -\nVISERE\nVISERE", "content": "PACK TROUSSE GRAND NODEL AVEC\nLOGO SOLUTION DESINFECTANTE HYDICO 100 ML - 10 BAVETTE JETABLE GEL DESINFECTANT HYDRO 100 ML - VISERE\nVISERE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 144.0, "y": 173.0}, {"x": 265.0, "y": 173.0}, {"x": 265.0, "y": 210.0}, {"x": 144.0, "y": 210.0}]}], "spans": [{"offset": 160, "length": 29}, {"offset": 217, "length": 101}, {"offset": 379, "length": 6}], "confidence": 0.024}, "UnitPrice": {"value_type": "currency", "value": {"amount": 23.34, "symbol": null}, "content": "23.34", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 347.0, "y": 188.0}, {"x": 362.0, "y": 189.0}, {"x": 361.0, "y": 196.0}, {"x": 347.0, "y": 195.0}]}], "spans": [{"offset": 319, "length": 5}], "confidence": null}}, "content": "PACK TROUSSE GRAND NODEL AVEC\nLOGO SOLUTION DESINFECTANTE HYDICO 100 ML - 10 BAVETTE JETABLE GEL DESINFECTANT HYDRO 100 ML - VISERE\n23.34\n2083,50\nVISERE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 144.0, "y": 173.0}, {"x": 440.0, "y": 173.0}, {"x": 440.0, "y": 210.0}, {"x": 144.0, "y": 210.0}]}], "spans": [{"offset": 160, "length": 29}, {"offset": 217, "length": 115}, {"offset": 379, "length": 6}], "confidence": 0.002}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 2063.5, "symbol": null}, "content": "2063,50\n2063,50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 416.0, "y": 213.0}, {"x": 439.0, "y": 213.0}, {"x": 439.0, "y": 220.0}, {"x": 416.0, "y": 220.0}]}], "spans": [{"offset": 342, "length": 7}, {"offset": 395, "length": 7}], "confidence": 0.006}, "TotalTax": {"value_type": "currency", "value": {"amount": 413.7, "symbol": null}, "content": "413,70\n413,70", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 418.0, "y": 224.0}, {"x": 437.0, "y": 224.0}, {"x": 437.0, "y": 231.0}, {"x": 418.0, "y": 231.0}]}], "spans": [{"offset": 354, "length": 6}, {"offset": 407, "length": 6}], "confidence": 0.45}, "VendorName": {"value_type": "string", "value": "OGADGETS", "content": "OGADGETS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 185.0, "y": 44.0}, {"x": 283.0, "y": 44.0}, {"x": 283.0, "y": 60.0}, {"x": 186.0, "y": 60.0}]}], "spans": [{"offset": 0, "length": 8}], "confidence": 0.138}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/17_png.rf.9aa352f4294da27cf633c45bcd074a73.json b/Data/test/17_png.rf.9aa352f4294da27cf633c45bcd074a73.json new file mode 100644 index 0000000000000000000000000000000000000000..02c01a816a83a9c2a4870da50503d0dfb710fca6 --- /dev/null +++ b/Data/test/17_png.rf.9aa352f4294da27cf633c45bcd074a73.json @@ -0,0 +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": 1228}], "fields": {"InvoiceDate": {"value_type": "date", "value": "2020-05-01", "content": "27 JanW5. 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 219.0}, {"x": 215.0, "y": 219.0}, {"x": 215.0, "y": 226.0}, {"x": 170.0, "y": 226.0}]}], "spans": [{"offset": 233, "length": 14}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "FA20029", "content": "FA20029", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 234.0}, {"x": 196.0, "y": 234.0}, {"x": 196.0, "y": 241.0}, {"x": 170.0, "y": 241.0}]}], "spans": [{"offset": 256, "length": 7}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 162.0, "symbol": null}, "content": "162 000.CO MAD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 418.0, "y": 370.0}, {"x": 472.0, "y": 370.0}, {"x": 472.0, "y": 378.0}, {"x": 418.0, "y": 378.0}]}], "spans": [{"offset": 556, "length": 14}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 182.0, "symbol": null}, "content": "182 000 MAN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 424.0, "y": 341.0}, {"x": 467.0, "y": 341.0}, {"x": 467.0, "y": 350.0}, {"x": 424.0, "y": 350.0}]}], "spans": [{"offset": 534, "length": 11}], "confidence": null}, "Description": {"value_type": "string", "value": "financi\u00e8re", "content": "financi\u00e8re", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 345.0}, {"x": 199.0, "y": 345.0}, {"x": 199.0, "y": 353.0}, {"x": 169.0, "y": 352.0}]}], "spans": [{"offset": 503, "length": 10}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 7.0, "symbol": null}, "content": "7 500,00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 269.0, "y": 339.0}, {"x": 297.0, "y": 342.0}, {"x": 296.0, "y": 351.0}, {"x": 268.0, "y": 348.0}]}], "spans": [{"offset": 514, "length": 8}], "confidence": null}}, "content": "1\nfinanci\u00e8re\n7 500,00\n135 000,00\n182 000 MAN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 145.0, "y": 341.0}, {"x": 467.0, "y": 341.0}, {"x": 467.0, "y": 353.0}, {"x": 145.0, "y": 353.0}]}], "spans": [{"offset": 501, "length": 44}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "30", "po_box": null, "road": "Rue du Marche, Maall", "city": "Casablanca", "state": null, "postal_code": null, "country_region": null, "street_address": "30 Rue du Marche, Maall"}, "content": "30, Rue du Marche, Maall, Casablanca", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 270.0, "y": 595.0}, {"x": 400.0, "y": 595.0}, {"x": 400.0, "y": 605.0}, {"x": 270.0, "y": 605.0}]}], "spans": [{"offset": 1045, "length": 36}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "Academus Management & Business SARL", "content": "Academus Management & Business SARL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 239.0, "y": 587.0}, {"x": 383.0, "y": 587.0}, {"x": 383.0, "y": 597.0}, {"x": 239.0, "y": 597.0}]}], "spans": [{"offset": 994, "length": 35}], "confidence": null}, "VendorName": {"value_type": "string", "value": "ACADEMUS\nMANAGEMENT & DAS HISS", "content": "ACADEMUS MANAGEMENT & DAS HISS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 84.0}, {"x": 218.0, "y": 84.0}, {"x": 218.0, "y": 104.0}, {"x": 141.0, "y": 104.0}]}], "spans": [{"offset": 0, "length": 30}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/183_jpg.rf.035878bfecaf81ef0fd50d9f719330a5.json b/Data/test/183_jpg.rf.035878bfecaf81ef0fd50d9f719330a5.json new file mode 100644 index 0000000000000000000000000000000000000000..14cab925d50578adcb912f0d4c3e767f6bbde791 --- /dev/null +++ b/Data/test/183_jpg.rf.035878bfecaf81ef0fd50d9f719330a5.json @@ -0,0 +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": 1253}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "20", "po_box": null, "road": "Swamimalai main road, moopakovil,\nmelacauvery (Po", "city": "KUMBAKONAM", "state": "TAMIL NADU", "postal_code": "612002", "country_region": "IN", "street_address": "20 Swamimalai main road, moopakovil,\nmelacauvery (Po"}, "content": "20, Swamimalai main road, moopakovil, melacauvery (Po) KUMBAKONAM, TAMIL NADU, 612002 IN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 370.0, "y": 107.0}, {"x": 567.0, "y": 107.0}, {"x": 567.0, "y": 153.0}, {"x": 370.0, "y": 153.0}]}], "spans": [{"offset": 321, "length": 88}], "confidence": 0.651}, "BillingAddressRecipient": {"value_type": "string", "value": "Balavivekananthan", "content": "Balavivekananthan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 97.0}, {"x": 565.0, "y": 97.0}, {"x": 564.0, "y": 108.0}, {"x": 472.0, "y": 107.0}]}], "spans": [{"offset": 303, "length": 17}], "confidence": 0.943}, "CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "SURAT", "state": "GUJARAT", "postal_code": "395010", "country_region": "IN", "street_address": ""}, "content": "\" CAPITAL c-310, CAPITAL PLAZZ, NEAR\nSARDAR FARM\nSURAT, GUJARAT, 395010\nIN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 70.0, "y": 108.0}, {"x": 277.0, "y": 108.0}, {"x": 277.0, "y": 156.0}, {"x": 70.0, "y": 156.0}]}], "spans": [{"offset": 35, "length": 74}], "confidence": 0.542}, "CustomerAddressRecipient": {"value_type": "string", "value": "One Will Sales", "content": "One Will Sales", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 72.0, "y": 97.0}, {"x": 144.0, "y": 97.0}, {"x": 144.0, "y": 109.0}, {"x": 72.0, "y": 109.0}]}], "spans": [{"offset": 20, "length": 14}], "confidence": 0.767}, "CustomerName": {"value_type": "string", "value": "One Will Sales", "content": "One Will Sales", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 72.0, "y": 97.0}, {"x": 144.0, "y": 97.0}, {"x": 144.0, "y": 109.0}, {"x": 72.0, "y": 109.0}]}], "spans": [{"offset": 20, "length": 14}], "confidence": 0.767}, "InvoiceDate": {"value_type": "date", "value": "2021-03-28", "content": "28.03.2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 510.0, "y": 336.0}, {"x": 565.0, "y": 335.0}, {"x": 565.0, "y": 347.0}, {"x": 510.0, "y": 346.0}]}], "spans": [{"offset": 725, "length": 10}], "confidence": 0.95}, "InvoiceId": {"value_type": "string", "value": "IN-9403", "content": "IN-9403", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 524.0, "y": 309.0}, {"x": 565.0, "y": 308.0}, {"x": 565.0, "y": 321.0}, {"x": 524.0, "y": 321.0}]}], "spans": [{"offset": 665, "length": 7}], "confidence": 0.842}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1593.0, "symbol": null}, "content": "1593.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 529.0, "y": 438.0}, {"x": 563.0, "y": 438.0}, {"x": 563.0, "y": 448.0}, {"x": 529.0, "y": 448.0}]}], "spans": [{"offset": 1108, "length": 7}], "confidence": 0.942}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Description": {"value_type": "string", "value": "Bigsavings. Light-Solar Powered Cordless Outdoor Led Motion Sensor\nPath and Security Light - Pack of 4, Multicolor\n(Bigsavings-B07PMBNPJB) | B07PMBNPJB ( Light-Solar )\nHSN:2334678", "content": "Bigsavings. Light-Solar Powered Cordless Outdoor Led Motion Sensor Path and Security Light - Pack of 4, Multicolor (Bigsavings-B07PMBNPJB) | B07PMBNPJB ( Light-Solar ) HSN:2334678", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 85.0, "y": 382.0}, {"x": 359.0, "y": 382.0}, {"x": 359.0, "y": 420.0}, {"x": 85.0, "y": 420.0}]}], "spans": [{"offset": 824, "length": 179}], "confidence": 0.909}}, "content": "- Bigsavings. Light-Solar Powered Cordless Outdoor Led Motion Sensor Path and Security Light - Pack of 4, Multicolor (Bigsavings-B07PMBNPJB) | B07PMBNPJB ( Light-Solar ) HSN:2334678", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 76.0, "y": 382.0}, {"x": 359.0, "y": 382.0}, {"x": 359.0, "y": 420.0}, {"x": 76.0, "y": 420.0}]}], "spans": [{"offset": 822, "length": 181}], "confidence": 0.804}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 511.0, "symbol": "$"}, "content": "$511.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 531.0, "y": 398.0}, {"x": 560.0, "y": 397.0}, {"x": 560.0, "y": 406.0}, {"x": 532.0, "y": 405.0}]}], "spans": [{"offset": 1054, "length": 7}], "confidence": 0.963}, "Description": {"value_type": "string", "value": "Shipping Charges", "content": "Shipping Charges", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 420.0}, {"x": 157.0, "y": 422.0}, {"x": 157.0, "y": 434.0}, {"x": 86.0, "y": 433.0}]}], "spans": [{"offset": 1004, "length": 16}], "confidence": 0.944}, "Quantity": {"value_type": "float", "value": null, "content": "-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 408.0, "y": 399.0}, {"x": 408.0, "y": 402.0}, {"x": 402.0, "y": 402.0}, {"x": 402.0, "y": 399.0}]}], "spans": [{"offset": 1029, "length": 1}], "confidence": 0.962}, "Tax": {"value_type": "currency", "value": {"amount": 3.9, "symbol": "\u20b9"}, "content": "\u20b93,90", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 422.0}, {"x": 521.0, "y": 422.0}, {"x": 521.0, "y": 432.0}, {"x": 498.0, "y": 432.0}]}], "spans": [{"offset": 1081, "length": 5}], "confidence": 0.962}, "TaxRate": {"value_type": "string", "value": "5%", "content": "5%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 398.0}, {"x": 465.0, "y": 398.0}, {"x": 465.0, "y": 406.0}, {"x": 453.0, "y": 406.0}]}], "spans": [{"offset": 1039, "length": 2}], "confidence": 0.948}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1486.67, "symbol": null}, "content": "1486.67", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 364.0, "y": 397.0}, {"x": 397.0, "y": 397.0}, {"x": 397.0, "y": 406.0}, {"x": 364.0, "y": 406.0}]}], "spans": [{"offset": 1021, "length": 7}], "confidence": 0.962}}, "content": "Shipping Charges\n1486.67\n-\n3486.67 5%\nIGST \u20b924.33\n$511.00\n178.10\n\u20b978.10\nIGST\n\u20b93,90\n\u20b982.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 397.0}, {"x": 560.0, "y": 397.0}, {"x": 560.0, "y": 433.0}, {"x": 86.0, "y": 433.0}]}], "spans": [{"offset": 1004, "length": 89}], "confidence": 0.803}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "406-4246016-2347500", "content": "406-4246016-2347500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 308.0}, {"x": 263.0, "y": 308.0}, {"x": 263.0, "y": 321.0}, {"x": 151.0, "y": 322.0}]}], "spans": [{"offset": 180, "length": 19}], "confidence": 0.387}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "20", "po_box": null, "road": "Swamimalai main road, moopakovil,\nmelacauvery (Po", "city": "KUMBAKONAM", "state": "TAMIL NADU", "postal_code": "612002", "country_region": "IN", "street_address": "20 Swamimalai main road, moopakovil,\nmelacauvery (Po"}, "content": "20, Swamimalai main road, moopakovil, melacauvery (Po) KUMBAKONAM, TAMIL NADU, 612002 IN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 370.0, "y": 223.0}, {"x": 567.0, "y": 223.0}, {"x": 567.0, "y": 269.0}, {"x": 370.0, "y": 269.0}]}], "spans": [{"offset": 483, "length": 88}], "confidence": 0.709}, "ShippingAddressRecipient": {"value_type": "string", "value": "Balavivekananthan\nBalavivekananthan", "content": "Balavivekananthan Balavivekananthan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 201.0}, {"x": 564.0, "y": 201.0}, {"x": 564.0, "y": 224.0}, {"x": 469.0, "y": 223.0}]}], "spans": [{"offset": 447, "length": 35}], "confidence": 0.845}, "TotalTax": {"value_type": "currency", "value": {"amount": 128.23, "symbol": null}, "content": "128.23", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 438.0}, {"x": 527.0, "y": 438.0}, {"x": 527.0, "y": 448.0}, {"x": 498.0, "y": 447.0}]}], "spans": [{"offset": 1101, "length": 6}], "confidence": 0.936}, "VendorName": {"value_type": "string", "value": "amazon.in", "content": "amazon.in", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 83.0, "y": 2.0}, {"x": 235.0, "y": 0.0}, {"x": 236.0, "y": 30.0}, {"x": 83.0, "y": 31.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": 0.948}, "VendorTaxId": {"value_type": "string", "value": "24CMJPG7271G1Z0", "content": "24CMJPG7271G1Z0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 185.0, "y": 190.0}, {"x": 287.0, "y": 190.0}, {"x": 287.0, "y": 204.0}, {"x": 185.0, "y": 204.0}]}], "spans": [{"offset": 150, "length": 15}], "confidence": 0.425}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/186_jpg.rf.38fdc64fe51ca40cb264f15242eb3f1d.json b/Data/test/186_jpg.rf.38fdc64fe51ca40cb264f15242eb3f1d.json new file mode 100644 index 0000000000000000000000000000000000000000..7d4f4455c2cf4ffa35262156596498ec39483ac8 --- /dev/null +++ b/Data/test/186_jpg.rf.38fdc64fe51ca40cb264f15242eb3f1d.json @@ -0,0 +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": 1006}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 62.76, "symbol": "$"}, "content": "$62.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 580.0, "y": 406.0}, {"x": 629.0, "y": 406.0}, {"x": 629.0, "y": 423.0}, {"x": 581.0, "y": 422.0}]}], "spans": [{"offset": 688, "length": 6}], "confidence": null}, "BillingAddress": {"value_type": "address", "value": {"house_number": "2145", "po_box": null, "road": "Hamilton Ave", "city": "San Jose", "state": "CA", "postal_code": "95125", "country_region": "United States", "street_address": "2145 Hamilton Ave"}, "content": "2145 Hamilton Ave\nSan Jose, CA 95125\nUnited States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 4.0, "y": 281.0}, {"x": 103.0, "y": 281.0}, {"x": 103.0, "y": 320.0}, {"x": 4.0, "y": 320.0}]}], "spans": [{"offset": 268, "length": 50}], "confidence": 0.001}, "BillingAddressRecipient": {"value_type": "string", "value": "Seller Name", "content": "Seller Name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 4.0, "y": 266.0}, {"x": 61.0, "y": 267.0}, {"x": 61.0, "y": 280.0}, {"x": 4.0, "y": 279.0}]}], "spans": [{"offset": 256, "length": 11}], "confidence": null}, "CustomerId": {"value_type": "string", "value": "ebayseller", "content": "ebayseller", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 3.0, "y": 350.0}, {"x": 55.0, "y": 349.0}, {"x": 55.0, "y": 360.0}, {"x": 4.0, "y": 361.0}]}], "spans": [{"offset": 332, "length": 10}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Seller Name", "content": "Seller Name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 4.0, "y": 266.0}, {"x": 61.0, "y": 267.0}, {"x": 61.0, "y": 280.0}, {"x": 4.0, "y": 279.0}]}], "spans": [{"offset": 256, "length": 11}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2012-08-31", "content": "August 31, 2012", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 549.0, "y": 148.0}, {"x": 630.0, "y": 148.0}, {"x": 630.0, "y": 163.0}, {"x": 549.0, "y": 163.0}]}], "spans": [{"offset": 130, "length": 15}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "083112-10556189120016", "content": "083112-10556189120016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 263.0, "y": 142.0}, {"x": 388.0, "y": 141.0}, {"x": 388.0, "y": 155.0}, {"x": 264.0, "y": 155.0}]}], "spans": [{"offset": 84, "length": 21}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 62.76, "symbol": "$"}, "content": "$62.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 580.0, "y": 406.0}, {"x": 629.0, "y": 406.0}, {"x": 629.0, "y": 423.0}, {"x": 581.0, "y": 422.0}]}], "spans": [{"offset": 688, "length": 6}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 158.54, "symbol": "$"}, "content": "$158.54", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 591.0, "y": 210.0}, {"x": 631.0, "y": 211.0}, {"x": 631.0, "y": 223.0}, {"x": 591.0, "y": 223.0}]}], "spans": [{"offset": 194, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "Previous balance", "content": "Previous balance", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 264.0, "y": 209.0}, {"x": 348.0, "y": 209.0}, {"x": 348.0, "y": 222.0}, {"x": 264.0, "y": 222.0}]}], "spans": [{"offset": 177, "length": 16}], "confidence": null}}, "content": "Previous balance\n$158.54", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 264.0, "y": 209.0}, {"x": 631.0, "y": 209.0}, {"x": 631.0, "y": 223.0}, {"x": 264.0, "y": 223.0}]}], "spans": [{"offset": 177, "length": 24}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 158.54, "symbol": "$"}, "content": "$158.54", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 591.0, "y": 225.0}, {"x": 630.0, "y": 225.0}, {"x": 630.0, "y": 237.0}, {"x": 591.0, "y": 237.0}]}], "spans": [{"offset": 240, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "Payment received 08/09/12 - Thank you", "content": "Payment received 08/09/12 - Thank you", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 264.0, "y": 222.0}, {"x": 459.0, "y": 222.0}, {"x": 459.0, "y": 238.0}, {"x": 264.0, "y": 238.0}]}], "spans": [{"offset": 202, "length": 37}], "confidence": null}}, "content": "Payment received 08/09/12 - Thank you\n$158.54", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 264.0, "y": 222.0}, {"x": 630.0, "y": 222.0}, {"x": 630.0, "y": 238.0}, {"x": 264.0, "y": 238.0}]}], "spans": [{"offset": 202, "length": 45}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1.5, "symbol": "$"}, "content": "$1.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 602.0, "y": 265.0}, {"x": 629.0, "y": 264.0}, {"x": 629.0, "y": 275.0}, {"x": 603.0, "y": 276.0}]}], "spans": [{"offset": 472, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Insertion fees", "content": "Insertion fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 281.0, "y": 263.0}, {"x": 349.0, "y": 265.0}, {"x": 349.0, "y": 277.0}, {"x": 281.0, "y": 275.0}]}], "spans": [{"offset": 457, "length": 14}], "confidence": null}}, "content": "Insertion fees\n$1.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 281.0, "y": 264.0}, {"x": 629.0, "y": 264.0}, {"x": 629.0, "y": 276.0}, {"x": 281.0, "y": 276.0}]}], "spans": [{"offset": 457, "length": 20}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 41.98, "symbol": "$"}, "content": "$41.98", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 596.0, "y": 277.0}, {"x": 628.0, "y": 277.0}, {"x": 628.0, "y": 289.0}, {"x": 597.0, "y": 289.0}]}], "spans": [{"offset": 508, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Subscription and onetime fees", "content": "Subscription and onetime fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 282.0, "y": 277.0}, {"x": 427.0, "y": 277.0}, {"x": 427.0, "y": 289.0}, {"x": 282.0, "y": 289.0}]}], "spans": [{"offset": 478, "length": 29}], "confidence": null}}, "content": "Subscription and onetime fees\n$41.98", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 282.0, "y": 277.0}, {"x": 628.0, "y": 277.0}, {"x": 628.0, "y": 289.0}, {"x": 282.0, "y": 289.0}]}], "spans": [{"offset": 478, "length": 36}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 44.5, "symbol": "$"}, "content": "$44.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 597.0, "y": 290.0}, {"x": 628.0, "y": 290.0}, {"x": 629.0, "y": 302.0}, {"x": 597.0, "y": 302.0}]}], "spans": [{"offset": 529, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Shipping fees", "content": "Shipping fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 282.0, "y": 288.0}, {"x": 347.0, "y": 290.0}, {"x": 347.0, "y": 303.0}, {"x": 282.0, "y": 300.0}]}], "spans": [{"offset": 515, "length": 13}], "confidence": null}}, "content": "Shipping fees\n$44.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 282.0, "y": 289.0}, {"x": 629.0, "y": 289.0}, {"x": 629.0, "y": 302.0}, {"x": 282.0, "y": 302.0}]}], "spans": [{"offset": 515, "length": 20}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5.5, "symbol": "$"}, "content": "$5.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 603.0, "y": 304.0}, {"x": 629.0, "y": 303.0}, {"x": 629.0, "y": 314.0}, {"x": 603.0, "y": 315.0}]}], "spans": [{"offset": 569, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Motors local market listing fees", "content": "Motors local market listing fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 281.0, "y": 303.0}, {"x": 432.0, "y": 303.0}, {"x": 432.0, "y": 316.0}, {"x": 281.0, "y": 316.0}]}], "spans": [{"offset": 536, "length": 32}], "confidence": null}}, "content": "Motors local market listing fees\n$5.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 281.0, "y": 303.0}, {"x": 629.0, "y": 303.0}, {"x": 629.0, "y": 316.0}, {"x": 281.0, "y": 316.0}]}], "spans": [{"offset": 536, "length": 38}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 25.37, "symbol": "$"}, "content": "$25.37", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 596.0, "y": 357.0}, {"x": 630.0, "y": 357.0}, {"x": 630.0, "y": 369.0}, {"x": 596.0, "y": 369.0}]}], "spans": [{"offset": 613, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Top rated plus discount", "content": "Top rated plus discount", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 284.0, "y": 356.0}, {"x": 397.0, "y": 356.0}, {"x": 397.0, "y": 369.0}, {"x": 284.0, "y": 369.0}]}], "spans": [{"offset": 620, "length": 23}], "confidence": null}}, "content": "$25.37\nTop rated plus discount", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 284.0, "y": 356.0}, {"x": 630.0, "y": 356.0}, {"x": 630.0, "y": 369.0}, {"x": 284.0, "y": 369.0}]}], "spans": [{"offset": 613, "length": 30}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5.35, "symbol": "$"}, "content": "$5.35", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 603.0, "y": 370.0}, {"x": 630.0, "y": 370.0}, {"x": 630.0, "y": 381.0}, {"x": 603.0, "y": 382.0}]}], "spans": [{"offset": 644, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Credits", "content": "Credits", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 282.0, "y": 371.0}, {"x": 316.0, "y": 371.0}, {"x": 316.0, "y": 382.0}, {"x": 282.0, "y": 382.0}]}], "spans": [{"offset": 650, "length": 7}], "confidence": null}}, "content": "$5.35\nCredits\n.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 282.0, "y": 370.0}, {"x": 630.0, "y": 370.0}, {"x": 630.0, "y": 386.0}, {"x": 282.0, "y": 386.0}]}], "spans": [{"offset": 644, "length": 15}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": -2.25, "symbol": "$"}, "content": "-$2.25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 586.0, "y": 503.0}, {"x": 617.0, "y": 503.0}, {"x": 617.0, "y": 515.0}, {"x": 586.0, "y": 514.0}]}], "spans": [{"offset": 1000, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Insertion fees", "content": "Insertion fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 281.0, "y": 498.0}, {"x": 351.0, "y": 499.0}, {"x": 351.0, "y": 515.0}, {"x": 281.0, "y": 514.0}]}], "spans": [{"offset": 985, "length": 14}], "confidence": null}}, "content": "seler tool suboceptions, late look, and\nInsertion fees\n-$2.25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 3.0, "y": 499.0}, {"x": 617.0, "y": 499.0}, {"x": 617.0, "y": 519.0}, {"x": 3.0, "y": 519.0}]}], "spans": [{"offset": 910, "length": 39}, {"offset": 985, "length": 21}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ServiceStartDate": {"value_type": "date", "value": null, "content": "August 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 476.0, "y": 189.0}, {"x": 519.0, "y": 189.0}, {"x": 519.0, "y": 206.0}, {"x": 476.0, "y": 206.0}]}], "spans": [{"offset": 146, "length": 8}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": -30.72, "symbol": "$"}, "content": "-$30.72", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 594.0, "y": 384.0}, {"x": 630.0, "y": 384.0}, {"x": 630.0, "y": 396.0}, {"x": 594.0, "y": 396.0}]}], "spans": [{"offset": 660, "length": 7}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "2145", "po_box": null, "road": "Hamilton Avenue", "city": "San Jose", "state": "CA", "postal_code": "95125", "country_region": "United States", "street_address": "2145 Hamilton Avenue"}, "content": "2145 Hamilton Avenue San Jose, CA 95125 United States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 3.0, "y": 200.0}, {"x": 110.0, "y": 200.0}, {"x": 110.0, "y": 240.0}, {"x": 3.0, "y": 240.0}]}], "spans": [{"offset": 15, "length": 53}], "confidence": 0.001}, "VendorAddressRecipient": {"value_type": "string", "value": "eBay, Inc", "content": "eBay, Inc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 3.0, "y": 186.0}, {"x": 51.0, "y": 188.0}, {"x": 51.0, "y": 201.0}, {"x": 3.0, "y": 199.0}]}], "spans": [{"offset": 5, "length": 9}], "confidence": null}, "VendorName": {"value_type": "string", "value": "ebay", "content": "ebay", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 2.0, "y": 122.0}, {"x": 116.0, "y": 124.0}, {"x": 115.0, "y": 169.0}, {"x": 1.0, "y": 166.0}]}], "spans": [{"offset": 0, "length": 4}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/187_jpg.rf.741af0339d7f635d0ae4dcadd623b76a.json b/Data/test/187_jpg.rf.741af0339d7f635d0ae4dcadd623b76a.json new file mode 100644 index 0000000000000000000000000000000000000000..6e442d609fda910b0782ceefd823658aef144bb3 --- /dev/null +++ b/Data/test/187_jpg.rf.741af0339d7f635d0ae4dcadd623b76a.json @@ -0,0 +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": 701}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 123.87, "symbol": null}, "content": "123.87", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 499.0, "y": 396.0}, {"x": 530.0, "y": 396.0}, {"x": 530.0, "y": 408.0}, {"x": 499.0, "y": 408.0}]}], "spans": [{"offset": 653, "length": 6}], "confidence": 0.957}, "BillingAddress": {"value_type": "address", "value": {"house_number": "5701", "po_box": null, "road": "6th Avenue S, 1824", "city": "Seattle", "state": null, "postal_code": "98109", "country_region": null, "street_address": "5701 6th Avenue S, 1824"}, "content": "5701 6th Avenue S, 1824\nSeattle 98109", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 91.0, "y": 197.0}, {"x": 191.0, "y": 197.0}, {"x": 191.0, "y": 218.0}, {"x": 91.0, "y": 218.0}]}], "spans": [{"offset": 185, "length": 37}], "confidence": 0.899}, "BillingAddressRecipient": {"value_type": "string", "value": "Makata Design Group", "content": "Makata Design Group", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 184.0}, {"x": 179.0, "y": 184.0}, {"x": 179.0, "y": 196.0}, {"x": 90.0, "y": 196.0}]}], "spans": [{"offset": 165, "length": 19}], "confidence": 0.936}, "CustomerName": {"value_type": "string", "value": "Makata Design Group", "content": "Makata Design Group", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 184.0}, {"x": 179.0, "y": 184.0}, {"x": 179.0, "y": 196.0}, {"x": 90.0, "y": 196.0}]}], "spans": [{"offset": 165, "length": 19}], "confidence": 0.936}, "InvoiceDate": {"value_type": "date", "value": "2008-11-26", "content": "26/11/2008", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 198.0}, {"x": 528.0, "y": 197.0}, {"x": 528.0, "y": 208.0}, {"x": 484.0, "y": 208.0}]}], "spans": [{"offset": 242, "length": 10}], "confidence": 0.971}, "InvoiceId": {"value_type": "string", "value": "0000003", "content": "0000003", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 185.0}, {"x": 529.0, "y": 185.0}, {"x": 529.0, "y": 195.0}, {"x": 493.0, "y": 195.0}]}], "spans": [{"offset": 234, "length": 7}], "confidence": 0.972}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 223.87, "symbol": null}, "content": "223.87", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 506.0, "y": 377.0}, {"x": 530.0, "y": 376.0}, {"x": 530.0, "y": 386.0}, {"x": 506.0, "y": 385.0}]}], "spans": [{"offset": 625, "length": 6}], "confidence": 0.968}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 75.0, "symbol": null}, "content": "75.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 510.0, "y": 296.0}, {"x": 530.0, "y": 296.0}, {"x": 530.0, "y": 305.0}, {"x": 510.0, "y": 304.0}]}], "spans": [{"offset": 454, "length": 5}], "confidence": 0.86}, "Description": {"value_type": "string", "value": "Design Work", "content": "Design Work", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 296.0}, {"x": 135.0, "y": 296.0}, {"x": 135.0, "y": 306.0}, {"x": 90.0, "y": 306.0}]}], "spans": [{"offset": 410, "length": 11}], "confidence": 0.814}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 296.0}, {"x": 472.0, "y": 296.0}, {"x": 471.0, "y": 305.0}, {"x": 459.0, "y": 305.0}]}], "spans": [{"offset": 449, "length": 4}], "confidence": 0.851}, "UnitPrice": {"value_type": "currency", "value": {"amount": 25.0, "symbol": null}, "content": "25.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 401.0, "y": 296.0}, {"x": 420.0, "y": 296.0}, {"x": 420.0, "y": 305.0}, {"x": 401.0, "y": 304.0}]}], "spans": [{"offset": 443, "length": 5}], "confidence": 0.856}}, "content": "Design Work\n25.00\n3.00\n75.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 296.0}, {"x": 530.0, "y": 296.0}, {"x": 530.0, "y": 306.0}, {"x": 90.0, "y": 306.0}]}], "spans": [{"offset": 410, "length": 11}, {"offset": 443, "length": 16}], "confidence": 0.88}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 87.5, "symbol": null}, "content": "87.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 510.0, "y": 312.0}, {"x": 530.0, "y": 312.0}, {"x": 530.0, "y": 320.0}, {"x": 510.0, "y": 320.0}]}], "spans": [{"offset": 495, "length": 5}], "confidence": 0.826}, "Description": {"value_type": "string", "value": "PowerPoint Presentation", "content": "PowerPoint Presentation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 311.0}, {"x": 175.0, "y": 312.0}, {"x": 175.0, "y": 322.0}, {"x": 90.0, "y": 321.0}]}], "spans": [{"offset": 460, "length": 23}], "confidence": 0.839}, "Quantity": {"value_type": "float", "value": 3.5, "content": "3,50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 312.0}, {"x": 473.0, "y": 312.0}, {"x": 473.0, "y": 320.0}, {"x": 459.0, "y": 320.0}]}], "spans": [{"offset": 490, "length": 4}], "confidence": 0.834}, "UnitPrice": {"value_type": "currency", "value": {"amount": 25.0, "symbol": null}, "content": "25.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 401.0, "y": 311.0}, {"x": 420.0, "y": 311.0}, {"x": 420.0, "y": 320.0}, {"x": 401.0, "y": 320.0}]}], "spans": [{"offset": 484, "length": 5}], "confidence": 0.847}}, "content": "PowerPoint Presentation\n25.00\n3,50\n87.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 311.0}, {"x": 530.0, "y": 311.0}, {"x": 530.0, "y": 321.0}, {"x": 90.0, "y": 321.0}]}], "spans": [{"offset": 460, "length": 40}], "confidence": 0.889}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 21.0, "symbol": null}, "content": "21.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 510.0, "y": 327.0}, {"x": 530.0, "y": 327.0}, {"x": 530.0, "y": 337.0}, {"x": 510.0, "y": 337.0}]}], "spans": [{"offset": 539, "length": 5}], "confidence": 0.861}, "Description": {"value_type": "string", "value": "Renting overhead projector", "content": "Renting overhead projector", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 328.0}, {"x": 186.0, "y": 328.0}, {"x": 186.0, "y": 338.0}, {"x": 90.0, "y": 338.0}]}], "spans": [{"offset": 501, "length": 26}], "confidence": 0.797}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 327.0}, {"x": 472.0, "y": 327.0}, {"x": 471.0, "y": 336.0}, {"x": 459.0, "y": 336.0}]}], "spans": [{"offset": 534, "length": 4}], "confidence": 0.838}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.5, "symbol": null}, "content": "10.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 327.0}, {"x": 420.0, "y": 327.0}, {"x": 420.0, "y": 337.0}, {"x": 400.0, "y": 337.0}]}], "spans": [{"offset": 528, "length": 5}], "confidence": 0.857}}, "content": "Renting overhead projector\n10.50\n2.00\n21.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 327.0}, {"x": 530.0, "y": 327.0}, {"x": 530.0, "y": 338.0}, {"x": 90.0, "y": 338.0}]}], "spans": [{"offset": 501, "length": 43}], "confidence": 0.89}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "NET 45", "content": "NET 45", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 223.0}, {"x": 528.0, "y": 223.0}, {"x": 528.0, "y": 233.0}, {"x": 498.0, "y": 233.0}]}], "spans": [{"offset": 297, "length": 6}], "confidence": 0.94}, "RemittanceAddressRecipient": {"value_type": "string", "value": "MACHOVIA BANK, NATIONAL\nASSOC., NW PNPB US3M NVVC.", "content": "MACHOVIA BANK, NATIONAL ASSOC., NW PNPB US3M NVVC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 91.0, "y": 103.0}, {"x": 221.0, "y": 103.0}, {"x": 221.0, "y": 125.0}, {"x": 91.0, "y": 125.0}]}], "spans": [{"offset": 69, "length": 50}], "confidence": 0.85}, "SubTotal": {"value_type": "currency", "value": {"amount": 183.5, "symbol": null}, "content": "183.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 505.0, "y": 345.0}, {"x": 529.0, "y": 344.0}, {"x": 529.0, "y": 354.0}, {"x": 506.0, "y": 353.0}]}], "spans": [{"offset": 556, "length": 6}], "confidence": 0.969}, "TotalTax": {"value_type": "currency", "value": {"amount": 27.53, "symbol": null}, "content": "27.53", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 355.0}, {"x": 531.0, "y": 355.0}, {"x": 531.0, "y": 364.0}, {"x": 511.0, "y": 363.0}]}], "spans": [{"offset": 577, "length": 5}], "confidence": 0.744}, "VendorAddress": {"value_type": "address", "value": {"house_number": "45", "po_box": null, "road": "Brisbane Street", "city": "Sommerville", "state": null, "postal_code": "576BNW", "country_region": null, "street_address": "45 Brisbane Street"}, "content": "45, Brisbane Street 576BNW Sommerville", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 91.0, "y": 61.0}, {"x": 178.0, "y": 61.0}, {"x": 178.0, "y": 84.0}, {"x": 91.0, "y": 84.0}]}], "spans": [{"offset": 12, "length": 38}], "confidence": 0.911}, "VendorAddressRecipient": {"value_type": "string", "value": "Alpha & Co.", "content": "Alpha & Co.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 91.0, "y": 52.0}, {"x": 137.0, "y": 52.0}, {"x": 137.0, "y": 63.0}, {"x": 91.0, "y": 63.0}]}], "spans": [{"offset": 0, "length": 11}], "confidence": 0.844}, "VendorName": {"value_type": "string", "value": "Alpha & Co.", "content": "Alpha & Co.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 91.0, "y": 52.0}, {"x": 137.0, "y": 52.0}, {"x": 137.0, "y": 63.0}, {"x": 91.0, "y": 63.0}]}], "spans": [{"offset": 0, "length": 11}], "confidence": 0.844}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/188_jpg.rf.395e6eafd65916c0cca994ba0f4c1245.json b/Data/test/188_jpg.rf.395e6eafd65916c0cca994ba0f4c1245.json new file mode 100644 index 0000000000000000000000000000000000000000..07635b0e6dfb3ad54a4ecd2daa0e94681db9e5a5 --- /dev/null +++ b/Data/test/188_jpg.rf.395e6eafd65916c0cca994ba0f4c1245.json @@ -0,0 +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": 1351}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "14", "po_box": null, "road": "SPRING STREET", "city": "WALTHAM", "state": "MA", "postal_code": "02154", "country_region": null, "street_address": "14 SPRING STREET"}, "content": "14 SPRING STREET\nWALTHAM, MA 02154", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 125.0}, {"x": 202.0, "y": 123.0}, {"x": 202.0, "y": 143.0}, {"x": 93.0, "y": 145.0}]}], "spans": [{"offset": 120, "length": 34}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "GINER INC", "content": "GINER INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 115.0}, {"x": 148.0, "y": 115.0}, {"x": 148.0, "y": 124.0}, {"x": 95.0, "y": 124.0}]}], "spans": [{"offset": 110, "length": 9}], "confidence": null}, "CustomerId": {"value_type": "string", "value": "354640-5", "content": "354640-5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 387.0, "y": 72.0}, {"x": 433.0, "y": 72.0}, {"x": 433.0, "y": 81.0}, {"x": 387.0, "y": 82.0}]}], "spans": [{"offset": 101, "length": 8}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "GINER INC", "content": "GINER INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 115.0}, {"x": 148.0, "y": 115.0}, {"x": 148.0, "y": 124.0}, {"x": 95.0, "y": 124.0}]}], "spans": [{"offset": 110, "length": 9}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1987-04-17", "content": "04/17/87", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 444.0, "y": 52.0}, {"x": 492.0, "y": 51.0}, {"x": 492.0, "y": 61.0}, {"x": 445.0, "y": 62.0}]}], "spans": [{"offset": 62, "length": 8}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "107-62587 PG", "content": "107-62587 PG", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 440.0, "y": 42.0}, {"x": 502.0, "y": 41.0}, {"x": 502.0, "y": 52.0}, {"x": 440.0, "y": 53.0}]}], "spans": [{"offset": 44, "length": 12}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 99.24, "symbol": null}, "content": "99.24", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 530.0, "y": 490.0}, {"x": 559.0, "y": 489.0}, {"x": 559.0, "y": 499.0}, {"x": 530.0, "y": 499.0}]}], "spans": [{"offset": 893, "length": 5}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 79.0, "symbol": null}, "content": "79.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 524.0, "y": 213.0}, {"x": 554.0, "y": 213.0}, {"x": 554.0, "y": 223.0}, {"x": 524.0, "y": 222.0}]}], "spans": [{"offset": 651, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "450 PURIFIER ASSEMBLY", "content": "450 PURIFIER ASSEMBLY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 218.0}, {"x": 263.0, "y": 216.0}, {"x": 263.0, "y": 227.0}, {"x": 138.0, "y": 230.0}]}], "spans": [{"offset": 623, "length": 21}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 121.0, "y": 219.0}, {"x": 126.0, "y": 219.0}, {"x": 126.0, "y": 228.0}, {"x": 121.0, "y": 228.0}]}], "spans": [{"offset": 621, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 79.0, "symbol": null}, "content": "79.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 214.0}, {"x": 488.0, "y": 214.0}, {"x": 488.0, "y": 223.0}, {"x": 460.0, "y": 224.0}]}], "spans": [{"offset": 645, "length": 5}], "confidence": null}}, "content": "21\n1\n450 PURIFIER ASSEMBLY\n79.00\n79.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 78.0, "y": 218.0}, {"x": 554.0, "y": 213.0}, {"x": 554.0, "y": 224.0}, {"x": 78.0, "y": 229.0}]}], "spans": [{"offset": 618, "length": 38}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 19.0, "symbol": null}, "content": "19.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 525.0, "y": 232.0}, {"x": 554.0, "y": 231.0}, {"x": 555.0, "y": 241.0}, {"x": 526.0, "y": 242.0}]}], "spans": [{"offset": 680, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "452 CARTRIDGE", "content": "452 CARTRIDGE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 139.0, "y": 237.0}, {"x": 216.0, "y": 236.0}, {"x": 216.0, "y": 247.0}, {"x": 139.0, "y": 248.0}]}], "spans": [{"offset": 666, "length": 13}], "confidence": null}, "Quantity": {"value_type": "float", "value": 2.0, "content": "02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 238.0}, {"x": 91.0, "y": 238.0}, {"x": 91.0, "y": 247.0}, {"x": 79.0, "y": 247.0}]}], "spans": [{"offset": 657, "length": 2}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 19.0, "symbol": null}, "content": "19.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 461.0, "y": 233.0}, {"x": 489.0, "y": 233.0}, {"x": 489.0, "y": 242.0}, {"x": 461.0, "y": 242.0}]}], "spans": [{"offset": 660, "length": 5}], "confidence": null}}, "content": "02\n19.00 452 CARTRIDGE\n19.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 236.0}, {"x": 555.0, "y": 231.0}, {"x": 555.0, "y": 244.0}, {"x": 79.0, "y": 249.0}]}], "spans": [{"offset": 657, "length": 28}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1.24, "symbol": null}, "content": "1.24", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 532.0, "y": 250.0}, {"x": 554.0, "y": 250.0}, {"x": 555.0, "y": 259.0}, {"x": 532.0, "y": 260.0}]}], "spans": [{"offset": 707, "length": 4}], "confidence": null}, "Description": {"value_type": "string", "value": "FREIGHT CHARGES", "content": "FREIGHT CHARGES", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 255.0}, {"x": 228.0, "y": 255.0}, {"x": 228.0, "y": 266.0}, {"x": 138.0, "y": 266.0}]}], "spans": [{"offset": 686, "length": 15}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1.24, "symbol": null}, "content": "1.24", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 252.0}, {"x": 490.0, "y": 251.0}, {"x": 490.0, "y": 260.0}, {"x": 467.0, "y": 261.0}]}], "spans": [{"offset": 702, "length": 4}], "confidence": null}}, "content": "FREIGHT CHARGES 1.24\n1.24", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 255.0}, {"x": 555.0, "y": 250.0}, {"x": 555.0, "y": 262.0}, {"x": 138.0, "y": 267.0}]}], "spans": [{"offset": 686, "length": 25}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "PREPAY AND ADD", "content": "PREPAY AND ADD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 399.0, "y": 167.0}, {"x": 481.0, "y": 166.0}, {"x": 481.0, "y": 176.0}, {"x": 399.0, "y": 177.0}]}], "spans": [{"offset": 390, "length": 14}], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "7823", "content": "7823", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 84.0, "y": 173.0}, {"x": 107.0, "y": 172.0}, {"x": 107.0, "y": 180.0}, {"x": 84.0, "y": 181.0}]}], "spans": [{"offset": 266, "length": 4}], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. BOX 23029", "road": null, "city": "NEWARK", "state": "NJ", "postal_code": "07189", "country_region": null, "street_address": "P.O. BOX 23029"}, "content": "P.O. BOX 23029\nNEWARK, NJ 07189.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 550.0}, {"x": 459.0, "y": 550.0}, {"x": 459.0, "y": 571.0}, {"x": 351.0, "y": 571.0}]}], "spans": [{"offset": 1216, "length": 32}], "confidence": null}, "RemittanceAddressRecipient": {"value_type": "string", "value": "MATHESON GAS PRODUCTS, INC.", "content": "MATHESON GAS PRODUCTS, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 352.0, "y": 540.0}, {"x": 513.0, "y": 539.0}, {"x": 513.0, "y": 550.0}, {"x": 352.0, "y": 551.0}]}], "spans": [{"offset": 1188, "length": 27}], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "14", "po_box": null, "road": "SPRING STREET", "city": "WALTHAM", "state": "MA", "postal_code": "02254-9147", "country_region": null, "street_address": "14 SPRING STREET"}, "content": "14 SPRING STREET\nWALTHAM, MA\n02254-9147", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 314.0, "y": 120.0}, {"x": 458.0, "y": 118.0}, {"x": 458.0, "y": 139.0}, {"x": 314.0, "y": 141.0}]}], "spans": [{"offset": 167, "length": 39}], "confidence": null}, "ShippingAddressRecipient": {"value_type": "string", "value": "GINER, INC.", "content": "GINER, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 314.0, "y": 110.0}, {"x": 380.0, "y": 110.0}, {"x": 380.0, "y": 120.0}, {"x": 314.0, "y": 120.0}]}], "spans": [{"offset": 155, "length": 11}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. BOX 1147", "road": null, "city": "GLOUCESTER.", "state": "MA", "postal_code": "01930", "country_region": null, "street_address": "P.O. BOX 1147"}, "content": "P.O. BOX 1147 GLOUCESTER. MA 01930", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 101.0, "y": 553.0}, {"x": 228.0, "y": 553.0}, {"x": 228.0, "y": 574.0}, {"x": 101.0, "y": 574.0}]}], "spans": [{"offset": 1128, "length": 34}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "MATHESON GAS PRODUCTS, INC.", "content": "MATHESON GAS PRODUCTS, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 542.0}, {"x": 264.0, "y": 542.0}, {"x": 264.0, "y": 554.0}, {"x": 100.0, "y": 554.0}]}], "spans": [{"offset": 1100, "length": 27}], "confidence": null}, "VendorName": {"value_type": "string", "value": "latheson\u00ae\nGas Products, Inc.", "content": "latheson\u00ae Gas Products, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 101.0, "y": 24.0}, {"x": 224.0, "y": 24.0}, {"x": 224.0, "y": 59.0}, {"x": 101.0, "y": 59.0}]}], "spans": [{"offset": 0, "length": 28}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/196_png.rf.7eacafc8581a7c4aecd799633d9c1baa.json b/Data/test/196_png.rf.7eacafc8581a7c4aecd799633d9c1baa.json new file mode 100644 index 0000000000000000000000000000000000000000..66396e5b120f2207ff0fb7e77aeb65ec32b6694d --- /dev/null +++ b/Data/test/196_png.rf.7eacafc8581a7c4aecd799633d9c1baa.json @@ -0,0 +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": 549}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "20120", "po_box": null, "road": "Que Boulevard Jorkcoum", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "20120 Que Boulevard Jorkcoum"}, "content": "Que Boulevard Jorkcoum 20120 SONOTRACK", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 31.0}, {"x": 486.0, "y": 31.0}, {"x": 486.0, "y": 49.0}, {"x": 397.0, "y": 49.0}]}], "spans": [{"offset": 23, "length": 38}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "PR BRICOLAGE ZERE TINY", "content": "PR BRICOLAGE ZERE TINY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 396.0, "y": 21.0}, {"x": 488.0, "y": 21.0}, {"x": 488.0, "y": 30.0}, {"x": 396.0, "y": 30.0}]}], "spans": [{"offset": 0, "length": 22}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "PR BRICOLAGE ZERE TINY", "content": "PR BRICOLAGE ZERE TINY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 396.0, "y": 21.0}, {"x": 488.0, "y": 21.0}, {"x": 488.0, "y": 30.0}, {"x": 396.0, "y": 30.0}]}], "spans": [{"offset": 0, "length": 22}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "345", "content": "345", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 396.0, "y": 67.0}, {"x": 409.0, "y": 67.0}, {"x": 409.0, "y": 76.0}, {"x": 396.0, "y": 76.0}]}], "spans": [{"offset": 118, "length": 3}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 295.2, "symbol": null}, "content": "295.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 509.0, "y": 223.0}, {"x": 534.0, "y": 222.0}, {"x": 534.0, "y": 230.0}, {"x": 509.0, "y": 230.0}]}], "spans": [{"offset": 272, "length": 6}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 72.9, "symbol": null}, "content": "72,90", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 514.0, "y": 177.0}, {"x": 534.0, "y": 177.0}, {"x": 534.0, "y": 185.0}, {"x": 515.0, "y": 184.0}]}], "spans": [{"offset": 180, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "AMPOULE EDD 37- 2324", "content": "AMPOULE EDD 37- 2324", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 177.0}, {"x": 428.0, "y": 177.0}, {"x": 428.0, "y": 184.0}, {"x": 351.0, "y": 184.0}]}], "spans": [{"offset": 159, "length": 20}], "confidence": null}}, "content": "AMPOULE EDD 37- 2324\n72,90", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 177.0}, {"x": 534.0, "y": 177.0}, {"x": 534.0, "y": 185.0}, {"x": 351.0, "y": 185.0}]}], "spans": [{"offset": 159, "length": 26}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 23.96, "symbol": null}, "content": "23,96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 514.0, "y": 186.0}, {"x": 534.0, "y": 186.0}, {"x": 534.0, "y": 193.0}, {"x": 514.0, "y": 193.0}]}], "spans": [{"offset": 207, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "LOL LED OUS0 74 5000", "content": "LOL LED OUS0 74 5000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 185.0}, {"x": 432.0, "y": 185.0}, {"x": 432.0, "y": 194.0}, {"x": 351.0, "y": 194.0}]}], "spans": [{"offset": 186, "length": 20}], "confidence": null}}, "content": "LOL LED OUS0 74 5000\n23,96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 185.0}, {"x": 534.0, "y": 185.0}, {"x": 534.0, "y": 194.0}, {"x": 351.0, "y": 194.0}]}], "spans": [{"offset": 186, "length": 26}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 23.5, "symbol": null}, "content": "23.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 514.0, "y": 195.0}, {"x": 534.0, "y": 195.0}, {"x": 534.0, "y": 202.0}, {"x": 514.0, "y": 202.0}]}], "spans": [{"offset": 242, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "LHE LED OU10 72 3000", "content": "LHE LED OU10 72 3000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 195.0}, {"x": 432.0, "y": 195.0}, {"x": 432.0, "y": 203.0}, {"x": 351.0, "y": 203.0}]}], "spans": [{"offset": 213, "length": 20}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 465.0, "y": 195.0}, {"x": 469.0, "y": 195.0}, {"x": 469.0, "y": 202.0}, {"x": 465.0, "y": 202.0}]}], "spans": [{"offset": 234, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 23.5, "symbol": null}, "content": "23,50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 477.0, "y": 195.0}, {"x": 497.0, "y": 194.0}, {"x": 497.0, "y": 203.0}, {"x": 477.0, "y": 202.0}]}], "spans": [{"offset": 236, "length": 5}], "confidence": null}}, "content": "LHE LED OU10 72 3000\n1 23,50\n23.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 194.0}, {"x": 534.0, "y": 194.0}, {"x": 534.0, "y": 203.0}, {"x": 351.0, "y": 203.0}]}], "spans": [{"offset": 213, "length": 34}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "N\u00ba 308", "po_box": null, "road": "BOULEVARD ZERKTOUNI-CASABLANCA-MAROC", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "N\u00ba 308 BOULEVARD ZERKTOUNI-CASABLANCA-MAROC"}, "content": "N\u00ba 308, BOULEVARD ZERKTOUNI-CASABLANCA-MAROC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 218.0, "y": 601.0}, {"x": 431.0, "y": 601.0}, {"x": 431.0, "y": 611.0}, {"x": 218.0, "y": 611.0}]}], "spans": [{"offset": 359, "length": 44}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "BRICO-INVEST SA", "content": "BRICO-INVEST SA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 292.0, "y": 588.0}, {"x": 358.0, "y": 592.0}, {"x": 358.0, "y": 603.0}, {"x": 292.0, "y": 600.0}]}], "spans": [{"offset": 343, "length": 15}], "confidence": null}, "VendorName": {"value_type": "string", "value": "Mr.Bricolage\nTRETES LE CHOIX DO GHHII 1", "content": "Mr.Bricolage TRETES LE CHOIX DO GHHII 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 186.0, "y": 59.0}, {"x": 305.0, "y": 59.0}, {"x": 305.0, "y": 88.0}, {"x": 186.0, "y": 88.0}]}], "spans": [{"offset": 62, "length": 39}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/197_jpg.rf.aca48f27b92c82a14e258666931a7d93.json b/Data/test/197_jpg.rf.aca48f27b92c82a14e258666931a7d93.json new file mode 100644 index 0000000000000000000000000000000000000000..c47e9ce6734093cadd784997f0bf25251a23dbec --- /dev/null +++ b/Data/test/197_jpg.rf.aca48f27b92c82a14e258666931a7d93.json @@ -0,0 +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": 534}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "145", "po_box": null, "road": "Stanton Street", "city": "New York", "state": "NY", "postal_code": "10002", "country_region": "USA", "street_address": "145 Stanton Street"}, "content": "145 Stanton Street\nNew York, NY 10002\nUSA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 265.0}, {"x": 214.0, "y": 265.0}, {"x": 214.0, "y": 299.0}, {"x": 140.0, "y": 299.0}]}], "spans": [{"offset": 146, "length": 41}], "confidence": 0.415}, "CustomerAddressRecipient": {"value_type": "string", "value": "Harlow NovaCient's emal*", "content": "Harlow NovaCient's emal*", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 240.0}, {"x": 236.0, "y": 239.0}, {"x": 236.0, "y": 251.0}, {"x": 140.0, "y": 252.0}]}], "spans": [{"offset": 121, "length": 24}], "confidence": 0.001}, "CustomerName": {"value_type": "string", "value": "Harlow NovaCient's emal*", "content": "Harlow NovaCient's emal*", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 240.0}, {"x": 236.0, "y": 239.0}, {"x": 236.0, "y": 251.0}, {"x": 140.0, "y": 252.0}]}], "spans": [{"offset": 121, "length": 24}], "confidence": 0.001}, "InvoiceDate": {"value_type": "date", "value": "2019-07-02", "content": "July 2.2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 388.0, "y": 179.0}, {"x": 434.0, "y": 179.0}, {"x": 434.0, "y": 191.0}, {"x": 388.0, "y": 191.0}]}], "spans": [{"offset": 109, "length": 11}], "confidence": 0.215}, "InvoiceId": {"value_type": "string", "value": "GB0062", "content": "GB0062", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 270.0, "y": 31.0}, {"x": 348.0, "y": 31.0}, {"x": 348.0, "y": 52.0}, {"x": 271.0, "y": 52.0}]}], "spans": [{"offset": 8, "length": 6}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 230.0, "symbol": "$"}, "content": "$230.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 466.0, "y": 343.0}, {"x": 495.0, "y": 343.0}, {"x": 495.0, "y": 353.0}, {"x": 467.0, "y": 353.0}]}], "spans": [{"offset": 302, "length": 7}], "confidence": 0.684}, "Description": {"value_type": "string", "value": "700\u00d725mm, clincher", "content": "700\u00d725mm, clincher", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 229.0, "y": 343.0}, {"x": 300.0, "y": 344.0}, {"x": 300.0, "y": 354.0}, {"x": 229.0, "y": 353.0}]}], "spans": [{"offset": 272, "length": 18}], "confidence": 0.053}, "ProductCode": {"value_type": "string", "value": "Ging performance\nroad bike tire", "content": "Ging performance road bike tire", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 139.0, "y": 344.0}, {"x": 206.0, "y": 344.0}, {"x": 206.0, "y": 365.0}, {"x": 139.0, "y": 365.0}]}], "spans": [{"offset": 240, "length": 31}], "confidence": null}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 371.0, "y": 344.0}, {"x": 376.0, "y": 344.0}, {"x": 377.0, "y": 353.0}, {"x": 372.0, "y": 353.0}]}], "spans": [{"offset": 296, "length": 1}], "confidence": 0.88}, "UnitPrice": {"value_type": "currency", "value": {"amount": 115.0, "symbol": "$"}, "content": "$115", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 333.0, "y": 343.0}, {"x": 352.0, "y": 343.0}, {"x": 352.0, "y": 352.0}, {"x": 334.0, "y": 353.0}]}], "spans": [{"offset": 291, "length": 4}], "confidence": 0.876}}, "content": "Ging performance road bike tire\n700\u00d725mm, clincher\n$115\n2\n15%\n$230.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 139.0, "y": 343.0}, {"x": 495.0, "y": 343.0}, {"x": 495.0, "y": 365.0}, {"x": 139.0, "y": 365.0}]}], "spans": [{"offset": 240, "length": 69}], "confidence": 0.398}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 30.0, "symbol": "$"}, "content": "$30.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 377.0}, {"x": 491.0, "y": 377.0}, {"x": 491.0, "y": 386.0}, {"x": 467.0, "y": 387.0}]}], "spans": [{"offset": 348, "length": 6}], "confidence": 0.663}, "Description": {"value_type": "string", "value": "Gel cork tape", "content": "Gel cork tape", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 229.0, "y": 377.0}, {"x": 277.0, "y": 377.0}, {"x": 277.0, "y": 388.0}, {"x": 229.0, "y": 388.0}]}], "spans": [{"offset": 330, "length": 13}], "confidence": 0.173}, "ProductCode": {"value_type": "string", "value": "Ging handlebar tape", "content": "Ging handlebar tape", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 377.0}, {"x": 215.0, "y": 377.0}, {"x": 215.0, "y": 389.0}, {"x": 140.0, "y": 389.0}]}], "spans": [{"offset": 310, "length": 19}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 30.0, "symbol": "$"}, "content": "$30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 334.0, "y": 377.0}, {"x": 347.0, "y": 377.0}, {"x": 347.0, "y": 387.0}, {"x": 334.0, "y": 387.0}]}], "spans": [{"offset": 344, "length": 3}], "confidence": 0.872}}, "content": "Ging handlebar tape\nGel cork tape\n$30\n$30.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 377.0}, {"x": 491.0, "y": 377.0}, {"x": 491.0, "y": 389.0}, {"x": 140.0, "y": 389.0}]}], "spans": [{"offset": 310, "length": 44}], "confidence": 0.038}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 1300.0, "symbol": null}, "content": "1300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 435.0}, {"x": 495.0, "y": 434.0}, {"x": 495.0, "y": 444.0}, {"x": 467.0, "y": 443.0}]}], "spans": [{"offset": 364, "length": 7}], "confidence": 0.001}, "TotalTax": {"value_type": "currency", "value": {"amount": 20.01, "symbol": "$"}, "content": "$20 01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 451.0}, {"x": 491.0, "y": 451.0}, {"x": 491.0, "y": 461.0}, {"x": 467.0, "y": 461.0}]}], "spans": [{"offset": 385, "length": 6}], "confidence": 0.005}, "VendorAddress": {"value_type": "address", "value": {"house_number": "200", "po_box": null, "road": "E. 3rd Street", "city": "New York", "state": "NY", "postal_code": "10009", "country_region": "USA", "street_address": "200 E. 3rd Street"}, "content": "200 E. 3rd Street\nNew York, NY 10009\nUSA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 122.0}, {"x": 214.0, "y": 122.0}, {"x": 214.0, "y": 157.0}, {"x": 140.0, "y": 157.0}]}], "spans": [{"offset": 32, "length": 40}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "Kevin Alice", "content": "Kevin Alice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 97.0}, {"x": 185.0, "y": 98.0}, {"x": 185.0, "y": 109.0}, {"x": 140.0, "y": 107.0}]}], "spans": [{"offset": 20, "length": 11}], "confidence": null}, "VendorName": {"value_type": "string", "value": "K.", "content": "K.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 102.0}, {"x": 498.0, "y": 103.0}, {"x": 497.0, "y": 137.0}, {"x": 462.0, "y": 136.0}]}], "spans": [{"offset": 73, "length": 2}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/19_jpg.rf.52e337bd75579f8d963865c66d6c9524.json b/Data/test/19_jpg.rf.52e337bd75579f8d963865c66d6c9524.json new file mode 100644 index 0000000000000000000000000000000000000000..1ad623d7c5bc710cf1da6df8c4f13c08118e6a89 --- /dev/null +++ b/Data/test/19_jpg.rf.52e337bd75579f8d963865c66d6c9524.json @@ -0,0 +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": 465}], "fields": {"DueDate": {"value_type": "date", "value": "2016-07-28", "content": "28/07/2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 193.0}, {"x": 549.0, "y": 192.0}, {"x": 549.0, "y": 208.0}, {"x": 478.0, "y": 208.0}]}], "spans": [{"offset": 153, "length": 10}], "confidence": 0.943}, "InvoiceDate": {"value_type": "date", "value": "2016-07-28", "content": "28/07/2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 142.0}, {"x": 549.0, "y": 143.0}, {"x": 549.0, "y": 157.0}, {"x": 479.0, "y": 158.0}]}], "spans": [{"offset": 104, "length": 10}], "confidence": 0.949}, "InvoiceId": {"value_type": "string", "value": "0001", "content": "0001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 479.0, "y": 118.0}, {"x": 511.0, "y": 118.0}, {"x": 511.0, "y": 131.0}, {"x": 479.0, "y": 131.0}]}], "spans": [{"offset": 86, "length": 4}], "confidence": 0.943}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 233.49, "symbol": "GBP"}, "content": "\u00a3233.49 GBP", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 506.0, "y": 469.0}, {"x": 594.0, "y": 469.0}, {"x": 594.0, "y": 484.0}, {"x": 506.0, "y": 484.0}]}], "spans": [{"offset": 403, "length": 11}], "confidence": 0.877}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 215.0, "symbol": "\u00a3"}, "content": "\u00a3215.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 542.0, "y": 371.0}, {"x": 593.0, "y": 371.0}, {"x": 593.0, "y": 385.0}, {"x": 542.0, "y": 385.0}]}], "spans": [{"offset": 290, "length": 7}], "confidence": 0.238}, "Description": {"value_type": "string", "value": "Test Product", "content": "Test Product", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 48.0, "y": 367.0}, {"x": 135.0, "y": 369.0}, {"x": 135.0, "y": 387.0}, {"x": 48.0, "y": 385.0}]}], "spans": [{"offset": 267, "length": 12}], "confidence": 0.159}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 367.0, "y": 370.0}, {"x": 372.0, "y": 370.0}, {"x": 373.0, "y": 383.0}, {"x": 368.0, "y": 383.0}]}], "spans": [{"offset": 280, "length": 1}], "confidence": 0.185}, "UnitPrice": {"value_type": "currency", "value": {"amount": 215.0, "symbol": "\u00a3"}, "content": "\u00a3215.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 439.0, "y": 371.0}, {"x": 490.0, "y": 370.0}, {"x": 491.0, "y": 385.0}, {"x": 439.0, "y": 385.0}]}], "spans": [{"offset": 282, "length": 7}], "confidence": 0.238}}, "content": "Test Product\n1\n\u00a3215.00\n\u00a3215.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 48.0, "y": 369.0}, {"x": 593.0, "y": 369.0}, {"x": 593.0, "y": 386.0}, {"x": 48.0, "y": 386.0}]}], "spans": [{"offset": 267, "length": 30}], "confidence": 0.388}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Due on receipt", "content": "Due on receipt", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 168.0}, {"x": 570.0, "y": 168.0}, {"x": 570.0, "y": 184.0}, {"x": 478.0, "y": 184.0}]}], "spans": [{"offset": 129, "length": 14}], "confidence": 0.91}, "SubTotal": {"value_type": "currency", "value": {"amount": 215.0, "symbol": "\u00a3"}, "content": "\u00a3215.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 540.0, "y": 423.0}, {"x": 593.0, "y": 423.0}, {"x": 594.0, "y": 438.0}, {"x": 540.0, "y": 438.0}]}], "spans": [{"offset": 371, "length": 7}], "confidence": 0.953}, "TotalTax": {"value_type": "currency", "value": {"amount": 18.49, "symbol": "\u00a3"}, "content": "\u00a318.49", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 548.0, "y": 442.0}, {"x": 594.0, "y": 442.0}, {"x": 595.0, "y": 457.0}, {"x": 548.0, "y": 457.0}]}], "spans": [{"offset": 390, "length": 6}], "confidence": 0.954}, "VendorAddress": {"value_type": "address", "value": {"house_number": "8", "po_box": null, "road": "Elm Street", "city": "Cambridge", "state": null, "postal_code": "CB1 4DH", "country_region": "United Kingdom", "street_address": "8 Elm Street"}, "content": "8 Elm Street\nCambridge, CB1 4DH\nUnited Kingdom", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 39.0, "y": 142.0}, {"x": 165.0, "y": 142.0}, {"x": 165.0, "y": 194.0}, {"x": 39.0, "y": 194.0}]}], "spans": [{"offset": 24, "length": 46}], "confidence": 0.598}, "VendorAddressRecipient": {"value_type": "string", "value": "John Doe", "content": "John Doe", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 39.0, "y": 118.0}, {"x": 98.0, "y": 118.0}, {"x": 98.0, "y": 133.0}, {"x": 39.0, "y": 133.0}]}], "spans": [{"offset": 15, "length": 8}], "confidence": 0.562}, "VendorName": {"value_type": "string", "value": "PayPal", "content": "PayPal", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 76.0, "y": 70.0}, {"x": 161.0, "y": 70.0}, {"x": 161.0, "y": 96.0}, {"x": 76.0, "y": 96.0}]}], "spans": [{"offset": 0, "length": 6}], "confidence": 0.935}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/1_page-0001_jpg.rf.8b19cdf07f72d88cb05ec42ddc866550.json b/Data/test/1_page-0001_jpg.rf.8b19cdf07f72d88cb05ec42ddc866550.json new file mode 100644 index 0000000000000000000000000000000000000000..fcf3c9800375f029b901c3cae5621437a8111391 --- /dev/null +++ b/Data/test/1_page-0001_jpg.rf.8b19cdf07f72d88cb05ec42ddc866550.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1240.0, "y": 0.0}, {"x": 1240.0, "y": 1755.0}, {"x": 0.0, "y": 1755.0}]}], "spans": [{"offset": 0, "length": 649}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "123", "po_box": null, "road": "Your Street", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "123 Your Street"}, "content": "123 Your Street", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 428.0}, {"x": 259.0, "y": 428.0}, {"x": 259.0, "y": 449.0}, {"x": 110.0, "y": 449.0}]}], "spans": [{"offset": 160, "length": 15}], "confidence": 0.569}, "InvoiceId": {"value_type": "string", "value": "MM/DD/YYYY", "content": "MM/DD/YYYY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 768.0}, {"x": 241.0, "y": 768.0}, {"x": 241.0, "y": 790.0}, {"x": 109.0, "y": 790.0}]}], "spans": [{"offset": 236, "length": 10}], "confidence": 0.652}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1023.0, "y": 1446.0}, {"x": 1107.0, "y": 1446.0}, {"x": 1107.0, "y": 1479.0}, {"x": 1023.0, "y": 1480.0}]}], "spans": [{"offset": 606, "length": 5}], "confidence": 0.95}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1059.0, "y": 735.0}, {"x": 1111.0, "y": 735.0}, {"x": 1111.0, "y": 755.0}, {"x": 1059.0, "y": 755.0}]}], "spans": [{"offset": 332, "length": 5}], "confidence": 0.903}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 735.0}, {"x": 505.0, "y": 735.0}, {"x": 505.0, "y": 756.0}, {"x": 358.0, "y": 756.0}]}], "spans": [{"offset": 309, "length": 14}], "confidence": 0.899}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 966.0, "y": 736.0}, {"x": 973.0, "y": 736.0}, {"x": 974.0, "y": 753.0}, {"x": 967.0, "y": 753.0}]}], "spans": [{"offset": 330, "length": 1}], "confidence": 0.894}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 770.0, "y": 735.0}, {"x": 822.0, "y": 735.0}, {"x": 822.0, "y": 755.0}, {"x": 770.0, "y": 755.0}]}], "spans": [{"offset": 324, "length": 5}], "confidence": 0.903}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 735.0}, {"x": 1111.0, "y": 735.0}, {"x": 1111.0, "y": 756.0}, {"x": 358.0, "y": 756.0}]}], "spans": [{"offset": 309, "length": 28}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1060.0, "y": 789.0}, {"x": 1110.0, "y": 789.0}, {"x": 1111.0, "y": 809.0}, {"x": 1060.0, "y": 809.0}]}], "spans": [{"offset": 361, "length": 5}], "confidence": 0.902}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 789.0}, {"x": 503.0, "y": 789.0}, {"x": 503.0, "y": 810.0}, {"x": 358.0, "y": 810.0}]}], "spans": [{"offset": 338, "length": 14}], "confidence": 0.898}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 790.0}, {"x": 975.0, "y": 790.0}, {"x": 975.0, "y": 807.0}, {"x": 966.0, "y": 806.0}]}], "spans": [{"offset": 359, "length": 1}], "confidence": 0.896}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 770.0, "y": 789.0}, {"x": 823.0, "y": 789.0}, {"x": 823.0, "y": 809.0}, {"x": 770.0, "y": 808.0}]}], "spans": [{"offset": 353, "length": 5}], "confidence": 0.902}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 782.0}, {"x": 1111.0, "y": 789.0}, {"x": 1111.0, "y": 817.0}, {"x": 358.0, "y": 810.0}]}], "spans": [{"offset": 338, "length": 28}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1059.0, "y": 843.0}, {"x": 1111.0, "y": 843.0}, {"x": 1111.0, "y": 863.0}, {"x": 1059.0, "y": 863.0}]}], "spans": [{"offset": 390, "length": 5}], "confidence": 0.903}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 843.0}, {"x": 504.0, "y": 841.0}, {"x": 504.0, "y": 864.0}, {"x": 358.0, "y": 866.0}]}], "spans": [{"offset": 367, "length": 14}], "confidence": 0.899}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 966.0, "y": 844.0}, {"x": 974.0, "y": 844.0}, {"x": 973.0, "y": 861.0}, {"x": 965.0, "y": 860.0}]}], "spans": [{"offset": 388, "length": 1}], "confidence": 0.896}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 770.0, "y": 839.0}, {"x": 824.0, "y": 839.0}, {"x": 824.0, "y": 865.0}, {"x": 770.0, "y": 865.0}]}], "spans": [{"offset": 382, "length": 5}], "confidence": 0.903}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 839.0}, {"x": 1111.0, "y": 839.0}, {"x": 1111.0, "y": 865.0}, {"x": 358.0, "y": 865.0}]}], "spans": [{"offset": 367, "length": 28}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1060.0, "y": 898.0}, {"x": 1112.0, "y": 898.0}, {"x": 1112.0, "y": 918.0}, {"x": 1060.0, "y": 917.0}]}], "spans": [{"offset": 419, "length": 5}], "confidence": 0.903}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 897.0}, {"x": 505.0, "y": 900.0}, {"x": 505.0, "y": 921.0}, {"x": 358.0, "y": 919.0}]}], "spans": [{"offset": 396, "length": 14}], "confidence": 0.899}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 899.0}, {"x": 975.0, "y": 899.0}, {"x": 975.0, "y": 916.0}, {"x": 967.0, "y": 916.0}]}], "spans": [{"offset": 417, "length": 1}], "confidence": 0.895}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 771.0, "y": 898.0}, {"x": 823.0, "y": 898.0}, {"x": 823.0, "y": 918.0}, {"x": 771.0, "y": 918.0}]}], "spans": [{"offset": 411, "length": 5}], "confidence": 0.903}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 891.0}, {"x": 1112.0, "y": 898.0}, {"x": 1112.0, "y": 926.0}, {"x": 358.0, "y": 919.0}]}], "spans": [{"offset": 396, "length": 28}], "confidence": 0.906}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1058.0, "y": 952.0}, {"x": 1110.0, "y": 952.0}, {"x": 1110.0, "y": 972.0}, {"x": 1058.0, "y": 972.0}]}], "spans": [{"offset": 448, "length": 5}], "confidence": 0.903}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 952.0}, {"x": 504.0, "y": 954.0}, {"x": 504.0, "y": 976.0}, {"x": 358.0, "y": 974.0}]}], "spans": [{"offset": 425, "length": 14}], "confidence": 0.898}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 953.0}, {"x": 976.0, "y": 953.0}, {"x": 975.0, "y": 971.0}, {"x": 966.0, "y": 971.0}]}], "spans": [{"offset": 446, "length": 1}], "confidence": 0.894}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 771.0, "y": 953.0}, {"x": 823.0, "y": 953.0}, {"x": 823.0, "y": 973.0}, {"x": 771.0, "y": 973.0}]}], "spans": [{"offset": 440, "length": 5}], "confidence": 0.903}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 952.0}, {"x": 1110.0, "y": 952.0}, {"x": 1110.0, "y": 975.0}, {"x": 358.0, "y": 975.0}]}], "spans": [{"offset": 425, "length": 28}], "confidence": 0.906}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1059.0, "y": 1005.0}, {"x": 1111.0, "y": 1005.0}, {"x": 1111.0, "y": 1025.0}, {"x": 1059.0, "y": 1025.0}]}], "spans": [{"offset": 477, "length": 5}], "confidence": 0.903}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 1006.0}, {"x": 505.0, "y": 1006.0}, {"x": 505.0, "y": 1028.0}, {"x": 358.0, "y": 1028.0}]}], "spans": [{"offset": 454, "length": 14}], "confidence": 0.899}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 966.0, "y": 1006.0}, {"x": 974.0, "y": 1006.0}, {"x": 973.0, "y": 1023.0}, {"x": 965.0, "y": 1022.0}]}], "spans": [{"offset": 475, "length": 1}], "confidence": 0.897}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 772.0, "y": 1005.0}, {"x": 823.0, "y": 1005.0}, {"x": 823.0, "y": 1027.0}, {"x": 772.0, "y": 1027.0}]}], "spans": [{"offset": 469, "length": 5}], "confidence": 0.903}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 1005.0}, {"x": 1111.0, "y": 1005.0}, {"x": 1111.0, "y": 1028.0}, {"x": 358.0, "y": 1028.0}]}], "spans": [{"offset": 454, "length": 28}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1059.0, "y": 1060.0}, {"x": 1109.0, "y": 1060.0}, {"x": 1109.0, "y": 1080.0}, {"x": 1059.0, "y": 1080.0}]}], "spans": [{"offset": 506, "length": 5}], "confidence": 0.903}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 1059.0}, {"x": 504.0, "y": 1060.0}, {"x": 504.0, "y": 1083.0}, {"x": 358.0, "y": 1082.0}]}], "spans": [{"offset": 483, "length": 14}], "confidence": 0.899}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 1061.0}, {"x": 975.0, "y": 1061.0}, {"x": 975.0, "y": 1078.0}, {"x": 967.0, "y": 1078.0}]}], "spans": [{"offset": 504, "length": 1}], "confidence": 0.894}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 771.0, "y": 1060.0}, {"x": 822.0, "y": 1060.0}, {"x": 822.0, "y": 1080.0}, {"x": 771.0, "y": 1080.0}]}], "spans": [{"offset": 498, "length": 5}], "confidence": 0.903}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 1059.0}, {"x": 1109.0, "y": 1059.0}, {"x": 1109.0, "y": 1082.0}, {"x": 358.0, "y": 1082.0}]}], "spans": [{"offset": 483, "length": 28}], "confidence": 0.906}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1058.0, "y": 1114.0}, {"x": 1110.0, "y": 1114.0}, {"x": 1110.0, "y": 1134.0}, {"x": 1058.0, "y": 1134.0}]}], "spans": [{"offset": 535, "length": 5}], "confidence": 0.903}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 357.0, "y": 1114.0}, {"x": 505.0, "y": 1114.0}, {"x": 505.0, "y": 1137.0}, {"x": 357.0, "y": 1137.0}]}], "spans": [{"offset": 512, "length": 14}], "confidence": 0.899}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 1114.0}, {"x": 976.0, "y": 1114.0}, {"x": 976.0, "y": 1132.0}, {"x": 967.0, "y": 1132.0}]}], "spans": [{"offset": 533, "length": 1}], "confidence": 0.892}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 772.0, "y": 1114.0}, {"x": 823.0, "y": 1114.0}, {"x": 823.0, "y": 1136.0}, {"x": 772.0, "y": 1136.0}]}], "spans": [{"offset": 527, "length": 5}], "confidence": 0.902}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 357.0, "y": 1114.0}, {"x": 1110.0, "y": 1114.0}, {"x": 1110.0, "y": 1137.0}, {"x": 357.0, "y": 1137.0}]}], "spans": [{"offset": 512, "length": 28}], "confidence": 0.905}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1055.0, "y": 1198.0}, {"x": 1109.0, "y": 1198.0}, {"x": 1109.0, "y": 1224.0}, {"x": 1055.0, "y": 1223.0}]}], "spans": [{"offset": 550, "length": 5}], "confidence": 0.969}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1056.0, "y": 1333.0}, {"x": 1110.0, "y": 1333.0}, {"x": 1110.0, "y": 1359.0}, {"x": 1056.0, "y": 1359.0}]}], "spans": [{"offset": 586, "length": 5}], "confidence": 0.948}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/204_jpg.rf.d2a549b44ef79fa6c6802935363a7e29.json b/Data/test/204_jpg.rf.d2a549b44ef79fa6c6802935363a7e29.json new file mode 100644 index 0000000000000000000000000000000000000000..f76e40a7150303863e14f4e4b3482e7c08e82ad4 --- /dev/null +++ b/Data/test/204_jpg.rf.d2a549b44ef79fa6c6802935363a7e29.json @@ -0,0 +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": 1372}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 32450.0, "symbol": null}, "content": "32,450.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 503.0, "y": 511.0}, {"x": 536.0, "y": 509.0}, {"x": 536.0, "y": 519.0}, {"x": 503.0, "y": 519.0}]}], "spans": [{"offset": 1281, "length": 9}], "confidence": 0.945}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "No 78", "po_box": null, "road": "Dasarathpuram mainroad", "city": "Chennai,\nTamilnau", "state": null, "postal_code": "600124", "country_region": "India", "street_address": "No 78 Dasarathpuram mainroad"}, "content": "No 78 Dasarathpuram mainroad saligramam, Chennai,\nTamilnau, India - 600124.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 190.0}, {"x": 290.0, "y": 190.0}, {"x": 290.0, "y": 210.0}, {"x": 110.0, "y": 210.0}]}], "spans": [{"offset": 502, "length": 75}], "confidence": 0.889}, "CustomerAddressRecipient": {"value_type": "string", "value": "Make It Cut,", "content": "Make It Cut,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 178.0}, {"x": 151.0, "y": 178.0}, {"x": 151.0, "y": 188.0}, {"x": 110.0, "y": 188.0}]}], "spans": [{"offset": 489, "length": 12}], "confidence": 0.936}, "CustomerId": {"value_type": "string", "value": "72", "content": "72", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 526.0, "y": 129.0}, {"x": 532.0, "y": 129.0}, {"x": 532.0, "y": 137.0}, {"x": 526.0, "y": 137.0}]}], "spans": [{"offset": 451, "length": 2}], "confidence": 0.943}, "CustomerName": {"value_type": "string", "value": "Make It Cut,", "content": "Make It Cut,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 178.0}, {"x": 151.0, "y": 178.0}, {"x": 151.0, "y": 188.0}, {"x": 110.0, "y": 188.0}]}], "spans": [{"offset": 489, "length": 12}], "confidence": 0.936}, "InvoiceDate": {"value_type": "date", "value": "2019-11-26", "content": "26-11-2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 499.0, "y": 45.0}, {"x": 533.0, "y": 44.0}, {"x": 533.0, "y": 53.0}, {"x": 500.0, "y": 53.0}]}], "spans": [{"offset": 300, "length": 10}], "confidence": 0.957}, "InvoiceId": {"value_type": "string", "value": "INV/19-20/112", "content": "INV/19-20/112", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 487.0, "y": 33.0}, {"x": 534.0, "y": 32.0}, {"x": 534.0, "y": 42.0}, {"x": 487.0, "y": 41.0}]}], "spans": [{"offset": 273, "length": 13}], "confidence": 0.96}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 32450.0, "symbol": null}, "content": "32,450.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 503.0, "y": 488.0}, {"x": 535.0, "y": 487.0}, {"x": 536.0, "y": 496.0}, {"x": 503.0, "y": 496.0}]}], "spans": [{"offset": 1239, "length": 9}], "confidence": 0.957}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 24000.0, "symbol": null}, "content": "24,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 504.0, "y": 286.0}, {"x": 536.0, "y": 286.0}, {"x": 536.0, "y": 294.0}, {"x": 504.0, "y": 294.0}]}], "spans": [{"offset": 766, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "CELLOTAPE2\"PRINTED(630 MTRS CLEAR)\n48MM530MTRS\nLOGO PRINTED SELF ADHESIVE TAPE", "content": "CELLOTAPE2\"PRINTED(630 MTRS CLEAR)\n48MM530MTRS LOGO PRINTED SELF ADHESIVE TAPE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 285.0}, {"x": 261.0, "y": 285.0}, {"x": 261.0, "y": 327.0}, {"x": 125.0, "y": 327.0}]}], "spans": [{"offset": 705, "length": 34}, {"offset": 776, "length": 43}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "39191000", "content": "39191000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 329.0, "y": 287.0}, {"x": 357.0, "y": 286.0}, {"x": 358.0, "y": 295.0}, {"x": 329.0, "y": 294.0}]}], "spans": [{"offset": 740, "length": 8}], "confidence": null}, "Quantity": {"value_type": "float", "value": 100.0, "content": "100.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 389.0, "y": 287.0}, {"x": 405.0, "y": 287.0}, {"x": 405.0, "y": 294.0}, {"x": 390.0, "y": 294.0}]}], "spans": [{"offset": 749, "length": 5}], "confidence": null}, "TaxRate": {"value_type": "string", "value": "18.00%", "content": "18.00%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 287.0}, {"x": 475.0, "y": 287.0}, {"x": 476.0, "y": 294.0}, {"x": 452.0, "y": 293.0}]}], "spans": [{"offset": 759, "length": 6}], "confidence": null}, "Unit": {"value_type": "string", "value": "Nos", "content": "Nos", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 413.0, "y": 286.0}, {"x": 427.0, "y": 287.0}, {"x": 426.0, "y": 294.0}, {"x": 412.0, "y": 293.0}]}], "spans": [{"offset": 755, "length": 3}], "confidence": null}}, "content": "1\nCELLOTAPE2\"PRINTED(630 MTRS CLEAR)\n39191000\n100.0\nNos\n18.00%\n24,000.00\n48MM530MTRS LOGO PRINTED SELF ADHESIVE TAPE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 116.0, "y": 285.0}, {"x": 536.0, "y": 285.0}, {"x": 536.0, "y": 327.0}, {"x": 116.0, "y": 327.0}]}], "spans": [{"offset": 703, "length": 116}], "confidence": 0.566}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3500.0, "symbol": null}, "content": "3,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 509.0, "y": 337.0}, {"x": 536.0, "y": 337.0}, {"x": 536.0, "y": 345.0}, {"x": 509.0, "y": 344.0}]}], "spans": [{"offset": 910, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "CSM MAT RESIN\n100% csm mat resin used for domestic purpose only.", "content": "CSM MAT RESIN 100% csm mat resin used for domestic purpose only.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 336.0}, {"x": 300.0, "y": 336.0}, {"x": 300.0, "y": 356.0}, {"x": 125.0, "y": 356.0}]}], "spans": [{"offset": 822, "length": 64}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "123456", "content": "123456", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 329.0, "y": 337.0}, {"x": 350.0, "y": 337.0}, {"x": 351.0, "y": 345.0}, {"x": 329.0, "y": 344.0}]}], "spans": [{"offset": 887, "length": 6}], "confidence": null}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 393.0, "y": 336.0}, {"x": 406.0, "y": 336.0}, {"x": 406.0, "y": 344.0}, {"x": 393.0, "y": 343.0}]}], "spans": [{"offset": 894, "length": 4}], "confidence": null}, "TaxRate": {"value_type": "string", "value": "18.00%", "content": "18.00%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 337.0}, {"x": 476.0, "y": 337.0}, {"x": 476.0, "y": 344.0}, {"x": 452.0, "y": 344.0}]}], "spans": [{"offset": 903, "length": 6}], "confidence": null}, "Unit": {"value_type": "string", "value": "Kgs", "content": "Kgs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 413.0, "y": 337.0}, {"x": 425.0, "y": 337.0}, {"x": 425.0, "y": 345.0}, {"x": 413.0, "y": 345.0}]}], "spans": [{"offset": 899, "length": 3}], "confidence": null}}, "content": "2\nCSM MAT RESIN 100% csm mat resin used for domestic purpose only.\n123456\n10.0\nKgs\n18.00%\n3,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 115.0, "y": 336.0}, {"x": 536.0, "y": 336.0}, {"x": 536.0, "y": 356.0}, {"x": 115.0, "y": 356.0}]}], "spans": [{"offset": 820, "length": 98}], "confidence": 0.568}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "45 days Credit", "content": "45 days Credit", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 432.0, "y": 141.0}, {"x": 480.0, "y": 141.0}, {"x": 480.0, "y": 151.0}, {"x": 432.0, "y": 151.0}]}], "spans": [{"offset": 471, "length": 14}], "confidence": 0.936}, "PurchaseOrder": {"value_type": "string", "value": "PO1245", "content": "PO1245", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 507.0, "y": 81.0}, {"x": 533.0, "y": 81.0}, {"x": 533.0, "y": 90.0}, {"x": 508.0, "y": 89.0}]}], "spans": [{"offset": 380, "length": 6}], "confidence": 0.952}, "SubTotal": {"value_type": "currency", "value": {"amount": 27500.0, "symbol": null}, "content": "27,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 503.0, "y": 442.0}, {"x": 536.0, "y": 441.0}, {"x": 536.0, "y": 451.0}, {"x": 503.0, "y": 451.0}]}], "spans": [{"offset": 1145, "length": 9}], "confidence": 0.964}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2475.0, "symbol": null}, "content": "2,475.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 507.0, "y": 454.0}, {"x": 536.0, "y": 453.0}, {"x": 536.0, "y": 462.0}, {"x": 508.0, "y": 462.0}]}], "spans": [{"offset": 1173, "length": 8}], "confidence": null}, "Rate": {"value_type": "string", "value": "(9.0%)", "content": "(9.0%)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 407.0, "y": 451.0}, {"x": 430.0, "y": 451.0}, {"x": 430.0, "y": 461.0}, {"x": 407.0, "y": 460.0}]}], "spans": [{"offset": 1166, "length": 6}], "confidence": null}}, "content": "SGST 9 Tax (9.0%)\n2,475.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 370.0, "y": 451.0}, {"x": 536.0, "y": 451.0}, {"x": 536.0, "y": 462.0}, {"x": 370.0, "y": 462.0}]}], "spans": [{"offset": 1155, "length": 26}], "confidence": 0.004}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2475.0, "symbol": null}, "content": "2,475.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 508.0, "y": 465.0}, {"x": 535.0, "y": 464.0}, {"x": 536.0, "y": 473.0}, {"x": 508.0, "y": 473.0}]}], "spans": [{"offset": 1202, "length": 8}], "confidence": null}, "Rate": {"value_type": "string", "value": "(9.0%)", "content": "(9.0%)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 408.0, "y": 462.0}, {"x": 431.0, "y": 462.0}, {"x": 431.0, "y": 472.0}, {"x": 408.0, "y": 472.0}]}], "spans": [{"offset": 1193, "length": 6}], "confidence": null}}, "content": "CGST 9 Tax (9.0%)\n4\n2,475.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 370.0, "y": 462.0}, {"x": 536.0, "y": 462.0}, {"x": 536.0, "y": 473.0}, {"x": 370.0, "y": 473.0}]}], "spans": [{"offset": 1182, "length": 28}], "confidence": 0.006}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "2/8", "po_box": null, "road": "2nd floor saradambal street, T.Nagar", "city": "Chennai", "state": "Tamil\nNadu", "postal_code": "600017", "country_region": "India", "street_address": "2/8 2nd floor saradambal street, T.Nagar No"}, "content": "No 2/8, 2nd floor saradambal street, T.Nagar, Chennai, Tamil Nadu, India - 600017.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 106.0, "y": 103.0}, {"x": 307.0, "y": 103.0}, {"x": 307.0, "y": 123.0}, {"x": 106.0, "y": 123.0}]}], "spans": [{"offset": 53, "length": 82}], "confidence": 0.916}, "VendorAddressRecipient": {"value_type": "string", "value": "CatalystK Company", "content": "CatalystK Company", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 106.0, "y": 85.0}, {"x": 216.0, "y": 87.0}, {"x": 216.0, "y": 102.0}, {"x": 106.0, "y": 100.0}]}], "spans": [{"offset": 35, "length": 17}], "confidence": 0.942}, "VendorName": {"value_type": "string", "value": "CatalystK Company.", "content": "CatalystK Company.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 440.0, "y": 568.0}, {"x": 511.0, "y": 569.0}, {"x": 511.0, "y": 581.0}, {"x": 440.0, "y": 579.0}]}], "spans": [{"offset": 1295, "length": 18}], "confidence": 0.754}, "VendorTaxId": {"value_type": "string", "value": "34AABCB5576GIZX", "content": "34AABCB5576GIZX", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 132.0, "y": 148.0}, {"x": 198.0, "y": 148.0}, {"x": 198.0, "y": 158.0}, {"x": 132.0, "y": 158.0}]}], "spans": [{"offset": 227, "length": 15}], "confidence": 0.728}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/210_jpg.rf.16a58fd274114a598a8fbf48c201a7ad.json b/Data/test/210_jpg.rf.16a58fd274114a598a8fbf48c201a7ad.json new file mode 100644 index 0000000000000000000000000000000000000000..a00b663b7dd367dfc3e55bbe91bac0ed439b9e4d --- /dev/null +++ b/Data/test/210_jpg.rf.16a58fd274114a598a8fbf48c201a7ad.json @@ -0,0 +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": 547}], "fields": {"CustomerId": {"value_type": "string", "value": "PBW/09188213155447M", "content": "PBW/09188213155447M", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 318.0, "y": 114.0}, {"x": 372.0, "y": 115.0}, {"x": 372.0, "y": 121.0}, {"x": 319.0, "y": 121.0}]}], "spans": [{"offset": 101, "length": 19}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2.0, "symbol": null}, "content": "2 117.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 307.0}, {"x": 476.0, "y": 307.0}, {"x": 476.0, "y": 311.0}, {"x": 459.0, "y": 311.0}]}], "spans": [{"offset": 421, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "Total Owh Dama\u011f\u0131 Pretium (A)", "content": "Total Owh Dama\u011f\u0131 Pretium (A)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 305.0}, {"x": 228.0, "y": 305.0}, {"x": 228.0, "y": 311.0}, {"x": 159.0, "y": 311.0}]}], "spans": [{"offset": 392, "length": 28}], "confidence": null}}, "content": "Total Owh Dama\u011f\u0131 Pretium (A)\n2 117.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 305.0}, {"x": 476.0, "y": 305.0}, {"x": 476.0, "y": 311.0}, {"x": 159.0, "y": 311.0}]}], "spans": [{"offset": 392, "length": 37}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorName": {"value_type": "string", "value": "CC kotak", "content": "CC kotak", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 56.0}, {"x": 219.0, "y": 58.0}, {"x": 219.0, "y": 73.0}, {"x": 155.0, "y": 71.0}]}], "spans": [{"offset": 0, "length": 8}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/232_jpg.rf.9dec709f6146a403ac0cc3d20640d08c.json b/Data/test/232_jpg.rf.9dec709f6146a403ac0cc3d20640d08c.json new file mode 100644 index 0000000000000000000000000000000000000000..cfd42a837f220f44faeb2fd726fe4ca26f61f103 --- /dev/null +++ b/Data/test/232_jpg.rf.9dec709f6146a403ac0cc3d20640d08c.json @@ -0,0 +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": 624}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "420", "po_box": null, "road": "English Street", "city": "Greensboro", "state": "NC", "postal_code": "27405", "country_region": null, "street_address": "420 English Street"}, "content": "420 English Street Greensboro, NC 27405", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 172.0}, {"x": 240.0, "y": 173.0}, {"x": 240.0, "y": 196.0}, {"x": 141.0, "y": 195.0}]}], "spans": [{"offset": 176, "length": 39}], "confidence": 0.761}, "CustomerAddressRecipient": {"value_type": "string", "value": "Lorillard, Inc.", "content": "Lorillard, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 163.0}, {"x": 214.0, "y": 164.0}, {"x": 214.0, "y": 175.0}, {"x": 141.0, "y": 174.0}]}], "spans": [{"offset": 160, "length": 15}], "confidence": 0.597}, "CustomerName": {"value_type": "string", "value": "Lorillard, Inc.", "content": "Lorillard, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 163.0}, {"x": 214.0, "y": 164.0}, {"x": 214.0, "y": 175.0}, {"x": 141.0, "y": 174.0}]}], "spans": [{"offset": 160, "length": 15}], "confidence": 0.597}, "InvoiceDate": {"value_type": "date", "value": "1984-05-09", "content": "May 9, 1984", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 134.0}, {"x": 197.0, "y": 133.0}, {"x": 197.0, "y": 145.0}, {"x": 142.0, "y": 146.0}]}], "spans": [{"offset": 148, "length": 11}], "confidence": 0.842}, "InvoiceId": {"value_type": "string", "value": "1588-2", "content": "1588-2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 230.0, "y": 252.0}, {"x": 260.0, "y": 252.0}, {"x": 259.0, "y": 263.0}, {"x": 230.0, "y": 262.0}]}], "spans": [{"offset": 309, "length": 6}], "confidence": 0.725}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2650.0, "symbol": "$"}, "content": "$2,650.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 380.0, "y": 291.0}, {"x": 424.0, "y": 292.0}, {"x": 425.0, "y": 302.0}, {"x": 380.0, "y": 302.0}]}], "spans": [{"offset": 399, "length": 9}], "confidence": 0.848}, "Description": {"value_type": "string", "value": "Range-Finding Study in Albino Rats\n(phase I and II) with A-110*", "content": "Range-Finding Study in Albino Rats (phase I and II) with A-110*", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 291.0}, {"x": 309.0, "y": 291.0}, {"x": 309.0, "y": 313.0}, {"x": 141.0, "y": 313.0}]}], "spans": [{"offset": 335, "length": 63}], "confidence": 0.889}}, "content": "Range-Finding Study in Albino Rats (phase I and II) with A-110*\n$2,650.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 291.0}, {"x": 425.0, "y": 291.0}, {"x": 425.0, "y": 313.0}, {"x": 141.0, "y": 313.0}]}], "spans": [{"offset": 335, "length": 73}], "confidence": 0.062}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "342-A", "content": "342-A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 322.0, "y": 232.0}, {"x": 347.0, "y": 232.0}, {"x": 347.0, "y": 243.0}, {"x": 322.0, "y": 243.0}]}], "spans": [{"offset": 273, "length": 5}], "confidence": 0.428}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": "11140", "po_box": null, "road": "Rockville Pike", "city": "Rockville", "state": "MD", "postal_code": "20852", "country_region": null, "street_address": "11140 Rockville Pike"}, "content": "11140 Rockville Pike Rockville, MD 20852", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 287.0, "y": 439.0}, {"x": 386.0, "y": 439.0}, {"x": 386.0, "y": 461.0}, {"x": 287.0, "y": 461.0}]}], "spans": [{"offset": 514, "length": 40}], "confidence": 0.813}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Borriston Laboratories, Inc.\nDYNAMAC BUILDING", "content": "Borriston Laboratories, Inc. DYNAMAC BUILDING", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 287.0, "y": 420.0}, {"x": 426.0, "y": 420.0}, {"x": 426.0, "y": 441.0}, {"x": 287.0, "y": 441.0}]}], "spans": [{"offset": 468, "length": 45}], "confidence": 0.83}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "30Ht Beech Place\nTemple", "city": "Hab.", "state": "Maryland", "postal_code": "20748", "country_region": null, "street_address": "30Ht Beech Place\nTemple"}, "content": "30Ht Beech Place Temple Hab. Maryland 20748", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 143.0, "y": 78.0}, {"x": 236.0, "y": 78.0}, {"x": 236.0, "y": 96.0}, {"x": 143.0, "y": 96.0}]}], "spans": [{"offset": 54, "length": 43}], "confidence": 0.798}, "VendorAddressRecipient": {"value_type": "string", "value": "Bonitas Laboratories: Inc", "content": "Bonitas Laboratories: Inc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 143.0, "y": 69.0}, {"x": 225.0, "y": 69.0}, {"x": 225.0, "y": 78.0}, {"x": 143.0, "y": 78.0}]}], "spans": [{"offset": 28, "length": 25}], "confidence": 0.785}, "VendorName": {"value_type": "string", "value": "BORRISTON\nLABORATORIES, INC", "content": "BORRISTON LABORATORIES, INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 144.0, "y": 26.0}, {"x": 255.0, "y": 26.0}, {"x": 255.0, "y": 53.0}, {"x": 144.0, "y": 53.0}]}], "spans": [{"offset": 0, "length": 27}], "confidence": 0.841}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/234_jpg.rf.37fc766c5b6170035406bfe7ad8dc56a.json b/Data/test/234_jpg.rf.37fc766c5b6170035406bfe7ad8dc56a.json new file mode 100644 index 0000000000000000000000000000000000000000..d9f579c72b80281899f452f64b8e8f239d55a0b9 --- /dev/null +++ b/Data/test/234_jpg.rf.37fc766c5b6170035406bfe7ad8dc56a.json @@ -0,0 +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": 656}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 400.0, "symbol": "$"}, "content": "$ 400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 341.0}, {"x": 536.0, "y": 346.0}, {"x": 534.0, "y": 359.0}, {"x": 492.0, "y": 354.0}]}], "spans": [{"offset": 509, "length": 8}], "confidence": 0.121}, "CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. Box 21688", "road": null, "city": "Greensboro", "state": "NC", "postal_code": "27420", "country_region": null, "street_address": "P.O. Box 21688"}, "content": "P.O. Box 21688\nGreensboro, NC 27420", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 178.0, "y": 144.0}, {"x": 281.0, "y": 142.0}, {"x": 281.0, "y": 162.0}, {"x": 178.0, "y": 165.0}]}], "spans": [{"offset": 177, "length": 35}], "confidence": 0.006}, "CustomerAddressRecipient": {"value_type": "string", "value": "Lorillard Research Center\nAttention: Dr. Comnie Stone", "content": "Lorillard Research Center\nAttention: Dr. Comnie Stone", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 178.0, "y": 132.0}, {"x": 315.0, "y": 132.0}, {"x": 315.0, "y": 183.0}, {"x": 178.0, "y": 183.0}]}], "spans": [{"offset": 151, "length": 25}, {"offset": 213, "length": 27}], "confidence": 0.017}, "CustomerId": {"value_type": "string", "value": "4111", "content": "4111", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 291.0, "y": 431.0}, {"x": 329.0, "y": 428.0}, {"x": 330.0, "y": 445.0}, {"x": 292.0, "y": 447.0}]}], "spans": [{"offset": 559, "length": 4}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Lorillard Research Center\nAttention: Dr. Comnie Stone", "content": "Lorillard Research Center\nAttention: Dr. Comnie Stone", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 178.0, "y": 132.0}, {"x": 315.0, "y": 132.0}, {"x": 315.0, "y": 183.0}, {"x": 178.0, "y": 183.0}]}], "spans": [{"offset": 151, "length": 25}, {"offset": 213, "length": 27}], "confidence": 0.017}, "InvoiceDate": {"value_type": "date", "value": "1985-05-17", "content": "May 17, 1985", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 217.0}, {"x": 229.0, "y": 215.0}, {"x": 229.0, "y": 226.0}, {"x": 168.0, "y": 228.0}]}], "spans": [{"offset": 256, "length": 12}], "confidence": 0.001}, "InvoiceId": {"value_type": "string", "value": "511114", "content": "511114", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 53.0}, {"x": 493.0, "y": 52.0}, {"x": 494.0, "y": 62.0}, {"x": 463.0, "y": 62.0}]}], "spans": [{"offset": 10, "length": 6}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 400.0, "symbol": "$"}, "content": "$ 400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 356.0, "y": 346.0}, {"x": 400.0, "y": 347.0}, {"x": 400.0, "y": 357.0}, {"x": 356.0, "y": 356.0}]}], "spans": [{"offset": 500, "length": 8}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 400.0, "symbol": "$"}, "content": "$ 400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 341.0}, {"x": 536.0, "y": 346.0}, {"x": 534.0, "y": 359.0}, {"x": 492.0, "y": 354.0}]}], "spans": [{"offset": 509, "length": 8}], "confidence": 0.128}, "Description": {"value_type": "string", "value": "AMOUNT DUE", "content": "AMOUNT DUE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 348.0}, {"x": 199.0, "y": 348.0}, {"x": 199.0, "y": 359.0}, {"x": 152.0, "y": 359.0}]}], "spans": [{"offset": 487, "length": 10}], "confidence": 0.041}, "UnitPrice": {"value_type": "currency", "value": {"amount": 400.0, "symbol": null}, "content": "400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 370.0, "y": 347.0}, {"x": 400.0, "y": 347.0}, {"x": 400.0, "y": 357.0}, {"x": 370.0, "y": 356.0}]}], "spans": [{"offset": 502, "length": 6}], "confidence": 0.07}}, "content": "AMOUNT DUE :\n$ 400.00\n$ 400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 346.0}, {"x": 535.0, "y": 346.0}, {"x": 535.0, "y": 359.0}, {"x": 152.0, "y": 359.0}]}], "spans": [{"offset": 487, "length": 30}], "confidence": 0.001}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Net. 30 Days", "content": "Net. 30 Days", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 319.0, "y": 215.0}, {"x": 374.0, "y": 215.0}, {"x": 374.0, "y": 226.0}, {"x": 319.0, "y": 226.0}]}], "spans": [{"offset": 307, "length": 12}], "confidence": 0.096}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. Box 25065", "road": null, "city": "Richmond", "state": "Va.", "postal_code": "23260", "country_region": null, "street_address": "P.O. Box 25065"}, "content": "P.O. Box 25065, Richmond,Va. 23260", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 177.0, "y": 547.0}, {"x": 345.0, "y": 545.0}, {"x": 345.0, "y": 559.0}, {"x": 177.0, "y": 560.0}]}], "spans": [{"offset": 574, "length": 34}], "confidence": 0.002}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "LEESBURG TURNPIKE.", "city": "VIENNA", "state": "VA BRICO", "postal_code": null, "country_region": "U.S.A", "street_address": "LEESBURG TURNPIKE."}, "content": "92OO LEESBURG TURNPIKE. VIENNA, VA BRICO, U.S.A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 164.0, "y": 90.0}, {"x": 353.0, "y": 90.0}, {"x": 353.0, "y": 99.0}, {"x": 164.0, "y": 99.0}]}], "spans": [{"offset": 78, "length": 47}], "confidence": 0.005}, "VendorName": {"value_type": "string", "value": "HAZLETON\nLABORATORIES AMERICA, INC.", "content": "HAZLETON LABORATORIES AMERICA, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 163.0, "y": 59.0}, {"x": 303.0, "y": 59.0}, {"x": 303.0, "y": 88.0}, {"x": 163.0, "y": 88.0}]}], "spans": [{"offset": 42, "length": 35}], "confidence": 0.277}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/235_png.rf.e1a9f552071f8b0e8071dc5a1260e5af.json b/Data/test/235_png.rf.e1a9f552071f8b0e8071dc5a1260e5af.json new file mode 100644 index 0000000000000000000000000000000000000000..7626838bb52a4fd16eccd0fdcb7929ba346c3f3a --- /dev/null +++ b/Data/test/235_png.rf.e1a9f552071f8b0e8071dc5a1260e5af.json @@ -0,0 +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": 701}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "30", "po_box": null, "road": "Angle Hun Ou Marche EL Rue fonnu Nallss", "city": "Jeme", "state": null, "postal_code": null, "country_region": null, "street_address": "30 Angle Hun Ou Marche EL Rue fonnu Nallss"}, "content": "Angle Hun Ou Marche EL Rue fonnu Nallss, 30\nResidence Ben Said, Jeme Ltage, Aprt Ne,\nCasablanca, Casablanca, 20830\nMorocco", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 223.0}, {"x": 295.0, "y": 223.0}, {"x": 295.0, "y": 264.0}, {"x": 151.0, "y": 264.0}]}], "spans": [{"offset": 106, "length": 122}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "Scademus Management And Business\nAbdelaziz Rida", "content": "Scademus Management And Business\nAbdelaziz Rida", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 153.0, "y": 198.0}, {"x": 275.0, "y": 202.0}, {"x": 275.0, "y": 224.0}, {"x": 152.0, "y": 220.0}]}], "spans": [{"offset": 58, "length": 47}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Scademus Management And Business\nAbdelaziz Rida", "content": "Scademus Management And Business\nAbdelaziz Rida", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 153.0, "y": 198.0}, {"x": 275.0, "y": 202.0}, {"x": 275.0, "y": 224.0}, {"x": 152.0, "y": 220.0}]}], "spans": [{"offset": 58, "length": 47}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": null, "content": "14/10/2070", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 291.0}, {"x": 187.0, "y": 290.0}, {"x": 187.0, "y": 299.0}, {"x": 151.0, "y": 298.0}]}], "spans": [{"offset": 249, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "#191466", "content": "#191466", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 200.0, "y": 146.0}, {"x": 249.0, "y": 146.0}, {"x": 249.0, "y": 159.0}, {"x": 200.0, "y": 159.0}]}], "spans": [{"offset": 40, "length": 7}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2597.26, "symbol": null}, "content": "2597.26 Dhs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 417.0, "y": 495.0}, {"x": 459.0, "y": 496.0}, {"x": 459.0, "y": 505.0}, {"x": 417.0, "y": 504.0}]}], "spans": [{"offset": 678, "length": 11}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3317.0, "symbol": null}, "content": "3317.00 Dhs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 420.0, "y": 376.0}, {"x": 463.0, "y": 379.0}, {"x": 462.0, "y": 390.0}, {"x": 419.0, "y": 387.0}]}], "spans": [{"offset": 416, "length": 11}], "confidence": null}, "Description": {"value_type": "string", "value": "Pack Performance+ - academus coaching.ma - 1 An/s *", "content": "Pack Performance+ - academus coaching.ma - 1 An/s *", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 374.0}, {"x": 347.0, "y": 374.0}, {"x": 347.0, "y": 387.0}, {"x": 160.0, "y": 387.0}]}], "spans": [{"offset": 364, "length": 51}], "confidence": null}}, "content": "Pack Performance+ - academus coaching.ma - 1 An/s *\n3317.00 Dhs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 374.0}, {"x": 462.0, "y": 374.0}, {"x": 462.0, "y": 388.0}, {"x": 160.0, "y": 388.0}]}], "spans": [{"offset": 364, "length": 63}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1160.95, "symbol": null}, "content": "1160,95 Dhs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 421.0, "y": 395.0}, {"x": 463.0, "y": 396.0}, {"x": 463.0, "y": 405.0}, {"x": 421.0, "y": 404.0}]}], "spans": [{"offset": 495, "length": 11}], "confidence": null}, "Description": {"value_type": "string", "value": "Code promotionnel: WELCOMEPERFORMANCE - 35.00% Orn time\nDiscount \"", "content": "Code promotionnel: WELCOMEPERFORMANCE - 35.00% Orn time Discount \"", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 392.0}, {"x": 383.0, "y": 392.0}, {"x": 383.0, "y": 412.0}, {"x": 159.0, "y": 412.0}]}], "spans": [{"offset": 428, "length": 66}], "confidence": null}}, "content": "Code promotionnel: WELCOMEPERFORMANCE - 35.00% Orn time Discount \"\n1160,95 Dhs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 392.0}, {"x": 463.0, "y": 392.0}, {"x": 463.0, "y": 412.0}, {"x": 159.0, "y": 412.0}]}], "spans": [{"offset": 428, "length": 78}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00 Dhs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 425.0, "y": 425.0}, {"x": 455.0, "y": 426.0}, {"x": 455.0, "y": 435.0}, {"x": 425.0, "y": 434.0}]}], "spans": [{"offset": 571, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "Enregistrement nom de domaine: academus-coaching.ma - 1 Any's \"", "content": "Enregistrement nom de domaine: academus-coaching.ma - 1 Any's \"", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 421.0}, {"x": 391.0, "y": 421.0}, {"x": 391.0, "y": 434.0}, {"x": 159.0, "y": 434.0}]}], "spans": [{"offset": 507, "length": 63}], "confidence": null}}, "content": "Enregistrement nom de domaine: academus-coaching.ma - 1 Any's \"\n0.00 Dhs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 420.0}, {"x": 455.0, "y": 423.0}, {"x": 455.0, "y": 435.0}, {"x": 159.0, "y": 432.0}]}], "spans": [{"offset": 507, "length": 72}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Carte Bancaire", "content": "Carte Bancaire", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 435.0, "y": 294.0}, {"x": 482.0, "y": 295.0}, {"x": 482.0, "y": 304.0}, {"x": 435.0, "y": 302.0}]}], "spans": [{"offset": 329, "length": 14}], "confidence": null}, "RemittanceAddressRecipient": {"value_type": "string", "value": "ADK Necia 54M\nMarocco", "content": "ADK Necia 54M Marocco", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 205.0}, {"x": 486.0, "y": 205.0}, {"x": 486.0, "y": 225.0}, {"x": 433.0, "y": 225.0}]}], "spans": [{"offset": 290, "length": 21}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 2156.05, "symbol": null}, "content": "2156,05 0hs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 419.0, "y": 442.0}, {"x": 461.0, "y": 443.0}, {"x": 461.0, "y": 452.0}, {"x": 419.0, "y": 451.0}]}], "spans": [{"offset": 591, "length": 11}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 431.21, "symbol": null}, "content": "431.21 Dhs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 421.0, "y": 460.0}, {"x": 458.0, "y": 461.0}, {"x": 458.0, "y": 470.0}, {"x": 421.0, "y": 469.0}]}], "spans": [{"offset": 646, "length": 10}], "confidence": null}, "VendorName": {"value_type": "string", "value": "ADK\nMEDIA", "content": "ADK\nMEDIA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 162.0, "y": 99.0}, {"x": 230.0, "y": 100.0}, {"x": 230.0, "y": 132.0}, {"x": 162.0, "y": 131.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/249_jpg.rf.96b97ab103e1e7f6ca51db4036a2171d.json b/Data/test/249_jpg.rf.96b97ab103e1e7f6ca51db4036a2171d.json new file mode 100644 index 0000000000000000000000000000000000000000..4b6540b2805c009524a7d7e7703b164c46b19f73 --- /dev/null +++ b/Data/test/249_jpg.rf.96b97ab103e1e7f6ca51db4036a2171d.json @@ -0,0 +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": 986}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "5/238", "po_box": null, "road": "T.J Rzad Jurian, ,Sowri West Hambu, Maharashtra INDA", "city": null, "state": null, "postal_code": "400035", "country_region": null, "street_address": "5/238 T.J Rzad Jurian, ,Sowri West Hambu, Maharashtra INDA"}, "content": "Julet House,5/238, . T.J Rzad Jurian, ,Sowri West Hambu, Maharashtra INDA 400035", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 356.0, "y": 238.0}, {"x": 356.0, "y": 467.0}, {"x": 347.0, "y": 467.0}, {"x": 347.0, "y": 238.0}]}], "spans": [{"offset": 363, "length": 80}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "Juliet Apparel- PvLLIS", "content": "Juliet Apparel- PvLLIS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 365.0, "y": 270.0}, {"x": 369.0, "y": 326.0}, {"x": 360.0, "y": 327.0}, {"x": 356.0, "y": 271.0}]}], "spans": [{"offset": 311, "length": 22}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Juliet Apparel- PvLLIS", "content": "Juliet Apparel- PvLLIS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 365.0, "y": 270.0}, {"x": 369.0, "y": 326.0}, {"x": 360.0, "y": 327.0}, {"x": 356.0, "y": 271.0}]}], "spans": [{"offset": 311, "length": 22}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": null, "content": "06-Aug-2030", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 450.0, "y": 426.0}, {"x": 451.0, "y": 457.0}, {"x": 444.0, "y": 458.0}, {"x": 444.0, "y": 426.0}]}], "spans": [{"offset": 197, "length": 11}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 799.0, "symbol": null}, "content": "799 00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 321.0, "y": 501.0}, {"x": 321.0, "y": 518.0}, {"x": 315.0, "y": 518.0}, {"x": 315.0, "y": 501.0}]}], "spans": [{"offset": 655, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "010001900000787 - Julliet\nWomens Nun Partied Non Weed\nCut & Sow 61455 Ph\u1ea7n Wh\u00e0ng\nCotton Polyester Spandex Bra\n(34DO)(340D)\nUOM-No", "content": "010001900000787 - Julliet Womens Nun Partied Non Weed Cut & Sow 61455 Ph\u1ea7n Wh\u00e0ng Cotton Polyester Spandex Bra (34DO)(340D) UOM-No", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 318.0, "y": 90.0}, {"x": 318.0, "y": 185.0}, {"x": 275.0, "y": 185.0}, {"x": 275.0, "y": 90.0}]}], "spans": [{"offset": 504, "length": 129}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 780.95, "symbol": null}, "content": "780.95", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 317.0, "y": 263.0}, {"x": 318.0, "y": 282.0}, {"x": 312.0, "y": 282.0}, {"x": 311.0, "y": 263.0}]}], "spans": [{"offset": 636, "length": 6}], "confidence": null}}, "content": "010001900000787 - Julliet Womens Nun Partied Non Weed Cut & Sow 61455 Ph\u1ea7n Wh\u00e0ng Cotton Polyester Spandex Bra (34DO)(340D) UOM-No\n-\n780.95\n0.00\n780.95\n799 00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 321.0, "y": 90.0}, {"x": 321.0, "y": 518.0}, {"x": 275.0, "y": 518.0}, {"x": 275.0, "y": 90.0}]}], "spans": [{"offset": 504, "length": 157}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 591.06, "symbol": null}, "content": "591.06", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 277.0, "y": 503.0}, {"x": 277.0, "y": 520.0}, {"x": 271.0, "y": 521.0}, {"x": 270.0, "y": 503.0}]}], "spans": [{"offset": 808, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "D10001900000211 - Julet Non\nPadded Non Wired Cut & Sow\nPlain Cotton Minimiser Bes -\nBlack (3400)(34DD)\nJOM No", "content": "D10001900000211 - Julet Non Padded Non Wired Cut & Sow Plain Cotton Minimiser Bes - Black (3400)(34DD) JOM No", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 272.0, "y": 88.0}, {"x": 272.0, "y": 178.0}, {"x": 234.0, "y": 178.0}, {"x": 234.0, "y": 88.0}]}], "spans": [{"offset": 664, "length": 109}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 568.67, "symbol": null}, "content": "568.67", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 271.0, "y": 263.0}, {"x": 271.0, "y": 281.0}, {"x": 265.0, "y": 281.0}, {"x": 265.0, "y": 263.0}]}], "spans": [{"offset": 779, "length": 6}], "confidence": null}}, "content": "2\nD10001900000211 - Julet Non Padded Non Wired Cut & Sow Plain Cotton Minimiser Bes - Black (3400)(34DD) JOM No\n6212\n568.67\n0.00 560.67\n0.00\n5.00\n591.06", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 277.0, "y": 68.0}, {"x": 277.0, "y": 521.0}, {"x": 234.0, "y": 521.0}, {"x": 234.0, "y": 68.0}]}], "spans": [{"offset": 662, "length": 152}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 237.0, "y": 473.0}, {"x": 237.0, "y": 485.0}, {"x": 231.0, "y": 485.0}, {"x": 231.0, "y": 473.0}]}], "spans": [{"offset": 839, "length": 4}], "confidence": null}, "Description": {"value_type": "string", "value": "coo Cham", "content": "coo Cham", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 231.0, "y": 88.0}, {"x": 230.0, "y": 119.0}, {"x": 222.0, "y": 119.0}, {"x": 223.0, "y": 88.0}]}], "spans": [{"offset": 815, "length": 8}], "confidence": null}}, "content": "coo Cham\n0 00\n0.00\n0.00\n0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 237.0, "y": 88.0}, {"x": 237.0, "y": 485.0}, {"x": 223.0, "y": 485.0}, {"x": 223.0, "y": 88.0}]}], "spans": [{"offset": 815, "length": 28}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 227.0, "y": 474.0}, {"x": 227.0, "y": 486.0}, {"x": 221.0, "y": 486.0}, {"x": 221.0, "y": 474.0}]}], "spans": [{"offset": 885, "length": 4}], "confidence": null}, "Description": {"value_type": "string", "value": "Shipping Charge", "content": "Shipping Charge", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 219.0, "y": 88.0}, {"x": 220.0, "y": 136.0}, {"x": 212.0, "y": 136.0}, {"x": 211.0, "y": 88.0}]}], "spans": [{"offset": 844, "length": 15}], "confidence": null}}, "content": "Shipping Charge\n0.00 0.00\n0,00\n0.08\n0.00\n0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 227.0, "y": 88.0}, {"x": 227.0, "y": 486.0}, {"x": 211.0, "y": 486.0}, {"x": 211.0, "y": 88.0}]}], "spans": [{"offset": 844, "length": 45}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Prepaid", "content": "Prepaid", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 418.0, "y": 427.0}, {"x": 419.0, "y": 446.0}, {"x": 412.0, "y": 447.0}, {"x": 413.0, "y": 427.0}]}], "spans": [{"offset": 271, "length": 7}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 1327.62, "symbol": null}, "content": "1327.62", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 190.0, "y": 505.0}, {"x": 191.0, "y": 528.0}, {"x": 183.0, "y": 528.0}, {"x": 183.0, "y": 506.0}]}], "spans": [{"offset": 938, "length": 7}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 68.38, "symbol": null}, "content": "68.38", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 177.0, "y": 513.0}, {"x": 178.0, "y": 528.0}, {"x": 171.0, "y": 528.0}, {"x": 170.0, "y": 513.0}]}], "spans": [{"offset": 959, "length": 5}], "confidence": null}, "VendorName": {"value_type": "string", "value": "NYKAA", "content": "NYKAA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 471.0, "y": 103.0}, {"x": 470.0, "y": 201.0}, {"x": 429.0, "y": 201.0}, {"x": 430.0, "y": 103.0}]}], "spans": [{"offset": 0, "length": 5}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/253_jpg.rf.f8acb475f7f7b8717313cc93f8fb7477.json b/Data/test/253_jpg.rf.f8acb475f7f7b8717313cc93f8fb7477.json new file mode 100644 index 0000000000000000000000000000000000000000..4e3cb6dde0ffd4a9cc5944409700beae768444a6 --- /dev/null +++ b/Data/test/253_jpg.rf.f8acb475f7f7b8717313cc93f8fb7477.json @@ -0,0 +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": 612}], "fields": {"VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "I ST PHASE KPHE COLONY.\nKUKATPALLY", "city": "HYDERABAD", "state": "TELANGANA", "postal_code": "500072", "country_region": "INDIA", "street_address": "I ST PHASE KPHE COLONY.\nKUKATPALLY FLAT NO 202"}, "content": "FLAT NO 202, PKR COMPLEX DPP- RR MOTORS, I ST PHASE KPHE COLONY. KUKATPALLY HYDERABAD TELANGANA INDIA 500072", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 378.0, "y": 68.0}, {"x": 539.0, "y": 68.0}, {"x": 539.0, "y": 104.0}, {"x": 378.0, "y": 104.0}]}], "spans": [{"offset": 38, "length": 108}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "FFCO TURISTIEN INS CO LTD", "content": "FFCO TURISTIEN INS CO LTD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 380.0, "y": 69.0}, {"x": 459.0, "y": 69.0}, {"x": 459.0, "y": 77.0}, {"x": 380.0, "y": 77.0}]}], "spans": [{"offset": 12, "length": 25}], "confidence": null}, "VendorName": {"value_type": "string", "value": "IFFCO-TOKIO", "content": "IFFCO-TOKIO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 287.0, "y": 80.0}, {"x": 335.0, "y": 79.0}, {"x": 335.0, "y": 90.0}, {"x": 288.0, "y": 89.0}]}], "spans": [{"offset": 0, "length": 11}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/260_jpg.rf.02d88b6b90f048c2501493107ec7fa52.json b/Data/test/260_jpg.rf.02d88b6b90f048c2501493107ec7fa52.json new file mode 100644 index 0000000000000000000000000000000000000000..ab61f01247cd6c293281c13c976195e8a538153e --- /dev/null +++ b/Data/test/260_jpg.rf.02d88b6b90f048c2501493107ec7fa52.json @@ -0,0 +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": 1073}], "fields": {"CustomerId": {"value_type": "string", "value": "XXXXXX", "content": "XXXXXX", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 147.0}, {"x": 168.0, "y": 147.0}, {"x": 168.0, "y": 155.0}, {"x": 138.0, "y": 155.0}]}], "spans": [{"offset": 212, "length": 6}], "confidence": 0.423}, "InvoiceDate": {"value_type": "date", "value": "2021-08-03", "content": "08/03/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 90.0}, {"x": 510.0, "y": 91.0}, {"x": 510.0, "y": 103.0}, {"x": 463.0, "y": 104.0}]}], "spans": [{"offset": 90, "length": 10}], "confidence": 0.573}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 31232.85, "symbol": "$"}, "content": "$31232.85", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 516.0, "y": 440.0}, {"x": 553.0, "y": 440.0}, {"x": 553.0, "y": 449.0}, {"x": 516.0, "y": 449.0}]}], "spans": [{"offset": 976, "length": 9}], "confidence": 0.717}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3106.0, "symbol": "$"}, "content": "$3106", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 529.0, "y": 189.0}, {"x": 551.0, "y": 189.0}, {"x": 551.0, "y": 198.0}, {"x": 529.0, "y": 198.0}]}], "spans": [{"offset": 434, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "LARIAT LUXURY PACKAGE", "content": "LARIAT LUXURY PACKAGE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 189.0}, {"x": 428.0, "y": 189.0}, {"x": 428.0, "y": 199.0}, {"x": 331.0, "y": 199.0}]}], "spans": [{"offset": 406, "length": 21}], "confidence": null}}, "content": "LARIAT LUXURY PACKAGE\n$3340\n$3106", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 189.0}, {"x": 551.0, "y": 189.0}, {"x": 551.0, "y": 199.0}, {"x": 331.0, "y": 199.0}]}], "spans": [{"offset": 406, "length": 33}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 24180.0, "symbol": "$"}, "content": "$24180", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 262.0, "y": 190.0}, {"x": 288.0, "y": 190.0}, {"x": 288.0, "y": 199.0}, {"x": 262.0, "y": 198.0}]}], "spans": [{"offset": 399, "length": 6}], "confidence": null}}, "content": "$24180", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 262.0, "y": 190.0}, {"x": 288.0, "y": 190.0}, {"x": 288.0, "y": 199.0}, {"x": 262.0, "y": 198.0}]}], "spans": [{"offset": 399, "length": 6}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": null}, "content": "50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 542.0, "y": 206.0}, {"x": 550.0, "y": 206.0}, {"x": 550.0, "y": 214.0}, {"x": 542.0, "y": 214.0}]}], "spans": [{"offset": 489, "length": 2}], "confidence": null}, "Description": {"value_type": "string", "value": "TRAILER HITCH RECEIVER", "content": "TRAILER HITCH RECEIVER", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 334.0, "y": 205.0}, {"x": 431.0, "y": 205.0}, {"x": 431.0, "y": 215.0}, {"x": 334.0, "y": 215.0}]}], "spans": [{"offset": 463, "length": 22}], "confidence": null}}, "content": "TRAILER HITCH RECEIVER\n50\n50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 334.0, "y": 205.0}, {"x": 550.0, "y": 205.0}, {"x": 550.0, "y": 215.0}, {"x": 334.0, "y": 215.0}]}], "spans": [{"offset": 463, "length": 28}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 502.0, "symbol": "$"}, "content": "$502", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 534.0, "y": 288.0}, {"x": 551.0, "y": 288.0}, {"x": 551.0, "y": 297.0}, {"x": 533.0, "y": 297.0}]}], "spans": [{"offset": 703, "length": 4}], "confidence": null}, "Description": {"value_type": "string", "value": "FORD CO-PILOT360", "content": "FORD CO-PILOT360", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 287.0}, {"x": 404.0, "y": 288.0}, {"x": 404.0, "y": 299.0}, {"x": 331.0, "y": 298.0}]}], "spans": [{"offset": 681, "length": 16}], "confidence": null}}, "content": "FORD CO-PILOT360\n$540\n$502", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 288.0}, {"x": 551.0, "y": 288.0}, {"x": 551.0, "y": 298.0}, {"x": 331.0, "y": 298.0}]}], "spans": [{"offset": 681, "length": 26}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 47.85, "symbol": "$"}, "content": "$47.85", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 527.0, "y": 322.0}, {"x": 550.0, "y": 322.0}, {"x": 550.0, "y": 330.0}, {"x": 528.0, "y": 330.0}]}], "spans": [{"offset": 784, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "FUEL CHARGE", "content": "FUEL CHARGE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 320.0}, {"x": 385.0, "y": 321.0}, {"x": 385.0, "y": 331.0}, {"x": 331.0, "y": 330.0}]}], "spans": [{"offset": 772, "length": 11}], "confidence": null}}, "content": "FUEL CHARGE\n$47.85\nPOWER TILT/SLIDE MOON ROOF\n$739\nPRICED DORA\n$0\nFULL SIZE SPARE TIRE\nDESTINATION & DELIVERY\n$1495\n51495", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 68.0, "y": 321.0}, {"x": 551.0, "y": 321.0}, {"x": 551.0, "y": 364.0}, {"x": 68.0, "y": 364.0}]}], "spans": [{"offset": 772, "length": 121}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorName": {"value_type": "string", "value": "Ford", "content": "Ford", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 99.0, "y": 43.0}, {"x": 159.0, "y": 44.0}, {"x": 159.0, "y": 74.0}, {"x": 99.0, "y": 73.0}]}], "spans": [{"offset": 0, "length": 4}], "confidence": 0.846}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/262_jpg.rf.8192e9a45db72c61d7fc5b9fc2ffe673.json b/Data/test/262_jpg.rf.8192e9a45db72c61d7fc5b9fc2ffe673.json new file mode 100644 index 0000000000000000000000000000000000000000..59add128951f7b9f1d3d4bb53f569a9e85f1601d --- /dev/null +++ b/Data/test/262_jpg.rf.8192e9a45db72c61d7fc5b9fc2ffe673.json @@ -0,0 +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": 926}], "fields": {"CustomerId": {"value_type": "string", "value": "[1234567890]", "content": "[1234567890]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 422.0, "y": 447.0}, {"x": 470.0, "y": 446.0}, {"x": 470.0, "y": 457.0}, {"x": 422.0, "y": 457.0}]}], "spans": [{"offset": 635, "length": 12}], "confidence": null}, "DueDate": {"value_type": "date", "value": "2016-03-10", "content": "Mar 10, 2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 461.0, "y": 195.0}, {"x": 506.0, "y": 195.0}, {"x": 506.0, "y": 203.0}, {"x": 461.0, "y": 203.0}]}], "spans": [{"offset": 200, "length": 12}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2016-02-23", "content": "Feb 23, 2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 175.0}, {"x": 506.0, "y": 175.0}, {"x": 506.0, "y": 184.0}, {"x": 464.0, "y": 184.0}]}], "spans": [{"offset": 178, "length": 12}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 400.5, "symbol": null}, "content": "7,400.5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 481.0, "y": 362.0}, {"x": 506.0, "y": 362.0}, {"x": 506.0, "y": 370.0}, {"x": 481.0, "y": 370.0}]}], "spans": [{"offset": 486, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 980.0, "symbol": null}, "content": "980.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 488.0, "y": 245.0}, {"x": 506.0, "y": 245.0}, {"x": 506.0, "y": 252.0}, {"x": 488.0, "y": 252.0}]}], "spans": [{"offset": 293, "length": 5}], "confidence": 0.13}, "Description": {"value_type": "string", "value": "Cras dapibus dapibus nisi", "content": "Cras dapibus dapibus nisi", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 171.0, "y": 245.0}, {"x": 256.0, "y": 245.0}, {"x": 256.0, "y": 254.0}, {"x": 171.0, "y": 254.0}]}], "spans": [{"offset": 259, "length": 25}], "confidence": 0.777}, "ProductCode": {"value_type": "string", "value": "152819", "content": "152819", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 245.0}, {"x": 159.0, "y": 245.0}, {"x": 159.0, "y": 253.0}, {"x": 137.0, "y": 253.0}]}], "spans": [{"offset": 252, "length": 6}], "confidence": 0.108}, "Quantity": {"value_type": "float", "value": 4.0, "content": "4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 365.0, "y": 246.0}, {"x": 368.0, "y": 246.0}, {"x": 368.0, "y": 253.0}, {"x": 364.0, "y": 253.0}]}], "spans": [{"offset": 285, "length": 1}], "confidence": 0.226}, "UnitPrice": {"value_type": "currency", "value": {"amount": 245.1, "symbol": null}, "content": "245.1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 244.0}, {"x": 421.0, "y": 244.0}, {"x": 421.0, "y": 252.0}, {"x": 404.0, "y": 253.0}]}], "spans": [{"offset": 287, "length": 5}], "confidence": 0.105}}, "content": "152819\nCras dapibus dapibus nisi\n4\n245.1\n980.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 244.0}, {"x": 506.0, "y": 244.0}, {"x": 506.0, "y": 254.0}, {"x": 137.0, "y": 254.0}]}], "spans": [{"offset": 252, "length": 46}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 976.0, "symbol": null}, "content": "2,976.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 262.0}, {"x": 506.0, "y": 262.0}, {"x": 506.0, "y": 270.0}, {"x": 482.0, "y": 270.0}]}], "spans": [{"offset": 336, "length": 7}], "confidence": 0.179}, "Description": {"value_type": "string", "value": "Vestibulum quis dolor", "content": "Vestibulum quis dolor", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 262.0}, {"x": 244.0, "y": 262.0}, {"x": 244.0, "y": 271.0}, {"x": 170.0, "y": 271.0}]}], "spans": [{"offset": 305, "length": 21}], "confidence": 0.76}, "ProductCode": {"value_type": "string", "value": "ISHU2", "content": "ISHU2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 262.0}, {"x": 159.0, "y": 262.0}, {"x": 159.0, "y": 271.0}, {"x": 137.0, "y": 270.0}]}], "spans": [{"offset": 299, "length": 5}], "confidence": 0.18}, "Quantity": {"value_type": "float", "value": 24.0, "content": "24", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 262.0}, {"x": 371.0, "y": 262.0}, {"x": 371.0, "y": 270.0}, {"x": 362.0, "y": 270.0}]}], "spans": [{"offset": 327, "length": 2}], "confidence": 0.262}, "UnitPrice": {"value_type": "currency", "value": {"amount": 124.0, "symbol": null}, "content": "124.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 405.0, "y": 261.0}, {"x": 423.0, "y": 262.0}, {"x": 422.0, "y": 270.0}, {"x": 404.0, "y": 269.0}]}], "spans": [{"offset": 330, "length": 5}], "confidence": 0.189}}, "content": "ISHU2\nVestibulum quis dolor\n24\n124.0\n2,976.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 261.0}, {"x": 506.0, "y": 261.0}, {"x": 506.0, "y": 271.0}, {"x": 136.0, "y": 271.0}]}], "spans": [{"offset": 299, "length": 44}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 480.0, "symbol": null}, "content": "2,480.0\n2,480.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 481.0, "y": 278.0}, {"x": 507.0, "y": 279.0}, {"x": 507.0, "y": 288.0}, {"x": 481.0, "y": 287.0}]}], "spans": [{"offset": 377, "length": 7}, {"offset": 410, "length": 7}], "confidence": 0.455}, "Description": {"value_type": "string", "value": "Curabicor non eros", "content": "Curabicor non eros", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 278.0}, {"x": 235.0, "y": 279.0}, {"x": 235.0, "y": 288.0}, {"x": 170.0, "y": 287.0}]}], "spans": [{"offset": 350, "length": 18}], "confidence": 0.658}, "ProductCode": {"value_type": "string", "value": "ISEDH", "content": "ISEDH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 278.0}, {"x": 157.0, "y": 278.0}, {"x": 157.0, "y": 287.0}, {"x": 138.0, "y": 287.0}]}], "spans": [{"offset": 344, "length": 5}], "confidence": 0.134}, "UnitPrice": {"value_type": "currency", "value": {"amount": 240.0, "symbol": null}, "content": "1,240.0\n1,240.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 401.0, "y": 278.0}, {"x": 426.0, "y": 279.0}, {"x": 426.0, "y": 288.0}, {"x": 401.0, "y": 287.0}]}], "spans": [{"offset": 369, "length": 7}, {"offset": 402, "length": 7}], "confidence": null}}, "content": "ISEDH\nCurabicor non eros\n1,240.0\n2,480.0\n1,240.0\n2,480.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 272.0}, {"x": 507.0, "y": 279.0}, {"x": 507.0, "y": 294.0}, {"x": 138.0, "y": 287.0}]}], "spans": [{"offset": 344, "length": 40}, {"offset": 402, "length": 15}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"IBAN": {"value_type": "string", "value": "[1234567890)", "content": "[1234567890)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 372.0, "y": 477.0}, {"x": 422.0, "y": 477.0}, {"x": 422.0, "y": 487.0}, {"x": 372.0, "y": 487.0}]}], "spans": [{"offset": 738, "length": 12}], "confidence": 0.562}}, "content": null, "bounding_regions": [], "spans": [], "confidence": 0.995}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddressRecipient": {"value_type": "string", "value": "PayPal", "content": "PayPal", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 415.0}, {"x": 197.0, "y": 417.0}, {"x": 197.0, "y": 431.0}, {"x": 152.0, "y": 430.0}]}], "spans": [{"offset": 517, "length": 6}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 436.0, "symbol": null}, "content": "6,436.0\n6,436.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 481.0, "y": 312.0}, {"x": 506.0, "y": 312.0}, {"x": 506.0, "y": 320.0}, {"x": 481.0, "y": 320.0}]}], "spans": [{"offset": 394, "length": 7}, {"offset": 427, "length": 7}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 514.9, "symbol": null}, "content": "514.9", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 487.0, "y": 329.0}, {"x": 507.0, "y": 329.0}, {"x": 506.0, "y": 337.0}, {"x": 487.0, "y": 336.0}]}], "spans": [{"offset": 448, "length": 5}], "confidence": null}, "VendorName": {"value_type": "string", "value": "PayPal", "content": "PayPal", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 415.0}, {"x": 197.0, "y": 417.0}, {"x": 197.0, "y": 431.0}, {"x": 152.0, "y": 430.0}]}], "spans": [{"offset": 517, "length": 6}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/264_jpg.rf.b70a2dea0b6bc4570d3e35f6d906ea5a.json b/Data/test/264_jpg.rf.b70a2dea0b6bc4570d3e35f6d906ea5a.json new file mode 100644 index 0000000000000000000000000000000000000000..f5a119e183c0006889bd78f4e47fe9415d047cce --- /dev/null +++ b/Data/test/264_jpg.rf.b70a2dea0b6bc4570d3e35f6d906ea5a.json @@ -0,0 +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": 2359}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "1234", "po_box": null, "road": "Watchmakers Way", "city": "New", "state": "NY", "postal_code": "10028", "country_region": null, "street_address": "1234 Watchmakers Way"}, "content": "1234 Watchmakers Way\nNew , NY 10028", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 112.0}, {"x": 187.0, "y": 112.0}, {"x": 187.0, "y": 132.0}, {"x": 105.0, "y": 132.0}]}], "spans": [{"offset": 149, "length": 35}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "At Clock Makers\nJack Marrow", "content": "At Clock Makers\nJack Marrow", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 106.0, "y": 89.0}, {"x": 166.0, "y": 91.0}, {"x": 166.0, "y": 112.0}, {"x": 106.0, "y": 111.0}]}], "spans": [{"offset": 121, "length": 27}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "At Clock Makers\nJack Marrow", "content": "At Clock Makers\nJack Marrow", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 106.0, "y": 89.0}, {"x": 166.0, "y": 91.0}, {"x": 166.0, "y": 112.0}, {"x": 106.0, "y": 111.0}]}], "spans": [{"offset": 121, "length": 27}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2012-02-02", "content": "February 02, 2012", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 429.0, "y": 26.0}, {"x": 484.0, "y": 26.0}, {"x": 484.0, "y": 35.0}, {"x": 429.0, "y": 35.0}]}], "spans": [{"offset": 95, "length": 17}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "8820001544", "content": "8820001544", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 429.0, "y": 15.0}, {"x": 465.0, "y": 15.0}, {"x": 465.0, "y": 21.0}, {"x": 429.0, "y": 22.0}]}], "spans": [{"offset": 70, "length": 10}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 55815.2, "symbol": null}, "content": "55815.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 516.0, "y": 590.0}, {"x": 542.0, "y": 590.0}, {"x": 542.0, "y": 597.0}, {"x": 516.0, "y": 597.0}]}], "spans": [{"offset": 2351, "length": 8}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Description": {"value_type": "string", "value": "Professional Fees", "content": "Professional Fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 107.0, "y": 158.0}, {"x": 158.0, "y": 159.0}, {"x": 158.0, "y": 168.0}, {"x": 107.0, "y": 167.0}]}], "spans": [{"offset": 241, "length": 17}], "confidence": null}}, "content": "Professional Fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 107.0, "y": 158.0}, {"x": 158.0, "y": 159.0}, {"x": 158.0, "y": 168.0}, {"x": 107.0, "y": 167.0}]}], "spans": [{"offset": 241, "length": 17}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1450.0, "symbol": "$"}, "content": "$1,450.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 513.0, "y": 159.0}, {"x": 541.0, "y": 159.0}, {"x": 541.0, "y": 166.0}, {"x": 514.0, "y": 167.0}]}], "spans": [{"offset": 285, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Fixed Price", "content": "Fixed Price", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 107.0, "y": 167.0}, {"x": 141.0, "y": 169.0}, {"x": 141.0, "y": 178.0}, {"x": 107.0, "y": 177.0}]}], "spans": [{"offset": 259, "length": 11}], "confidence": null}, "Quantity": {"value_type": "float", "value": 14.5, "content": "14 50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 159.0}, {"x": 416.0, "y": 159.0}, {"x": 416.0, "y": 166.0}, {"x": 400.0, "y": 166.0}]}], "spans": [{"offset": 271, "length": 5}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 450.0, "y": 159.0}, {"x": 472.0, "y": 159.0}, {"x": 472.0, "y": 167.0}, {"x": 450.0, "y": 167.0}]}], "spans": [{"offset": 277, "length": 7}], "confidence": null}}, "content": "Fixed Price\n14 50\n$100.00\n$1,450.00 52,110.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 107.0, "y": 159.0}, {"x": 542.0, "y": 159.0}, {"x": 542.0, "y": 177.0}, {"x": 107.0, "y": 177.0}]}], "spans": [{"offset": 259, "length": 45}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 518.0, "y": 249.0}, {"x": 541.0, "y": 249.0}, {"x": 542.0, "y": 256.0}, {"x": 519.0, "y": 256.0}]}], "spans": [{"offset": 474, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-22", "content": "05/22/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 249.0}, {"x": 130.0, "y": 248.0}, {"x": 131.0, "y": 256.0}, {"x": 97.0, "y": 256.0}]}], "spans": [{"offset": 426, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "SeW review and editing", "content": "SeW review and editing", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 249.0}, {"x": 206.0, "y": 249.0}, {"x": 206.0, "y": 258.0}, {"x": 137.0, "y": 258.0}]}], "spans": [{"offset": 437, "length": 22}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 248.0}, {"x": 416.0, "y": 248.0}, {"x": 416.0, "y": 256.0}, {"x": 404.0, "y": 256.0}]}], "spans": [{"offset": 460, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$ 100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 249.0}, {"x": 473.0, "y": 249.0}, {"x": 473.0, "y": 256.0}, {"x": 448.0, "y": 256.0}]}], "spans": [{"offset": 465, "length": 8}], "confidence": null}}, "content": "05/22/2009\nSeW review and editing\n1.00\n$ 100.00\n$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 248.0}, {"x": 542.0, "y": 248.0}, {"x": 542.0, "y": 258.0}, {"x": 97.0, "y": 258.0}]}], "spans": [{"offset": 426, "length": 55}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5400.0, "symbol": null}, "content": "5400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 257.0}, {"x": 542.0, "y": 258.0}, {"x": 542.0, "y": 265.0}, {"x": 519.0, "y": 265.0}]}], "spans": [{"offset": 546, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-22", "content": "05/22/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 257.0}, {"x": 130.0, "y": 257.0}, {"x": 130.0, "y": 266.0}, {"x": 97.0, "y": 265.0}]}], "spans": [{"offset": 482, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Creatives for infrastructure document.", "content": "Creatives for infrastructure document.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 257.0}, {"x": 245.0, "y": 257.0}, {"x": 245.0, "y": 266.0}, {"x": 137.0, "y": 266.0}]}], "spans": [{"offset": 493, "length": 38}], "confidence": null}, "Quantity": {"value_type": "float", "value": 4.0, "content": "4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 403.0, "y": 257.0}, {"x": 417.0, "y": 257.0}, {"x": 417.0, "y": 265.0}, {"x": 403.0, "y": 264.0}]}], "spans": [{"offset": 532, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$ 100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 257.0}, {"x": 473.0, "y": 257.0}, {"x": 473.0, "y": 265.0}, {"x": 448.0, "y": 265.0}]}], "spans": [{"offset": 537, "length": 8}], "confidence": null}}, "content": "05/22/2009 Creatives for infrastructure document.\n4.00\n$ 100.00\n5400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 257.0}, {"x": 542.0, "y": 257.0}, {"x": 542.0, "y": 266.0}, {"x": 97.0, "y": 266.0}]}], "spans": [{"offset": 482, "length": 71}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 522.0, "y": 267.0}, {"x": 541.0, "y": 267.0}, {"x": 541.0, "y": 274.0}, {"x": 523.0, "y": 274.0}]}], "spans": [{"offset": 641, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-22", "content": "05/22/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 266.0}, {"x": 130.0, "y": 266.0}, {"x": 131.0, "y": 274.0}, {"x": 97.0, "y": 274.0}]}], "spans": [{"offset": 554, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Benderod creativas in various formats and packages for chent.", "content": "Benderod creativas in various formats and packages for chent.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 266.0}, {"x": 312.0, "y": 266.0}, {"x": 312.0, "y": 276.0}, {"x": 137.0, "y": 276.0}]}], "spans": [{"offset": 565, "length": 61}], "confidence": null}, "Quantity": {"value_type": "float", "value": 0.5, "content": "0.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 403.0, "y": 267.0}, {"x": 416.0, "y": 267.0}, {"x": 416.0, "y": 274.0}, {"x": 403.0, "y": 274.0}]}], "spans": [{"offset": 627, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$ 100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 267.0}, {"x": 473.0, "y": 267.0}, {"x": 473.0, "y": 275.0}, {"x": 448.0, "y": 275.0}]}], "spans": [{"offset": 632, "length": 8}], "confidence": null}}, "content": "05/22/2009\nBenderod creativas in various formats and packages for chent.\n0.50\n$ 100.00\n$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 266.0}, {"x": 541.0, "y": 266.0}, {"x": 541.0, "y": 276.0}, {"x": 97.0, "y": 276.0}]}], "spans": [{"offset": 554, "length": 93}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 350.0, "symbol": "$"}, "content": "$350.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 276.0}, {"x": 541.0, "y": 277.0}, {"x": 541.0, "y": 284.0}, {"x": 519.0, "y": 284.0}]}], "spans": [{"offset": 746, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-26", "content": "05/26/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 276.0}, {"x": 130.0, "y": 276.0}, {"x": 130.0, "y": 284.0}, {"x": 97.0, "y": 284.0}]}], "spans": [{"offset": 648, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Created infrastructure for Project Alpha and passed on overview sheet to", "content": "Created infrastructure for Project Alpha and passed on overview sheet to", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 276.0}, {"x": 343.0, "y": 276.0}, {"x": 343.0, "y": 285.0}, {"x": 138.0, "y": 285.0}]}], "spans": [{"offset": 659, "length": 72}], "confidence": null}, "Quantity": {"value_type": "float", "value": 3.5, "content": "3.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 276.0}, {"x": 416.0, "y": 276.0}, {"x": 416.0, "y": 283.0}, {"x": 404.0, "y": 283.0}]}], "spans": [{"offset": 732, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 300.0, "symbol": "$"}, "content": "$ 300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 276.0}, {"x": 474.0, "y": 276.0}, {"x": 474.0, "y": 284.0}, {"x": 448.0, "y": 284.0}]}], "spans": [{"offset": 737, "length": 8}], "confidence": null}}, "content": "05/26/2009 Created infrastructure for Project Alpha and passed on overview sheet to\n3.50\n$ 300.00\n$350.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 276.0}, {"x": 541.0, "y": 276.0}, {"x": 541.0, "y": 285.0}, {"x": 97.0, "y": 285.0}]}], "spans": [{"offset": 648, "length": 105}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 523.0, "y": 294.0}, {"x": 542.0, "y": 294.0}, {"x": 542.0, "y": 302.0}, {"x": 523.0, "y": 302.0}]}], "spans": [{"offset": 847, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-01", "content": "05/01/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 295.0}, {"x": 130.0, "y": 295.0}, {"x": 130.0, "y": 303.0}, {"x": 97.0, "y": 303.0}]}], "spans": [{"offset": 754, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Created copies of overview and distributed in team. Updated project\ntracker for client.", "content": "Created copies of overview and distributed in team. Updated project\ntracker for client.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 294.0}, {"x": 333.0, "y": 294.0}, {"x": 333.0, "y": 312.0}, {"x": 137.0, "y": 312.0}]}], "spans": [{"offset": 765, "length": 67}, {"offset": 854, "length": 19}], "confidence": null}, "Quantity": {"value_type": "float", "value": 0.5, "content": "0.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 403.0, "y": 295.0}, {"x": 416.0, "y": 295.0}, {"x": 416.0, "y": 302.0}, {"x": 403.0, "y": 302.0}]}], "spans": [{"offset": 833, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$ 100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 294.0}, {"x": 473.0, "y": 295.0}, {"x": 473.0, "y": 304.0}, {"x": 448.0, "y": 303.0}]}], "spans": [{"offset": 838, "length": 8}], "confidence": null}}, "content": "05/01/2009 Created copies of overview and distributed in team. Updated project\n0.50\n$ 100.00\n$50.00\ntracker for client.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 294.0}, {"x": 542.0, "y": 294.0}, {"x": 542.0, "y": 312.0}, {"x": 97.0, "y": 312.0}]}], "spans": [{"offset": 754, "length": 119}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 150.0, "symbol": "$"}, "content": "$150.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 518.0, "y": 313.0}, {"x": 541.0, "y": 313.0}, {"x": 542.0, "y": 320.0}, {"x": 519.0, "y": 320.0}]}], "spans": [{"offset": 996, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-27", "content": "05/27/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 313.0}, {"x": 130.0, "y": 312.0}, {"x": 130.0, "y": 321.0}, {"x": 97.0, "y": 320.0}]}], "spans": [{"offset": 874, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Created a project highlight chess-cheet, as requested by client, for Richard\nand Lisa's meeting.", "content": "Created a project highlight chess-cheet, as requested by client, for Richard and Lisa's meeting.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 312.0}, {"x": 347.0, "y": 312.0}, {"x": 347.0, "y": 331.0}, {"x": 137.0, "y": 331.0}]}], "spans": [{"offset": 885, "length": 96}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.5, "content": "1.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 312.0}, {"x": 416.0, "y": 312.0}, {"x": 416.0, "y": 320.0}, {"x": 404.0, "y": 320.0}]}], "spans": [{"offset": 982, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 300.0, "symbol": "$"}, "content": "$ 300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 313.0}, {"x": 473.0, "y": 313.0}, {"x": 473.0, "y": 320.0}, {"x": 448.0, "y": 320.0}]}], "spans": [{"offset": 987, "length": 8}], "confidence": null}}, "content": "05/27/2009\nCreated a project highlight chess-cheet, as requested by client, for Richard and Lisa's meeting.\n1.50\n$ 300.00\n$150.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 312.0}, {"x": 542.0, "y": 312.0}, {"x": 542.0, "y": 331.0}, {"x": 97.0, "y": 331.0}]}], "spans": [{"offset": 874, "length": 129}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 200.0, "symbol": "$"}, "content": "$200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 332.0}, {"x": 542.0, "y": 332.0}, {"x": 542.0, "y": 340.0}, {"x": 519.0, "y": 339.0}]}], "spans": [{"offset": 1079, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-28", "content": "05/28/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 332.0}, {"x": 130.0, "y": 331.0}, {"x": 131.0, "y": 340.0}, {"x": 98.0, "y": 339.0}]}], "spans": [{"offset": 1004, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Met with Lita in apec out future phase of project", "content": "Met with Lita in apec out future phase of project", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 331.0}, {"x": 276.0, "y": 331.0}, {"x": 276.0, "y": 341.0}, {"x": 137.0, "y": 341.0}]}], "spans": [{"offset": 1015, "length": 49}], "confidence": null}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 332.0}, {"x": 416.0, "y": 332.0}, {"x": 416.0, "y": 338.0}, {"x": 404.0, "y": 338.0}]}], "spans": [{"offset": 1065, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$ 100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 449.0, "y": 331.0}, {"x": 473.0, "y": 331.0}, {"x": 473.0, "y": 339.0}, {"x": 449.0, "y": 339.0}]}], "spans": [{"offset": 1070, "length": 8}], "confidence": null}}, "content": "05/28/2009\nMet with Lita in apec out future phase of project\n2.00\n$ 100.00\n$200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 331.0}, {"x": 542.0, "y": 331.0}, {"x": 542.0, "y": 341.0}, {"x": 98.0, "y": 341.0}]}], "spans": [{"offset": 1004, "length": 82}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 150.0, "symbol": "$"}, "content": "$150.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 341.0}, {"x": 541.0, "y": 341.0}, {"x": 541.0, "y": 349.0}, {"x": 519.0, "y": 348.0}]}], "spans": [{"offset": 1153, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-29", "content": "05/29/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 341.0}, {"x": 130.0, "y": 341.0}, {"x": 130.0, "y": 348.0}, {"x": 98.0, "y": 348.0}]}], "spans": [{"offset": 1087, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Created rough SoW per Lisa's instructions", "content": "Created rough SoW per Lisa's instructions", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 341.0}, {"x": 258.0, "y": 341.0}, {"x": 258.0, "y": 350.0}, {"x": 138.0, "y": 350.0}]}], "spans": [{"offset": 1098, "length": 41}], "confidence": null}, "Quantity": {"value_type": "float", "value": 150.0, "content": "150", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 341.0}, {"x": 416.0, "y": 341.0}, {"x": 416.0, "y": 347.0}, {"x": 404.0, "y": 347.0}]}], "spans": [{"offset": 1140, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$ 100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 449.0, "y": 341.0}, {"x": 473.0, "y": 341.0}, {"x": 473.0, "y": 348.0}, {"x": 449.0, "y": 348.0}]}], "spans": [{"offset": 1144, "length": 8}], "confidence": null}}, "content": "05/29/2009\nCreated rough SoW per Lisa's instructions\n150\n$ 100.00\n$150.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 341.0}, {"x": 541.0, "y": 341.0}, {"x": 541.0, "y": 350.0}, {"x": 98.0, "y": 350.0}]}], "spans": [{"offset": 1087, "length": 73}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 51500.0, "symbol": null}, "content": "51500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 383.0}, {"x": 542.0, "y": 382.0}, {"x": 542.0, "y": 390.0}, {"x": 516.0, "y": 390.0}]}], "spans": [{"offset": 1900, "length": 8}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-15", "content": "05/15/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 382.0}, {"x": 130.0, "y": 382.0}, {"x": 131.0, "y": 390.0}, {"x": 98.0, "y": 389.0}]}], "spans": [{"offset": 1243, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Fixed-price charge for use of our Analytic software.", "content": "Fixed-price charge for use of our Analytic software.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 382.0}, {"x": 286.0, "y": 382.0}, {"x": 286.0, "y": 391.0}, {"x": 137.0, "y": 391.0}]}], "spans": [{"offset": 1254, "length": 52}], "confidence": null}}, "content": "05/15/2009\nFixed-price charge for use of our Analytic software.\n51500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 382.0}, {"x": 542.0, "y": 382.0}, {"x": 542.0, "y": 391.0}, {"x": 98.0, "y": 391.0}]}], "spans": [{"offset": 1243, "length": 63}, {"offset": 1900, "length": 8}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 15.0, "symbol": "$"}, "content": "$15.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 522.0, "y": 391.0}, {"x": 542.0, "y": 391.0}, {"x": 542.0, "y": 399.0}, {"x": 522.0, "y": 398.0}]}], "spans": [{"offset": 1360, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-22", "content": "05/22/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 391.0}, {"x": 130.0, "y": 391.0}, {"x": 130.0, "y": 399.0}, {"x": 97.0, "y": 399.0}]}], "spans": [{"offset": 1307, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "DVD creston for infrastructure creativex.", "content": "DVD creston for infrastructure creativex.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 392.0}, {"x": 255.0, "y": 392.0}, {"x": 255.0, "y": 400.0}, {"x": 138.0, "y": 400.0}]}], "spans": [{"offset": 1318, "length": 41}], "confidence": null}}, "content": "05/22/2009\nDVD creston for infrastructure creativex.\n$15.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 391.0}, {"x": 542.0, "y": 391.0}, {"x": 542.0, "y": 400.0}, {"x": 97.0, "y": 400.0}]}], "spans": [{"offset": 1307, "length": 59}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 598.0, "symbol": null}, "content": "598.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 522.0, "y": 401.0}, {"x": 541.0, "y": 400.0}, {"x": 541.0, "y": 408.0}, {"x": 523.0, "y": 407.0}]}], "spans": [{"offset": 1409, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-24", "content": "05/24/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 401.0}, {"x": 130.0, "y": 400.0}, {"x": 130.0, "y": 408.0}, {"x": 98.0, "y": 408.0}]}], "spans": [{"offset": 1367, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Stock photos for Beta project.", "content": "Stock photos for Beta project.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 401.0}, {"x": 222.0, "y": 401.0}, {"x": 222.0, "y": 409.0}, {"x": 138.0, "y": 409.0}]}], "spans": [{"offset": 1378, "length": 30}], "confidence": null}}, "content": "05/24/2009\nStock photos for Beta project.\n598.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 400.0}, {"x": 541.0, "y": 400.0}, {"x": 541.0, "y": 409.0}, {"x": 97.0, "y": 409.0}]}], "spans": [{"offset": 1367, "length": 48}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5100.0, "symbol": null}, "content": "5100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 518.0, "y": 410.0}, {"x": 541.0, "y": 410.0}, {"x": 541.0, "y": 417.0}, {"x": 519.0, "y": 417.0}]}], "spans": [{"offset": 1468, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-24", "content": "05/24/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 409.0}, {"x": 130.0, "y": 409.0}, {"x": 131.0, "y": 417.0}, {"x": 97.0, "y": 417.0}]}], "spans": [{"offset": 1416, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "binder package of optional stock photos.", "content": "binder package of optional stock photos.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 410.0}, {"x": 252.0, "y": 410.0}, {"x": 252.0, "y": 418.0}, {"x": 138.0, "y": 418.0}]}], "spans": [{"offset": 1427, "length": 40}], "confidence": null}}, "content": "05/24/2009\nbinder package of optional stock photos.\n5100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 409.0}, {"x": 541.0, "y": 409.0}, {"x": 541.0, "y": 418.0}, {"x": 97.0, "y": 418.0}]}], "spans": [{"offset": 1416, "length": 59}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 47.0, "symbol": "$"}, "content": "$47.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 522.0, "y": 419.0}, {"x": 541.0, "y": 419.0}, {"x": 542.0, "y": 427.0}, {"x": 522.0, "y": 426.0}]}], "spans": [{"offset": 1500, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-28", "content": "05/28/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 419.0}, {"x": 130.0, "y": 418.0}, {"x": 131.0, "y": 426.0}, {"x": 97.0, "y": 426.0}]}], "spans": [{"offset": 1476, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "stock photos", "content": "stock photos", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 419.0}, {"x": 174.0, "y": 419.0}, {"x": 174.0, "y": 428.0}, {"x": 137.0, "y": 428.0}]}], "spans": [{"offset": 1487, "length": 12}], "confidence": null}}, "content": "05/28/2009\nstock photos\n$47.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 418.0}, {"x": 542.0, "y": 418.0}, {"x": 542.0, "y": 428.0}, {"x": 97.0, "y": 428.0}]}], "spans": [{"offset": 1476, "length": 30}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 428.0}, {"x": 542.0, "y": 428.0}, {"x": 542.0, "y": 436.0}, {"x": 519.0, "y": 436.0}]}], "spans": [{"offset": 1909, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-06-01", "content": "06/01/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 428.0}, {"x": 130.0, "y": 428.0}, {"x": 130.0, "y": 436.0}, {"x": 97.0, "y": 436.0}]}], "spans": [{"offset": 1917, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Mondly maintenance plan.", "content": "Mondly maintenance plan.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 428.0}, {"x": 214.0, "y": 428.0}, {"x": 214.0, "y": 437.0}, {"x": 137.0, "y": 437.0}]}], "spans": [{"offset": 1928, "length": 24}], "confidence": null}}, "content": "$100.00\n06/01/2009 Mondly maintenance plan.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 428.0}, {"x": 542.0, "y": 428.0}, {"x": 542.0, "y": 437.0}, {"x": 97.0, "y": 437.0}]}], "spans": [{"offset": 1909, "length": 43}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 438.0}, {"x": 541.0, "y": 438.0}, {"x": 541.0, "y": 446.0}, {"x": 519.0, "y": 445.0}]}], "spans": [{"offset": 1953, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-06-01", "content": "06/01/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 438.0}, {"x": 130.0, "y": 437.0}, {"x": 131.0, "y": 445.0}, {"x": 97.0, "y": 445.0}]}], "spans": [{"offset": 1961, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Weekly status update charge.", "content": "Weekly status update charge.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 438.0}, {"x": 220.0, "y": 438.0}, {"x": 220.0, "y": 446.0}, {"x": 137.0, "y": 446.0}]}], "spans": [{"offset": 1972, "length": 28}], "confidence": null}}, "content": "$100.00\n06/01/2009\nWeekly status update charge.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 437.0}, {"x": 541.0, "y": 437.0}, {"x": 541.0, "y": 446.0}, {"x": 97.0, "y": 446.0}]}], "spans": [{"offset": 1953, "length": 47}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5150.0, "symbol": null}, "content": "5150.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 447.0}, {"x": 542.0, "y": 446.0}, {"x": 542.0, "y": 454.0}, {"x": 519.0, "y": 454.0}]}], "spans": [{"offset": 2001, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-06-02", "content": "06/02/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 446.0}, {"x": 130.0, "y": 446.0}, {"x": 130.0, "y": 454.0}, {"x": 97.0, "y": 453.0}]}], "spans": [{"offset": 2009, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Final Analytics Report", "content": "Final Analytics Report", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 445.0}, {"x": 204.0, "y": 446.0}, {"x": 204.0, "y": 455.0}, {"x": 137.0, "y": 454.0}]}], "spans": [{"offset": 2020, "length": 22}], "confidence": null}}, "content": "5150.00\n06/02/2009 Final Analytics Report", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 439.0}, {"x": 542.0, "y": 446.0}, {"x": 542.0, "y": 460.0}, {"x": 97.0, "y": 454.0}]}], "spans": [{"offset": 2001, "length": 41}], "confidence": null}, {"value_type": "dictionary", "value": {"Date": {"value_type": "date", "value": "2009-05-24", "content": "05/24/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 488.0}, {"x": 130.0, "y": 488.0}, {"x": 131.0, "y": 496.0}, {"x": 97.0, "y": 496.0}]}], "spans": [{"offset": 2085, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Glas and travel charger", "content": "Glas and travel charger", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 489.0}, {"x": 201.0, "y": 489.0}, {"x": 201.0, "y": 497.0}, {"x": 137.0, "y": 497.0}]}], "spans": [{"offset": 2096, "length": 23}], "confidence": null}}, "content": "05/24/2009\nGlas and travel charger", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 488.0}, {"x": 201.0, "y": 488.0}, {"x": 201.0, "y": 497.0}, {"x": 97.0, "y": 497.0}]}], "spans": [{"offset": 2085, "length": 34}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 458.14, "symbol": null}, "content": "458.14", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 523.0, "y": 497.0}, {"x": 542.0, "y": 497.0}, {"x": 542.0, "y": 504.0}, {"x": 523.0, "y": 504.0}]}], "spans": [{"offset": 2168, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-27", "content": "05/27/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 498.0}, {"x": 130.0, "y": 498.0}, {"x": 130.0, "y": 506.0}, {"x": 97.0, "y": 505.0}]}], "spans": [{"offset": 2120, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Reimburable supplies, printouts, etc", "content": "Reimburable supplies, printouts, etc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 498.0}, {"x": 242.0, "y": 498.0}, {"x": 242.0, "y": 506.0}, {"x": 138.0, "y": 506.0}]}], "spans": [{"offset": 2131, "length": 36}], "confidence": null}}, "content": "05/27/2009\nReimburable supplies, printouts, etc\n458.14", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 497.0}, {"x": 542.0, "y": 497.0}, {"x": 542.0, "y": 506.0}, {"x": 97.0, "y": 506.0}]}], "spans": [{"offset": 2120, "length": 54}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 17.99, "symbol": "$"}, "content": "$17.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 523.0, "y": 506.0}, {"x": 542.0, "y": 506.0}, {"x": 542.0, "y": 513.0}, {"x": 523.0, "y": 513.0}]}], "spans": [{"offset": 2209, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-05-27", "content": "05/27/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 506.0}, {"x": 131.0, "y": 506.0}, {"x": 131.0, "y": 515.0}, {"x": 97.0, "y": 514.0}]}], "spans": [{"offset": 2175, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Gas and travel charges", "content": "Gas and travel charges", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 506.0}, {"x": 201.0, "y": 508.0}, {"x": 201.0, "y": 516.0}, {"x": 137.0, "y": 515.0}]}], "spans": [{"offset": 2186, "length": 22}], "confidence": null}}, "content": "05/27/2009\nGas and travel charges\n$17.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 499.0}, {"x": 542.0, "y": 506.0}, {"x": 542.0, "y": 521.0}, {"x": 97.0, "y": 514.0}]}], "spans": [{"offset": 2175, "length": 40}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 34.16, "symbol": "$"}, "content": "$34.16", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 522.0, "y": 516.0}, {"x": 542.0, "y": 516.0}, {"x": 541.0, "y": 524.0}, {"x": 522.0, "y": 523.0}]}], "spans": [{"offset": 2265, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-06-02", "content": "06/02/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 516.0}, {"x": 130.0, "y": 515.0}, {"x": 130.0, "y": 523.0}, {"x": 97.0, "y": 523.0}]}], "spans": [{"offset": 2216, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Beimharsable supplies, printists, etc", "content": "Beimharsable supplies, printists, etc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 515.0}, {"x": 242.0, "y": 517.0}, {"x": 242.0, "y": 525.0}, {"x": 138.0, "y": 523.0}]}], "spans": [{"offset": 2227, "length": 37}], "confidence": null}}, "content": "06/02/2009\nBeimharsable supplies, printists, etc\n$34.16", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 510.0}, {"x": 542.0, "y": 516.0}, {"x": 542.0, "y": 529.0}, {"x": 97.0, "y": 523.0}]}], "spans": [{"offset": 2216, "length": 55}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 550.0, "symbol": null}, "content": "550.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 522.0, "y": 524.0}, {"x": 542.0, "y": 524.0}, {"x": 542.0, "y": 532.0}, {"x": 522.0, "y": 532.0}]}], "spans": [{"offset": 2283, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-06-02", "content": "06/02/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 525.0}, {"x": 131.0, "y": 524.0}, {"x": 131.0, "y": 533.0}, {"x": 97.0, "y": 533.0}]}], "spans": [{"offset": 2272, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Installation issue with client's project tracking software. Paid software\ntech support Recommended EnterYourlious.com which is web booed so\nit never has installation issues and support is free.", "content": "Installation issue with client's project tracking software. Paid software\ntech support Recommended EnterYourlious.com which is web booed so\nit never has installation issues and support is free.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 525.0}, {"x": 346.0, "y": 525.0}, {"x": 346.0, "y": 552.0}, {"x": 137.0, "y": 552.0}]}], "spans": [{"offset": 1560, "length": 193}], "confidence": null}}, "content": "Installation issue with client's project tracking software. Paid software\ntech support Recommended EnterYourlious.com which is web booed so\nit never has installation issues and support is free.\n06/02/2009\n550.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 524.0}, {"x": 542.0, "y": 524.0}, {"x": 542.0, "y": 552.0}, {"x": 97.0, "y": 552.0}]}], "spans": [{"offset": 1560, "length": 193}, {"offset": 2272, "length": 17}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 522.26, "symbol": null}, "content": "522.26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 522.0, "y": 553.0}, {"x": 542.0, "y": 552.0}, {"x": 542.0, "y": 560.0}, {"x": 522.0, "y": 560.0}]}], "spans": [{"offset": 2290, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-06-02", "content": "06/02/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 552.0}, {"x": 130.0, "y": 552.0}, {"x": 130.0, "y": 561.0}, {"x": 97.0, "y": 560.0}]}], "spans": [{"offset": 1754, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Reimbursable copies and paper charges", "content": "Reimbursable copies and paper charges", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 552.0}, {"x": 249.0, "y": 552.0}, {"x": 249.0, "y": 561.0}, {"x": 137.0, "y": 561.0}]}], "spans": [{"offset": 1765, "length": 37}], "confidence": null}}, "content": "06/02/2009 Reimbursable copies and paper charges\n522.26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 552.0}, {"x": 542.0, "y": 552.0}, {"x": 542.0, "y": 561.0}, {"x": 97.0, "y": 561.0}]}], "spans": [{"offset": 1754, "length": 48}, {"offset": 2290, "length": 6}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 16.38, "symbol": "$"}, "content": "$16.38", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 522.0, "y": 561.0}, {"x": 542.0, "y": 561.0}, {"x": 542.0, "y": 569.0}, {"x": 522.0, "y": 569.0}]}], "spans": [{"offset": 2297, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-06-02", "content": "06/02/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 561.0}, {"x": 131.0, "y": 561.0}, {"x": 131.0, "y": 570.0}, {"x": 97.0, "y": 570.0}]}], "spans": [{"offset": 1803, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Travel expenses - gas", "content": "Travel expenses - gas", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 561.0}, {"x": 199.0, "y": 562.0}, {"x": 199.0, "y": 571.0}, {"x": 138.0, "y": 570.0}]}], "spans": [{"offset": 1814, "length": 21}], "confidence": null}}, "content": "06/02/2009\nTravel expenses - gas\n$16.38", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 561.0}, {"x": 542.0, "y": 561.0}, {"x": 542.0, "y": 571.0}, {"x": 97.0, "y": 571.0}]}], "spans": [{"offset": 1803, "length": 32}, {"offset": 2297, "length": 6}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 517.84, "symbol": null}, "content": "517.84", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 523.0, "y": 570.0}, {"x": 543.0, "y": 570.0}, {"x": 543.0, "y": 577.0}, {"x": 523.0, "y": 578.0}]}], "spans": [{"offset": 2304, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2009-06-02", "content": "06/62/2009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 571.0}, {"x": 130.0, "y": 571.0}, {"x": 130.0, "y": 579.0}, {"x": 97.0, "y": 579.0}]}], "spans": [{"offset": 1844, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Reimbursable copier and peper charges.", "content": "Reimbursable copier and peper charges.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 571.0}, {"x": 249.0, "y": 571.0}, {"x": 249.0, "y": 581.0}, {"x": 138.0, "y": 581.0}]}], "spans": [{"offset": 1855, "length": 38}], "confidence": null}}, "content": "06/62/2009\nReimbursable copier and peper charges.\n517.84", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 570.0}, {"x": 543.0, "y": 570.0}, {"x": 543.0, "y": 581.0}, {"x": 97.0, "y": 581.0}]}], "spans": [{"offset": 1844, "length": 49}, {"offset": 2304, "length": 6}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "12345", "po_box": null, "road": "Testway Rd", "city": "Testing", "state": "FL", "postal_code": "33318", "country_region": null, "street_address": "12345 Testway Rd"}, "content": "12345 Testway Rd Testing, FL 33318", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 35.0}, {"x": 158.0, "y": 35.0}, {"x": 158.0, "y": 56.0}, {"x": 93.0, "y": 56.0}]}], "spans": [{"offset": 35, "length": 34}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "Power Consult IT\nRE: Richard Green", "content": "Power Consult IT RE: Richard Green", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 13.0}, {"x": 162.0, "y": 13.0}, {"x": 162.0, "y": 34.0}, {"x": 93.0, "y": 34.0}]}], "spans": [{"offset": 0, "length": 34}], "confidence": null}, "VendorName": {"value_type": "string", "value": "Power\nConsultit", "content": "Power\nConsultit", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 38.0}, {"x": 514.0, "y": 43.0}, {"x": 513.0, "y": 84.0}, {"x": 350.0, "y": 79.0}]}], "spans": [{"offset": 185, "length": 15}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/265_jpg.rf.c927ebdebec47cb7a83983b6bdb83d73.json b/Data/test/265_jpg.rf.c927ebdebec47cb7a83983b6bdb83d73.json new file mode 100644 index 0000000000000000000000000000000000000000..6d8133d5f1c2202be0d7407b5b47a659062153cc --- /dev/null +++ b/Data/test/265_jpg.rf.c927ebdebec47cb7a83983b6bdb83d73.json @@ -0,0 +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": 938}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P O BOX 299", "road": null, "city": "LOWELL", "state": "MA", "postal_code": "01853-0239", "country_region": null, "street_address": "P O BOX 299"}, "content": "P O BOX 299 LOWELL, MA 01853-0239", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 129.0}, {"x": 224.0, "y": 128.0}, {"x": 224.0, "y": 145.0}, {"x": 124.0, "y": 146.0}]}], "spans": [{"offset": 114, "length": 33}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "ALBERT H NOTINI AND SONS INC", "content": "ALBERT H NOTINI AND SONS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 121.0}, {"x": 256.0, "y": 121.0}, {"x": 256.0, "y": 131.0}, {"x": 124.0, "y": 131.0}]}], "spans": [{"offset": 85, "length": 28}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "ALBERT H NOTINI AND SONS INC", "content": "ALBERT H NOTINI AND SONS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 121.0}, {"x": 256.0, "y": 121.0}, {"x": 256.0, "y": 131.0}, {"x": 124.0, "y": 131.0}]}], "spans": [{"offset": 85, "length": 28}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1997-06-05", "content": "06 | 05/97", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 409.0, "y": 121.0}, {"x": 452.0, "y": 121.0}, {"x": 452.0, "y": 131.0}, {"x": 409.0, "y": 131.0}]}], "spans": [{"offset": 189, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "90312033", "content": "90312033", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 474.0, "y": 123.0}, {"x": 511.0, "y": 123.0}, {"x": 511.0, "y": 131.0}, {"x": 475.0, "y": 131.0}]}], "spans": [{"offset": 180, "length": 8}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2234.8, "symbol": null}, "content": "2,234.80", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 471.0, "y": 594.0}, {"x": 508.0, "y": 594.0}, {"x": 508.0, "y": 602.0}, {"x": 472.0, "y": 602.0}]}], "spans": [{"offset": 856, "length": 8}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2218.86, "symbol": null}, "content": "2,218.86", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 474.0, "y": 250.0}, {"x": 511.0, "y": 250.0}, {"x": 511.0, "y": 258.0}, {"x": 474.0, "y": 259.0}]}], "spans": [{"offset": 411, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "Tree Goods Tax Basic\nFREE GOODS TAX ADJ CN INV800213801 DID 5-9-97", "content": "Tree Goods Tax Basic\nFREE GOODS TAX ADJ CN INV800213801 DID 5-9-97", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 162.0, "y": 250.0}, {"x": 386.0, "y": 250.0}, {"x": 386.0, "y": 272.0}, {"x": 162.0, "y": 272.0}]}], "spans": [{"offset": 390, "length": 20}, {"offset": 420, "length": 45}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "2M12", "content": "2M12", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 250.0}, {"x": 153.0, "y": 250.0}, {"x": 153.0, "y": 258.0}, {"x": 134.0, "y": 258.0}]}], "spans": [{"offset": 385, "length": 4}], "confidence": null}}, "content": "2M12\nTree Goods Tax Basic\n2,218.86\nFREE GOODS TAX ADJ CN INV800213801 DID 5-9-97", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 250.0}, {"x": 511.0, "y": 250.0}, {"x": 511.0, "y": 272.0}, {"x": 134.0, "y": 272.0}]}], "spans": [{"offset": 385, "length": 80}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 2218.0, "symbol": null}, "content": "2,218.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 472.0, "y": 564.0}, {"x": 509.0, "y": 565.0}, {"x": 508.0, "y": 572.0}, {"x": 472.0, "y": 572.0}]}], "spans": [{"offset": 847, "length": 8}], "confidence": null}, "VendorName": {"value_type": "string", "value": "PHILIP MORRIS\nINCORPORATED", "content": "PHILIP MORRIS\nINCORPORATED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 62.0}, {"x": 390.0, "y": 62.0}, {"x": 390.0, "y": 97.0}, {"x": 223.0, "y": 97.0}]}], "spans": [{"offset": 42, "length": 26}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/269_jpg.rf.a3136c1428a18dd5989e31269aadd521.json b/Data/test/269_jpg.rf.a3136c1428a18dd5989e31269aadd521.json new file mode 100644 index 0000000000000000000000000000000000000000..e3e4b5ee58a87d48a5f616783a11f7145c256577 --- /dev/null +++ b/Data/test/269_jpg.rf.a3136c1428a18dd5989e31269aadd521.json @@ -0,0 +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": 454}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 76.47, "symbol": null}, "content": "76.47", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 488.0, "y": 360.0}, {"x": 508.0, "y": 361.0}, {"x": 507.0, "y": 370.0}, {"x": 488.0, "y": 369.0}]}], "spans": [{"offset": 423, "length": 5}], "confidence": 0.845}, "BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "NEW YORK", "state": "NY", "postal_code": "10016", "country_region": null, "street_address": ""}, "content": "ONE PARK AVENUE NEW YORK, NY 10016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 349.0, "y": 244.0}, {"x": 432.0, "y": 246.0}, {"x": 432.0, "y": 264.0}, {"x": 349.0, "y": 263.0}]}], "spans": [{"offset": 246, "length": 34}], "confidence": 0.504}, "BillingAddressRecipient": {"value_type": "string", "value": "LORILLARD\nATTN MR ALAN SADOVNICK", "content": "LORILLARD\nATTN\nMR ALAN SADOVNICK", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 350.0, "y": 236.0}, {"x": 458.0, "y": 237.0}, {"x": 458.0, "y": 273.0}, {"x": 350.0, "y": 272.0}]}], "spans": [{"offset": 236, "length": 9}, {"offset": 281, "length": 4}, {"offset": 288, "length": 17}], "confidence": 0.472}, "CustomerName": {"value_type": "string", "value": "LORILLARD", "content": "LORILLARD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 192.0, "y": 233.0}, {"x": 236.0, "y": 233.0}, {"x": 236.0, "y": 242.0}, {"x": 192.0, "y": 241.0}]}], "spans": [{"offset": 101, "length": 9}], "confidence": 0.271}, "DueDate": {"value_type": "date", "value": "1995-01-30", "content": "JANUARY 30, 1995", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 392.0, "y": 226.0}, {"x": 462.0, "y": 229.0}, {"x": 462.0, "y": 239.0}, {"x": 392.0, "y": 237.0}]}], "spans": [{"offset": 219, "length": 16}], "confidence": 0.868}, "InvoiceDate": {"value_type": "date", "value": "1995-01-16", "content": "01/16/95", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 174.0, "y": 214.0}, {"x": 206.0, "y": 215.0}, {"x": 205.0, "y": 225.0}, {"x": 174.0, "y": 224.0}]}], "spans": [{"offset": 85, "length": 8}], "confidence": 0.93}, "InvoiceId": {"value_type": "string", "value": "D-01-1605", "content": "D-01-1605", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 407.0, "y": 219.0}, {"x": 445.0, "y": 220.0}, {"x": 445.0, "y": 229.0}, {"x": 407.0, "y": 228.0}]}], "spans": [{"offset": 200, "length": 9}], "confidence": 0.712}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 76.47, "symbol": null}, "content": "76.47", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 488.0, "y": 360.0}, {"x": 508.0, "y": 361.0}, {"x": 507.0, "y": 370.0}, {"x": 488.0, "y": 369.0}]}], "spans": [{"offset": 423, "length": 5}], "confidence": 0.845}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 76.47, "symbol": null}, "content": "76.47", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 489.0, "y": 309.0}, {"x": 509.0, "y": 309.0}, {"x": 509.0, "y": 317.0}, {"x": 489.0, "y": 317.0}]}], "spans": [{"offset": 388, "length": 5}], "confidence": 0.277}, "Description": {"value_type": "string", "value": "KEYLINE ASSEMBLY STUDIO 15 \"", "content": "KEYLINE ASSEMBLY STUDIO 15 \"", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 300.0}, {"x": 240.0, "y": 302.0}, {"x": 240.0, "y": 314.0}, {"x": 112.0, "y": 312.0}]}], "spans": [{"offset": 347, "length": 28}], "confidence": 0.083}, "UnitPrice": {"value_type": "currency", "value": {"amount": 65.0, "symbol": null}, "content": "65.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 326.0, "y": 306.0}, {"x": 346.0, "y": 306.0}, {"x": 346.0, "y": 314.0}, {"x": 326.0, "y": 314.0}]}], "spans": [{"offset": 376, "length": 5}], "confidence": 0.098}}, "content": "KEYLINE ASSEMBLY STUDIO 15 \"\n65.00\n11.47\n76.47", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 300.0}, {"x": 509.0, "y": 306.0}, {"x": 509.0, "y": 318.0}, {"x": 112.0, "y": 312.0}]}], "spans": [{"offset": 347, "length": 46}], "confidence": 0.379}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "488", "po_box": null, "road": "Madison Avenue", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "488 Madison Avenue"}, "content": "488 Madison Avenue", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 149.0, "y": 72.0}, {"x": 202.0, "y": 72.0}, {"x": 202.0, "y": 80.0}, {"x": 149.0, "y": 80.0}]}], "spans": [{"offset": 23, "length": 18}], "confidence": 0.889}, "VendorAddressRecipient": {"value_type": "string", "value": "Rapp Collina Worldwide", "content": "Rapp Collina Worldwide", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 148.0, "y": 61.0}, {"x": 216.0, "y": 61.0}, {"x": 216.0, "y": 70.0}, {"x": 148.0, "y": 70.0}]}], "spans": [{"offset": 0, "length": 22}], "confidence": 0.861}, "VendorName": {"value_type": "string", "value": "Rapp Collins", "content": "Rapp Collins", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 434.0, "y": 124.0}, {"x": 508.0, "y": 125.0}, {"x": 508.0, "y": 144.0}, {"x": 434.0, "y": 143.0}]}], "spans": [{"offset": 175, "length": 12}], "confidence": 0.798}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/279_jpg.rf.091b6eed294a8e92060b26b394fc0262.json b/Data/test/279_jpg.rf.091b6eed294a8e92060b26b394fc0262.json new file mode 100644 index 0000000000000000000000000000000000000000..e09177ec64c84da313e2b35d10e0badcb2b86886 --- /dev/null +++ b/Data/test/279_jpg.rf.091b6eed294a8e92060b26b394fc0262.json @@ -0,0 +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": 639}], "fields": {"InvoiceDate": {"value_type": "date", "value": "2010-01-01", "content": "1/1/2010", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 77.0}, {"x": 509.0, "y": 77.0}, {"x": 509.0, "y": 85.0}, {"x": 482.0, "y": 85.0}]}], "spans": [{"offset": 135, "length": 8}], "confidence": null}, "VendorName": {"value_type": "string", "value": "R\nLOGO", "content": "R LOGO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 48.0}, {"x": 177.0, "y": 48.0}, {"x": 177.0, "y": 92.0}, {"x": 133.0, "y": 92.0}]}], "spans": [{"offset": 0, "length": 6}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/281_jpg.rf.6b0d8d384c3dac11c87d6b7bbec3a72c.json b/Data/test/281_jpg.rf.6b0d8d384c3dac11c87d6b7bbec3a72c.json new file mode 100644 index 0000000000000000000000000000000000000000..63a90cf2d615838f200345591fd8747b744df553 --- /dev/null +++ b/Data/test/281_jpg.rf.6b0d8d384c3dac11c87d6b7bbec3a72c.json @@ -0,0 +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": 612}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "00000", "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "00000"}, "content": "Anytown, CA 00000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 164.0}, {"x": 169.0, "y": 162.0}, {"x": 169.0, "y": 173.0}, {"x": 103.0, "y": 174.0}]}], "spans": [{"offset": 66, "length": 17}], "confidence": 0.155}, "DueDate": {"value_type": "date", "value": "2017-01-30", "content": "01/30/2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 146.0}, {"x": 530.0, "y": 145.0}, {"x": 530.0, "y": 159.0}, {"x": 473.0, "y": 159.0}]}], "spans": [{"offset": 295, "length": 10}], "confidence": 0.047}, "InvoiceDate": {"value_type": "date", "value": "2017-01-01", "content": "01/01/2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 327.0, "y": 146.0}, {"x": 383.0, "y": 147.0}, {"x": 383.0, "y": 159.0}, {"x": 327.0, "y": 158.0}]}], "spans": [{"offset": 257, "length": 10}], "confidence": 0.048}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 380.0, "symbol": null}, "content": "380.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 509.0, "y": 425.0}, {"x": 537.0, "y": 424.0}, {"x": 537.0, "y": 434.0}, {"x": 509.0, "y": 434.0}]}], "spans": [{"offset": 579, "length": 6}], "confidence": 0.216}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 200.0, "symbol": null}, "content": "200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 509.0, "y": 261.0}, {"x": 536.0, "y": 262.0}, {"x": 536.0, "y": 271.0}, {"x": 509.0, "y": 270.0}]}], "spans": [{"offset": 387, "length": 6}], "confidence": 0.002}, "Date": {"value_type": "date", "value": "2017-01-01", "content": "01/01/2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 283.0, "y": 261.0}, {"x": 330.0, "y": 261.0}, {"x": 330.0, "y": 271.0}, {"x": 284.0, "y": 270.0}]}], "spans": [{"offset": 367, "length": 10}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "Hem name\nDescription of this item", "content": "Hem name Description of this item", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 261.0}, {"x": 177.0, "y": 261.0}, {"x": 177.0, "y": 283.0}, {"x": 103.0, "y": 283.0}]}], "spans": [{"offset": 333, "length": 33}], "confidence": 0.002}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 388.0, "y": 261.0}, {"x": 393.0, "y": 261.0}, {"x": 393.0, "y": 270.0}, {"x": 388.0, "y": 270.0}]}], "spans": [{"offset": 378, "length": 1}], "confidence": 0.002}, "UnitPrice": {"value_type": "currency", "value": {"amount": 200.0, "symbol": null}, "content": "200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 262.0}, {"x": 464.0, "y": 261.0}, {"x": 464.0, "y": 270.0}, {"x": 438.0, "y": 270.0}]}], "spans": [{"offset": 380, "length": 6}], "confidence": 0.002}}, "content": "Hem name Description of this item\n01/01/2017\n1\n200.00\n200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 261.0}, {"x": 536.0, "y": 261.0}, {"x": 536.0, "y": 283.0}, {"x": 103.0, "y": 283.0}]}], "spans": [{"offset": 333, "length": 60}], "confidence": 0.004}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 100.0, "symbol": null}, "content": "100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 510.0, "y": 299.0}, {"x": 537.0, "y": 299.0}, {"x": 537.0, "y": 309.0}, {"x": 510.0, "y": 308.0}]}], "spans": [{"offset": 449, "length": 6}], "confidence": 0.002}, "Date": {"value_type": "date", "value": "2017-01-02", "content": "01/02/2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 284.0, "y": 298.0}, {"x": 330.0, "y": 298.0}, {"x": 331.0, "y": 308.0}, {"x": 284.0, "y": 308.0}]}], "spans": [{"offset": 429, "length": 10}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "Item name\nDescription of this item", "content": "Item name Description of this item", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 102.0, "y": 298.0}, {"x": 177.0, "y": 298.0}, {"x": 177.0, "y": 321.0}, {"x": 102.0, "y": 321.0}]}], "spans": [{"offset": 394, "length": 34}], "confidence": 0.002}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 388.0, "y": 298.0}, {"x": 392.0, "y": 298.0}, {"x": 392.0, "y": 307.0}, {"x": 389.0, "y": 307.0}]}], "spans": [{"offset": 440, "length": 1}], "confidence": 0.002}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": null}, "content": "100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 299.0}, {"x": 464.0, "y": 298.0}, {"x": 465.0, "y": 308.0}, {"x": 438.0, "y": 307.0}]}], "spans": [{"offset": 442, "length": 6}], "confidence": 0.002}}, "content": "Item name Description of this item\n01/02/2017\n1\n100.00\n100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 102.0, "y": 298.0}, {"x": 537.0, "y": 298.0}, {"x": 537.0, "y": 321.0}, {"x": 102.0, "y": 321.0}]}], "spans": [{"offset": 394, "length": 61}], "confidence": 0.004}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 100.0, "symbol": null}, "content": "100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 510.0, "y": 337.0}, {"x": 536.0, "y": 336.0}, {"x": 536.0, "y": 345.0}, {"x": 510.0, "y": 345.0}]}], "spans": [{"offset": 510, "length": 6}], "confidence": 0.002}, "Date": {"value_type": "date", "value": "2017-01-05", "content": "01/05/2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 283.0, "y": 336.0}, {"x": 330.0, "y": 336.0}, {"x": 331.0, "y": 346.0}, {"x": 284.0, "y": 345.0}]}], "spans": [{"offset": 490, "length": 10}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "Hem name\nDescription of this item", "content": "Hem name Description of this item", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 336.0}, {"x": 177.0, "y": 337.0}, {"x": 177.0, "y": 360.0}, {"x": 103.0, "y": 358.0}]}], "spans": [{"offset": 456, "length": 33}], "confidence": 0.002}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 388.0, "y": 335.0}, {"x": 393.0, "y": 335.0}, {"x": 393.0, "y": 345.0}, {"x": 388.0, "y": 345.0}]}], "spans": [{"offset": 501, "length": 1}], "confidence": 0.002}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": null}, "content": "100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 337.0}, {"x": 464.0, "y": 337.0}, {"x": 464.0, "y": 346.0}, {"x": 438.0, "y": 345.0}]}], "spans": [{"offset": 503, "length": 6}], "confidence": 0.002}}, "content": "Hem name Description of this item\n01/05/2017\n1\n100.00\n100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 330.0}, {"x": 536.0, "y": 336.0}, {"x": 536.0, "y": 364.0}, {"x": 103.0, "y": 358.0}]}], "spans": [{"offset": 456, "length": 60}], "confidence": 0.004}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Anytown", "state": "CA", "postal_code": "000DO", "country_region": null, "street_address": ""}, "content": "Anytown, CA 000DO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 211.0, "y": 163.0}, {"x": 277.0, "y": 163.0}, {"x": 277.0, "y": 173.0}, {"x": 211.0, "y": 173.0}]}], "spans": [{"offset": 226, "length": 17}], "confidence": 0.09}, "SubTotal": {"value_type": "currency", "value": {"amount": 400.0, "symbol": null}, "content": "400,00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 509.0, "y": 392.0}, {"x": 537.0, "y": 391.0}, {"x": 537.0, "y": 401.0}, {"x": 509.0, "y": 400.0}]}], "spans": [{"offset": 526, "length": 6}], "confidence": 0.063}, "VendorAddress": {"value_type": "address", "value": {"house_number": "123", "po_box": null, "road": "Main Street", "city": "Anytown", "state": "CA", "postal_code": "56789", "country_region": null, "street_address": "123 Main Street"}, "content": "123 Main Street Anytown, CA 56789", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 209.0, "y": 41.0}, {"x": 276.0, "y": 41.0}, {"x": 276.0, "y": 59.0}, {"x": 209.0, "y": 59.0}]}], "spans": [{"offset": 103, "length": 33}], "confidence": 0.856}, "VendorAddressRecipient": {"value_type": "string", "value": "tara hoover design", "content": "tara hoover design", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 209.0, "y": 26.0}, {"x": 297.0, "y": 28.0}, {"x": 297.0, "y": 40.0}, {"x": 209.0, "y": 39.0}]}], "spans": [{"offset": 84, "length": 18}], "confidence": 0.005}, "VendorName": {"value_type": "string", "value": "tara\nhoover\ndeSIGN", "content": "tara hoover deSIGN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 107.0, "y": 41.0}, {"x": 167.0, "y": 41.0}, {"x": 167.0, "y": 82.0}, {"x": 107.0, "y": 82.0}]}], "spans": [{"offset": 0, "length": 18}], "confidence": 0.195}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/291_jpg.rf.e31e825e0c2192d74659abd94d803e24.json b/Data/test/291_jpg.rf.e31e825e0c2192d74659abd94d803e24.json new file mode 100644 index 0000000000000000000000000000000000000000..bf208b2601dfc0e3c6fd60df584deb4cf5d53746 --- /dev/null +++ b/Data/test/291_jpg.rf.e31e825e0c2192d74659abd94d803e24.json @@ -0,0 +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": 753}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "666", "po_box": null, "road": "5TH AVENUE", "city": "NEW YORK", "state": "NY", "postal_code": "10103", "country_region": null, "street_address": "666 5TH AVENUE"}, "content": "666 5TH AVENUE\nNEW YORK NY 10103", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 144.0, "y": 196.0}, {"x": 238.0, "y": 196.0}, {"x": 238.0, "y": 215.0}, {"x": 144.0, "y": 215.0}]}], "spans": [{"offset": 113, "length": 32}], "confidence": 0.844}, "BillingAddressRecipient": {"value_type": "string", "value": "LORILLARD\nATTN: BETTY EPPERSON", "content": "LORILLARD\nATTN: BETTY EPPERSON", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 144.0, "y": 187.0}, {"x": 258.0, "y": 187.0}, {"x": 258.0, "y": 234.0}, {"x": 144.0, "y": 234.0}]}], "spans": [{"offset": 103, "length": 9}, {"offset": 146, "length": 20}], "confidence": 0.717}, "CustomerName": {"value_type": "string", "value": "LORILLARD\nATTN: BETTY EPPERSON", "content": "LORILLARD\nATTN: BETTY EPPERSON", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 144.0, "y": 187.0}, {"x": 258.0, "y": 187.0}, {"x": 258.0, "y": 234.0}, {"x": 144.0, "y": 234.0}]}], "spans": [{"offset": 103, "length": 9}, {"offset": 146, "length": 20}], "confidence": 0.717}, "InvoiceDate": {"value_type": "date", "value": "1987-07-15", "content": "07/15/87", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 456.0, "y": 222.0}, {"x": 500.0, "y": 221.0}, {"x": 500.0, "y": 231.0}, {"x": 456.0, "y": 230.0}]}], "spans": [{"offset": 216, "length": 8}], "confidence": 0.952}, "InvoiceId": {"value_type": "string", "value": "3036", "content": "3036", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 173.0}, {"x": 485.0, "y": 173.0}, {"x": 485.0, "y": 187.0}, {"x": 453.0, "y": 187.0}]}], "spans": [{"offset": 205, "length": 4}], "confidence": 0.95}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 7106.0, "symbol": "$"}, "content": "$ 7106.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 417.0, "y": 548.0}, {"x": 465.0, "y": 548.0}, {"x": 465.0, "y": 557.0}, {"x": 417.0, "y": 557.0}]}], "spans": [{"offset": 720, "length": 9}], "confidence": 0.387}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 8360.0, "symbol": null}, "content": "8360.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 420.0, "y": 376.0}, {"x": 457.0, "y": 376.0}, {"x": 457.0, "y": 385.0}, {"x": 420.0, "y": 384.0}]}], "spans": [{"offset": 588, "length": 7}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "FULL PAGE 4-COLOR AD\n(4TH COVER)", "content": "FULL PAGE 4-COLOR AD (4TH COVER)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 378.0}, {"x": 217.0, "y": 378.0}, {"x": 217.0, "y": 397.0}, {"x": 108.0, "y": 397.0}]}], "spans": [{"offset": 555, "length": 32}], "confidence": 0.324}}, "content": "FULL PAGE 4-COLOR AD (4TH COVER)\n8360.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 376.0}, {"x": 457.0, "y": 376.0}, {"x": 457.0, "y": 397.0}, {"x": 108.0, "y": 397.0}]}], "spans": [{"offset": 555, "length": 40}], "confidence": 0.624}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "1770", "po_box": null, "road": "Deer Park Avenue", "city": "Deer Park", "state": "New York", "postal_code": "11729", "country_region": null, "street_address": "1770 Deer Park Avenue"}, "content": "1770 Deer Park Avenue, Deer Park, New York 11729", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 188.0, "y": 123.0}, {"x": 452.0, "y": 123.0}, {"x": 452.0, "y": 139.0}, {"x": 188.0, "y": 139.0}]}], "spans": [{"offset": 19, "length": 48}], "confidence": 0.861}, "VendorName": {"value_type": "string", "value": "NIGHTLIFE\nMAGAZINE", "content": "NIGHTLIFE\nMAGAZINE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 26.0}, {"x": 494.0, "y": 26.0}, {"x": 494.0, "y": 118.0}, {"x": 166.0, "y": 118.0}]}], "spans": [{"offset": 0, "length": 18}], "confidence": 0.839}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/298_jpg.rf.b3d44726a313c20d7f9843247251a6be.json b/Data/test/298_jpg.rf.b3d44726a313c20d7f9843247251a6be.json new file mode 100644 index 0000000000000000000000000000000000000000..3641b3e8225b45eeddf08820e1a40e4f8f007a9a --- /dev/null +++ b/Data/test/298_jpg.rf.b3d44726a313c20d7f9843247251a6be.json @@ -0,0 +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": 1401}], "fields": {"VendorName": {"value_type": "string", "value": "NYC\nDepartment of\nEducation", "content": "NYC Department of Education", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 71.0, "y": 34.0}, {"x": 148.0, "y": 34.0}, {"x": 148.0, "y": 88.0}, {"x": 71.0, "y": 88.0}]}], "spans": [{"offset": 0, "length": 27}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/30_jpg.rf.e7cad7929dee8215f27556d96000ce39.json b/Data/test/30_jpg.rf.e7cad7929dee8215f27556d96000ce39.json new file mode 100644 index 0000000000000000000000000000000000000000..d85bdc0e3c2010b68232dd71538afcb7b57b5b36 --- /dev/null +++ b/Data/test/30_jpg.rf.e7cad7929dee8215f27556d96000ce39.json @@ -0,0 +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": 942}], "fields": {"InvoiceDate": {"value_type": "date", "value": "2015-04-04", "content": "04-Apr-15", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 73.0, "y": 211.0}, {"x": 113.0, "y": 211.0}, {"x": 114.0, "y": 220.0}, {"x": 74.0, "y": 220.0}]}], "spans": [{"offset": 411, "length": 9}], "confidence": 0.986}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 281.5, "symbol": "$"}, "content": "$281.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 529.0, "y": 562.0}, {"x": 562.0, "y": 562.0}, {"x": 562.0, "y": 572.0}, {"x": 529.0, "y": 572.0}]}], "spans": [{"offset": 864, "length": 7}], "confidence": 0.984}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 75.0, "symbol": "$"}, "content": "$75.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 532.0, "y": 261.0}, {"x": 560.0, "y": 261.0}, {"x": 560.0, "y": 271.0}, {"x": 532.0, "y": 271.0}]}], "spans": [{"offset": 563, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Tower Case", "content": "Tower Case", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 229.0, "y": 260.0}, {"x": 273.0, "y": 262.0}, {"x": 273.0, "y": 273.0}, {"x": 229.0, "y": 271.0}]}], "spans": [{"offset": 538, "length": 10}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "CSS4545645645", "content": "CSS4545645645", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 262.0}, {"x": 202.0, "y": 261.0}, {"x": 202.0, "y": 272.0}, {"x": 137.0, "y": 272.0}]}], "spans": [{"offset": 524, "length": 13}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 262.0}, {"x": 97.0, "y": 262.0}, {"x": 97.0, "y": 271.0}, {"x": 93.0, "y": 271.0}]}], "spans": [{"offset": 522, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 75.0, "symbol": "$"}, "content": "$75.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 481.0, "y": 262.0}, {"x": 509.0, "y": 262.0}, {"x": 509.0, "y": 271.0}, {"x": 481.0, "y": 272.0}]}], "spans": [{"offset": 556, "length": 6}], "confidence": null}}, "content": "1\nCSS4545645645\nTower Case\n1 year\n$75.00\n$75.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 261.0}, {"x": 560.0, "y": 261.0}, {"x": 560.0, "y": 272.0}, {"x": 93.0, "y": 272.0}]}], "spans": [{"offset": 522, "length": 47}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 525.0, "symbol": null}, "content": "525.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 532.0, "y": 277.0}, {"x": 559.0, "y": 277.0}, {"x": 559.0, "y": 287.0}, {"x": 532.0, "y": 286.0}]}], "spans": [{"offset": 606, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Windows installation", "content": "Windows installation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 228.0, "y": 277.0}, {"x": 315.0, "y": 277.0}, {"x": 315.0, "y": 288.0}, {"x": 228.0, "y": 288.0}]}], "spans": [{"offset": 574, "length": 20}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "N/A", "content": "N/A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 163.0, "y": 278.0}, {"x": 177.0, "y": 278.0}, {"x": 176.0, "y": 286.0}, {"x": 163.0, "y": 285.0}]}], "spans": [{"offset": 570, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 25.0, "symbol": "$"}, "content": "$25.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 481.0, "y": 277.0}, {"x": 509.0, "y": 277.0}, {"x": 509.0, "y": 287.0}, {"x": 482.0, "y": 287.0}]}], "spans": [{"offset": 599, "length": 6}], "confidence": null}}, "content": "N/A\nWindows installation\nN/A\n$25.00\n525.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 163.0, "y": 277.0}, {"x": 559.0, "y": 277.0}, {"x": 559.0, "y": 288.0}, {"x": 163.0, "y": 288.0}]}], "spans": [{"offset": 570, "length": 42}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 20.0, "symbol": "$"}, "content": "$20.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 531.0, "y": 294.0}, {"x": 558.0, "y": 293.0}, {"x": 558.0, "y": 303.0}, {"x": 532.0, "y": 303.0}]}], "spans": [{"offset": 641, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "USB Drive", "content": "USB Drive", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 228.0, "y": 293.0}, {"x": 268.0, "y": 294.0}, {"x": 268.0, "y": 304.0}, {"x": 228.0, "y": 303.0}]}], "spans": [{"offset": 624, "length": 9}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "12457878", "content": "12457878", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 150.0, "y": 294.0}, {"x": 189.0, "y": 293.0}, {"x": 189.0, "y": 303.0}, {"x": 150.0, "y": 303.0}]}], "spans": [{"offset": 615, "length": 8}], "confidence": null}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 294.0}, {"x": 96.0, "y": 294.0}, {"x": 96.0, "y": 302.0}, {"x": 93.0, "y": 302.0}]}], "spans": [{"offset": 613, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 481.0, "y": 294.0}, {"x": 509.0, "y": 293.0}, {"x": 509.0, "y": 303.0}, {"x": 482.0, "y": 303.0}]}], "spans": [{"offset": 634, "length": 6}], "confidence": null}}, "content": "2\n12457878\nUSB Drive\n$10.00\n$20.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 293.0}, {"x": 558.0, "y": 293.0}, {"x": 558.0, "y": 303.0}, {"x": 93.0, "y": 303.0}]}], "spans": [{"offset": 613, "length": 34}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 529.0, "y": 309.0}, {"x": 561.0, "y": 309.0}, {"x": 562.0, "y": 319.0}, {"x": 529.0, "y": 319.0}]}], "spans": [{"offset": 682, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "LapTop Bag", "content": "LapTop Bag", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 228.0, "y": 308.0}, {"x": 274.0, "y": 310.0}, {"x": 274.0, "y": 321.0}, {"x": 228.0, "y": 319.0}]}], "spans": [{"offset": 660, "length": 10}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "458787845", "content": "458787845", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 146.0, "y": 309.0}, {"x": 192.0, "y": 309.0}, {"x": 192.0, "y": 319.0}, {"x": 146.0, "y": 318.0}]}], "spans": [{"offset": 650, "length": 9}], "confidence": null}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 309.0}, {"x": 97.0, "y": 309.0}, {"x": 97.0, "y": 318.0}, {"x": 92.0, "y": 318.0}]}], "spans": [{"offset": 648, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 309.0}, {"x": 509.0, "y": 309.0}, {"x": 509.0, "y": 319.0}, {"x": 482.0, "y": 318.0}]}], "spans": [{"offset": 675, "length": 6}], "confidence": null}}, "content": "2\n458787845\nLapTop Bag\nN/A\n$50.00\n$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 309.0}, {"x": 562.0, "y": 309.0}, {"x": 562.0, "y": 320.0}, {"x": 92.0, "y": 320.0}]}], "spans": [{"offset": 648, "length": 41}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 220.0, "symbol": "$"}, "content": "$220.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 529.0, "y": 483.0}, {"x": 561.0, "y": 483.0}, {"x": 561.0, "y": 493.0}, {"x": 529.0, "y": 492.0}]}], "spans": [{"offset": 761, "length": 7}], "confidence": 0.985}, "TotalTax": {"value_type": "currency", "value": {"amount": 20.9, "symbol": "$"}, "content": "$20.90", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 531.0, "y": 499.0}, {"x": 559.0, "y": 498.0}, {"x": 560.0, "y": 509.0}, {"x": 531.0, "y": 508.0}]}], "spans": [{"offset": 787, "length": 6}], "confidence": 0.98}, "VendorName": {"value_type": "string", "value": "computerstore", "content": "computerstore", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 78.0, "y": 84.0}, {"x": 169.0, "y": 84.0}, {"x": 169.0, "y": 98.0}, {"x": 78.0, "y": 99.0}]}], "spans": [{"offset": 112, "length": 13}], "confidence": 0.54}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/32_jpg.rf.5fb7611a15cfd33b8f0bf542cb6e288f.json b/Data/test/32_jpg.rf.5fb7611a15cfd33b8f0bf542cb6e288f.json new file mode 100644 index 0000000000000000000000000000000000000000..5d2d4ab081e5fd7d89db9a8a8236c5664e00ddca --- /dev/null +++ b/Data/test/32_jpg.rf.5fb7611a15cfd33b8f0bf542cb6e288f.json @@ -0,0 +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": 947}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "400", "po_box": null, "road": "JEFFERSON DAVIS HIGHWAY", "city": "RICHMOND", "state": "VIRGINIA", "postal_code": "23224", "country_region": null, "street_address": "400 JEFFERSON DAVIS HIGHWAY"}, "content": "400 JEFFERSON DAVIS HIGHWAY RICHMOND, VIRGINIA 23224", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 94.0}, {"x": 311.0, "y": 96.0}, {"x": 311.0, "y": 117.0}, {"x": 160.0, "y": 115.0}]}], "spans": [{"offset": 204, "length": 52}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "THE AMERICAN TOBACCO COMPANY\nDEPT. OF RESEARCH & DEVELOPMENT", "content": "THE AMERICAN TOBACCO COMPANY DEPT. OF RESEARCH & DEVELOPMENT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 77.0}, {"x": 333.0, "y": 77.0}, {"x": 333.0, "y": 98.0}, {"x": 160.0, "y": 98.0}]}], "spans": [{"offset": 143, "length": 60}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "THE AMERICAN TOBACCO COMPANY\nDEPT. OF RESEARCH & DEVELOPMENT", "content": "THE AMERICAN TOBACCO COMPANY DEPT. OF RESEARCH & DEVELOPMENT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 77.0}, {"x": 333.0, "y": 77.0}, {"x": 333.0, "y": 98.0}, {"x": 160.0, "y": 98.0}]}], "spans": [{"offset": 143, "length": 60}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1966-10-12", "content": "10/12/66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 156.0}, {"x": 477.0, "y": 156.0}, {"x": 477.0, "y": 168.0}, {"x": 433.0, "y": 168.0}]}], "spans": [{"offset": 307, "length": 8}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "EP10-206", "content": "EP10-206", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 483.0, "y": 156.0}, {"x": 528.0, "y": 156.0}, {"x": 528.0, "y": 168.0}, {"x": 483.0, "y": 168.0}]}], "spans": [{"offset": 316, "length": 8}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1231.0, "symbol": "$"}, "content": "$1,231.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 477.0, "y": 237.0}, {"x": 530.0, "y": 236.0}, {"x": 530.0, "y": 251.0}, {"x": 477.0, "y": 251.0}]}], "spans": [{"offset": 489, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "WORK IN CONNECTION WITH ECUSTA PAPER\nDIVISION RESEARCH PROJECT NO. 9405,EH\nDURING THE MONTH OF SEPTEMBER, 1956", "content": "WORK IN CONNECTION WITH ECUSTA PAPER DIVISION RESEARCH PROJECT NO. 9405,EH DURING THE MONTH OF SEPTEMBER, 1956", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 127.0, "y": 221.0}, {"x": 332.0, "y": 221.0}, {"x": 332.0, "y": 250.0}, {"x": 127.0, "y": 250.0}]}], "spans": [{"offset": 378, "length": 110}], "confidence": null}}, "content": "WORK IN CONNECTION WITH ECUSTA PAPER DIVISION RESEARCH PROJECT NO. 9405,EH DURING THE MONTH OF SEPTEMBER, 1956\n$1,231.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 127.0, "y": 221.0}, {"x": 530.0, "y": 221.0}, {"x": 530.0, "y": 251.0}, {"x": 127.0, "y": 251.0}]}], "spans": [{"offset": 378, "length": 120}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "PISGAH TOREST.", "state": "NORTH CAROLINA", "postal_code": "20768", "country_region": null, "street_address": ""}, "content": "PISGAH TOREST. NORTH CAROLINA . 20768", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 181.0, "y": 37.0}, {"x": 350.0, "y": 37.0}, {"x": 350.0, "y": 45.0}, {"x": 181.0, "y": 45.0}]}], "spans": [{"offset": 32, "length": 37}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "ECUSTA PAP\nDIVISION", "content": "ECUSTA PAP\nDIVISION", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 181.0, "y": 23.0}, {"x": 267.0, "y": 23.0}, {"x": 267.0, "y": 34.0}, {"x": 181.0, "y": 34.0}]}], "spans": [{"offset": 7, "length": 19}], "confidence": null}, "VendorName": {"value_type": "string", "value": "ECUSTA PAP\nDIVISION", "content": "ECUSTA PAP\nDIVISION", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 181.0, "y": 23.0}, {"x": 267.0, "y": 23.0}, {"x": 267.0, "y": 34.0}, {"x": 181.0, "y": 34.0}]}], "spans": [{"offset": 7, "length": 19}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/3772ce02-0000ACC-ACC-6718-VR-11022-png-1_png_jpg.rf.6c0a57b2ab8d8e6209f6ea4865cd6a8a.json b/Data/test/3772ce02-0000ACC-ACC-6718-VR-11022-png-1_png_jpg.rf.6c0a57b2ab8d8e6209f6ea4865cd6a8a.json new file mode 100644 index 0000000000000000000000000000000000000000..6d2658e322d51226f0ceff170a501866f5cf6a93 --- /dev/null +++ b/Data/test/3772ce02-0000ACC-ACC-6718-VR-11022-png-1_png_jpg.rf.6c0a57b2ab8d8e6209f6ea4865cd6a8a.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1346}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 1985.0, "symbol": "$"}, "content": "$1,985.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 756.0, "y": 913.0}, {"x": 817.0, "y": 912.0}, {"x": 817.0, "y": 926.0}, {"x": 756.0, "y": 926.0}]}], "spans": [{"offset": 1337, "length": 9}], "confidence": 0.97}, "BillingAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "Waterway Ave.", "city": "The Woodlands", "state": "TX", "postal_code": "77380", "country_region": "United States", "street_address": "21 Waterway Ave. Suite 525"}, "content": "21 Waterway Ave. Suite 525\nThe Woodlands, TX 77380,\nUnited States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 55.0, "y": 277.0}, {"x": 226.0, "y": 277.0}, {"x": 226.0, "y": 317.0}, {"x": 55.0, "y": 317.0}]}], "spans": [{"offset": 140, "length": 65}], "confidence": 0.86}, "BillingAddressRecipient": {"value_type": "string", "value": "Plateplus, Inc.\nAttn: Accounts Payable", "content": "Plateplus, Inc.\nAttn: Accounts Payable", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 55.0, "y": 252.0}, {"x": 201.0, "y": 252.0}, {"x": 201.0, "y": 279.0}, {"x": 55.0, "y": 279.0}]}], "spans": [{"offset": 101, "length": 38}], "confidence": 0.907}, "CustomerName": {"value_type": "string", "value": "Plateplus, Inc.", "content": "Plateplus, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 558.0, "y": 288.0}, {"x": 645.0, "y": 289.0}, {"x": 645.0, "y": 303.0}, {"x": 558.0, "y": 302.0}]}], "spans": [{"offset": 247, "length": 15}], "confidence": 0.426}, "DueDate": {"value_type": "date", "value": "2021-07-30", "content": "07/30/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 208.0, "y": 353.0}, {"x": 278.0, "y": 353.0}, {"x": 278.0, "y": 366.0}, {"x": 208.0, "y": 366.0}]}], "spans": [{"offset": 300, "length": 10}], "confidence": 0.973}, "InvoiceDate": {"value_type": "date", "value": "2021-06-30", "content": "06/30/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 558.0, "y": 252.0}, {"x": 628.0, "y": 253.0}, {"x": 628.0, "y": 266.0}, {"x": 558.0, "y": 266.0}]}], "spans": [{"offset": 219, "length": 10}], "confidence": 0.973}, "InvoiceId": {"value_type": "string", "value": "ACC-6718", "content": "ACC-6718", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 691.0, "y": 253.0}, {"x": 749.0, "y": 253.0}, {"x": 749.0, "y": 266.0}, {"x": 691.0, "y": 266.0}]}], "spans": [{"offset": 230, "length": 8}], "confidence": 0.972}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1985.0, "symbol": "$"}, "content": "$1,985.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 756.0, "y": 858.0}, {"x": 816.0, "y": 857.0}, {"x": 816.0, "y": 871.0}, {"x": 756.0, "y": 871.0}]}], "spans": [{"offset": 1283, "length": 9}], "confidence": 0.965}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 250.0, "symbol": "$"}, "content": "$250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 768.0, "y": 453.0}, {"x": 816.0, "y": 453.0}, {"x": 816.0, "y": 465.0}, {"x": 768.0, "y": 466.0}]}], "spans": [{"offset": 441, "length": 7}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "Monthly License - SimplicIT EDI Translator", "content": "Monthly License - SimplicIT EDI Translator", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 55.0, "y": 451.0}, {"x": 318.0, "y": 451.0}, {"x": 318.0, "y": 469.0}, {"x": 55.0, "y": 469.0}]}], "spans": [{"offset": 385, "length": 42}], "confidence": 0.887}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 562.0, "y": 453.0}, {"x": 587.0, "y": 453.0}, {"x": 587.0, "y": 465.0}, {"x": 562.0, "y": 465.0}]}], "spans": [{"offset": 428, "length": 4}], "confidence": 0.905}, "UnitPrice": {"value_type": "currency", "value": {"amount": 250.0, "symbol": "$"}, "content": "$250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 653.0, "y": 454.0}, {"x": 701.0, "y": 453.0}, {"x": 701.0, "y": 466.0}, {"x": 653.0, "y": 466.0}]}], "spans": [{"offset": 433, "length": 7}], "confidence": 0.905}}, "content": "Monthly License - SimplicIT EDI Translator\n1.00\n$250.00\n$250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 55.0, "y": 451.0}, {"x": 816.0, "y": 446.0}, {"x": 816.0, "y": 466.0}, {"x": 55.0, "y": 471.0}]}], "spans": [{"offset": 385, "length": 63}], "confidence": 0.903}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 650.0, "symbol": "$"}, "content": "$650.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 767.0, "y": 499.0}, {"x": 817.0, "y": 498.0}, {"x": 817.0, "y": 512.0}, {"x": 768.0, "y": 512.0}]}], "spans": [{"offset": 496, "length": 7}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "Acclimate Managed Support (8-5pm)", "content": "Acclimate Managed Support (8-5pm)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 54.0, "y": 497.0}, {"x": 283.0, "y": 497.0}, {"x": 283.0, "y": 515.0}, {"x": 54.0, "y": 515.0}]}], "spans": [{"offset": 449, "length": 33}], "confidence": 0.901}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 562.0, "y": 498.0}, {"x": 587.0, "y": 498.0}, {"x": 587.0, "y": 511.0}, {"x": 562.0, "y": 511.0}]}], "spans": [{"offset": 483, "length": 4}], "confidence": 0.905}, "UnitPrice": {"value_type": "currency", "value": {"amount": 650.0, "symbol": "$"}, "content": "$650.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 652.0, "y": 498.0}, {"x": 702.0, "y": 498.0}, {"x": 702.0, "y": 512.0}, {"x": 652.0, "y": 512.0}]}], "spans": [{"offset": 488, "length": 7}], "confidence": 0.905}}, "content": "Acclimate Managed Support (8-5pm)\n1.00\n$650.00\n$650.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 54.0, "y": 497.0}, {"x": 817.0, "y": 497.0}, {"x": 817.0, "y": 515.0}, {"x": 54.0, "y": 515.0}]}], "spans": [{"offset": 449, "length": 54}], "confidence": 0.907}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5.0, "symbol": "$"}, "content": "$5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 783.0, "y": 544.0}, {"x": 817.0, "y": 544.0}, {"x": 817.0, "y": 558.0}, {"x": 783.0, "y": 558.0}]}], "spans": [{"offset": 549, "length": 5}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "AccNet Monthly Mailbox Fee (Saas)", "content": "AccNet Monthly Mailbox Fee (Saas)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 55.0, "y": 543.0}, {"x": 273.0, "y": 543.0}, {"x": 273.0, "y": 561.0}, {"x": 55.0, "y": 561.0}]}], "spans": [{"offset": 504, "length": 33}], "confidence": 0.898}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 562.0, "y": 545.0}, {"x": 587.0, "y": 545.0}, {"x": 587.0, "y": 558.0}, {"x": 561.0, "y": 557.0}]}], "spans": [{"offset": 538, "length": 4}], "confidence": 0.905}, "UnitPrice": {"value_type": "currency", "value": {"amount": 5.0, "symbol": "$"}, "content": "$5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 668.0, "y": 546.0}, {"x": 700.0, "y": 545.0}, {"x": 701.0, "y": 558.0}, {"x": 669.0, "y": 558.0}]}], "spans": [{"offset": 543, "length": 5}], "confidence": 0.905}}, "content": "AccNet Monthly Mailbox Fee (Saas)\n1.00\n$5.00\n$5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 55.0, "y": 543.0}, {"x": 817.0, "y": 543.0}, {"x": 817.0, "y": 561.0}, {"x": 55.0, "y": 561.0}]}], "spans": [{"offset": 504, "length": 50}], "confidence": 0.907}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 300.0, "symbol": "$"}, "content": "$300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 768.0, "y": 590.0}, {"x": 817.0, "y": 590.0}, {"x": 816.0, "y": 603.0}, {"x": 768.0, "y": 603.0}]}], "spans": [{"offset": 601, "length": 7}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "Outbound Gateway - (846,855/857)", "content": "Outbound Gateway - (846,855/857)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 55.0, "y": 587.0}, {"x": 278.0, "y": 587.0}, {"x": 278.0, "y": 606.0}, {"x": 55.0, "y": 606.0}]}], "spans": [{"offset": 555, "length": 32}], "confidence": 0.896}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 561.0, "y": 589.0}, {"x": 586.0, "y": 589.0}, {"x": 587.0, "y": 602.0}, {"x": 561.0, "y": 602.0}]}], "spans": [{"offset": 588, "length": 4}], "confidence": 0.906}, "UnitPrice": {"value_type": "currency", "value": {"amount": 150.0, "symbol": "$"}, "content": "$150.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 652.0, "y": 590.0}, {"x": 701.0, "y": 590.0}, {"x": 701.0, "y": 603.0}, {"x": 652.0, "y": 603.0}]}], "spans": [{"offset": 593, "length": 7}], "confidence": 0.906}}, "content": "Outbound Gateway - (846,855/857)\n2.00\n$150.00\n$300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 55.0, "y": 587.0}, {"x": 817.0, "y": 587.0}, {"x": 817.0, "y": 606.0}, {"x": 55.0, "y": 606.0}]}], "spans": [{"offset": 555, "length": 53}], "confidence": 0.904}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 300.0, "symbol": "$"}, "content": "$300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 767.0, "y": 636.0}, {"x": 816.0, "y": 635.0}, {"x": 816.0, "y": 649.0}, {"x": 768.0, "y": 649.0}]}], "spans": [{"offset": 650, "length": 7}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "Inbound Gateway - (856,863)", "content": "Inbound Gateway - (856,863)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 54.0, "y": 634.0}, {"x": 236.0, "y": 634.0}, {"x": 236.0, "y": 652.0}, {"x": 54.0, "y": 652.0}]}], "spans": [{"offset": 609, "length": 27}], "confidence": 0.895}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 561.0, "y": 635.0}, {"x": 586.0, "y": 635.0}, {"x": 586.0, "y": 648.0}, {"x": 561.0, "y": 648.0}]}], "spans": [{"offset": 637, "length": 4}], "confidence": 0.905}, "UnitPrice": {"value_type": "currency", "value": {"amount": 150.0, "symbol": "$"}, "content": "$150.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 652.0, "y": 636.0}, {"x": 701.0, "y": 635.0}, {"x": 701.0, "y": 649.0}, {"x": 653.0, "y": 649.0}]}], "spans": [{"offset": 642, "length": 7}], "confidence": 0.905}}, "content": "Inbound Gateway - (856,863)\n2.00\n$150.00\n$300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 54.0, "y": 634.0}, {"x": 816.0, "y": 634.0}, {"x": 816.0, "y": 652.0}, {"x": 54.0, "y": 652.0}]}], "spans": [{"offset": 609, "length": 48}], "confidence": 0.904}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 480.0, "symbol": "$"}, "content": "$480.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 768.0, "y": 682.0}, {"x": 816.0, "y": 681.0}, {"x": 816.0, "y": 696.0}, {"x": 768.0, "y": 695.0}]}], "spans": [{"offset": 927, "length": 7}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "Trading Partner Kit (Oneal, Alro, US Steel, Nucor Gallatin, TK,, Northstar\nBluescope, Nucor Decatur(Berkley and HIcman included), Bluescope\nBuilders)\nNorthstar Bluescope - added 5/20/2019\nNucor Decatur - added 10/7/2019\nadded Bluescope Builders - 12/1/2020", "content": "Trading Partner Kit (Oneal, Alro, US Steel, Nucor Gallatin, TK,, Northstar Bluescope, Nucor Decatur(Berkley and HIcman included), Bluescope Builders) Northstar Bluescope - added 5/20/2019 Nucor Decatur - added 10/7/2019 added Bluescope Builders - 12/1/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 54.0, "y": 679.0}, {"x": 499.0, "y": 679.0}, {"x": 499.0, "y": 760.0}, {"x": 54.0, "y": 760.0}]}], "spans": [{"offset": 658, "length": 256}], "confidence": 0.303}, "Quantity": {"value_type": "float", "value": 8.0, "content": "8.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 561.0, "y": 681.0}, {"x": 587.0, "y": 681.0}, {"x": 587.0, "y": 694.0}, {"x": 561.0, "y": 694.0}]}], "spans": [{"offset": 915, "length": 4}], "confidence": 0.905}, "UnitPrice": {"value_type": "currency", "value": {"amount": 60.0, "symbol": "$"}, "content": "$60.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 659.0, "y": 682.0}, {"x": 701.0, "y": 681.0}, {"x": 701.0, "y": 695.0}, {"x": 659.0, "y": 695.0}]}], "spans": [{"offset": 920, "length": 6}], "confidence": 0.905}}, "content": "Trading Partner Kit (Oneal, Alro, US Steel, Nucor Gallatin, TK,, Northstar Bluescope, Nucor Decatur(Berkley and HIcman included), Bluescope Builders) Northstar Bluescope - added 5/20/2019 Nucor Decatur - added 10/7/2019 added Bluescope Builders - 12/1/2020\n8.00\n$60.00\n$480.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 54.0, "y": 679.0}, {"x": 816.0, "y": 679.0}, {"x": 816.0, "y": 760.0}, {"x": 54.0, "y": 760.0}]}], "spans": [{"offset": 658, "length": 276}], "confidence": 0.386}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Net 30 days", "content": "Net 30 days", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 54.0, "y": 352.0}, {"x": 129.0, "y": 352.0}, {"x": 129.0, "y": 367.0}, {"x": 54.0, "y": 367.0}]}], "spans": [{"offset": 288, "length": 11}], "confidence": 0.926}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Acclimate Technologies Inc.", "content": "Acclimate Technologies Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 273.0, "y": 839.0}, {"x": 446.0, "y": 839.0}, {"x": 446.0, "y": 858.0}, {"x": 273.0, "y": 858.0}]}], "spans": [{"offset": 993, "length": 27}], "confidence": 0.889}, "SubTotal": {"value_type": "currency", "value": {"amount": 1985.0, "symbol": "$"}, "content": "$1,985.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 757.0, "y": 822.0}, {"x": 816.0, "y": 822.0}, {"x": 816.0, "y": 835.0}, {"x": 757.0, "y": 835.0}]}], "spans": [{"offset": 1241, "length": 9}], "confidence": 0.972}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 783.0, "y": 839.0}, {"x": 816.0, "y": 839.0}, {"x": 816.0, "y": 852.0}, {"x": 782.0, "y": 851.0}]}], "spans": [{"offset": 1262, "length": 5}], "confidence": 0.968}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Columbus", "state": "OH", "postal_code": "43260", "country_region": null, "street_address": ""}, "content": "L-3390 Columbus, OH 43260", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 567.0, "y": 116.0}, {"x": 702.0, "y": 116.0}, {"x": 702.0, "y": 143.0}, {"x": 567.0, "y": 143.0}]}], "spans": [{"offset": 51, "length": 25}], "confidence": 0.872}, "VendorAddressRecipient": {"value_type": "string", "value": "Acclimate Technologies, Inc.", "content": "Acclimate Technologies, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 566.0, "y": 102.0}, {"x": 755.0, "y": 102.0}, {"x": 755.0, "y": 120.0}, {"x": 566.0, "y": 120.0}]}], "spans": [{"offset": 22, "length": 28}], "confidence": 0.913}, "VendorName": {"value_type": "string", "value": "acclimate\nECHNOLOGIES", "content": "acclimate ECHNOLOGIES", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 94.0, "y": 102.0}, {"x": 276.0, "y": 103.0}, {"x": 276.0, "y": 147.0}, {"x": 94.0, "y": 146.0}]}], "spans": [{"offset": 0, "length": 21}], "confidence": 0.909}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/382_jpg.rf.718d75949e0a9058cc2281f53f5e9c0d.json b/Data/test/382_jpg.rf.718d75949e0a9058cc2281f53f5e9c0d.json new file mode 100644 index 0000000000000000000000000000000000000000..c9ba587842318ac33ec0552f9f79a7905a2ac939 --- /dev/null +++ b/Data/test/382_jpg.rf.718d75949e0a9058cc2281f53f5e9c0d.json @@ -0,0 +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": 955}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 0.01, "symbol": "kr"}, "content": "kr0.01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 541.0, "y": 494.0}, {"x": 581.0, "y": 494.0}, {"x": 581.0, "y": 508.0}, {"x": 541.0, "y": 509.0}]}], "spans": [{"offset": 949, "length": 6}], "confidence": 0.847}, "BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Oslo", "state": null, "postal_code": "0260", "country_region": "Norway", "street_address": ""}, "content": "Oslo, 0260\nNorway", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 63.0, "y": 200.0}, {"x": 108.0, "y": 200.0}, {"x": 108.0, "y": 223.0}, {"x": 63.0, "y": 223.0}]}], "spans": [{"offset": 133, "length": 17}], "confidence": 0.794}, "BillingAddressRecipient": {"value_type": "string", "value": "First Last\nAddress Line One", "content": "First Last\nAddress Line One", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 63.0, "y": 178.0}, {"x": 137.0, "y": 178.0}, {"x": 137.0, "y": 200.0}, {"x": 63.0, "y": 200.0}]}], "spans": [{"offset": 105, "length": 27}], "confidence": 0.846}, "CustomerId": {"value_type": "string", "value": "sbtest-2371", "content": "sbtest-2371", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 447.0, "y": 93.0}, {"x": 499.0, "y": 93.0}, {"x": 499.0, "y": 105.0}, {"x": 447.0, "y": 105.0}]}], "spans": [{"offset": 309, "length": 11}], "confidence": 0.953}, "CustomerName": {"value_type": "string", "value": "First Last\nAddress Line One", "content": "First Last\nAddress Line One", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 63.0, "y": 178.0}, {"x": 137.0, "y": 178.0}, {"x": 137.0, "y": 200.0}, {"x": 63.0, "y": 200.0}]}], "spans": [{"offset": 105, "length": 27}], "confidence": 0.846}, "InvoiceDate": {"value_type": "date", "value": "2019-10-24", "content": "Oct 24, 2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 447.0, "y": 63.0}, {"x": 501.0, "y": 63.0}, {"x": 501.0, "y": 75.0}, {"x": 447.0, "y": 75.0}]}], "spans": [{"offset": 252, "length": 12}], "confidence": 0.928}, "InvoiceId": {"value_type": "string", "value": "INV1001", "content": "INV1001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 49.0}, {"x": 471.0, "y": 48.0}, {"x": 471.0, "y": 60.0}, {"x": 433.0, "y": 60.0}]}], "spans": [{"offset": 231, "length": 7}], "confidence": 0.964}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1247.45, "symbol": "kr"}, "content": "kr1,247.45", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 529.0, "y": 418.0}, {"x": 582.0, "y": 418.0}, {"x": 582.0, "y": 431.0}, {"x": 529.0, "y": 431.0}]}], "spans": [{"offset": 882, "length": 10}], "confidence": 0.943}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 997.96, "symbol": "kr"}, "content": "kr997.96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 537.0, "y": 329.0}, {"x": 582.0, "y": 329.0}, {"x": 581.0, "y": 341.0}, {"x": 537.0, "y": 340.0}]}], "spans": [{"offset": 628, "length": 8}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "High Performance 4 GB Monthly - Prorated Charges", "content": "High Performance 4 GB Monthly - Prorated Charges", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 62.0, "y": 327.0}, {"x": 322.0, "y": 327.0}, {"x": 322.0, "y": 342.0}, {"x": 62.0, "y": 342.0}]}], "spans": [{"offset": 579, "length": 48}], "confidence": 0.9}}, "content": "High Performance 4 GB Monthly - Prorated Charges\nkr997.96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 62.0, "y": 327.0}, {"x": 582.0, "y": 327.0}, {"x": 582.0, "y": 342.0}, {"x": 62.0, "y": 342.0}]}], "spans": [{"offset": 579, "length": 57}], "confidence": 0.902}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Due Upon Receipt", "content": "Due Upon Receipt", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 460.0, "y": 109.0}, {"x": 540.0, "y": 109.0}, {"x": 540.0, "y": 122.0}, {"x": 460.0, "y": 122.0}]}], "spans": [{"offset": 335, "length": 16}], "confidence": 0.915}, "ServiceEndDate": {"value_type": "date", "value": "2019-11-24", "content": "Nov 24, 2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 491.0, "y": 190.0}, {"x": 547.0, "y": 190.0}, {"x": 547.0, "y": 202.0}, {"x": 491.0, "y": 202.0}]}], "spans": [{"offset": 423, "length": 12}], "confidence": 0.81}, "ServiceStartDate": {"value_type": "date", "value": "2019-10-24", "content": "Oct 24", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 451.0, "y": 190.0}, {"x": 477.0, "y": 190.0}, {"x": 477.0, "y": 202.0}, {"x": 451.0, "y": 202.0}]}], "spans": [{"offset": 413, "length": 6}], "confidence": 0.92}, "SubTotal": {"value_type": "currency", "value": {"amount": 997.96, "symbol": "kr"}, "content": "kr997.96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 538.0, "y": 365.0}, {"x": 581.0, "y": 365.0}, {"x": 581.0, "y": 377.0}, {"x": 538.0, "y": 376.0}]}], "spans": [{"offset": 848, "length": 8}], "confidence": 0.956}, "TotalTax": {"value_type": "currency", "value": {"amount": 249.49, "symbol": "kr"}, "content": "kr249,49", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 538.0, "y": 387.0}, {"x": 581.0, "y": 387.0}, {"x": 581.0, "y": 398.0}, {"x": 538.0, "y": 398.0}]}], "spans": [{"offset": 867, "length": 8}], "confidence": 0.943}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "Postboks 2", "road": null, "city": "T\u00d8NSBERG", "state": "VESTFOLD", "postal_code": "3134", "country_region": "Norway", "street_address": "Postboks 2"}, "content": "Postboks 2 R\u00e5el T\u00d8NSBERG, VESTFOLD 3134 Norway", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 62.0, "y": 71.0}, {"x": 180.0, "y": 71.0}, {"x": 180.0, "y": 107.0}, {"x": 62.0, "y": 107.0}]}], "spans": [{"offset": 23, "length": 46}], "confidence": 0.877}, "VendorAddressRecipient": {"value_type": "string", "value": "Servebolt AS", "content": "Servebolt AS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 64.0, "y": 60.0}, {"x": 117.0, "y": 61.0}, {"x": 117.0, "y": 72.0}, {"x": 64.0, "y": 71.0}]}], "spans": [{"offset": 10, "length": 12}], "confidence": 0.935}, "VendorName": {"value_type": "string", "value": "Servebolt", "content": "Servebolt", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 18.0}, {"x": 188.0, "y": 18.0}, {"x": 188.0, "y": 40.0}, {"x": 87.0, "y": 40.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": 0.953}, "VendorTaxId": {"value_type": "string", "value": "914823900MVA", "content": "914823900MVA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 106.0}, {"x": 178.0, "y": 106.0}, {"x": 178.0, "y": 118.0}, {"x": 112.0, "y": 119.0}]}], "spans": [{"offset": 82, "length": 12}], "confidence": 0.373}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/396_jpg.rf.ef364175c3aebf3ab91de2211f90ec59.json b/Data/test/396_jpg.rf.ef364175c3aebf3ab91de2211f90ec59.json new file mode 100644 index 0000000000000000000000000000000000000000..bf81efe5ba97201087d6fc8ada36e472debd5b84 --- /dev/null +++ b/Data/test/396_jpg.rf.ef364175c3aebf3ab91de2211f90ec59.json @@ -0,0 +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": 707}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 1699.48, "symbol": "$"}, "content": "$1,699.48", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 165.0}, {"x": 522.0, "y": 165.0}, {"x": 522.0, "y": 175.0}, {"x": 483.0, "y": 175.0}]}], "spans": [{"offset": 252, "length": 9}], "confidence": 0.846}, "BillingAddress": {"value_type": "address", "value": {"house_number": "1234", "po_box": null, "road": "Clients Street", "city": "City", "state": "California", "postal_code": "90210", "country_region": "United States", "street_address": "1234 Clients Street"}, "content": "1234 Clients Street\nCity, California\n90210\nUnited States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 177.0}, {"x": 193.0, "y": 177.0}, {"x": 193.0, "y": 225.0}, {"x": 117.0, "y": 225.0}]}], "spans": [{"offset": 103, "length": 56}], "confidence": 0.83}, "BillingAddressRecipient": {"value_type": "string", "value": "Your Client", "content": "Your Client", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 164.0}, {"x": 163.0, "y": 165.0}, {"x": 163.0, "y": 175.0}, {"x": 118.0, "y": 174.0}]}], "spans": [{"offset": 91, "length": 11}], "confidence": 0.667}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "1234", "po_box": null, "road": "Your Street\nCity, Califomia", "city": null, "state": null, "postal_code": "90210", "country_region": "United States", "street_address": "1234 Your Street\nCity, Califomia"}, "content": "1234 Your Street City, Califomia 90210 United States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 456.0, "y": 58.0}, {"x": 523.0, "y": 58.0}, {"x": 523.0, "y": 106.0}, {"x": 456.0, "y": 106.0}]}], "spans": [{"offset": 13, "length": 52}], "confidence": 0.238}, "CustomerName": {"value_type": "string", "value": "Your Client", "content": "Your Client", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 164.0}, {"x": 163.0, "y": 165.0}, {"x": 163.0, "y": 175.0}, {"x": 118.0, "y": 174.0}]}], "spans": [{"offset": 91, "length": 11}], "confidence": 0.667}, "DueDate": {"value_type": "date", "value": "2021-04-25", "content": "25/4/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 340.0, "y": 203.0}, {"x": 382.0, "y": 202.0}, {"x": 382.0, "y": 213.0}, {"x": 340.0, "y": 213.0}]}], "spans": [{"offset": 206, "length": 9}], "confidence": 0.932}, "InvoiceDate": {"value_type": "date", "value": "2021-03-26", "content": "26/3/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 340.0, "y": 165.0}, {"x": 383.0, "y": 165.0}, {"x": 383.0, "y": 175.0}, {"x": 340.0, "y": 175.0}]}], "spans": [{"offset": 187, "length": 9}], "confidence": 0.932}, "InvoiceId": {"value_type": "string", "value": "INV-10012", "content": "INV-10012", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 399.0, "y": 165.0}, {"x": 444.0, "y": 165.0}, {"x": 444.0, "y": 175.0}, {"x": 400.0, "y": 174.0}]}], "spans": [{"offset": 242, "length": 9}], "confidence": 0.933}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1699.48, "symbol": "$"}, "content": "$1,699.48", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 483.0, "y": 485.0}, {"x": 522.0, "y": 485.0}, {"x": 522.0, "y": 495.0}, {"x": 483.0, "y": 495.0}]}], "spans": [{"offset": 547, "length": 9}], "confidence": 0.928}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 550.0, "symbol": "$"}, "content": "$550.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 496.0, "y": 311.0}, {"x": 521.0, "y": 310.0}, {"x": 521.0, "y": 318.0}, {"x": 496.0, "y": 318.0}]}], "spans": [{"offset": 309, "length": 7}], "confidence": 0.93}, "Description": {"value_type": "string", "value": "Services\nCost of various services.", "content": "Services\nCost of various services.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 311.0}, {"x": 195.0, "y": 311.0}, {"x": 195.0, "y": 334.0}, {"x": 117.0, "y": 334.0}]}], "spans": [{"offset": 290, "length": 8}, {"offset": 317, "length": 25}], "confidence": 0.954}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 310.0}, {"x": 441.0, "y": 310.0}, {"x": 441.0, "y": 318.0}, {"x": 433.0, "y": 317.0}]}], "spans": [{"offset": 306, "length": 2}], "confidence": 0.949}, "UnitPrice": {"value_type": "currency", "value": {"amount": 55.0, "symbol": "$"}, "content": "$55.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 379.0, "y": 310.0}, {"x": 401.0, "y": 310.0}, {"x": 401.0, "y": 318.0}, {"x": 379.0, "y": 318.0}]}], "spans": [{"offset": 299, "length": 6}], "confidence": 0.941}}, "content": "Services\n$55.00\n10\n$550.00\nCost of various services.\n+Ta", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 310.0}, {"x": 521.0, "y": 310.0}, {"x": 521.0, "y": 334.0}, {"x": 117.0, "y": 334.0}]}], "spans": [{"offset": 290, "length": 56}], "confidence": 0.413}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1125.0, "symbol": "$"}, "content": "$1,125.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 350.0}, {"x": 522.0, "y": 349.0}, {"x": 522.0, "y": 357.0}, {"x": 490.0, "y": 357.0}]}], "spans": [{"offset": 368, "length": 9}], "confidence": 0.934}, "Description": {"value_type": "string", "value": "Consulting\nConsultant for your business.", "content": "Consulting\nConsultant for your business.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 350.0}, {"x": 210.0, "y": 351.0}, {"x": 210.0, "y": 373.0}, {"x": 118.0, "y": 372.0}]}], "spans": [{"offset": 347, "length": 10}, {"offset": 378, "length": 29}], "confidence": 0.959}, "Quantity": {"value_type": "float", "value": 15.0, "content": "15", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 434.0, "y": 349.0}, {"x": 441.0, "y": 349.0}, {"x": 441.0, "y": 356.0}, {"x": 434.0, "y": 356.0}]}], "spans": [{"offset": 365, "length": 2}], "confidence": 0.932}, "UnitPrice": {"value_type": "currency", "value": {"amount": 75.0, "symbol": "$"}, "content": "$75.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 378.0, "y": 350.0}, {"x": 401.0, "y": 350.0}, {"x": 401.0, "y": 358.0}, {"x": 378.0, "y": 357.0}]}], "spans": [{"offset": 358, "length": 6}], "confidence": 0.93}}, "content": "Consulting\n$75.00\n15\n$1,125.00\nConsultant for your business.\n+Tax", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 349.0}, {"x": 522.0, "y": 349.0}, {"x": 522.0, "y": 373.0}, {"x": 118.0, "y": 373.0}]}], "spans": [{"offset": 347, "length": 65}], "confidence": 0.412}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5123.39, "symbol": null}, "content": "5123.39", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 496.0, "y": 389.0}, {"x": 522.0, "y": 389.0}, {"x": 522.0, "y": 396.0}, {"x": 496.0, "y": 396.0}]}], "spans": [{"offset": 431, "length": 7}], "confidence": 0.935}, "Description": {"value_type": "string", "value": "Materials\nCost of materials and supplies to complete job.", "content": "Materials\nCost of materials and supplies to complete job.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 389.0}, {"x": 262.0, "y": 389.0}, {"x": 262.0, "y": 412.0}, {"x": 117.0, "y": 412.0}]}], "spans": [{"offset": 413, "length": 9}, {"offset": 439, "length": 47}], "confidence": 0.955}, "UnitPrice": {"value_type": "currency", "value": {"amount": 123.39, "symbol": "$"}, "content": "$123.39", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 375.0, "y": 388.0}, {"x": 401.0, "y": 389.0}, {"x": 401.0, "y": 396.0}, {"x": 375.0, "y": 397.0}]}], "spans": [{"offset": 423, "length": 7}], "confidence": 0.929}}, "content": "Materials\n$123.39\n5123.39\nCost of materials and supplies to complete job.\n.Tax", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 388.0}, {"x": 522.0, "y": 388.0}, {"x": 522.0, "y": 412.0}, {"x": 117.0, "y": 412.0}]}], "spans": [{"offset": 413, "length": 78}], "confidence": 0.354}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 1798.39, "symbol": "$"}, "content": "$1,798.39", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 483.0, "y": 431.0}, {"x": 522.0, "y": 431.0}, {"x": 522.0, "y": 440.0}, {"x": 483.0, "y": 440.0}]}], "spans": [{"offset": 501, "length": 9}], "confidence": 0.932}, "TotalTax": {"value_type": "currency", "value": {"amount": 80.93, "symbol": "$"}, "content": "+$80.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 489.0, "y": 461.0}, {"x": 522.0, "y": 461.0}, {"x": 523.0, "y": 470.0}, {"x": 490.0, "y": 470.0}]}], "spans": [{"offset": 533, "length": 7}], "confidence": 0.846}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/3_jpg.rf.d04a3363876fd1b929e973d5f1e0a6aa.json b/Data/test/3_jpg.rf.d04a3363876fd1b929e973d5f1e0a6aa.json new file mode 100644 index 0000000000000000000000000000000000000000..61344891e050b1412ca33f793e2465de230a50c0 --- /dev/null +++ b/Data/test/3_jpg.rf.d04a3363876fd1b929e973d5f1e0a6aa.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 647.0, "y": 0.0}, {"x": 647.0, "y": 850.0}, {"x": 0.0, "y": 850.0}]}], "spans": [{"offset": 0, "length": 2001}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "BUDHA BAZAR", "city": "DELHI", "state": null, "postal_code": null, "country_region": null, "street_address": "BUDHA BAZAR"}, "content": "BUDHA BAZAR, DELHI", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 5.0, "y": 146.0}, {"x": 93.0, "y": 146.0}, {"x": 93.0, "y": 171.0}, {"x": 5.0, "y": 171.0}]}], "spans": [{"offset": 276, "length": 18}], "confidence": 0.915}, "CustomerAddressRecipient": {"value_type": "string", "value": "M/s AHUJA MEDICINE CENTRE", "content": "M/s AHUJA MEDICINE CENTRE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 6.0, "y": 133.0}, {"x": 176.0, "y": 133.0}, {"x": 176.0, "y": 146.0}, {"x": 6.0, "y": 146.0}]}], "spans": [{"offset": 250, "length": 25}], "confidence": 0.91}, "CustomerName": {"value_type": "string", "value": "M/s AHUJA MEDICINE CENTRE", "content": "M/s AHUJA MEDICINE CENTRE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 6.0, "y": 133.0}, {"x": 176.0, "y": 133.0}, {"x": 176.0, "y": 146.0}, {"x": 6.0, "y": 146.0}]}], "spans": [{"offset": 250, "length": 25}], "confidence": 0.91}, "DueDate": {"value_type": "date", "value": "2004-10-04", "content": "10-04-2004", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 480.0, "y": 198.0}, {"x": 539.0, "y": 199.0}, {"x": 539.0, "y": 211.0}, {"x": 480.0, "y": 211.0}]}], "spans": [{"offset": 474, "length": 10}], "confidence": 0.941}, "InvoiceId": {"value_type": "string", "value": "0036", "content": "0036", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 133.0}, {"x": 500.0, "y": 134.0}, {"x": 500.0, "y": 146.0}, {"x": 473.0, "y": 146.0}]}], "spans": [{"offset": 390, "length": 4}], "confidence": 0.943}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 4124.0, "symbol": null}, "content": "4124.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 592.0, "y": 690.0}, {"x": 633.0, "y": 689.0}, {"x": 633.0, "y": 702.0}, {"x": 592.0, "y": 701.0}]}], "spans": [{"offset": 1797, "length": 7}], "confidence": 0.942}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 152.6, "symbol": null}, "content": "152.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 600.0, "y": 239.0}, {"x": 635.0, "y": 239.0}, {"x": 635.0, "y": 250.0}, {"x": 600.0, "y": 250.0}]}], "spans": [{"offset": 641, "length": 6}], "confidence": 0.931}, "Description": {"value_type": "string", "value": "POLYBION SYP 100ML", "content": "POLYBION SYP 100ML", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 18.0, "y": 237.0}, {"x": 120.0, "y": 238.0}, {"x": 120.0, "y": 250.0}, {"x": 18.0, "y": 248.0}]}], "spans": [{"offset": 576, "length": 18}], "confidence": 0.929}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 239.0}, {"x": 410.0, "y": 239.0}, {"x": 410.0, "y": 249.0}, {"x": 400.0, "y": 249.0}]}], "spans": [{"offset": 620, "length": 2}], "confidence": 0.931}, "TaxRate": {"value_type": "string", "value": "12.50", "content": "12.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 543.0, "y": 239.0}, {"x": 568.0, "y": 239.0}, {"x": 568.0, "y": 249.0}, {"x": 543.0, "y": 248.0}]}], "spans": [{"offset": 635, "length": 5}], "confidence": 0.928}}, "content": "1\nPOLYBION SYP 100ML\n100ML\nE MERK P\n562862000\n10\n18.82\n15.26 12.50\n152.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 4.0, "y": 237.0}, {"x": 635.0, "y": 237.0}, {"x": 635.0, "y": 250.0}, {"x": 4.0, "y": 250.0}]}], "spans": [{"offset": 574, "length": 73}], "confidence": 0.844}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 118.5, "symbol": null}, "content": "118.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 600.0, "y": 251.0}, {"x": 635.0, "y": 251.0}, {"x": 635.0, "y": 262.0}, {"x": 600.0, "y": 262.0}]}], "spans": [{"offset": 705, "length": 6}], "confidence": 0.931}, "Description": {"value_type": "string", "value": "AMLOGARD 5MG.", "content": "AMLOGARD 5MG.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 17.0, "y": 249.0}, {"x": 99.0, "y": 251.0}, {"x": 99.0, "y": 263.0}, {"x": 17.0, "y": 261.0}]}], "spans": [{"offset": 650, "length": 13}], "confidence": 0.933}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 406.0, "y": 250.0}, {"x": 413.0, "y": 250.0}, {"x": 413.0, "y": 261.0}, {"x": 406.0, "y": 261.0}]}], "spans": [{"offset": 687, "length": 1}], "confidence": 0.932}, "TaxRate": {"value_type": "string", "value": "4.00", "content": "4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 548.0, "y": 250.0}, {"x": 568.0, "y": 250.0}, {"x": 568.0, "y": 260.0}, {"x": 548.0, "y": 260.0}]}], "spans": [{"offset": 700, "length": 4}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 39.5, "symbol": null}, "content": "39.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 509.0, "y": 251.0}, {"x": 535.0, "y": 251.0}, {"x": 535.0, "y": 260.0}, {"x": 510.0, "y": 260.0}]}], "spans": [{"offset": 694, "length": 5}], "confidence": 0.469}}, "content": "2\nAMLOGARD 5MG.\n10'S\nPHIZER L\n02005016\n3\n0.00\n39.50\n4.00\n118.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 3.0, "y": 249.0}, {"x": 635.0, "y": 249.0}, {"x": 635.0, "y": 262.0}, {"x": 3.0, "y": 262.0}]}], "spans": [{"offset": 648, "length": 63}], "confidence": 0.836}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 611.4, "symbol": null}, "content": "611.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 599.0, "y": 263.0}, {"x": 635.0, "y": 263.0}, {"x": 635.0, "y": 274.0}, {"x": 599.0, "y": 274.0}]}], "spans": [{"offset": 765, "length": 6}], "confidence": 0.93}, "Description": {"value_type": "string", "value": "BECOSULE", "content": "BECOSULE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 18.0, "y": 263.0}, {"x": 67.0, "y": 262.0}, {"x": 67.0, "y": 272.0}, {"x": 18.0, "y": 272.0}]}], "spans": [{"offset": 714, "length": 8}], "confidence": 0.931}, "Quantity": {"value_type": "float", "value": 6.0, "content": "6", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 405.0, "y": 262.0}, {"x": 411.0, "y": 262.0}, {"x": 411.0, "y": 273.0}, {"x": 405.0, "y": 273.0}]}], "spans": [{"offset": 744, "length": 1}], "confidence": 0.931}, "TaxRate": {"value_type": "string", "value": "4.00", "content": "4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 548.0, "y": 262.0}, {"x": 569.0, "y": 262.0}, {"x": 569.0, "y": 272.0}, {"x": 548.0, "y": 272.0}]}], "spans": [{"offset": 760, "length": 4}], "confidence": 0.929}}, "content": "3\nBECOSULE\n10X10\nPHIZER L\n00739\n6\n115.10\n101.90\n4.00\n611.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 4.0, "y": 261.0}, {"x": 635.0, "y": 261.0}, {"x": 635.0, "y": 274.0}, {"x": 4.0, "y": 274.0}]}], "spans": [{"offset": 712, "length": 59}], "confidence": 0.807}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 300.0, "symbol": null}, "content": "300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 600.0, "y": 275.0}, {"x": 635.0, "y": 275.0}, {"x": 635.0, "y": 286.0}, {"x": 600.0, "y": 286.0}]}], "spans": [{"offset": 835, "length": 6}], "confidence": 0.93}, "Description": {"value_type": "string", "value": "AZMIN CAP.", "content": "AZMIN CAP.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 17.0, "y": 273.0}, {"x": 74.0, "y": 274.0}, {"x": 74.0, "y": 285.0}, {"x": 17.0, "y": 284.0}]}], "spans": [{"offset": 774, "length": 10}], "confidence": 0.93}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 406.0, "y": 275.0}, {"x": 411.0, "y": 275.0}, {"x": 411.0, "y": 284.0}, {"x": 406.0, "y": 284.0}]}], "spans": [{"offset": 814, "length": 1}], "confidence": 0.931}, "TaxRate": {"value_type": "string", "value": "4.00", "content": "4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 548.0, "y": 274.0}, {"x": 568.0, "y": 274.0}, {"x": 568.0, "y": 284.0}, {"x": 548.0, "y": 284.0}]}], "spans": [{"offset": 830, "length": 4}], "confidence": 0.929}}, "content": "4\nAZMIN CAP.\n10X10'S\nRANBAXY\n1245\n3\n150.00\n100.00\n4.00\n300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 4.0, "y": 273.0}, {"x": 635.0, "y": 273.0}, {"x": 635.0, "y": 286.0}, {"x": 4.0, "y": 286.0}]}], "spans": [{"offset": 772, "length": 28}, {"offset": 809, "length": 32}], "confidence": 0.808}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2050.0, "symbol": null}, "content": "2050.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 590.0, "y": 286.0}, {"x": 635.0, "y": 287.0}, {"x": 635.0, "y": 298.0}, {"x": 590.0, "y": 298.0}]}], "spans": [{"offset": 894, "length": 7}], "confidence": 0.931}, "Description": {"value_type": "string", "value": "BRUFOGESIC", "content": "BRUFOGESIC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 19.0, "y": 286.0}, {"x": 86.0, "y": 286.0}, {"x": 86.0, "y": 297.0}, {"x": 19.0, "y": 297.0}]}], "spans": [{"offset": 844, "length": 10}], "confidence": 0.931}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 287.0}, {"x": 411.0, "y": 288.0}, {"x": 410.0, "y": 298.0}, {"x": 399.0, "y": 297.0}]}], "spans": [{"offset": 870, "length": 2}], "confidence": 0.931}, "TaxRate": {"value_type": "string", "value": "4.00", "content": "4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 547.0, "y": 286.0}, {"x": 570.0, "y": 286.0}, {"x": 570.0, "y": 297.0}, {"x": 547.0, "y": 297.0}]}], "spans": [{"offset": 889, "length": 4}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 205.0, "symbol": null}, "content": "205.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 287.0}, {"x": 535.0, "y": 287.0}, {"x": 535.0, "y": 297.0}, {"x": 501.0, "y": 296.0}]}], "spans": [{"offset": 882, "length": 6}], "confidence": 0.468}}, "content": "SEAGULL\n5\nBRUFOGESIC\n10X10'S\nbt-124\n10\n1\n250.00\n205.00\n4.00\n2050.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 3.0, "y": 279.0}, {"x": 635.0, "y": 287.0}, {"x": 635.0, "y": 304.0}, {"x": 3.0, "y": 297.0}]}], "spans": [{"offset": 801, "length": 7}, {"offset": 842, "length": 59}], "confidence": 0.773}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1000.0, "symbol": null}, "content": "1000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 593.0, "y": 300.0}, {"x": 635.0, "y": 300.0}, {"x": 635.0, "y": 311.0}, {"x": 594.0, "y": 310.0}]}], "spans": [{"offset": 960, "length": 7}], "confidence": 0.931}, "Description": {"value_type": "string", "value": "COFREX SYRUP", "content": "COFREX SYRUP", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 17.0, "y": 298.0}, {"x": 89.0, "y": 298.0}, {"x": 89.0, "y": 309.0}, {"x": 17.0, "y": 309.0}]}], "spans": [{"offset": 904, "length": 12}], "confidence": 0.93}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 299.0}, {"x": 411.0, "y": 299.0}, {"x": 411.0, "y": 310.0}, {"x": 400.0, "y": 310.0}]}], "spans": [{"offset": 937, "length": 2}], "confidence": 0.93}, "TaxRate": {"value_type": "string", "value": "4.00", "content": "4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 548.0, "y": 299.0}, {"x": 568.0, "y": 299.0}, {"x": 568.0, "y": 308.0}, {"x": 548.0, "y": 308.0}]}], "spans": [{"offset": 955, "length": 4}], "confidence": 0.929}}, "content": "6\nCOFREX SYRUP\n60ML\nSEAGULL\nBH-234\n10\n1\n10.00\n100.00\n4.00\n1000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 3.0, "y": 297.0}, {"x": 635.0, "y": 297.0}, {"x": 635.0, "y": 311.0}, {"x": 3.0, "y": 311.0}]}], "spans": [{"offset": 902, "length": 65}], "confidence": 0.769}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 177.6, "symbol": null}, "content": "177.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 600.0, "y": 324.0}, {"x": 635.0, "y": 323.0}, {"x": 635.0, "y": 335.0}, {"x": 600.0, "y": 334.0}]}], "spans": [{"offset": 1048, "length": 6}], "confidence": 0.93}, "Description": {"value_type": "string", "value": "AMLOGARD 10MG", "content": "AMLOGARD 10MG", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 18.0, "y": 322.0}, {"x": 100.0, "y": 323.0}, {"x": 100.0, "y": 334.0}, {"x": 18.0, "y": 333.0}]}], "spans": [{"offset": 990, "length": 13}], "confidence": 0.93}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 406.0, "y": 323.0}, {"x": 412.0, "y": 323.0}, {"x": 412.0, "y": 333.0}, {"x": 406.0, "y": 333.0}]}], "spans": [{"offset": 1028, "length": 1}], "confidence": 0.93}, "TaxRate": {"value_type": "string", "value": "4.00", "content": "4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 548.0, "y": 323.0}, {"x": 568.0, "y": 323.0}, {"x": 568.0, "y": 332.0}, {"x": 548.0, "y": 332.0}]}], "spans": [{"offset": 1043, "length": 4}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 59.2, "symbol": null}, "content": "59.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 509.0, "y": 323.0}, {"x": 535.0, "y": 324.0}, {"x": 534.0, "y": 333.0}, {"x": 509.0, "y": 333.0}]}], "spans": [{"offset": 1037, "length": 5}], "confidence": 0.602}}, "content": "7\nAMLOGARD 10MG\n10'S\nPHIZER L\n1488\n2/95\n3\n0.00\n59.20\n4.00\n177.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 4.0, "y": 322.0}, {"x": 635.0, "y": 322.0}, {"x": 635.0, "y": 335.0}, {"x": 4.0, "y": 335.0}]}], "spans": [{"offset": 988, "length": 41}, {"offset": 1032, "length": 22}], "confidence": 0.787}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 143.46, "symbol": null}, "content": "143.46", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 600.0, "y": 347.0}, {"x": 635.0, "y": 347.0}, {"x": 635.0, "y": 359.0}, {"x": 600.0, "y": 359.0}]}], "spans": [{"offset": 1147, "length": 6}], "confidence": 0.93}, "Description": {"value_type": "string", "value": "AMLOGARD 5MG.", "content": "AMLOGARD 5MG.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 18.0, "y": 346.0}, {"x": 100.0, "y": 347.0}, {"x": 100.0, "y": 358.0}, {"x": 18.0, "y": 357.0}]}], "spans": [{"offset": 1090, "length": 13}], "confidence": 0.93}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 407.0, "y": 348.0}, {"x": 412.0, "y": 348.0}, {"x": 412.0, "y": 358.0}, {"x": 406.0, "y": 357.0}]}], "spans": [{"offset": 1128, "length": 1}], "confidence": 0.931}, "TaxRate": {"value_type": "string", "value": "0.00", "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 548.0, "y": 347.0}, {"x": 569.0, "y": 347.0}, {"x": 569.0, "y": 357.0}, {"x": 547.0, "y": 356.0}]}], "spans": [{"offset": 1142, "length": 4}], "confidence": 0.928}, "UnitPrice": {"value_type": "currency", "value": {"amount": 47.82, "symbol": null}, "content": "47.82", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 509.0, "y": 348.0}, {"x": 535.0, "y": 347.0}, {"x": 536.0, "y": 357.0}, {"x": 509.0, "y": 357.0}]}], "spans": [{"offset": 1136, "length": 5}], "confidence": 0.607}}, "content": "PHIZER L\n8\nAMLOGARD 5MG.\n10'S\nTEST\n2/01\n3\n47.82\n47.82\n0.00\n143.46", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 4.0, "y": 346.0}, {"x": 635.0, "y": 346.0}, {"x": 635.0, "y": 359.0}, {"x": 4.0, "y": 359.0}]}], "spans": [{"offset": 1077, "length": 10}, {"offset": 1090, "length": 18}, {"offset": 1118, "length": 35}], "confidence": 0.79}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 34.76, "symbol": null}, "content": "34.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 606.0, "y": 359.0}, {"x": 635.0, "y": 360.0}, {"x": 635.0, "y": 371.0}, {"x": 607.0, "y": 370.0}]}], "spans": [{"offset": 1211, "length": 5}], "confidence": 0.93}, "Description": {"value_type": "string", "value": "BECOSULES SYRUP 120ml", "content": "BECOSULES SYRUP 120ml", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 18.0, "y": 358.0}, {"x": 142.0, "y": 358.0}, {"x": 142.0, "y": 370.0}, {"x": 18.0, "y": 370.0}]}], "spans": [{"offset": 1154, "length": 21}], "confidence": 0.93}, "TaxRate": {"value_type": "string", "value": "0.00", "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 548.0, "y": 359.0}, {"x": 568.0, "y": 359.0}, {"x": 567.0, "y": 369.0}, {"x": 548.0, "y": 368.0}]}], "spans": [{"offset": 1206, "length": 4}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 17.38, "symbol": null}, "content": "17.38", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 510.0, "y": 359.0}, {"x": 536.0, "y": 359.0}, {"x": 536.0, "y": 369.0}, {"x": 510.0, "y": 369.0}]}], "spans": [{"offset": 1200, "length": 5}], "confidence": 0.619}}, "content": "9\nPHIZER L\nBECOSULES SYRUP 120ml\n120ML\nIUKDI3\n2/03\n17.38\n17.38\n0.00\n34.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 4.0, "y": 357.0}, {"x": 635.0, "y": 357.0}, {"x": 635.0, "y": 371.0}, {"x": 4.0, "y": 371.0}]}], "spans": [{"offset": 1088, "length": 1}, {"offset": 1109, "length": 8}, {"offset": 1154, "length": 62}], "confidence": 0.84}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 312.84, "symbol": null}, "content": "312.84", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 599.0, "y": 384.0}, {"x": 635.0, "y": 384.0}, {"x": 635.0, "y": 395.0}, {"x": 600.0, "y": 395.0}]}], "spans": [{"offset": 1298, "length": 6}], "confidence": 0.93}, "Description": {"value_type": "string", "value": "BECOSULES SYRUP 120ml", "content": "BECOSULES SYRUP 120ml", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 17.0, "y": 383.0}, {"x": 143.0, "y": 383.0}, {"x": 143.0, "y": 394.0}, {"x": 17.0, "y": 394.0}]}], "spans": [{"offset": 1238, "length": 21}], "confidence": 0.93}, "TaxRate": {"value_type": "string", "value": "0.00", "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 548.0, "y": 383.0}, {"x": 569.0, "y": 383.0}, {"x": 569.0, "y": 393.0}, {"x": 548.0, "y": 393.0}]}], "spans": [{"offset": 1293, "length": 4}], "confidence": 0.928}, "UnitPrice": {"value_type": "currency", "value": {"amount": 17.38, "symbol": null}, "content": "17.38", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 510.0, "y": 383.0}, {"x": 536.0, "y": 383.0}, {"x": 536.0, "y": 393.0}, {"x": 510.0, "y": 393.0}]}], "spans": [{"offset": 1287, "length": 5}], "confidence": 0.471}}, "content": "10\nBECOSULES SYRUP 120ml\n120ML\nPHIZER L\n00555\n17.38\n17.38\n0.00\n312.84", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 4.0, "y": 383.0}, {"x": 635.0, "y": 383.0}, {"x": 635.0, "y": 395.0}, {"x": 4.0, "y": 395.0}]}], "spans": [{"offset": 1235, "length": 69}], "confidence": 0.809}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 4189.52, "symbol": null}, "content": "4189.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 586.0, "y": 602.0}, {"x": 634.0, "y": 602.0}, {"x": 635.0, "y": 614.0}, {"x": 587.0, "y": 613.0}]}], "spans": [{"offset": 1686, "length": 7}], "confidence": 0.567}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 304.87, "symbol": null}, "content": "304.87", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 597.0, "y": 615.0}, {"x": 634.0, "y": 615.0}, {"x": 634.0, "y": 626.0}, {"x": 597.0, "y": 626.0}]}], "spans": [{"offset": 1708, "length": 6}], "confidence": 0.845}, "TotalTax": {"value_type": "currency", "value": {"amount": 164.05, "symbol": null}, "content": "164.05", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 598.0, "y": 639.0}, {"x": 634.0, "y": 638.0}, {"x": 634.0, "y": 650.0}, {"x": 598.0, "y": 650.0}]}], "spans": [{"offset": 1733, "length": 6}], "confidence": 0.943}, "VendorAddress": {"value_type": "address", "value": {"house_number": "F-11", "po_box": null, "road": "Roshanara Plaza, Roshanara Road", "city": "Delhi-110007", "state": null, "postal_code": null, "country_region": "India", "street_address": "F-11 Roshanara Plaza, Roshanara Road"}, "content": "F-11, Roshanara Plaza, Roshanara Road, Delhi-110007 (India)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 199.0, "y": 41.0}, {"x": 438.0, "y": 41.0}, {"x": 438.0, "y": 71.0}, {"x": 199.0, "y": 71.0}]}], "spans": [{"offset": 80, "length": 59}], "confidence": 0.913}, "VendorAddressRecipient": {"value_type": "string", "value": "Pharmaceutical Distributors", "content": "Pharmaceutical Distributors", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 248.0, "y": 26.0}, {"x": 390.0, "y": 26.0}, {"x": 390.0, "y": 39.0}, {"x": 248.0, "y": 39.0}]}], "spans": [{"offset": 52, "length": 27}], "confidence": 0.533}, "VendorName": {"value_type": "string", "value": "DEMO PHARMA DISTRIBUTORS", "content": "DEMO PHARMA DISTRIBUTORS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 434.0, "y": 727.0}, {"x": 646.0, "y": 727.0}, {"x": 646.0, "y": 744.0}, {"x": 434.0, "y": 744.0}]}], "spans": [{"offset": 1809, "length": 24}], "confidence": 0.646}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/415_png.rf.6956b1cb087891339ea71166aa3b9fa2.json b/Data/test/415_png.rf.6956b1cb087891339ea71166aa3b9fa2.json new file mode 100644 index 0000000000000000000000000000000000000000..8678483d3b90805b852f81a915ec7aa32a6b3885 --- /dev/null +++ b/Data/test/415_png.rf.6956b1cb087891339ea71166aa3b9fa2.json @@ -0,0 +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": 465}], "fields": {"InvoiceTotal": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 450.0, "y": 182.0}, {"x": 509.0, "y": 183.0}, {"x": 509.0, "y": 207.0}, {"x": 450.0, "y": 206.0}]}], "spans": [{"offset": 152, "length": 5}], "confidence": 0.801}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/41_jpg.rf.dafbdd930f112b8a39895c2252bfd414.json b/Data/test/41_jpg.rf.dafbdd930f112b8a39895c2252bfd414.json new file mode 100644 index 0000000000000000000000000000000000000000..bdddccd326bd514822b228a7b19921b40865c41a --- /dev/null +++ b/Data/test/41_jpg.rf.dafbdd930f112b8a39895c2252bfd414.json @@ -0,0 +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": 1109}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Hoshiarpur", "state": "Punjab", "postal_code": null, "country_region": null, "street_address": ""}, "content": "Industrial Area\nHoshiarpur\nPunjab", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 149.0}, {"x": 241.0, "y": 150.0}, {"x": 241.0, "y": 185.0}, {"x": 189.0, "y": 184.0}]}], "spans": [{"offset": 306, "length": 15}, {"offset": 342, "length": 10}, {"offset": 369, "length": 6}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "Sonalika Agro Industires Corp.", "content": "Sonalika Agro Industires Corp.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 136.0}, {"x": 296.0, "y": 136.0}, {"x": 296.0, "y": 145.0}, {"x": 189.0, "y": 145.0}]}], "spans": [{"offset": 231, "length": 30}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Sonalika Agro Industires Corp.", "content": "Sonalika Agro Industires Corp.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 136.0}, {"x": 296.0, "y": 136.0}, {"x": 296.0, "y": 145.0}, {"x": 189.0, "y": 145.0}]}], "spans": [{"offset": 231, "length": 30}], "confidence": null}, "CustomerTaxId": {"value_type": "string", "value": "03XXXXXXXXXXXXX\n03XXXXXXXXXXXXX", "content": "03XXXXXXXXXXXXX\n03XXXXXXXXXXXXX", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 188.0, "y": 202.0}, {"x": 258.0, "y": 201.0}, {"x": 258.0, "y": 210.0}, {"x": 188.0, "y": 210.0}]}], "spans": [{"offset": 429, "length": 15}, {"offset": 451, "length": 15}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2018-01-04", "content": "01-04-2018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 108.0}, {"x": 510.0, "y": 108.0}, {"x": 510.0, "y": 119.0}, {"x": 454.0, "y": 118.0}]}], "spans": [{"offset": 194, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "10001", "content": "10001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 221.0, "y": 108.0}, {"x": 251.0, "y": 109.0}, {"x": 251.0, "y": 118.0}, {"x": 221.0, "y": 118.0}]}], "spans": [{"offset": 174, "length": 5}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 59008.0, "symbol": null}, "content": "59,008", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 505.0, "y": 471.0}, {"x": 534.0, "y": 470.0}, {"x": 534.0, "y": 480.0}, {"x": 505.0, "y": 479.0}]}], "spans": [{"offset": 938, "length": 6}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2.0, "symbol": null}, "content": "2.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 236.0}, {"x": 533.0, "y": 236.0}, {"x": 532.0, "y": 244.0}, {"x": 515.0, "y": 243.0}]}], "spans": [{"offset": 556, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "\u0130rem 1", "content": "\u0130rem 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 235.0}, {"x": 175.0, "y": 236.0}, {"x": 175.0, "y": 244.0}, {"x": 154.0, "y": 243.0}]}], "spans": [{"offset": 530, "length": 6}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "1000", "content": "1000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 302.0, "y": 236.0}, {"x": 318.0, "y": 236.0}, {"x": 318.0, "y": 244.0}, {"x": 302.0, "y": 244.0}]}], "spans": [{"offset": 537, "length": 4}], "confidence": null}, "Unit": {"value_type": "string", "value": "Na", "content": "Na", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 236.0}, {"x": 371.0, "y": 236.0}, {"x": 372.0, "y": 244.0}, {"x": 362.0, "y": 244.0}]}], "spans": [{"offset": 542, "length": 2}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1.0, "symbol": null}, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 236.0}, {"x": 414.0, "y": 236.0}, {"x": 414.0, "y": 244.0}, {"x": 400.0, "y": 244.0}]}], "spans": [{"offset": 545, "length": 4}], "confidence": null}}, "content": "\u0130rem 1\n1000\nNa\n1.00\n2,DUL\n2.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 236.0}, {"x": 533.0, "y": 236.0}, {"x": 533.0, "y": 244.0}, {"x": 154.0, "y": 244.0}]}], "spans": [{"offset": 530, "length": 31}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2.0, "symbol": null}, "content": "2.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 249.0}, {"x": 533.0, "y": 249.0}, {"x": 533.0, "y": 257.0}, {"x": 515.0, "y": 256.0}]}], "spans": [{"offset": 588, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Item 2", "content": "Item 2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 247.0}, {"x": 177.0, "y": 250.0}, {"x": 176.0, "y": 260.0}, {"x": 154.0, "y": 257.0}]}], "spans": [{"offset": 564, "length": 6}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "100:", "content": "100:", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 302.0, "y": 249.0}, {"x": 317.0, "y": 249.0}, {"x": 317.0, "y": 257.0}, {"x": 302.0, "y": 256.0}]}], "spans": [{"offset": 571, "length": 4}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 344.0, "y": 251.0}, {"x": 348.0, "y": 251.0}, {"x": 348.0, "y": 258.0}, {"x": 344.0, "y": 258.0}]}], "spans": [{"offset": 576, "length": 1}], "confidence": null}, "Unit": {"value_type": "string", "value": "Nos", "content": "Nos", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 250.0}, {"x": 375.0, "y": 250.0}, {"x": 375.0, "y": 257.0}, {"x": 362.0, "y": 257.0}]}], "spans": [{"offset": 578, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 2.0, "symbol": null}, "content": "2.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 249.0}, {"x": 418.0, "y": 249.0}, {"x": 418.0, "y": 256.0}, {"x": 400.0, "y": 257.0}]}], "spans": [{"offset": 582, "length": 5}], "confidence": null}}, "content": "Item 2\n100:\n1\nNos\n2.000\n2.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 249.0}, {"x": 533.0, "y": 249.0}, {"x": 533.0, "y": 258.0}, {"x": 155.0, "y": 258.0}]}], "spans": [{"offset": 564, "length": 29}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3.0, "symbol": null}, "content": "3.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 262.0}, {"x": 534.0, "y": 262.0}, {"x": 533.0, "y": 270.0}, {"x": 515.0, "y": 269.0}]}], "spans": [{"offset": 624, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Item'S", "content": "Item'S", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 263.0}, {"x": 176.0, "y": 263.0}, {"x": 175.0, "y": 270.0}, {"x": 154.0, "y": 270.0}]}], "spans": [{"offset": 594, "length": 6}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "2002", "content": "2002", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 304.0, "y": 263.0}, {"x": 319.0, "y": 263.0}, {"x": 319.0, "y": 270.0}, {"x": 304.0, "y": 270.0}]}], "spans": [{"offset": 601, "length": 4}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 343.0, "y": 263.0}, {"x": 347.0, "y": 263.0}, {"x": 348.0, "y": 269.0}, {"x": 344.0, "y": 270.0}]}], "spans": [{"offset": 606, "length": 1}], "confidence": null}, "Unit": {"value_type": "string", "value": "Nos", "content": "Nos", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 263.0}, {"x": 375.0, "y": 263.0}, {"x": 375.0, "y": 270.0}, {"x": 362.0, "y": 270.0}]}], "spans": [{"offset": 608, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 3.0, "symbol": null}, "content": "3.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 262.0}, {"x": 418.0, "y": 262.0}, {"x": 418.0, "y": 270.0}, {"x": 400.0, "y": 270.0}]}], "spans": [{"offset": 612, "length": 5}], "confidence": null}}, "content": "Item'S\n2002\n1\nNos\n3.000\n3.000\n3.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 262.0}, {"x": 534.0, "y": 262.0}, {"x": 534.0, "y": 270.0}, {"x": 154.0, "y": 270.0}]}], "spans": [{"offset": 594, "length": 35}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1000.0, "symbol": null}, "content": "1,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 275.0}, {"x": 533.0, "y": 275.0}, {"x": 532.0, "y": 283.0}, {"x": 515.0, "y": 282.0}]}], "spans": [{"offset": 651, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Item 1", "content": "Item 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 276.0}, {"x": 176.0, "y": 277.0}, {"x": 176.0, "y": 284.0}, {"x": 154.0, "y": 283.0}]}], "spans": [{"offset": 632, "length": 6}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 345.0, "y": 277.0}, {"x": 348.0, "y": 277.0}, {"x": 347.0, "y": 284.0}, {"x": 344.0, "y": 283.0}]}], "spans": [{"offset": 639, "length": 1}], "confidence": null}, "Unit": {"value_type": "string", "value": "Nos", "content": "Nos", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 276.0}, {"x": 375.0, "y": 276.0}, {"x": 375.0, "y": 282.0}, {"x": 362.0, "y": 282.0}]}], "spans": [{"offset": 641, "length": 3}], "confidence": null}}, "content": "Item 1\n1\nNos\n1.DUU\n1,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 263.0}, {"x": 533.0, "y": 275.0}, {"x": 532.0, "y": 296.0}, {"x": 154.0, "y": 283.0}]}], "spans": [{"offset": 632, "length": 24}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5.0, "symbol": null}, "content": "5.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 514.0, "y": 288.0}, {"x": 534.0, "y": 288.0}, {"x": 533.0, "y": 296.0}, {"x": 514.0, "y": 295.0}]}], "spans": [{"offset": 686, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Item ?", "content": "Item ?", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 286.0}, {"x": 176.0, "y": 289.0}, {"x": 175.0, "y": 299.0}, {"x": 153.0, "y": 296.0}]}], "spans": [{"offset": 657, "length": 6}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "100", "content": "100", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 302.0, "y": 288.0}, {"x": 315.0, "y": 288.0}, {"x": 315.0, "y": 296.0}, {"x": 302.0, "y": 295.0}]}], "spans": [{"offset": 664, "length": 3}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 344.0, "y": 289.0}, {"x": 347.0, "y": 289.0}, {"x": 348.0, "y": 295.0}, {"x": 345.0, "y": 296.0}]}], "spans": [{"offset": 668, "length": 1}], "confidence": null}, "Unit": {"value_type": "string", "value": "Nos", "content": "Nos", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 289.0}, {"x": 375.0, "y": 289.0}, {"x": 375.0, "y": 296.0}, {"x": 362.0, "y": 296.0}]}], "spans": [{"offset": 670, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 5.0, "symbol": null}, "content": "5.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 399.0, "y": 289.0}, {"x": 418.0, "y": 289.0}, {"x": 419.0, "y": 296.0}, {"x": 400.0, "y": 296.0}]}], "spans": [{"offset": 674, "length": 5}], "confidence": null}}, "content": "Item ?\n100\n1\nNos\n5.000\n5.000\n5.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 288.0}, {"x": 534.0, "y": 288.0}, {"x": 534.0, "y": 297.0}, {"x": 154.0, "y": 297.0}]}], "spans": [{"offset": 657, "length": 34}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 6.0, "symbol": null}, "content": "6.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 514.0, "y": 301.0}, {"x": 533.0, "y": 301.0}, {"x": 533.0, "y": 309.0}, {"x": 514.0, "y": 309.0}]}], "spans": [{"offset": 721, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Item &", "content": "Item &", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 302.0}, {"x": 175.0, "y": 302.0}, {"x": 175.0, "y": 310.0}, {"x": 154.0, "y": 310.0}]}], "spans": [{"offset": 692, "length": 6}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "100.", "content": "100.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 303.0, "y": 302.0}, {"x": 317.0, "y": 302.0}, {"x": 317.0, "y": 309.0}, {"x": 303.0, "y": 308.0}]}], "spans": [{"offset": 699, "length": 4}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 344.0, "y": 302.0}, {"x": 347.0, "y": 302.0}, {"x": 348.0, "y": 308.0}, {"x": 345.0, "y": 309.0}]}], "spans": [{"offset": 704, "length": 1}], "confidence": null}, "Unit": {"value_type": "string", "value": "Nus", "content": "Nus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 302.0}, {"x": 375.0, "y": 302.0}, {"x": 375.0, "y": 308.0}, {"x": 362.0, "y": 308.0}]}], "spans": [{"offset": 706, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 6.0, "symbol": null}, "content": "6.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 301.0}, {"x": 414.0, "y": 301.0}, {"x": 414.0, "y": 308.0}, {"x": 400.0, "y": 308.0}]}], "spans": [{"offset": 710, "length": 4}], "confidence": null}}, "content": "Item &\n100.\n1\nNus\n6.00\n6,000\n6.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 301.0}, {"x": 533.0, "y": 301.0}, {"x": 533.0, "y": 310.0}, {"x": 154.0, "y": 310.0}]}], "spans": [{"offset": 692, "length": 34}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 7.0, "symbol": null}, "content": "7.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 313.0}, {"x": 533.0, "y": 313.0}, {"x": 533.0, "y": 321.0}, {"x": 515.0, "y": 321.0}]}], "spans": [{"offset": 750, "length": 5}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 345.0, "y": 316.0}, {"x": 348.0, "y": 316.0}, {"x": 348.0, "y": 322.0}, {"x": 344.0, "y": 322.0}]}], "spans": [{"offset": 732, "length": 1}], "confidence": null}, "Unit": {"value_type": "string", "value": "Nus", "content": "Nus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 315.0}, {"x": 375.0, "y": 315.0}, {"x": 375.0, "y": 321.0}, {"x": 362.0, "y": 321.0}]}], "spans": [{"offset": 734, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 3.0, "symbol": null}, "content": "3.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 314.0}, {"x": 418.0, "y": 314.0}, {"x": 418.0, "y": 321.0}, {"x": 400.0, "y": 321.0}]}], "spans": [{"offset": 738, "length": 5}], "confidence": null}}, "content": "100\u20ba\n1\nNus\n3.000\n7,000\n7.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 303.0, "y": 313.0}, {"x": 533.0, "y": 313.0}, {"x": 533.0, "y": 322.0}, {"x": 303.0, "y": 322.0}]}], "spans": [{"offset": 727, "length": 28}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 514.0, "y": 326.0}, {"x": 534.0, "y": 326.0}, {"x": 534.0, "y": 335.0}, {"x": 514.0, "y": 335.0}]}], "spans": [{"offset": 785, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Item&", "content": "Item&", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 327.0}, {"x": 175.0, "y": 327.0}, {"x": 175.0, "y": 335.0}, {"x": 155.0, "y": 335.0}]}], "spans": [{"offset": 756, "length": 5}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "1002", "content": "1002", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 302.0, "y": 327.0}, {"x": 318.0, "y": 327.0}, {"x": 317.0, "y": 335.0}, {"x": 302.0, "y": 334.0}]}], "spans": [{"offset": 762, "length": 4}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 345.0, "y": 328.0}, {"x": 348.0, "y": 328.0}, {"x": 348.0, "y": 335.0}, {"x": 345.0, "y": 335.0}]}], "spans": [{"offset": 767, "length": 1}], "confidence": null}, "Unit": {"value_type": "string", "value": "Nus", "content": "Nus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 362.0, "y": 328.0}, {"x": 375.0, "y": 328.0}, {"x": 375.0, "y": 335.0}, {"x": 362.0, "y": 335.0}]}], "spans": [{"offset": 769, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 327.0}, {"x": 418.0, "y": 327.0}, {"x": 417.0, "y": 335.0}, {"x": 400.0, "y": 334.0}]}], "spans": [{"offset": 773, "length": 5}], "confidence": null}}, "content": "Item&\n1002\n1\nNus\n0.000\n8.000\n0,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 326.0}, {"x": 534.0, "y": 326.0}, {"x": 534.0, "y": 335.0}, {"x": 155.0, "y": 335.0}]}], "spans": [{"offset": 756, "length": 34}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": ""}, "content": "Punjal:", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 381.0, "y": 175.0}, {"x": 406.0, "y": 175.0}, {"x": 406.0, "y": 183.0}, {"x": 381.0, "y": 183.0}]}], "spans": [{"offset": 382, "length": 7}], "confidence": null}, "ShippingAddressRecipient": {"value_type": "string", "value": "Somlika Apry Industires Corp", "content": "Somlika Apry Industires Corp", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 382.0, "y": 136.0}, {"x": 477.0, "y": 136.0}, {"x": 477.0, "y": 145.0}, {"x": 382.0, "y": 145.0}]}], "spans": [{"offset": 267, "length": 28}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 46.0, "symbol": null}, "content": "46.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 394.0}, {"x": 532.0, "y": 393.0}, {"x": 532.0, "y": 401.0}, {"x": 511.0, "y": 401.0}]}], "spans": [{"offset": 823, "length": 6}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 5451.0, "symbol": null}, "content": "5,451", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 518.0, "y": 445.0}, {"x": 535.0, "y": 445.0}, {"x": 535.0, "y": 453.0}, {"x": 518.0, "y": 453.0}]}], "spans": [{"offset": 895, "length": 5}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "no. 6 Dashmesh Nagar Dagana Road Inshiapur", "city": "Punjah", "state": null, "postal_code": "146001", "country_region": "India", "street_address": "no. 6 Dashmesh Nagar Dagana Road Inshiapur"}, "content": "no. 6 Dashmesh Nagar Dagana Road Inshiapur Punjah India 146001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 209.0, "y": 86.0}, {"x": 452.0, "y": 86.0}, {"x": 452.0, "y": 97.0}, {"x": 209.0, "y": 97.0}]}], "spans": [{"offset": 74, "length": 62}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "HAPPSS Store\nCrockry and Pastic Hub", "content": "HAPPSS Store Crockry and Pastic Hub", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 263.0, "y": 53.0}, {"x": 390.0, "y": 53.0}, {"x": 390.0, "y": 85.0}, {"x": 263.0, "y": 85.0}]}], "spans": [{"offset": 35, "length": 35}], "confidence": null}, "VendorName": {"value_type": "string", "value": "HAPPSS", "content": "HAPPSS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 145.0, "y": 74.0}, {"x": 181.0, "y": 67.0}, {"x": 182.0, "y": 76.0}, {"x": 147.0, "y": 83.0}]}], "spans": [{"offset": 0, "length": 6}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/422_jpg.rf.75804a9e1091b50335ae508a8f3420eb.json b/Data/test/422_jpg.rf.75804a9e1091b50335ae508a8f3420eb.json new file mode 100644 index 0000000000000000000000000000000000000000..82387a0f514e4826e1248aecef55834c4cd587be --- /dev/null +++ b/Data/test/422_jpg.rf.75804a9e1091b50335ae508a8f3420eb.json @@ -0,0 +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": 375}], "fields": {}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/42_jpg.rf.50826ed3047f618bfcd82483304a4334.json b/Data/test/42_jpg.rf.50826ed3047f618bfcd82483304a4334.json new file mode 100644 index 0000000000000000000000000000000000000000..6c5f6a73d589b095538de34434fb4f4b30b80a80 --- /dev/null +++ b/Data/test/42_jpg.rf.50826ed3047f618bfcd82483304a4334.json @@ -0,0 +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": 1154}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "32", "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "32"}, "content": "32 Max Park Shanghai", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 146.0}, {"x": 144.0, "y": 147.0}, {"x": 143.0, "y": 178.0}, {"x": 103.0, "y": 177.0}]}], "spans": [{"offset": 405, "length": 20}], "confidence": 0.846}, "CustomerAddressRecipient": {"value_type": "string", "value": "Guangzhou Suntel Global Electronics Co Ltd", "content": "Guangzhou Suntel Global Electronics Co Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 135.0}, {"x": 299.0, "y": 135.0}, {"x": 299.0, "y": 147.0}, {"x": 105.0, "y": 147.0}]}], "spans": [{"offset": 362, "length": 42}], "confidence": 0.829}, "CustomerName": {"value_type": "string", "value": "Guangzhou Suntel Global Electronics Co Ltd", "content": "Guangzhou Suntel Global Electronics Co Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 135.0}, {"x": 299.0, "y": 135.0}, {"x": 299.0, "y": 147.0}, {"x": 105.0, "y": 147.0}]}], "spans": [{"offset": 362, "length": 42}], "confidence": 0.829}, "InvoiceDate": {"value_type": "date", "value": "2019-12-16", "content": "16-Dec-2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 428.0, "y": 63.0}, {"x": 478.0, "y": 63.0}, {"x": 478.0, "y": 73.0}, {"x": 428.0, "y": 73.0}]}], "spans": [{"offset": 519, "length": 11}], "confidence": 0.92}, "InvoiceId": {"value_type": "string", "value": "ACMPUB/2 16-39", "content": "ACMPUB/2 16-39", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 321.0, "y": 62.0}, {"x": 368.0, "y": 63.0}, {"x": 368.0, "y": 73.0}, {"x": 321.0, "y": 72.0}]}], "spans": [{"offset": 291, "length": 14}], "confidence": 0.904}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 4500.0, "symbol": "$"}, "content": "$4,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 486.0, "y": 405.0}, {"x": 534.0, "y": 405.0}, {"x": 533.0, "y": 416.0}, {"x": 486.0, "y": 416.0}]}], "spans": [{"offset": 759, "length": 9}], "confidence": 0.716}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4500.0, "symbol": "$"}, "content": "$4,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 304.0}, {"x": 533.0, "y": 304.0}, {"x": 533.0, "y": 314.0}, {"x": 495.0, "y": 313.0}]}], "spans": [{"offset": 737, "length": 9}], "confidence": 0.301}, "Description": {"value_type": "string", "value": "Ace A1 Plus-Smartphone\nBatch : Batch 01", "content": "Ace A1 Plus-Smartphone Batch : Batch 01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 115.0, "y": 304.0}, {"x": 222.0, "y": 304.0}, {"x": 222.0, "y": 324.0}, {"x": 115.0, "y": 324.0}]}], "spans": [{"offset": 667, "length": 39}], "confidence": 0.121}, "Quantity": {"value_type": "float", "value": 50.0, "content": "50 Nos", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 384.0, "y": 304.0}, {"x": 412.0, "y": 305.0}, {"x": 412.0, "y": 314.0}, {"x": 384.0, "y": 314.0}]}], "spans": [{"offset": 712, "length": 6}], "confidence": 0.297}, "Unit": {"value_type": "string", "value": "Nos", "content": "Nos", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 458.0, "y": 304.0}, {"x": 472.0, "y": 305.0}, {"x": 472.0, "y": 313.0}, {"x": 458.0, "y": 313.0}]}], "spans": [{"offset": 733, "length": 3}], "confidence": 0.217}, "UnitPrice": {"value_type": "currency", "value": {"amount": 90.0, "symbol": "$"}, "content": "$90.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 428.0, "y": 304.0}, {"x": 453.0, "y": 304.0}, {"x": 453.0, "y": 313.0}, {"x": 429.0, "y": 313.0}]}], "spans": [{"offset": 726, "length": 6}], "confidence": 0.318}}, "content": "1 Ace A1 Plus-Smartphone Batch : Batch 01\n8517\n50 Nos 50 Nos\n$90.00 Nos\n$4,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 106.0, "y": 303.0}, {"x": 533.0, "y": 303.0}, {"x": 533.0, "y": 324.0}, {"x": 106.0, "y": 324.0}]}], "spans": [{"offset": 665, "length": 81}], "confidence": 0.821}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "B-209", "po_box": null, "road": "Park Plaza.", "city": "Lucknow", "state": null, "postal_code": null, "country_region": null, "street_address": "B-209 Park Plaza."}, "content": "B-209, Park Plaza. Krishna Nagar Lucknow", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 64.0}, {"x": 240.0, "y": 65.0}, {"x": 240.0, "y": 92.0}, {"x": 168.0, "y": 91.0}]}], "spans": [{"offset": 151, "length": 40}], "confidence": 0.833}, "VendorAddressRecipient": {"value_type": "string", "value": "Ace Mobile Manufacturer Pvt Ltd", "content": "Ace Mobile Manufacturer Pvt Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 53.0}, {"x": 309.0, "y": 53.0}, {"x": 309.0, "y": 65.0}, {"x": 168.0, "y": 65.0}]}], "spans": [{"offset": 119, "length": 31}], "confidence": 0.847}, "VendorName": {"value_type": "string", "value": "Ace Mobile Manufacturer Pvt Ltd", "content": "Ace Mobile Manufacturer Pvt Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 419.0, "y": 577.0}, {"x": 522.0, "y": 577.0}, {"x": 522.0, "y": 587.0}, {"x": 419.0, "y": 587.0}]}], "spans": [{"offset": 1065, "length": 31}], "confidence": 0.764}, "VendorTaxId": {"value_type": "string", "value": "09AABCS1429B1ZS", "content": "09AABCS1429B1ZS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 218.0, "y": 92.0}, {"x": 295.0, "y": 91.0}, {"x": 294.0, "y": 102.0}, {"x": 218.0, "y": 101.0}]}], "spans": [{"offset": 203, "length": 15}], "confidence": 0.751}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/433_jpg.rf.93eec95bf64b7094a36208ef8e1d16d9.json b/Data/test/433_jpg.rf.93eec95bf64b7094a36208ef8e1d16d9.json new file mode 100644 index 0000000000000000000000000000000000000000..d492bec8402371db0b3ec24b33741f99d38345ed --- /dev/null +++ b/Data/test/433_jpg.rf.93eec95bf64b7094a36208ef8e1d16d9.json @@ -0,0 +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": 590}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "1195", "po_box": null, "road": "Lobortis Rdl.", "city": "New Orleans", "state": null, "postal_code": "7198", "country_region": null, "street_address": "1195 Lobortis Rdl."}, "content": "1195 Lobortis Rdl. New Orleans 7198", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 208.0}, {"x": 168.0, "y": 208.0}, {"x": 168.0, "y": 234.0}, {"x": 92.0, "y": 234.0}]}], "spans": [{"offset": 37, "length": 35}], "confidence": 0.814}, "BillingAddressRecipient": {"value_type": "string", "value": "Jasper Carney", "content": "Jasper Carney", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 193.0}, {"x": 156.0, "y": 194.0}, {"x": 156.0, "y": 205.0}, {"x": 92.0, "y": 204.0}]}], "spans": [{"offset": 23, "length": 13}], "confidence": 0.754}, "CustomerId": {"value_type": "string", "value": "884948954", "content": "884948954", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 495.0, "y": 224.0}, {"x": 544.0, "y": 223.0}, {"x": 544.0, "y": 234.0}, {"x": 495.0, "y": 234.0}]}], "spans": [{"offset": 151, "length": 9}], "confidence": 0.449}, "CustomerName": {"value_type": "string", "value": "Jasper Carney", "content": "Jasper Carney", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 193.0}, {"x": 156.0, "y": 194.0}, {"x": 156.0, "y": 205.0}, {"x": 92.0, "y": 204.0}]}], "spans": [{"offset": 23, "length": 13}], "confidence": 0.754}, "InvoiceId": {"value_type": "string", "value": "#0001", "content": "#0001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 510.0, "y": 116.0}, {"x": 544.0, "y": 115.0}, {"x": 544.0, "y": 127.0}, {"x": 510.0, "y": 127.0}]}], "spans": [{"offset": 8, "length": 5}], "confidence": 0.578}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 155.0, "symbol": "$"}, "content": "$155", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 447.0}, {"x": 512.0, "y": 447.0}, {"x": 512.0, "y": 457.0}, {"x": 492.0, "y": 457.0}]}], "spans": [{"offset": 445, "length": 4}], "confidence": 0.288}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 125.0, "symbol": "$"}, "content": "$125", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 304.0}, {"x": 507.0, "y": 304.0}, {"x": 506.0, "y": 312.0}, {"x": 493.0, "y": 312.0}]}], "spans": [{"offset": 210, "length": 4}], "confidence": null}, "Description": {"value_type": "string", "value": "Gardening services", "content": "Gardening services", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 158.0, "y": 303.0}, {"x": 219.0, "y": 304.0}, {"x": 219.0, "y": 313.0}, {"x": 158.0, "y": 312.0}]}], "spans": [{"offset": 191, "length": 18}], "confidence": null}, "Quantity": {"value_type": "float", "value": 5.0, "content": "5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 121.0, "y": 304.0}, {"x": 125.0, "y": 304.0}, {"x": 125.0, "y": 311.0}, {"x": 121.0, "y": 311.0}]}], "spans": [{"offset": 189, "length": 1}], "confidence": null}}, "content": "5\nGardening services\n$125", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 121.0, "y": 304.0}, {"x": 507.0, "y": 304.0}, {"x": 507.0, "y": 313.0}, {"x": 121.0, "y": 313.0}]}], "spans": [{"offset": 189, "length": 25}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 40.0, "symbol": "$"}, "content": "$40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 342.0}, {"x": 507.0, "y": 342.0}, {"x": 507.0, "y": 350.0}, {"x": 493.0, "y": 350.0}]}], "spans": [{"offset": 238, "length": 3}], "confidence": null}, "Description": {"value_type": "string", "value": "Landscape Design", "content": "Landscape Design", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 157.0, "y": 342.0}, {"x": 216.0, "y": 343.0}, {"x": 216.0, "y": 352.0}, {"x": 157.0, "y": 351.0}]}], "spans": [{"offset": 217, "length": 16}], "confidence": null}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 343.0}, {"x": 126.0, "y": 343.0}, {"x": 126.0, "y": 351.0}, {"x": 122.0, "y": 351.0}]}], "spans": [{"offset": 215, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 70.0, "symbol": "$"}, "content": "$70", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 403.0, "y": 342.0}, {"x": 416.0, "y": 342.0}, {"x": 416.0, "y": 350.0}, {"x": 403.0, "y": 350.0}]}], "spans": [{"offset": 234, "length": 3}], "confidence": null}}, "content": "2\nLandscape Design\n$70\n$40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 342.0}, {"x": 507.0, "y": 342.0}, {"x": 507.0, "y": 352.0}, {"x": 122.0, "y": 352.0}]}], "spans": [{"offset": 215, "length": 26}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 155.0, "symbol": "$"}, "content": "$155\n$155", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 412.0}, {"x": 511.0, "y": 412.0}, {"x": 511.0, "y": 421.0}, {"x": 494.0, "y": 421.0}]}], "spans": [{"offset": 271, "length": 4}, {"offset": 421, "length": 4}], "confidence": 0.473}, "VendorAddress": {"value_type": "address", "value": {"house_number": "123", "po_box": null, "road": "Main Street", "city": "NY", "state": "NY", "postal_code": "10003", "country_region": null, "street_address": "123 Main Street"}, "content": "123 Main Street NY, NY 10003", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 559.0}, {"x": 218.0, "y": 559.0}, {"x": 218.0, "y": 567.0}, {"x": 124.0, "y": 567.0}]}], "spans": [{"offset": 509, "length": 28}], "confidence": 0.712}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/436_png.rf.b5794a54fb7334e6845960e74e6326e5.json b/Data/test/436_png.rf.b5794a54fb7334e6845960e74e6326e5.json new file mode 100644 index 0000000000000000000000000000000000000000..3a1da9db7583ee414791813f1a9348d588fcac9f --- /dev/null +++ b/Data/test/436_png.rf.b5794a54fb7334e6845960e74e6326e5.json @@ -0,0 +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": 413}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "21th Street, Sad Village", "city": "Quezon City", "state": null, "postal_code": "1110", "country_region": "Metro Manila", "street_address": "21th Street, Sad Village"}, "content": "21th Street, Sad Village\nQuezon City, Metro Manila, 1110", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 286.0, "y": 360.0}, {"x": 395.0, "y": 360.0}, {"x": 395.0, "y": 379.0}, {"x": 286.0, "y": 379.0}]}], "spans": [{"offset": 138, "length": 56}], "confidence": 0.847}, "BillingAddressRecipient": {"value_type": "string", "value": "Angela Test", "content": "Angela Test", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 286.0, "y": 284.0}, {"x": 328.0, "y": 284.0}, {"x": 328.0, "y": 294.0}, {"x": 286.0, "y": 294.0}]}], "spans": [{"offset": 65, "length": 11}], "confidence": 0.726}, "CustomerName": {"value_type": "string", "value": "Angela Test", "content": "Angela Test", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 286.0, "y": 284.0}, {"x": 328.0, "y": 284.0}, {"x": 328.0, "y": 294.0}, {"x": 286.0, "y": 294.0}]}], "spans": [{"offset": 65, "length": 11}], "confidence": 0.726}, "InvoiceDate": {"value_type": "date", "value": "2019-04-24", "content": "24/4/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 245.0, "y": 212.0}, {"x": 282.0, "y": 212.0}, {"x": 282.0, "y": 222.0}, {"x": 245.0, "y": 221.0}]}], "spans": [{"offset": 40, "length": 9}], "confidence": 0.978}, "InvoiceId": {"value_type": "string", "value": "464623", "content": "464623", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 245.0, "y": 187.0}, {"x": 271.0, "y": 186.0}, {"x": 271.0, "y": 195.0}, {"x": 245.0, "y": 195.0}]}], "spans": [{"offset": 28, "length": 6}], "confidence": 0.977}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 194.0, "symbol": "$"}, "content": "$194", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 551.0}, {"x": 483.0, "y": 551.0}, {"x": 483.0, "y": 564.0}, {"x": 455.0, "y": 564.0}]}], "spans": [{"offset": 409, "length": 4}], "confidence": 0.968}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": null}, "content": "50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 443.0, "y": 442.0}, {"x": 451.0, "y": 442.0}, {"x": 451.0, "y": 450.0}, {"x": 443.0, "y": 449.0}]}], "spans": [{"offset": 358, "length": 2}], "confidence": 0.93}, "Description": {"value_type": "string", "value": "Work A", "content": "Work A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 290.0, "y": 442.0}, {"x": 314.0, "y": 442.0}, {"x": 314.0, "y": 451.0}, {"x": 290.0, "y": 451.0}]}], "spans": [{"offset": 349, "length": 6}], "confidence": 0.922}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 226.0, "y": 442.0}, {"x": 234.0, "y": 442.0}, {"x": 234.0, "y": 450.0}, {"x": 226.0, "y": 450.0}]}], "spans": [{"offset": 346, "length": 2}], "confidence": 0.899}, "UnitPrice": {"value_type": "currency", "value": {"amount": 5.0, "symbol": null}, "content": "5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 373.0, "y": 443.0}, {"x": 376.0, "y": 443.0}, {"x": 376.0, "y": 449.0}, {"x": 373.0, "y": 449.0}]}], "spans": [{"offset": 356, "length": 1}], "confidence": 0.928}}, "content": "1\n10\nWork A\n5\n50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 127.0, "y": 442.0}, {"x": 451.0, "y": 442.0}, {"x": 451.0, "y": 451.0}, {"x": 127.0, "y": 451.0}]}], "spans": [{"offset": 344, "length": 16}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 84.0, "symbol": null}, "content": "84", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 442.0, "y": 479.0}, {"x": 451.0, "y": 479.0}, {"x": 451.0, "y": 487.0}, {"x": 442.0, "y": 487.0}]}], "spans": [{"offset": 389, "length": 2}], "confidence": 0.928}, "Description": {"value_type": "string", "value": "Work C", "content": "Work C", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 290.0, "y": 479.0}, {"x": 314.0, "y": 479.0}, {"x": 314.0, "y": 487.0}, {"x": 290.0, "y": 487.0}]}], "spans": [{"offset": 380, "length": 6}], "confidence": 0.921}, "Quantity": {"value_type": "float", "value": 12.0, "content": "12", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 226.0, "y": 479.0}, {"x": 236.0, "y": 479.0}, {"x": 236.0, "y": 487.0}, {"x": 226.0, "y": 487.0}]}], "spans": [{"offset": 377, "length": 2}], "confidence": 0.899}, "UnitPrice": {"value_type": "currency", "value": {"amount": 7.0, "symbol": null}, "content": "7", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 374.0, "y": 479.0}, {"x": 377.0, "y": 479.0}, {"x": 377.0, "y": 486.0}, {"x": 374.0, "y": 486.0}]}], "spans": [{"offset": 387, "length": 1}], "confidence": 0.93}}, "content": "3\n12\nWork C\n7\n84", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 126.0, "y": 478.0}, {"x": 451.0, "y": 478.0}, {"x": 451.0, "y": 487.0}, {"x": 126.0, "y": 487.0}]}], "spans": [{"offset": 375, "length": 16}], "confidence": 0.849}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "111", "po_box": null, "road": "Pine Street", "city": "San Francisco", "state": "CA", "postal_code": "94111", "country_region": null, "street_address": "111 Pine Street Suite 1815"}, "content": "111 Pine Street, Suite 1815 San Francisco, CA, 94111", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 419.0, "y": 69.0}, {"x": 514.0, "y": 69.0}, {"x": 514.0, "y": 87.0}, {"x": 419.0, "y": 87.0}]}], "spans": [{"offset": 215, "length": 52}], "confidence": 0.835}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/439_png.rf.49d5ef0551cf476a7ac530140bfc2b4a.json b/Data/test/439_png.rf.49d5ef0551cf476a7ac530140bfc2b4a.json new file mode 100644 index 0000000000000000000000000000000000000000..07062177736ba6c17a76cfb27063f13487c9e99e --- /dev/null +++ b/Data/test/439_png.rf.49d5ef0551cf476a7ac530140bfc2b4a.json @@ -0,0 +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": 443}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 110518000.0, "symbol": "$"}, "content": "$110,518,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 466.0, "y": 564.0}, {"x": 541.0, "y": 564.0}, {"x": 541.0, "y": 576.0}, {"x": 466.0, "y": 576.0}]}], "spans": [{"offset": 428, "length": 15}], "confidence": 0.977}, "BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Chiba-shi", "state": "Chiba", "postal_code": "261-7116", "country_region": "Japan", "street_address": ""}, "content": "2-6-1 Nakase Mihama-Ku, Chiba-shi, Chiba 261-7116 Japan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 153.0}, {"x": 268.0, "y": 153.0}, {"x": 268.0, "y": 192.0}, {"x": 95.0, "y": 192.0}]}], "spans": [{"offset": 32, "length": 55}], "confidence": 0.889}, "BillingAddressRecipient": {"value_type": "string", "value": "Yusaku Maezawa", "content": "Yusaku Maezawa", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 138.0}, {"x": 177.0, "y": 139.0}, {"x": 177.0, "y": 150.0}, {"x": 96.0, "y": 148.0}]}], "spans": [{"offset": 17, "length": 14}], "confidence": 0.937}, "CustomerName": {"value_type": "string", "value": "Yusaku Maezawa", "content": "Yusaku Maezawa", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 138.0}, {"x": 177.0, "y": 139.0}, {"x": 177.0, "y": 150.0}, {"x": 96.0, "y": 148.0}]}], "spans": [{"offset": 17, "length": 14}], "confidence": 0.937}, "InvoiceDate": {"value_type": "date", "value": "2017-05-18", "content": "May 18, 2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 255.0}, {"x": 152.0, "y": 255.0}, {"x": 152.0, "y": 266.0}, {"x": 95.0, "y": 266.0}]}], "spans": [{"offset": 163, "length": 12}], "confidence": 0.916}, "InvoiceId": {"value_type": "string", "value": "YUSAK-0001", "content": "YUSAK-0001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 240.0}, {"x": 199.0, "y": 240.0}, {"x": 198.0, "y": 251.0}, {"x": 142.0, "y": 251.0}]}], "spans": [{"offset": 152, "length": 10}], "confidence": 0.974}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 110518000.0, "symbol": "$"}, "content": "$110,518,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 466.0, "y": 523.0}, {"x": 542.0, "y": 523.0}, {"x": 542.0, "y": 535.0}, {"x": 466.0, "y": 535.0}]}], "spans": [{"offset": 383, "length": 15}], "confidence": 0.962}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 12000.0, "symbol": "$"}, "content": "$12,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 332.0}, {"x": 540.0, "y": 332.0}, {"x": 541.0, "y": 341.0}, {"x": 493.0, "y": 342.0}]}], "spans": [{"offset": 236, "length": 10}], "confidence": 0.935}, "Description": {"value_type": "string", "value": "Storage", "content": "Storage", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 332.0}, {"x": 133.0, "y": 333.0}, {"x": 133.0, "y": 342.0}, {"x": 96.0, "y": 342.0}]}], "spans": [{"offset": 214, "length": 7}], "confidence": 0.933}, "Quantity": {"value_type": "float", "value": 20.0, "content": "20.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 449.0, "y": 333.0}, {"x": 473.0, "y": 332.0}, {"x": 473.0, "y": 341.0}, {"x": 449.0, "y": 341.0}]}], "spans": [{"offset": 230, "length": 5}], "confidence": 0.934}, "UnitPrice": {"value_type": "currency", "value": {"amount": 600.0, "symbol": "$"}, "content": "$600.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 379.0, "y": 332.0}, {"x": 416.0, "y": 332.0}, {"x": 416.0, "y": 342.0}, {"x": 380.0, "y": 342.0}]}], "spans": [{"offset": 222, "length": 7}], "confidence": 0.937}}, "content": "Storage\n$600.00\n20.00\n$12,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 332.0}, {"x": 541.0, "y": 332.0}, {"x": 541.0, "y": 342.0}, {"x": 96.0, "y": 342.0}]}], "spans": [{"offset": 214, "length": 32}], "confidence": 0.909}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 6000.0, "symbol": "$"}, "content": "$6,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 496.0, "y": 359.0}, {"x": 541.0, "y": 359.0}, {"x": 541.0, "y": 368.0}, {"x": 496.0, "y": 369.0}]}], "spans": [{"offset": 270, "length": 9}], "confidence": 0.935}, "Description": {"value_type": "string", "value": "Security", "content": "Security", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 358.0}, {"x": 137.0, "y": 360.0}, {"x": 136.0, "y": 370.0}, {"x": 96.0, "y": 369.0}]}], "spans": [{"offset": 247, "length": 8}], "confidence": 0.933}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 359.0}, {"x": 474.0, "y": 359.0}, {"x": 474.0, "y": 368.0}, {"x": 452.0, "y": 367.0}]}], "spans": [{"offset": 264, "length": 5}], "confidence": 0.939}, "UnitPrice": {"value_type": "currency", "value": {"amount": 600.0, "symbol": "$"}, "content": "$600.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 379.0, "y": 359.0}, {"x": 416.0, "y": 359.0}, {"x": 416.0, "y": 369.0}, {"x": 379.0, "y": 369.0}]}], "spans": [{"offset": 256, "length": 7}], "confidence": 0.936}}, "content": "Security\n$600.00\n10.00\n$6,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 349.0}, {"x": 541.0, "y": 359.0}, {"x": 541.0, "y": 379.0}, {"x": 96.0, "y": 369.0}]}], "spans": [{"offset": 247, "length": 32}], "confidence": 0.908}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 110500000.0, "symbol": "$"}, "content": "$110,500,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 445.0}, {"x": 541.0, "y": 445.0}, {"x": 541.0, "y": 456.0}, {"x": 469.0, "y": 456.0}]}], "spans": [{"offset": 360, "length": 15}], "confidence": 0.934}, "Description": {"value_type": "string", "value": "Untitled Work\nJean-Michel Basquiat, 1982", "content": "Untitled Work Jean-Michel Basquiat, 1982", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 445.0}, {"x": 212.0, "y": 445.0}, {"x": 212.0, "y": 469.0}, {"x": 95.0, "y": 469.0}]}], "spans": [{"offset": 301, "length": 40}], "confidence": 0.588}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 444.0}, {"x": 453.0, "y": 444.0}, {"x": 453.0, "y": 455.0}, {"x": 448.0, "y": 455.0}]}], "spans": [{"offset": 358, "length": 1}], "confidence": 0.933}, "UnitPrice": {"value_type": "currency", "value": {"amount": 110500000.0, "symbol": "$"}, "content": "$110,500,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 327.0, "y": 445.0}, {"x": 399.0, "y": 445.0}, {"x": 399.0, "y": 456.0}, {"x": 327.0, "y": 456.0}]}], "spans": [{"offset": 342, "length": 15}], "confidence": 0.935}}, "content": "Untitled Work Jean-Michel Basquiat, 1982\n$110,500,000.00\n1\n$110,500,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 444.0}, {"x": 541.0, "y": 444.0}, {"x": 541.0, "y": 469.0}, {"x": 95.0, "y": 469.0}]}], "spans": [{"offset": 301, "length": 74}], "confidence": 0.673}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "1982", "po_box": null, "road": "West", "city": "Palo Alto", "state": "CA", "postal_code": "94032", "country_region": "United States", "street_address": "1982 West"}, "content": "1982 West Palo Alto, CA 94032 United States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 153.0}, {"x": 544.0, "y": 153.0}, {"x": 544.0, "y": 193.0}, {"x": 454.0, "y": 193.0}]}], "spans": [{"offset": 97, "length": 43}], "confidence": 0.767}, "VendorAddressRecipient": {"value_type": "string", "value": "Your Co.", "content": "Your Co.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 504.0, "y": 138.0}, {"x": 544.0, "y": 138.0}, {"x": 544.0, "y": 149.0}, {"x": 504.0, "y": 149.0}]}], "spans": [{"offset": 88, "length": 8}], "confidence": 0.612}, "VendorName": {"value_type": "string", "value": "Your Co.", "content": "Your Co.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 146.0, "y": 63.0}, {"x": 253.0, "y": 63.0}, {"x": 253.0, "y": 99.0}, {"x": 146.0, "y": 99.0}]}], "spans": [{"offset": 0, "length": 8}], "confidence": 0.835}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/442_jpg.rf.a30593becd0dd8a81b056eacabeb3604.json b/Data/test/442_jpg.rf.a30593becd0dd8a81b056eacabeb3604.json new file mode 100644 index 0000000000000000000000000000000000000000..d2937f2118dcea8851448262fcefc148a350a172 --- /dev/null +++ b/Data/test/442_jpg.rf.a30593becd0dd8a81b056eacabeb3604.json @@ -0,0 +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": 559}], "fields": {"InvoiceDate": {"value_type": "date", "value": "2020-07-18", "content": "July 18th, 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 443.0, "y": 60.0}, {"x": 512.0, "y": 60.0}, {"x": 512.0, "y": 70.0}, {"x": 443.0, "y": 70.0}]}], "spans": [{"offset": 67, "length": 15}], "confidence": 0.273}, "InvoiceId": {"value_type": "string", "value": "1234", "content": "1234", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 47.0}, {"x": 512.0, "y": 47.0}, {"x": 512.0, "y": 56.0}, {"x": 492.0, "y": 56.0}]}], "spans": [{"offset": 62, "length": 4}], "confidence": 0.119}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 3180.0, "symbol": "$"}, "content": "$3,180.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 475.0, "y": 391.0}, {"x": 512.0, "y": 390.0}, {"x": 512.0, "y": 398.0}, {"x": 475.0, "y": 398.0}]}], "spans": [{"offset": 325, "length": 9}], "confidence": 0.156}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2200.0, "symbol": "$"}, "content": "$2,200", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 485.0, "y": 197.0}, {"x": 509.0, "y": 197.0}, {"x": 509.0, "y": 205.0}, {"x": 485.0, "y": 205.0}]}], "spans": [{"offset": 162, "length": 6}], "confidence": 0.994}, "Description": {"value_type": "string", "value": "Ring 22 CTs Gold", "content": "Ring 22 CTs Gold", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 258.0, "y": 196.0}, {"x": 318.0, "y": 196.0}, {"x": 318.0, "y": 206.0}, {"x": 258.0, "y": 206.0}]}], "spans": [{"offset": 138, "length": 16}], "confidence": 0.99}, "UnitPrice": {"value_type": "currency", "value": {"amount": 2.2, "symbol": "$"}, "content": "$2.200", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 446.0, "y": 197.0}, {"x": 469.0, "y": 197.0}, {"x": 469.0, "y": 205.0}, {"x": 446.0, "y": 205.0}]}], "spans": [{"offset": 155, "length": 6}], "confidence": 0.995}}, "content": "Ring 22 CTs Gold\n$2.200\n$2,200", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 258.0, "y": 196.0}, {"x": 509.0, "y": 196.0}, {"x": 509.0, "y": 206.0}, {"x": 258.0, "y": 206.0}]}], "spans": [{"offset": 138, "length": 30}], "confidence": 0.844}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "$"}, "content": "$500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 491.0, "y": 232.0}, {"x": 510.0, "y": 232.0}, {"x": 510.0, "y": 240.0}, {"x": 491.0, "y": 241.0}]}], "spans": [{"offset": 213, "length": 4}], "confidence": 0.995}, "Description": {"value_type": "string", "value": "Description 2", "content": "Description 2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 258.0, "y": 233.0}, {"x": 307.0, "y": 233.0}, {"x": 307.0, "y": 243.0}, {"x": 258.0, "y": 243.0}]}], "spans": [{"offset": 192, "length": 13}], "confidence": 0.994}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 419.0, "y": 234.0}, {"x": 422.0, "y": 234.0}, {"x": 422.0, "y": 241.0}, {"x": 419.0, "y": 241.0}]}], "spans": [{"offset": 206, "length": 1}], "confidence": 0.994}, "UnitPrice": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "$"}, "content": "$500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 233.0}, {"x": 470.0, "y": 233.0}, {"x": 470.0, "y": 241.0}, {"x": 452.0, "y": 241.0}]}], "spans": [{"offset": 208, "length": 4}], "confidence": 0.995}}, "content": "Description 2\n1\n$500\n$500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 258.0, "y": 232.0}, {"x": 510.0, "y": 232.0}, {"x": 510.0, "y": 243.0}, {"x": 258.0, "y": 243.0}]}], "spans": [{"offset": 192, "length": 25}], "confidence": 0.787}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 250.0, "symbol": "$"}, "content": "$250", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 491.0, "y": 270.0}, {"x": 509.0, "y": 270.0}, {"x": 509.0, "y": 278.0}, {"x": 491.0, "y": 278.0}]}], "spans": [{"offset": 271, "length": 4}], "confidence": 0.995}, "Description": {"value_type": "string", "value": "Description 3", "content": "Description 3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 258.0, "y": 269.0}, {"x": 306.0, "y": 270.0}, {"x": 306.0, "y": 280.0}, {"x": 258.0, "y": 279.0}]}], "spans": [{"offset": 252, "length": 13}], "confidence": 0.994}, "UnitPrice": {"value_type": "currency", "value": {"amount": 250.0, "symbol": "$"}, "content": "$250", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 271.0}, {"x": 469.0, "y": 271.0}, {"x": 470.0, "y": 279.0}, {"x": 452.0, "y": 279.0}]}], "spans": [{"offset": 266, "length": 4}], "confidence": 0.995}}, "content": "Description 3\n$250\n$250", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 258.0, "y": 270.0}, {"x": 509.0, "y": 270.0}, {"x": 509.0, "y": 280.0}, {"x": 258.0, "y": 280.0}]}], "spans": [{"offset": 252, "length": 23}], "confidence": 0.504}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 496.0, "y": 307.0}, {"x": 509.0, "y": 307.0}, {"x": 509.0, "y": 315.0}, {"x": 496.0, "y": 315.0}]}], "spans": [{"offset": 292, "length": 3}], "confidence": 0.995}, "Description": {"value_type": "string", "value": "Description 4", "content": "Description 4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 259.0, "y": 303.0}, {"x": 306.0, "y": 308.0}, {"x": 305.0, "y": 321.0}, {"x": 257.0, "y": 316.0}]}], "spans": [{"offset": 276, "length": 13}], "confidence": 0.994}, "Quantity": {"value_type": "float", "value": null, "content": "-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 422.0, "y": 309.0}, {"x": 422.0, "y": 311.0}, {"x": 418.0, "y": 311.0}, {"x": 418.0, "y": 309.0}]}], "spans": [{"offset": 290, "length": 1}], "confidence": 0.985}}, "content": "Description 4\n-\n$50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 261.0, "y": 279.0}, {"x": 510.0, "y": 307.0}, {"x": 506.0, "y": 344.0}, {"x": 257.0, "y": 316.0}]}], "spans": [{"offset": 276, "length": 19}], "confidence": 0.389}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 3000.0, "symbol": "$"}, "content": "$3000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 475.0, "y": 364.0}, {"x": 512.0, "y": 364.0}, {"x": 513.0, "y": 372.0}, {"x": 475.0, "y": 372.0}]}], "spans": [{"offset": 303, "length": 8}], "confidence": 0.424}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Miami", "state": "FL", "postal_code": null, "country_region": null, "street_address": ""}, "content": "Miami FL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 472.0, "y": 73.0}, {"x": 513.0, "y": 73.0}, {"x": 513.0, "y": 82.0}, {"x": 472.0, "y": 82.0}]}], "spans": [{"offset": 83, "length": 8}], "confidence": 0.003}, "VendorName": {"value_type": "string", "value": "W.K DIAMOND", "content": "W.K DIAMOND", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 47.0}, {"x": 301.0, "y": 47.0}, {"x": 301.0, "y": 67.0}, {"x": 166.0, "y": 67.0}]}], "spans": [{"offset": 11, "length": 11}], "confidence": 0.065}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/445_jpg.rf.4addce989b7b55f4ac7cefb0e9b5aac3.json b/Data/test/445_jpg.rf.4addce989b7b55f4ac7cefb0e9b5aac3.json new file mode 100644 index 0000000000000000000000000000000000000000..32b246afc83eb214f2389a6a2d26c13b82ce49d9 --- /dev/null +++ b/Data/test/445_jpg.rf.4addce989b7b55f4ac7cefb0e9b5aac3.json @@ -0,0 +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": 791}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "STREET 123", "city": null, "state": "CALIFORNIA", "postal_code": null, "country_region": null, "street_address": "STREET 123"}, "content": "STREET 123. CALIFORNIA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 360.0, "y": 91.0}, {"x": 501.0, "y": 91.0}, {"x": 501.0, "y": 104.0}, {"x": 360.0, "y": 104.0}]}], "spans": [{"offset": 65, "length": 22}], "confidence": 0.423}, "BillingAddressRecipient": {"value_type": "string", "value": "SURNAME", "content": "SURNAME", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 78.0}, {"x": 454.0, "y": 79.0}, {"x": 454.0, "y": 91.0}, {"x": 397.0, "y": 91.0}]}], "spans": [{"offset": 57, "length": 7}], "confidence": 0.431}, "CustomerName": {"value_type": "string", "value": "SURNAME", "content": "SURNAME", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 78.0}, {"x": 454.0, "y": 79.0}, {"x": 454.0, "y": 91.0}, {"x": 397.0, "y": 91.0}]}], "spans": [{"offset": 57, "length": 7}], "confidence": 0.431}, "InvoiceDate": {"value_type": "date", "value": "2020-11-20", "content": "NOV 20, 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 396.0, "y": 40.0}, {"x": 476.0, "y": 40.0}, {"x": 476.0, "y": 53.0}, {"x": 396.0, "y": 53.0}]}], "spans": [{"offset": 19, "length": 12}], "confidence": 0.936}, "InvoiceId": {"value_type": "string", "value": "#001", "content": "#001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 411.0, "y": 26.0}, {"x": 440.0, "y": 26.0}, {"x": 440.0, "y": 40.0}, {"x": 411.0, "y": 40.0}]}], "spans": [{"offset": 8, "length": 4}], "confidence": 0.572}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 88.0, "symbol": "$"}, "content": "$88.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 428.0, "y": 409.0}, {"x": 462.0, "y": 409.0}, {"x": 462.0, "y": 420.0}, {"x": 428.0, "y": 419.0}]}], "spans": [{"offset": 380, "length": 6}], "confidence": 0.95}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 23.0, "symbol": "$"}, "content": "$23.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 428.0, "y": 206.0}, {"x": 457.0, "y": 205.0}, {"x": 457.0, "y": 215.0}, {"x": 428.0, "y": 215.0}]}], "spans": [{"offset": 136, "length": 6}], "confidence": 0.829}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 150.0, "y": 205.0}, {"x": 225.0, "y": 205.0}, {"x": 225.0, "y": 215.0}, {"x": 150.0, "y": 215.0}]}], "spans": [{"offset": 112, "length": 14}], "confidence": 0.848}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 381.0, "y": 205.0}, {"x": 385.0, "y": 205.0}, {"x": 385.0, "y": 214.0}, {"x": 381.0, "y": 214.0}]}], "spans": [{"offset": 134, "length": 1}], "confidence": 0.812}, "UnitPrice": {"value_type": "currency", "value": {"amount": 23.0, "symbol": "$"}, "content": "$23.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 303.0, "y": 206.0}, {"x": 333.0, "y": 205.0}, {"x": 333.0, "y": 215.0}, {"x": 303.0, "y": 215.0}]}], "spans": [{"offset": 127, "length": 6}], "confidence": 0.829}}, "content": "Your item name\n$23.00\n1\n$23.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 150.0, "y": 205.0}, {"x": 457.0, "y": 205.0}, {"x": 457.0, "y": 215.0}, {"x": 150.0, "y": 215.0}]}], "spans": [{"offset": 112, "length": 30}], "confidence": 0.585}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 15.0, "symbol": "$"}, "content": "$15.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 428.0, "y": 238.0}, {"x": 457.0, "y": 238.0}, {"x": 457.0, "y": 248.0}, {"x": 428.0, "y": 248.0}]}], "spans": [{"offset": 167, "length": 6}], "confidence": 0.829}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 238.0}, {"x": 225.0, "y": 238.0}, {"x": 225.0, "y": 249.0}, {"x": 151.0, "y": 249.0}]}], "spans": [{"offset": 143, "length": 14}], "confidence": 0.851}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 381.0, "y": 238.0}, {"x": 386.0, "y": 238.0}, {"x": 386.0, "y": 247.0}, {"x": 381.0, "y": 247.0}]}], "spans": [{"offset": 165, "length": 1}], "confidence": 0.808}, "UnitPrice": {"value_type": "currency", "value": {"amount": 15.0, "symbol": "$"}, "content": "$15.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 304.0, "y": 238.0}, {"x": 333.0, "y": 239.0}, {"x": 333.0, "y": 248.0}, {"x": 304.0, "y": 248.0}]}], "spans": [{"offset": 158, "length": 6}], "confidence": 0.845}}, "content": "Your item name\n$15.00\n1\n$15.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 238.0}, {"x": 457.0, "y": 238.0}, {"x": 457.0, "y": 249.0}, {"x": 151.0, "y": 249.0}]}], "spans": [{"offset": 143, "length": 30}], "confidence": 0.581}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 428.0, "y": 271.0}, {"x": 457.0, "y": 271.0}, {"x": 457.0, "y": 281.0}, {"x": 428.0, "y": 280.0}]}], "spans": [{"offset": 198, "length": 6}], "confidence": 0.831}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 271.0}, {"x": 224.0, "y": 271.0}, {"x": 224.0, "y": 281.0}, {"x": 151.0, "y": 281.0}]}], "spans": [{"offset": 174, "length": 14}], "confidence": 0.849}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 380.0, "y": 271.0}, {"x": 385.0, "y": 271.0}, {"x": 385.0, "y": 280.0}, {"x": 380.0, "y": 280.0}]}], "spans": [{"offset": 196, "length": 1}], "confidence": 0.813}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 304.0, "y": 271.0}, {"x": 333.0, "y": 271.0}, {"x": 333.0, "y": 281.0}, {"x": 304.0, "y": 280.0}]}], "spans": [{"offset": 189, "length": 6}], "confidence": 0.829}}, "content": "Your item name\n$10.00\n1\n$10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 266.0}, {"x": 457.0, "y": 271.0}, {"x": 457.0, "y": 286.0}, {"x": 151.0, "y": 281.0}]}], "spans": [{"offset": 174, "length": 30}], "confidence": 0.587}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 30.0, "symbol": "$"}, "content": "$30.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 429.0, "y": 304.0}, {"x": 458.0, "y": 304.0}, {"x": 458.0, "y": 313.0}, {"x": 429.0, "y": 313.0}]}], "spans": [{"offset": 229, "length": 6}], "confidence": 0.83}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 303.0}, {"x": 225.0, "y": 303.0}, {"x": 225.0, "y": 313.0}, {"x": 151.0, "y": 313.0}]}], "spans": [{"offset": 205, "length": 14}], "confidence": 0.851}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 381.0, "y": 303.0}, {"x": 385.0, "y": 303.0}, {"x": 384.0, "y": 313.0}, {"x": 380.0, "y": 313.0}]}], "spans": [{"offset": 227, "length": 1}], "confidence": 0.813}, "UnitPrice": {"value_type": "currency", "value": {"amount": 30.0, "symbol": "$"}, "content": "$30.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 304.0, "y": 303.0}, {"x": 333.0, "y": 303.0}, {"x": 334.0, "y": 313.0}, {"x": 305.0, "y": 313.0}]}], "spans": [{"offset": 220, "length": 6}], "confidence": 0.829}}, "content": "Your item name\n$30.00\n1\n$30.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 303.0}, {"x": 458.0, "y": 303.0}, {"x": 458.0, "y": 313.0}, {"x": 151.0, "y": 313.0}]}], "spans": [{"offset": 205, "length": 30}], "confidence": 0.585}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 429.0, "y": 337.0}, {"x": 458.0, "y": 337.0}, {"x": 458.0, "y": 346.0}, {"x": 429.0, "y": 346.0}]}], "spans": [{"offset": 260, "length": 6}], "confidence": 0.836}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 336.0}, {"x": 225.0, "y": 336.0}, {"x": 225.0, "y": 347.0}, {"x": 151.0, "y": 347.0}]}], "spans": [{"offset": 236, "length": 14}], "confidence": 0.851}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 380.0, "y": 336.0}, {"x": 385.0, "y": 336.0}, {"x": 385.0, "y": 345.0}, {"x": 380.0, "y": 345.0}]}], "spans": [{"offset": 258, "length": 1}], "confidence": 0.809}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 305.0, "y": 337.0}, {"x": 334.0, "y": 337.0}, {"x": 334.0, "y": 346.0}, {"x": 305.0, "y": 346.0}]}], "spans": [{"offset": 251, "length": 6}], "confidence": 0.827}}, "content": "Your item name\n$10.00\n1\n$10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 336.0}, {"x": 458.0, "y": 336.0}, {"x": 458.0, "y": 347.0}, {"x": 151.0, "y": 347.0}]}], "spans": [{"offset": 236, "length": 30}], "confidence": 0.581}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 88.0, "symbol": "$"}, "content": "$88.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 428.0, "y": 378.0}, {"x": 462.0, "y": 379.0}, {"x": 462.0, "y": 389.0}, {"x": 428.0, "y": 389.0}]}], "spans": [{"offset": 331, "length": 6}], "confidence": 0.955}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$00.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 428.0, "y": 395.0}, {"x": 462.0, "y": 394.0}, {"x": 462.0, "y": 405.0}, {"x": 428.0, "y": 404.0}]}], "spans": [{"offset": 338, "length": 6}], "confidence": 0.955}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/449_JPG.rf.6f028a5da8c6886f5d2786e060d986f3.json b/Data/test/449_JPG.rf.6f028a5da8c6886f5d2786e060d986f3.json new file mode 100644 index 0000000000000000000000000000000000000000..51466ed4b03454e737bf83213b24964b77ac6afa --- /dev/null +++ b/Data/test/449_JPG.rf.6f028a5da8c6886f5d2786e060d986f3.json @@ -0,0 +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": 947}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 2100.0, "symbol": "$"}, "content": "$2,100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 568.0, "y": 214.0}, {"x": 621.0, "y": 214.0}, {"x": 621.0, "y": 227.0}, {"x": 568.0, "y": 226.0}]}], "spans": [{"offset": 296, "length": 9}], "confidence": 0.829}, "CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Portland", "state": "OR", "postal_code": "97214", "country_region": null, "street_address": ""}, "content": "Portland, OR 97214", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 57.0, "y": 318.0}, {"x": 154.0, "y": 318.0}, {"x": 154.0, "y": 330.0}, {"x": 57.0, "y": 330.0}]}], "spans": [{"offset": 125, "length": 18}], "confidence": 0.807}, "CustomerAddressRecipient": {"value_type": "string", "value": "James Teach Me", "content": "James Teach Me", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 57.0, "y": 291.0}, {"x": 139.0, "y": 291.0}, {"x": 139.0, "y": 304.0}, {"x": 57.0, "y": 304.0}]}], "spans": [{"offset": 110, "length": 14}], "confidence": 0.794}, "CustomerId": {"value_type": "string", "value": "A\n43", "content": "A 43", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 585.0, "y": 174.0}, {"x": 629.0, "y": 174.0}, {"x": 629.0, "y": 185.0}, {"x": 585.0, "y": 185.0}]}], "spans": [{"offset": 239, "length": 4}], "confidence": 0.936}, "CustomerName": {"value_type": "string", "value": "Cashier 1 Joy Teach Me", "content": "Cashier 1 Joy Teach Me", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 193.0}, {"x": 628.0, "y": 193.0}, {"x": 628.0, "y": 207.0}, {"x": 512.0, "y": 207.0}]}], "spans": [{"offset": 258, "length": 22}], "confidence": 0.577}, "InvoiceDate": {"value_type": "date", "value": "2021-06-28", "content": "06/28/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 575.0, "y": 155.0}, {"x": 630.0, "y": 155.0}, {"x": 630.0, "y": 167.0}, {"x": 575.0, "y": 167.0}]}], "spans": [{"offset": 212, "length": 10}], "confidence": 0.955}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2100.0, "symbol": "$"}, "content": "$2,100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 412.0, "y": 463.0}, {"x": 466.0, "y": 463.0}, {"x": 466.0, "y": 477.0}, {"x": 412.0, "y": 477.0}]}], "spans": [{"offset": 718, "length": 9}], "confidence": 0.712}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1050.0, "symbol": "$"}, "content": "$1,050.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 579.0, "y": 417.0}, {"x": 628.0, "y": 417.0}, {"x": 628.0, "y": 430.0}, {"x": 580.0, "y": 430.0}]}], "spans": [{"offset": 612, "length": 9}], "confidence": 0.822}, "Description": {"value_type": "string", "value": "Previous Balance:", "content": "Previous Balance:", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 208.0, "y": 418.0}, {"x": 312.0, "y": 419.0}, {"x": 312.0, "y": 433.0}, {"x": 208.0, "y": 431.0}]}], "spans": [{"offset": 584, "length": 17}], "confidence": 0.295}, "UnitPrice": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$1.050.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 417.0, "y": 418.0}, {"x": 466.0, "y": 418.0}, {"x": 466.0, "y": 430.0}, {"x": 417.0, "y": 429.0}]}], "spans": [{"offset": 602, "length": 9}], "confidence": 0.257}}, "content": "Previous Balance:\n$1.050.00\n$1,050.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 208.0, "y": 413.0}, {"x": 628.0, "y": 417.0}, {"x": 628.0, "y": 436.0}, {"x": 208.0, "y": 431.0}]}], "spans": [{"offset": 584, "length": 37}], "confidence": 0.936}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1050.0, "symbol": "$"}, "content": "$1,050.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 579.0, "y": 448.0}, {"x": 629.0, "y": 447.0}, {"x": 629.0, "y": 461.0}, {"x": 579.0, "y": 461.0}]}], "spans": [{"offset": 692, "length": 9}], "confidence": 0.839}, "Date": {"value_type": "date", "value": "2021-06-28", "content": "06/28/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 16.0, "y": 436.0}, {"x": 72.0, "y": 436.0}, {"x": 72.0, "y": 448.0}, {"x": 16.0, "y": 448.0}]}], "spans": [{"offset": 622, "length": 10}], "confidence": 0.504}, "Description": {"value_type": "string", "value": "** (IN PROCESS)Crown, porcelain/noble r", "content": "** (IN PROCESS)Crown, porcelain/noble r", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 207.0, "y": 435.0}, {"x": 410.0, "y": 435.0}, {"x": 410.0, "y": 449.0}, {"x": 207.0, "y": 449.0}]}], "spans": [{"offset": 642, "length": 39}], "confidence": 0.163}, "ProductCode": {"value_type": "string", "value": "D2752", "content": "D2752", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 436.0}, {"x": 134.0, "y": 436.0}, {"x": 133.0, "y": 448.0}, {"x": 101.0, "y": 447.0}]}], "spans": [{"offset": 633, "length": 5}], "confidence": 0.295}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1050.0, "symbol": "$"}, "content": "$1,050.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 417.0, "y": 435.0}, {"x": 467.0, "y": 436.0}, {"x": 467.0, "y": 448.0}, {"x": 417.0, "y": 449.0}]}], "spans": [{"offset": 682, "length": 9}], "confidence": 0.176}}, "content": "06/28/2021\nD2752\n31\n** (IN PROCESS)Crown, porcelain/noble r $1,050.00\n$1,050.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 16.0, "y": 435.0}, {"x": 629.0, "y": 435.0}, {"x": 629.0, "y": 461.0}, {"x": 16.0, "y": 461.0}]}], "spans": [{"offset": 622, "length": 79}], "confidence": 0.931}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PreviousUnpaidBalance": {"value_type": "currency", "value": {"amount": 1050.0, "symbol": "$"}, "content": "$1,050.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 579.0, "y": 417.0}, {"x": 628.0, "y": 417.0}, {"x": 628.0, "y": 430.0}, {"x": 580.0, "y": 430.0}]}], "spans": [{"offset": 612, "length": 9}], "confidence": 0.426}, "VendorName": {"value_type": "string", "value": "School of\nDENTISTRY\nOHSU", "content": "School of DENTISTRY\nOHSU", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 42.0, "y": 151.0}, {"x": 230.0, "y": 151.0}, {"x": 230.0, "y": 210.0}, {"x": 42.0, "y": 209.0}]}], "spans": [{"offset": 0, "length": 24}], "confidence": 0.756}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/455_jpg.rf.2d1346630ad7531458bf3f136ca87a4d.json b/Data/test/455_jpg.rf.2d1346630ad7531458bf3f136ca87a4d.json new file mode 100644 index 0000000000000000000000000000000000000000..54a7733f8c35d163ac677d19afd0b4afb5c83fc9 --- /dev/null +++ b/Data/test/455_jpg.rf.2d1346630ad7531458bf3f136ca87a4d.json @@ -0,0 +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": 834}], "fields": {"CustomerId": {"value_type": "string", "value": "0123456789", "content": "0123456789", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 381.0, "y": 481.0}, {"x": 426.0, "y": 480.0}, {"x": 426.0, "y": 491.0}, {"x": 381.0, "y": 491.0}]}], "spans": [{"offset": 524, "length": 10}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": null, "content": "14 February 2025", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 178.0, "y": 154.0}, {"x": 251.0, "y": 154.0}, {"x": 251.0, "y": 164.0}, {"x": 178.0, "y": 164.0}]}], "spans": [{"offset": 143, "length": 16}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "123456", "content": "123456", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 222.0, "y": 138.0}, {"x": 250.0, "y": 138.0}, {"x": 250.0, "y": 147.0}, {"x": 222.0, "y": 147.0}]}], "spans": [{"offset": 129, "length": 6}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 66.0, "symbol": "$"}, "content": "$66.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 429.0}, {"x": 484.0, "y": 429.0}, {"x": 484.0, "y": 439.0}, {"x": 453.0, "y": 438.0}]}], "spans": [{"offset": 427, "length": 6}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 510.0, "symbol": null}, "content": "510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 226.0}, {"x": 479.0, "y": 226.0}, {"x": 479.0, "y": 235.0}, {"x": 454.0, "y": 235.0}]}], "spans": [{"offset": 225, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Product Description", "content": "Product Description", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 226.0}, {"x": 243.0, "y": 226.0}, {"x": 243.0, "y": 236.0}, {"x": 159.0, "y": 236.0}]}], "spans": [{"offset": 197, "length": 19}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 405.0, "y": 225.0}, {"x": 410.0, "y": 225.0}, {"x": 410.0, "y": 234.0}, {"x": 405.0, "y": 234.0}]}], "spans": [{"offset": 223, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1000.0, "symbol": "$"}, "content": "S1000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 333.0, "y": 226.0}, {"x": 358.0, "y": 226.0}, {"x": 358.0, "y": 235.0}, {"x": 333.0, "y": 235.0}]}], "spans": [{"offset": 217, "length": 5}], "confidence": null}}, "content": "Product Description\nS1000\n1\n510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 225.0}, {"x": 479.0, "y": 225.0}, {"x": 479.0, "y": 236.0}, {"x": 159.0, "y": 236.0}]}], "spans": [{"offset": 197, "length": 34}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 510.0, "symbol": null}, "content": "510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 254.0}, {"x": 480.0, "y": 255.0}, {"x": 480.0, "y": 264.0}, {"x": 453.0, "y": 263.0}]}], "spans": [{"offset": 261, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Product Description", "content": "Product Description", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 254.0}, {"x": 243.0, "y": 254.0}, {"x": 243.0, "y": 264.0}, {"x": 159.0, "y": 264.0}]}], "spans": [{"offset": 232, "length": 19}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 405.0, "y": 254.0}, {"x": 408.0, "y": 254.0}, {"x": 408.0, "y": 262.0}, {"x": 405.0, "y": 262.0}]}], "spans": [{"offset": 259, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 510.0, "symbol": null}, "content": "510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 333.0, "y": 255.0}, {"x": 359.0, "y": 255.0}, {"x": 359.0, "y": 264.0}, {"x": 333.0, "y": 264.0}]}], "spans": [{"offset": 252, "length": 6}], "confidence": null}}, "content": "Product Description\n510.00\n1\n510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 254.0}, {"x": 480.0, "y": 254.0}, {"x": 480.0, "y": 264.0}, {"x": 159.0, "y": 264.0}]}], "spans": [{"offset": 232, "length": 35}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 510.0, "symbol": null}, "content": "510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 282.0}, {"x": 479.0, "y": 282.0}, {"x": 479.0, "y": 292.0}, {"x": 454.0, "y": 291.0}]}], "spans": [{"offset": 297, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Product Description", "content": "Product Description", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 282.0}, {"x": 243.0, "y": 282.0}, {"x": 243.0, "y": 292.0}, {"x": 159.0, "y": 292.0}]}], "spans": [{"offset": 268, "length": 19}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 405.0, "y": 282.0}, {"x": 409.0, "y": 282.0}, {"x": 409.0, "y": 290.0}, {"x": 405.0, "y": 290.0}]}], "spans": [{"offset": 295, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 510.0, "symbol": null}, "content": "510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 282.0}, {"x": 358.0, "y": 282.0}, {"x": 358.0, "y": 291.0}, {"x": 332.0, "y": 291.0}]}], "spans": [{"offset": 288, "length": 6}], "confidence": null}}, "content": "Product Description\n510.00\n1\n510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 282.0}, {"x": 479.0, "y": 282.0}, {"x": 479.0, "y": 292.0}, {"x": 159.0, "y": 292.0}]}], "spans": [{"offset": 268, "length": 35}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 510.0, "symbol": null}, "content": "510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 309.0}, {"x": 480.0, "y": 309.0}, {"x": 480.0, "y": 318.0}, {"x": 453.0, "y": 319.0}]}], "spans": [{"offset": 326, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Product Description", "content": "Product Description", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 310.0}, {"x": 242.0, "y": 311.0}, {"x": 242.0, "y": 321.0}, {"x": 159.0, "y": 320.0}]}], "spans": [{"offset": 304, "length": 19}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 405.0, "y": 310.0}, {"x": 409.0, "y": 310.0}, {"x": 409.0, "y": 319.0}, {"x": 405.0, "y": 319.0}]}], "spans": [{"offset": 324, "length": 1}], "confidence": null}}, "content": "Product Description\n1\n510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 309.0}, {"x": 480.0, "y": 309.0}, {"x": 480.0, "y": 320.0}, {"x": 159.0, "y": 320.0}]}], "spans": [{"offset": 304, "length": 28}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 510.0, "symbol": null}, "content": "510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 338.0}, {"x": 479.0, "y": 338.0}, {"x": 479.0, "y": 347.0}, {"x": 454.0, "y": 347.0}]}], "spans": [{"offset": 362, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Product Description", "content": "Product Description", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 338.0}, {"x": 243.0, "y": 339.0}, {"x": 243.0, "y": 349.0}, {"x": 159.0, "y": 348.0}]}], "spans": [{"offset": 333, "length": 19}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 405.0, "y": 338.0}, {"x": 408.0, "y": 338.0}, {"x": 410.0, "y": 346.0}, {"x": 405.0, "y": 347.0}]}], "spans": [{"offset": 360, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 510.0, "symbol": null}, "content": "510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 339.0}, {"x": 358.0, "y": 338.0}, {"x": 358.0, "y": 348.0}, {"x": 333.0, "y": 348.0}]}], "spans": [{"offset": 353, "length": 6}], "confidence": null}}, "content": "Product Description\n510.00\n1\n510.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 338.0}, {"x": 479.0, "y": 338.0}, {"x": 479.0, "y": 348.0}, {"x": 159.0, "y": 348.0}]}], "spans": [{"offset": 333, "length": 35}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 367.0}, {"x": 481.0, "y": 367.0}, {"x": 481.0, "y": 377.0}, {"x": 453.0, "y": 377.0}]}], "spans": [{"offset": 378, "length": 6}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 401.0}, {"x": 474.0, "y": 401.0}, {"x": 474.0, "y": 410.0}, {"x": 454.0, "y": 410.0}]}], "spans": [{"offset": 410, "length": 4}], "confidence": null}, "VendorName": {"value_type": "string", "value": "MOBIL ACD", "content": "MOBIL ACD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 32.0}, {"x": 278.0, "y": 34.0}, {"x": 278.0, "y": 49.0}, {"x": 191.0, "y": 48.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/456_jpg.rf.64441994c7eb157cd8621a432902461c.json b/Data/test/456_jpg.rf.64441994c7eb157cd8621a432902461c.json new file mode 100644 index 0000000000000000000000000000000000000000..0a5cf64a73f20f3fc9958313132ac283f08f7f33 --- /dev/null +++ b/Data/test/456_jpg.rf.64441994c7eb157cd8621a432902461c.json @@ -0,0 +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": 574}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "00", "po_box": null, "road": "Grand Street Avenue", "city": "Miami", "state": "FL", "postal_code": "12345", "country_region": null, "street_address": "00 Grand Street Avenue"}, "content": "00 Grand Street Avenue Miami, FL 12345", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 100.0}, {"x": 268.0, "y": 100.0}, {"x": 268.0, "y": 126.0}, {"x": 151.0, "y": 126.0}]}], "spans": [{"offset": 38, "length": 38}], "confidence": 0.957}, "BillingAddressRecipient": {"value_type": "string", "value": "client's name", "content": "client's name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 86.0}, {"x": 215.0, "y": 87.0}, {"x": 215.0, "y": 98.0}, {"x": 152.0, "y": 97.0}]}], "spans": [{"offset": 24, "length": 13}], "confidence": 0.402}, "CustomerName": {"value_type": "string", "value": "client's name", "content": "client's name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 86.0}, {"x": 215.0, "y": 87.0}, {"x": 215.0, "y": 98.0}, {"x": 152.0, "y": 97.0}]}], "spans": [{"offset": 24, "length": 13}], "confidence": 0.402}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 458.0, "y": 443.0}, {"x": 484.0, "y": 443.0}, {"x": 484.0, "y": 454.0}, {"x": 458.0, "y": 454.0}]}], "spans": [{"offset": 274, "length": 5}], "confidence": 0.953}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 222.0}, {"x": 489.0, "y": 222.0}, {"x": 489.0, "y": 233.0}, {"x": 462.0, "y": 233.0}]}], "spans": [{"offset": 147, "length": 5}], "confidence": 0.309}, "Description": {"value_type": "string", "value": "Full Check Up", "content": "Full Check Up", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 223.0}, {"x": 219.0, "y": 223.0}, {"x": 219.0, "y": 235.0}, {"x": 151.0, "y": 235.0}]}], "spans": [{"offset": 125, "length": 13}], "confidence": 0.297}, "Quantity": {"value_type": "float", "value": 0.0, "content": "0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 390.0, "y": 223.0}, {"x": 395.0, "y": 223.0}, {"x": 394.0, "y": 232.0}, {"x": 389.0, "y": 232.0}]}], "spans": [{"offset": 145, "length": 1}], "confidence": 0.189}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 313.0, "y": 224.0}, {"x": 339.0, "y": 223.0}, {"x": 339.0, "y": 234.0}, {"x": 313.0, "y": 233.0}]}], "spans": [{"offset": 139, "length": 5}], "confidence": 0.313}}, "content": "Full Check Up\n$0.00\n0\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 222.0}, {"x": 489.0, "y": 222.0}, {"x": 489.0, "y": 235.0}, {"x": 151.0, "y": 235.0}]}], "spans": [{"offset": 125, "length": 27}], "confidence": 0.376}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 260.0}, {"x": 489.0, "y": 260.0}, {"x": 489.0, "y": 271.0}, {"x": 463.0, "y": 271.0}]}], "spans": [{"offset": 175, "length": 5}], "confidence": 0.309}, "Description": {"value_type": "string", "value": "Service calls", "content": "Service calls", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 260.0}, {"x": 213.0, "y": 260.0}, {"x": 213.0, "y": 272.0}, {"x": 152.0, "y": 272.0}]}], "spans": [{"offset": 153, "length": 13}], "confidence": 0.305}, "Quantity": {"value_type": "float", "value": 0.0, "content": "0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 390.0, "y": 261.0}, {"x": 395.0, "y": 261.0}, {"x": 395.0, "y": 270.0}, {"x": 390.0, "y": 270.0}]}], "spans": [{"offset": 173, "length": 1}], "confidence": 0.174}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 313.0, "y": 260.0}, {"x": 339.0, "y": 260.0}, {"x": 339.0, "y": 271.0}, {"x": 313.0, "y": 270.0}]}], "spans": [{"offset": 167, "length": 5}], "confidence": 0.398}}, "content": "Service calls\n$0.00\n0\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 260.0}, {"x": 489.0, "y": 260.0}, {"x": 489.0, "y": 272.0}, {"x": 152.0, "y": 272.0}]}], "spans": [{"offset": 153, "length": 27}], "confidence": 0.373}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 298.0}, {"x": 489.0, "y": 298.0}, {"x": 488.0, "y": 308.0}, {"x": 462.0, "y": 307.0}]}], "spans": [{"offset": 208, "length": 5}], "confidence": 0.319}, "Description": {"value_type": "string", "value": "Mental Examination", "content": "Mental Examination", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 298.0}, {"x": 247.0, "y": 298.0}, {"x": 247.0, "y": 309.0}, {"x": 151.0, "y": 309.0}]}], "spans": [{"offset": 181, "length": 18}], "confidence": 0.306}, "Quantity": {"value_type": "float", "value": 0.0, "content": "0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 390.0, "y": 298.0}, {"x": 395.0, "y": 298.0}, {"x": 395.0, "y": 308.0}, {"x": 390.0, "y": 308.0}]}], "spans": [{"offset": 206, "length": 1}], "confidence": 0.18}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 313.0, "y": 298.0}, {"x": 339.0, "y": 298.0}, {"x": 339.0, "y": 309.0}, {"x": 313.0, "y": 309.0}]}], "spans": [{"offset": 200, "length": 5}], "confidence": 0.31}}, "content": "Mental Examination\n$0.00\n0\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 298.0}, {"x": 489.0, "y": 298.0}, {"x": 489.0, "y": 309.0}, {"x": 151.0, "y": 309.0}]}], "spans": [{"offset": 181, "length": 32}], "confidence": 0.373}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 336.0}, {"x": 489.0, "y": 336.0}, {"x": 489.0, "y": 346.0}, {"x": 464.0, "y": 345.0}]}], "spans": [{"offset": 236, "length": 5}], "confidence": 0.332}, "Description": {"value_type": "string", "value": "Hiptmesan 20g", "content": "Hiptmesan 20g", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 335.0}, {"x": 225.0, "y": 335.0}, {"x": 225.0, "y": 348.0}, {"x": 151.0, "y": 348.0}]}], "spans": [{"offset": 214, "length": 13}], "confidence": 0.303}, "Quantity": {"value_type": "float", "value": 0.0, "content": "0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 390.0, "y": 335.0}, {"x": 395.0, "y": 335.0}, {"x": 395.0, "y": 345.0}, {"x": 390.0, "y": 345.0}]}], "spans": [{"offset": 234, "length": 1}], "confidence": 0.177}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 313.0, "y": 336.0}, {"x": 339.0, "y": 335.0}, {"x": 339.0, "y": 346.0}, {"x": 313.0, "y": 345.0}]}], "spans": [{"offset": 228, "length": 5}], "confidence": 0.309}}, "content": "Hiptmesan 20g\n$0.00\n0\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 335.0}, {"x": 489.0, "y": 335.0}, {"x": 489.0, "y": 348.0}, {"x": 151.0, "y": 348.0}]}], "spans": [{"offset": 214, "length": 27}], "confidence": 0.374}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 371.0}, {"x": 488.0, "y": 371.0}, {"x": 488.0, "y": 381.0}, {"x": 462.0, "y": 380.0}]}], "spans": [{"offset": 252, "length": 5}], "confidence": 0.954}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Grand Street Avenue", "city": "Miami", "state": "FL", "postal_code": "12345", "country_region": null, "street_address": "Grand Street Avenue"}, "content": "Grand Street Avenue Miami, FL 12345", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 352.0, "y": 565.0}, {"x": 497.0, "y": 565.0}, {"x": 497.0, "y": 576.0}, {"x": 352.0, "y": 576.0}]}], "spans": [{"offset": 531, "length": 35}], "confidence": 0.763}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/457_jpg.rf.7ddb76c282d745544095ebb35a7791ca.json b/Data/test/457_jpg.rf.7ddb76c282d745544095ebb35a7791ca.json new file mode 100644 index 0000000000000000000000000000000000000000..c00f42281ea2b150496f1d83c76cf13b7572ddd2 --- /dev/null +++ b/Data/test/457_jpg.rf.7ddb76c282d745544095ebb35a7791ca.json @@ -0,0 +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": 387}], "fields": {"InvoiceDate": {"value_type": "date", "value": "2021-12-20", "content": "20/12/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 171.0, "y": 121.0}, {"x": 218.0, "y": 120.0}, {"x": 218.0, "y": 132.0}, {"x": 171.0, "y": 131.0}]}], "spans": [{"offset": 46, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "#0005", "content": "#0005", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 30.0}, {"x": 280.0, "y": 30.0}, {"x": 280.0, "y": 63.0}, {"x": 169.0, "y": 63.0}]}], "spans": [{"offset": 0, "length": 5}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 3600.0, "symbol": "$"}, "content": "$3600", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 426.0, "y": 441.0}, {"x": 450.0, "y": 440.0}, {"x": 450.0, "y": 449.0}, {"x": 426.0, "y": 449.0}]}], "spans": [{"offset": 297, "length": 5}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "$"}, "content": "$500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 430.0, "y": 279.0}, {"x": 451.0, "y": 279.0}, {"x": 451.0, "y": 290.0}, {"x": 430.0, "y": 290.0}]}], "spans": [{"offset": 140, "length": 4}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "Item / Service Description", "content": "Item / Service Description", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 279.0}, {"x": 234.0, "y": 279.0}, {"x": 234.0, "y": 291.0}, {"x": 122.0, "y": 291.0}]}], "spans": [{"offset": 110, "length": 26}], "confidence": 0.004}, "Quantity": {"value_type": "float", "value": 1.0, "content": "01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 366.0, "y": 279.0}, {"x": 378.0, "y": 279.0}, {"x": 378.0, "y": 290.0}, {"x": 366.0, "y": 290.0}]}], "spans": [{"offset": 137, "length": 2}], "confidence": 0.003}}, "content": "Item / Service Description\n01\n$500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 279.0}, {"x": 451.0, "y": 279.0}, {"x": 451.0, "y": 291.0}, {"x": 122.0, "y": 291.0}]}], "spans": [{"offset": 110, "length": 34}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4.0, "symbol": "$"}, "content": "$4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 430.0, "y": 304.0}, {"x": 450.0, "y": 304.0}, {"x": 450.0, "y": 314.0}, {"x": 430.0, "y": 314.0}]}], "spans": [{"offset": 180, "length": 5}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "Iten / Service Description", "content": "Iten / Service Description", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 304.0}, {"x": 236.0, "y": 304.0}, {"x": 236.0, "y": 316.0}, {"x": 123.0, "y": 316.0}]}], "spans": [{"offset": 145, "length": 26}], "confidence": null}, "Quantity": {"value_type": "float", "value": 2.0, "content": "02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 366.0, "y": 304.0}, {"x": 378.0, "y": 304.0}, {"x": 378.0, "y": 314.0}, {"x": 366.0, "y": 314.0}]}], "spans": [{"offset": 177, "length": 2}], "confidence": 0.003}, "UnitPrice": {"value_type": "currency", "value": {"amount": 200.0, "symbol": "$"}, "content": "$200", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 292.0, "y": 303.0}, {"x": 313.0, "y": 303.0}, {"x": 313.0, "y": 314.0}, {"x": 292.0, "y": 314.0}]}], "spans": [{"offset": 172, "length": 4}], "confidence": 0.003}}, "content": "Iten / Service Description\n$200\n02\n$4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 303.0}, {"x": 450.0, "y": 303.0}, {"x": 450.0, "y": 316.0}, {"x": 123.0, "y": 316.0}]}], "spans": [{"offset": 145, "length": 40}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 800.0, "symbol": "$"}, "content": "$800", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 430.0, "y": 330.0}, {"x": 451.0, "y": 330.0}, {"x": 451.0, "y": 340.0}, {"x": 430.0, "y": 340.0}]}], "spans": [{"offset": 222, "length": 4}], "confidence": 0.003}, "Description": {"value_type": "string", "value": "Item / Service Description", "content": "Item / Service Description", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 329.0}, {"x": 236.0, "y": 330.0}, {"x": 236.0, "y": 342.0}, {"x": 123.0, "y": 341.0}]}], "spans": [{"offset": 186, "length": 26}], "confidence": 0.006}, "Quantity": {"value_type": "float", "value": 1.0, "content": "01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 366.0, "y": 331.0}, {"x": 376.0, "y": 330.0}, {"x": 377.0, "y": 340.0}, {"x": 366.0, "y": 341.0}]}], "spans": [{"offset": 219, "length": 2}], "confidence": 0.003}, "UnitPrice": {"value_type": "currency", "value": {"amount": 8.0, "symbol": "$"}, "content": "$8.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 293.0, "y": 330.0}, {"x": 313.0, "y": 330.0}, {"x": 313.0, "y": 339.0}, {"x": 293.0, "y": 340.0}]}], "spans": [{"offset": 213, "length": 5}], "confidence": 0.002}}, "content": "Item / Service Description\n$8.00\n01\n$800", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 329.0}, {"x": 451.0, "y": 329.0}, {"x": 451.0, "y": 342.0}, {"x": 123.0, "y": 342.0}]}], "spans": [{"offset": 186, "length": 40}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "$"}, "content": "$500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 431.0, "y": 356.0}, {"x": 450.0, "y": 356.0}, {"x": 450.0, "y": 365.0}, {"x": 431.0, "y": 365.0}]}], "spans": [{"offset": 262, "length": 4}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "lem / Service Description", "content": "lem / Service Description", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 353.0}, {"x": 236.0, "y": 355.0}, {"x": 236.0, "y": 368.0}, {"x": 122.0, "y": 367.0}]}], "spans": [{"offset": 227, "length": 25}], "confidence": 0.001}, "Quantity": {"value_type": "float", "value": 9.0, "content": "09", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 366.0, "y": 355.0}, {"x": 377.0, "y": 355.0}, {"x": 377.0, "y": 365.0}, {"x": 366.0, "y": 365.0}]}], "spans": [{"offset": 259, "length": 2}], "confidence": 0.003}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1.0, "symbol": "$"}, "content": "$1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 292.0, "y": 355.0}, {"x": 313.0, "y": 355.0}, {"x": 313.0, "y": 365.0}, {"x": 292.0, "y": 365.0}]}], "spans": [{"offset": 253, "length": 5}], "confidence": 0.002}}, "content": "lem / Service Description\n$1.00\n09\n$500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 354.0}, {"x": 450.0, "y": 354.0}, {"x": 450.0, "y": 367.0}, {"x": 122.0, "y": 367.0}]}], "spans": [{"offset": 227, "length": 39}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 3200.0, "symbol": "$"}, "content": "$3200", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 425.0, "y": 394.0}, {"x": 450.0, "y": 394.0}, {"x": 449.0, "y": 403.0}, {"x": 425.0, "y": 403.0}]}], "spans": [{"offset": 276, "length": 5}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 400.0, "symbol": "$"}, "content": "$400", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 432.0, "y": 417.0}, {"x": 450.0, "y": 417.0}, {"x": 450.0, "y": 425.0}, {"x": 432.0, "y": 425.0}]}], "spans": [{"offset": 286, "length": 4}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "S\u00e6rnel.", "state": "NY", "postal_code": "123", "country_region": null, "street_address": ""}, "content": "123 S\u00e6rnel. NY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 578.0}, {"x": 182.0, "y": 578.0}, {"x": 182.0, "y": 590.0}, {"x": 122.0, "y": 590.0}]}], "spans": [{"offset": 359, "length": 14}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "wvoice in\nCarla Moreno", "content": "wvoice in Carla Moreno", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 80.0}, {"x": 229.0, "y": 80.0}, {"x": 229.0, "y": 105.0}, {"x": 170.0, "y": 105.0}]}], "spans": [{"offset": 6, "length": 22}], "confidence": null}, "VendorName": {"value_type": "string", "value": "DESIGN\nFREELANCE", "content": "DESIGN FREELANCE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 451.0, "y": 116.0}, {"x": 496.0, "y": 116.0}, {"x": 496.0, "y": 135.0}, {"x": 451.0, "y": 134.0}]}], "spans": [{"offset": 65, "length": 16}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/465_jpg.rf.cbcd707731a600705518ce7e0236dc86.json b/Data/test/465_jpg.rf.cbcd707731a600705518ce7e0236dc86.json new file mode 100644 index 0000000000000000000000000000000000000000..58d6fc7dd33a54dccaa8e761847be989b87f42c3 --- /dev/null +++ b/Data/test/465_jpg.rf.cbcd707731a600705518ce7e0236dc86.json @@ -0,0 +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": 488}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "123", "po_box": null, "road": "Grand Avenue", "city": "SF", "state": null, "postal_code": null, "country_region": null, "street_address": "123 Grand Avenue"}, "content": "123 Grand Avenue -SF", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 205.0}, {"x": 215.0, "y": 205.0}, {"x": 215.0, "y": 214.0}, {"x": 124.0, "y": 214.0}]}], "spans": [{"offset": 85, "length": 20}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2021-10-10", "content": "10/10/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 460.0, "y": 153.0}, {"x": 515.0, "y": 154.0}, {"x": 515.0, "y": 164.0}, {"x": 460.0, "y": 163.0}]}], "spans": [{"offset": 46, "length": 10}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 488.0, "y": 472.0}, {"x": 514.0, "y": 471.0}, {"x": 514.0, "y": 480.0}, {"x": 488.0, "y": 480.0}]}], "spans": [{"offset": 356, "length": 5}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "SOOD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 204.0}, {"x": 514.0, "y": 204.0}, {"x": 514.0, "y": 212.0}, {"x": 494.0, "y": 212.0}]}], "spans": [{"offset": 140, "length": 4}], "confidence": null}, "Description": {"value_type": "string", "value": "LARGE CAFE AMERICANO", "content": "LARGE CAFE AMERICANO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 292.0, "y": 203.0}, {"x": 401.0, "y": 203.0}, {"x": 401.0, "y": 213.0}, {"x": 292.0, "y": 213.0}]}], "spans": [{"offset": 119, "length": 20}], "confidence": null}}, "content": "LARGE CAFE AMERICANO\nSOOD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 292.0, "y": 203.0}, {"x": 514.0, "y": 203.0}, {"x": 514.0, "y": 213.0}, {"x": 292.0, "y": 213.0}]}], "spans": [{"offset": 119, "length": 25}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 245.0}, {"x": 514.0, "y": 245.0}, {"x": 514.0, "y": 255.0}, {"x": 493.0, "y": 254.0}]}], "spans": [{"offset": 198, "length": 4}], "confidence": null}, "Description": {"value_type": "string", "value": "MEDIUM CAFE MOCHA", "content": "MEDIUM CAFE MOCHA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 291.0, "y": 245.0}, {"x": 390.0, "y": 245.0}, {"x": 390.0, "y": 255.0}, {"x": 291.0, "y": 255.0}]}], "spans": [{"offset": 180, "length": 17}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 248.0, "y": 245.0}, {"x": 258.0, "y": 245.0}, {"x": 258.0, "y": 254.0}, {"x": 248.0, "y": 254.0}]}], "spans": [{"offset": 177, "length": 2}], "confidence": null}}, "content": "01\nMEDIUM CAFE MOCHA\n$000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 248.0, "y": 245.0}, {"x": 514.0, "y": 245.0}, {"x": 514.0, "y": 255.0}, {"x": 248.0, "y": 255.0}]}], "spans": [{"offset": 177, "length": 25}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 287.0}, {"x": 514.0, "y": 287.0}, {"x": 514.0, "y": 296.0}, {"x": 493.0, "y": 295.0}]}], "spans": [{"offset": 269, "length": 4}], "confidence": null}, "Description": {"value_type": "string", "value": "CHEESECAKE NEW YORK", "content": "CHEESECAKE NEW YORK", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 291.0, "y": 287.0}, {"x": 399.0, "y": 287.0}, {"x": 399.0, "y": 296.0}, {"x": 291.0, "y": 296.0}]}], "spans": [{"offset": 249, "length": 19}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 249.0, "y": 287.0}, {"x": 259.0, "y": 287.0}, {"x": 259.0, "y": 296.0}, {"x": 248.0, "y": 295.0}]}], "spans": [{"offset": 246, "length": 2}], "confidence": null}}, "content": "01\nCHEESECAKE NEW YORK\n$000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 248.0, "y": 287.0}, {"x": 514.0, "y": 287.0}, {"x": 514.0, "y": 296.0}, {"x": 248.0, "y": 296.0}]}], "spans": [{"offset": 246, "length": 27}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5000.0, "symbol": null}, "content": "5000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 328.0}, {"x": 514.0, "y": 328.0}, {"x": 513.0, "y": 337.0}, {"x": 493.0, "y": 336.0}]}], "spans": [{"offset": 317, "length": 4}], "confidence": null}, "Description": {"value_type": "string", "value": "PUMPKIN CHEESECAKE", "content": "PUMPKIN CHEESECAKE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 291.0, "y": 328.0}, {"x": 393.0, "y": 328.0}, {"x": 393.0, "y": 337.0}, {"x": 291.0, "y": 337.0}]}], "spans": [{"offset": 298, "length": 18}], "confidence": null}, "Quantity": {"value_type": "float", "value": 2.0, "content": "02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 248.0, "y": 328.0}, {"x": 259.0, "y": 328.0}, {"x": 259.0, "y": 336.0}, {"x": 248.0, "y": 336.0}]}], "spans": [{"offset": 295, "length": 2}], "confidence": null}}, "content": "02\nPUMPKIN CHEESECAKE\n5000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 248.0, "y": 328.0}, {"x": 514.0, "y": 328.0}, {"x": 514.0, "y": 337.0}, {"x": 248.0, "y": 337.0}]}], "spans": [{"offset": 295, "length": 26}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5000.0, "symbol": null}, "content": "5000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 369.0}, {"x": 514.0, "y": 369.0}, {"x": 514.0, "y": 379.0}, {"x": 493.0, "y": 379.0}]}], "spans": [{"offset": 343, "length": 4}], "confidence": null}, "Description": {"value_type": "string", "value": "LARGE GREEN TEA PACK", "content": "LARGE GREEN TEA PACK", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 291.0, "y": 370.0}, {"x": 397.0, "y": 370.0}, {"x": 397.0, "y": 379.0}, {"x": 291.0, "y": 379.0}]}], "spans": [{"offset": 322, "length": 20}], "confidence": null}}, "content": "LARGE GREEN TEA PACK\n5000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 291.0, "y": 369.0}, {"x": 514.0, "y": 369.0}, {"x": 514.0, "y": 379.0}, {"x": 291.0, "y": 379.0}]}], "spans": [{"offset": 322, "length": 25}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorName": {"value_type": "string", "value": "CAFE\nNAME", "content": "CAFE NAME", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 177.0, "y": 74.0}, {"x": 214.0, "y": 74.0}, {"x": 214.0, "y": 106.0}, {"x": 177.0, "y": 105.0}]}], "spans": [{"offset": 2, "length": 9}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/474_jpg.rf.31c60b50ca5048aee81edcb28c45ef7b.json b/Data/test/474_jpg.rf.31c60b50ca5048aee81edcb28c45ef7b.json new file mode 100644 index 0000000000000000000000000000000000000000..599f18f5a76b6a3523b8490279befc92bebc46dd --- /dev/null +++ b/Data/test/474_jpg.rf.31c60b50ca5048aee81edcb28c45ef7b.json @@ -0,0 +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": 715}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "1234", "po_box": null, "road": "123, STREET, CITY", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "1234 123, STREET, CITY"}, "content": "123, STREET, CITY, 1234", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 125.0}, {"x": 232.0, "y": 125.0}, {"x": 232.0, "y": 137.0}, {"x": 120.0, "y": 137.0}]}], "spans": [{"offset": 120, "length": 23}], "confidence": 0.801}, "CustomerAddressRecipient": {"value_type": "string", "value": "BUSINESS COMPANY", "content": "BUSINESS COMPANY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 111.0}, {"x": 228.0, "y": 111.0}, {"x": 228.0, "y": 123.0}, {"x": 120.0, "y": 123.0}]}], "spans": [{"offset": 103, "length": 16}], "confidence": 0.829}, "CustomerName": {"value_type": "string", "value": "BUSINESS COMPANY", "content": "BUSINESS COMPANY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 111.0}, {"x": 228.0, "y": 111.0}, {"x": 228.0, "y": 123.0}, {"x": 120.0, "y": 123.0}]}], "spans": [{"offset": 103, "length": 16}], "confidence": 0.829}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 479.0, "y": 430.0}, {"x": 498.0, "y": 430.0}, {"x": 499.0, "y": 443.0}, {"x": 480.0, "y": 443.0}]}], "spans": [{"offset": 516, "length": 3}], "confidence": 0.943}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 510.0, "symbol": null}, "content": "510", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 214.0}, {"x": 489.0, "y": 214.0}, {"x": 489.0, "y": 225.0}, {"x": 473.0, "y": 225.0}]}], "spans": [{"offset": 282, "length": 3}], "confidence": 0.947}, "Description": {"value_type": "string", "value": "Sirius is the brighter star", "content": "Sirius is the brighter star", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 214.0}, {"x": 255.0, "y": 214.0}, {"x": 255.0, "y": 227.0}, {"x": 124.0, "y": 227.0}]}], "spans": [{"offset": 246, "length": 27}], "confidence": 0.931}, "Quantity": {"value_type": "float", "value": 10.0, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 320.0, "y": 213.0}, {"x": 337.0, "y": 213.0}, {"x": 337.0, "y": 225.0}, {"x": 320.0, "y": 225.0}]}], "spans": [{"offset": 274, "length": 3}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 391.0, "y": 214.0}, {"x": 408.0, "y": 214.0}, {"x": 408.0, "y": 225.0}, {"x": 391.0, "y": 225.0}]}], "spans": [{"offset": 278, "length": 3}], "confidence": 0.934}}, "content": "Sirius is the brighter star\n$10\n$10\n510", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 213.0}, {"x": 489.0, "y": 213.0}, {"x": 489.0, "y": 227.0}, {"x": 124.0, "y": 227.0}]}], "spans": [{"offset": 246, "length": 39}], "confidence": 0.89}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 243.0}, {"x": 489.0, "y": 243.0}, {"x": 489.0, "y": 255.0}, {"x": 473.0, "y": 255.0}]}], "spans": [{"offset": 322, "length": 3}], "confidence": 0.93}, "Description": {"value_type": "string", "value": "Sirius is the brighter star", "content": "Sirius is the brighter star", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 242.0}, {"x": 256.0, "y": 242.0}, {"x": 256.0, "y": 256.0}, {"x": 123.0, "y": 256.0}]}], "spans": [{"offset": 286, "length": 27}], "confidence": 0.931}, "Quantity": {"value_type": "float", "value": 10.0, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 321.0, "y": 243.0}, {"x": 337.0, "y": 243.0}, {"x": 337.0, "y": 255.0}, {"x": 321.0, "y": 255.0}]}], "spans": [{"offset": 314, "length": 3}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 392.0, "y": 244.0}, {"x": 408.0, "y": 244.0}, {"x": 408.0, "y": 255.0}, {"x": 392.0, "y": 255.0}]}], "spans": [{"offset": 318, "length": 3}], "confidence": 0.93}}, "content": "Sirius is the brighter star\n$10\n$10\n$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 242.0}, {"x": 489.0, "y": 242.0}, {"x": 489.0, "y": 256.0}, {"x": 123.0, "y": 256.0}]}], "spans": [{"offset": 286, "length": 39}], "confidence": 0.891}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 474.0, "y": 274.0}, {"x": 489.0, "y": 274.0}, {"x": 489.0, "y": 284.0}, {"x": 474.0, "y": 284.0}]}], "spans": [{"offset": 362, "length": 3}], "confidence": 0.938}, "Description": {"value_type": "string", "value": "Sirius is the brighter star", "content": "Sirius is the brighter star", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 272.0}, {"x": 256.0, "y": 272.0}, {"x": 256.0, "y": 285.0}, {"x": 123.0, "y": 285.0}]}], "spans": [{"offset": 326, "length": 27}], "confidence": 0.931}, "Quantity": {"value_type": "float", "value": 10.0, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 322.0, "y": 274.0}, {"x": 337.0, "y": 274.0}, {"x": 337.0, "y": 284.0}, {"x": 322.0, "y": 284.0}]}], "spans": [{"offset": 354, "length": 3}], "confidence": 0.93}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 392.0, "y": 274.0}, {"x": 407.0, "y": 274.0}, {"x": 407.0, "y": 284.0}, {"x": 392.0, "y": 284.0}]}], "spans": [{"offset": 358, "length": 3}], "confidence": 0.929}}, "content": "Sirius is the brighter star\n$10\n$10\n$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 272.0}, {"x": 489.0, "y": 272.0}, {"x": 489.0, "y": 285.0}, {"x": 123.0, "y": 285.0}]}], "spans": [{"offset": 326, "length": 39}], "confidence": 0.89}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 303.0}, {"x": 489.0, "y": 303.0}, {"x": 489.0, "y": 314.0}, {"x": 473.0, "y": 314.0}]}], "spans": [{"offset": 402, "length": 3}], "confidence": 0.929}, "Description": {"value_type": "string", "value": "Sirius is the brighter star", "content": "Sirius is the brighter star", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 302.0}, {"x": 257.0, "y": 302.0}, {"x": 257.0, "y": 316.0}, {"x": 124.0, "y": 316.0}]}], "spans": [{"offset": 366, "length": 27}], "confidence": 0.931}, "Quantity": {"value_type": "float", "value": 10.0, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 321.0, "y": 303.0}, {"x": 337.0, "y": 303.0}, {"x": 336.0, "y": 314.0}, {"x": 321.0, "y": 313.0}]}], "spans": [{"offset": 394, "length": 3}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 392.0, "y": 303.0}, {"x": 408.0, "y": 303.0}, {"x": 408.0, "y": 314.0}, {"x": 392.0, "y": 313.0}]}], "spans": [{"offset": 398, "length": 3}], "confidence": 0.929}}, "content": "Sirius is the brighter star\n$10\n$10\n$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 302.0}, {"x": 489.0, "y": 302.0}, {"x": 489.0, "y": 316.0}, {"x": 124.0, "y": 316.0}]}], "spans": [{"offset": 366, "length": 39}], "confidence": 0.891}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 332.0}, {"x": 489.0, "y": 332.0}, {"x": 489.0, "y": 344.0}, {"x": 473.0, "y": 344.0}]}], "spans": [{"offset": 442, "length": 3}], "confidence": 0.936}, "Description": {"value_type": "string", "value": "Sirius is the brighter star", "content": "Sirius is the brighter star", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 331.0}, {"x": 257.0, "y": 331.0}, {"x": 257.0, "y": 345.0}, {"x": 123.0, "y": 345.0}]}], "spans": [{"offset": 406, "length": 27}], "confidence": 0.931}, "Quantity": {"value_type": "float", "value": 10.0, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 320.0, "y": 332.0}, {"x": 337.0, "y": 332.0}, {"x": 337.0, "y": 344.0}, {"x": 320.0, "y": 344.0}]}], "spans": [{"offset": 434, "length": 3}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 391.0, "y": 333.0}, {"x": 408.0, "y": 333.0}, {"x": 408.0, "y": 344.0}, {"x": 391.0, "y": 343.0}]}], "spans": [{"offset": 438, "length": 3}], "confidence": 0.93}}, "content": "Sirius is the brighter star\n$10\n$10\n$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 331.0}, {"x": 489.0, "y": 331.0}, {"x": 489.0, "y": 345.0}, {"x": 123.0, "y": 345.0}]}], "spans": [{"offset": 406, "length": 39}], "confidence": 0.89}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 363.0}, {"x": 489.0, "y": 363.0}, {"x": 489.0, "y": 374.0}, {"x": 473.0, "y": 374.0}]}], "spans": [{"offset": 482, "length": 3}], "confidence": 0.928}, "Description": {"value_type": "string", "value": "Sirius is the brighter star", "content": "Sirius is the brighter star", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 361.0}, {"x": 257.0, "y": 361.0}, {"x": 257.0, "y": 375.0}, {"x": 123.0, "y": 375.0}]}], "spans": [{"offset": 446, "length": 27}], "confidence": 0.931}, "Quantity": {"value_type": "float", "value": 10.0, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 321.0, "y": 362.0}, {"x": 338.0, "y": 362.0}, {"x": 338.0, "y": 375.0}, {"x": 320.0, "y": 374.0}]}], "spans": [{"offset": 474, "length": 3}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 392.0, "y": 363.0}, {"x": 408.0, "y": 363.0}, {"x": 408.0, "y": 374.0}, {"x": 392.0, "y": 374.0}]}], "spans": [{"offset": 478, "length": 3}], "confidence": 0.931}}, "content": "Sirius is the brighter star\n$10\n$10\n$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 361.0}, {"x": 489.0, "y": 361.0}, {"x": 489.0, "y": 375.0}, {"x": 123.0, "y": 375.0}]}], "spans": [{"offset": 446, "length": 39}], "confidence": 0.891}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 504.0, "y": 403.0}, {"x": 522.0, "y": 402.0}, {"x": 522.0, "y": 416.0}, {"x": 504.0, "y": 416.0}]}], "spans": [{"offset": 496, "length": 3}], "confidence": 0.943}, "TotalTax": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 417.0}, {"x": 481.0, "y": 417.0}, {"x": 482.0, "y": 429.0}, {"x": 464.0, "y": 429.0}]}], "spans": [{"offset": 505, "length": 3}], "confidence": 0.842}, "VendorAddress": {"value_type": "address", "value": {"house_number": "1234", "po_box": null, "road": "123, STREET, CITY", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "1234 123, STREET, CITY"}, "content": "123, STREET, CITY, 1234", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 422.0, "y": 29.0}, {"x": 517.0, "y": 29.0}, {"x": 517.0, "y": 40.0}, {"x": 422.0, "y": 40.0}]}], "spans": [{"offset": 39, "length": 23}], "confidence": 0.707}, "VendorAddressRecipient": {"value_type": "string", "value": "ANTHONY WILLSON", "content": "ANTHONY WILLSON", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 111.0}, {"x": 514.0, "y": 111.0}, {"x": 514.0, "y": 123.0}, {"x": 414.0, "y": 123.0}]}], "spans": [{"offset": 160, "length": 15}], "confidence": 0.653}, "VendorName": {"value_type": "string", "value": "DW CONSTRUCTION", "content": "DW CONSTRUCTION", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 29.0}, {"x": 321.0, "y": 30.0}, {"x": 321.0, "y": 50.0}, {"x": 152.0, "y": 49.0}]}], "spans": [{"offset": 0, "length": 15}], "confidence": 0.838}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/478_jpg.rf.d5ff73a49efcea7aa8c0ff0e555f91b0.json b/Data/test/478_jpg.rf.d5ff73a49efcea7aa8c0ff0e555f91b0.json new file mode 100644 index 0000000000000000000000000000000000000000..9c5b22d74330bffc1eecf1f7dcdc1962190c1b14 --- /dev/null +++ b/Data/test/478_jpg.rf.d5ff73a49efcea7aa8c0ff0e555f91b0.json @@ -0,0 +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": 385}], "fields": {"InvoiceId": {"value_type": "string", "value": "Jhone Doc,", "content": "Jhone Doc,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 176.0, "y": 196.0}, {"x": 222.0, "y": 197.0}, {"x": 222.0, "y": 207.0}, {"x": 176.0, "y": 206.0}]}], "spans": [{"offset": 29, "length": 10}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 250.0, "symbol": "USD"}, "content": "$250.00 USD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 364.0, "y": 202.0}, {"x": 416.0, "y": 202.0}, {"x": 416.0, "y": 211.0}, {"x": 364.0, "y": 211.0}]}], "spans": [{"offset": 40, "length": 11}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 420.3, "symbol": "$"}, "content": "$420:30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 437.0, "y": 273.0}, {"x": 454.0, "y": 273.0}, {"x": 454.0, "y": 278.0}, {"x": 438.0, "y": 278.0}]}], "spans": [{"offset": 84, "length": 7}], "confidence": null}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 406.0, "y": 272.0}, {"x": 410.0, "y": 272.0}, {"x": 410.0, "y": 278.0}, {"x": 406.0, "y": 278.0}]}], "spans": [{"offset": 82, "length": 1}], "confidence": null}}, "content": "3\n$420:30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 406.0, "y": 272.0}, {"x": 454.0, "y": 272.0}, {"x": 454.0, "y": 278.0}, {"x": 406.0, "y": 278.0}]}], "spans": [{"offset": 82, "length": 9}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 200.2, "symbol": "$"}, "content": "$200.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 437.0, "y": 320.0}, {"x": 454.0, "y": 320.0}, {"x": 455.0, "y": 325.0}, {"x": 437.0, "y": 324.0}]}], "spans": [{"offset": 92, "length": 7}], "confidence": null}}, "content": "$200.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 437.0, "y": 320.0}, {"x": 454.0, "y": 320.0}, {"x": 455.0, "y": 325.0}, {"x": 437.0, "y": 324.0}]}], "spans": [{"offset": 92, "length": 7}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 130000.0, "symbol": null}, "content": "130000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 343.0}, {"x": 454.0, "y": 343.0}, {"x": 455.0, "y": 349.0}, {"x": 439.0, "y": 348.0}]}], "spans": [{"offset": 119, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Walitatao Dedige", "content": "Walitatao Dedige", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 184.0, "y": 340.0}, {"x": 229.0, "y": 340.0}, {"x": 229.0, "y": 345.0}, {"x": 184.0, "y": 345.0}]}], "spans": [{"offset": 100, "length": 16}], "confidence": null}, "Quantity": {"value_type": "float", "value": 4.0, "content": "4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 410.0, "y": 345.0}, {"x": 409.0, "y": 348.0}, {"x": 404.0, "y": 347.0}, {"x": 405.0, "y": 344.0}]}], "spans": [{"offset": 117, "length": 1}], "confidence": null}}, "content": "Walitatao Dedige\n4\n130000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 184.0, "y": 335.0}, {"x": 455.0, "y": 343.0}, {"x": 455.0, "y": 353.0}, {"x": 184.0, "y": 345.0}]}], "spans": [{"offset": 100, "length": 25}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorName": {"value_type": "string", "value": "7 COMPANY", "content": "7 COMPANY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 181.0, "y": 136.0}, {"x": 246.0, "y": 134.0}, {"x": 246.0, "y": 147.0}, {"x": 181.0, "y": 149.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/481_jpg.rf.8cad711e749f9e5a7a2aaf9a8f191e89.json b/Data/test/481_jpg.rf.8cad711e749f9e5a7a2aaf9a8f191e89.json new file mode 100644 index 0000000000000000000000000000000000000000..438517f55c72594a753e383a51c9f0da2759d7a1 --- /dev/null +++ b/Data/test/481_jpg.rf.8cad711e749f9e5a7a2aaf9a8f191e89.json @@ -0,0 +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": 313}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "677", "po_box": null, "road": "Rhode Island", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "677 Rhode Island"}, "content": "Chelsea MI 677 Rhode Island 24", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 225.0}, {"x": 167.0, "y": 225.0}, {"x": 167.0, "y": 247.0}, {"x": 114.0, "y": 247.0}]}], "spans": [{"offset": 129, "length": 30}], "confidence": 0.991}, "BillingAddressRecipient": {"value_type": "string", "value": "Kyla Diser", "content": "Kyla Diser", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 213.0}, {"x": 148.0, "y": 213.0}, {"x": 148.0, "y": 222.0}, {"x": 114.0, "y": 222.0}]}], "spans": [{"offset": 118, "length": 10}], "confidence": 0.725}, "CustomerName": {"value_type": "string", "value": "Kyla Diser", "content": "Kyla Diser", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 213.0}, {"x": 148.0, "y": 213.0}, {"x": 148.0, "y": 222.0}, {"x": 114.0, "y": 222.0}]}], "spans": [{"offset": 118, "length": 10}], "confidence": 0.725}, "DueDate": {"value_type": "date", "value": "2020-07-11", "content": "07/11/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 468.0, "y": 210.0}, {"x": 502.0, "y": 210.0}, {"x": 502.0, "y": 219.0}, {"x": 468.0, "y": 218.0}]}], "spans": [{"offset": 83, "length": 10}], "confidence": 0.507}, "InvoiceDate": {"value_type": "date", "value": "2020-10-31", "content": "31/10/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 284.0, "y": 96.0}, {"x": 338.0, "y": 96.0}, {"x": 338.0, "y": 108.0}, {"x": 284.0, "y": 108.0}]}], "spans": [{"offset": 18, "length": 10}], "confidence": 0.417}, "InvoiceId": {"value_type": "string", "value": "00-01", "content": "00-01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 176.0, "y": 95.0}, {"x": 206.0, "y": 95.0}, {"x": 206.0, "y": 108.0}, {"x": 176.0, "y": 108.0}]}], "spans": [{"offset": 12, "length": 5}], "confidence": 0.541}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 3500.0, "symbol": "$"}, "content": "$3500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 497.0, "y": 502.0}, {"x": 523.0, "y": 502.0}, {"x": 523.0, "y": 511.0}, {"x": 497.0, "y": 511.0}]}], "spans": [{"offset": 291, "length": 5}], "confidence": 0.558}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 52000.0, "symbol": null}, "content": "52000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 309.0}, {"x": 502.0, "y": 309.0}, {"x": 502.0, "y": 317.0}, {"x": 484.0, "y": 317.0}]}], "spans": [{"offset": 204, "length": 5}], "confidence": 0.422}, "Description": {"value_type": "string", "value": "Music Production", "content": "Music Production", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 306.0}, {"x": 171.0, "y": 309.0}, {"x": 171.0, "y": 320.0}, {"x": 114.0, "y": 317.0}]}], "spans": [{"offset": 187, "length": 16}], "confidence": 0.765}}, "content": "Music Production\n52000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 309.0}, {"x": 502.0, "y": 309.0}, {"x": 502.0, "y": 319.0}, {"x": 114.0, "y": 319.0}]}], "spans": [{"offset": 187, "length": 22}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 92500.0, "symbol": null}, "content": "92500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 327.0}, {"x": 503.0, "y": 327.0}, {"x": 503.0, "y": 337.0}, {"x": 484.0, "y": 337.0}]}], "spans": [{"offset": 232, "length": 5}], "confidence": 0.398}, "Description": {"value_type": "string", "value": "Multi-Track Recording", "content": "Multi-Track Recording", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 327.0}, {"x": 185.0, "y": 329.0}, {"x": 185.0, "y": 339.0}, {"x": 114.0, "y": 337.0}]}], "spans": [{"offset": 210, "length": 21}], "confidence": 0.44}}, "content": "Multi-Track Recording\n92500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 322.0}, {"x": 503.0, "y": 327.0}, {"x": 503.0, "y": 343.0}, {"x": 114.0, "y": 338.0}]}], "spans": [{"offset": 210, "length": 27}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1500.0, "symbol": "$"}, "content": "$1500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 346.0}, {"x": 503.0, "y": 346.0}, {"x": 503.0, "y": 356.0}, {"x": 484.0, "y": 355.0}]}], "spans": [{"offset": 248, "length": 5}], "confidence": 0.632}, "Description": {"value_type": "string", "value": "Mastering", "content": "Mastering", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 348.0}, {"x": 147.0, "y": 349.0}, {"x": 147.0, "y": 357.0}, {"x": 114.0, "y": 356.0}]}], "spans": [{"offset": 238, "length": 9}], "confidence": 0.645}}, "content": "Mastering\n$1500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 334.0}, {"x": 503.0, "y": 346.0}, {"x": 503.0, "y": 368.0}, {"x": 114.0, "y": 356.0}]}], "spans": [{"offset": 238, "length": 15}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1500.0, "symbol": "$"}, "content": "$1500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 367.0}, {"x": 503.0, "y": 367.0}, {"x": 503.0, "y": 376.0}, {"x": 484.0, "y": 376.0}]}], "spans": [{"offset": 268, "length": 5}], "confidence": 0.776}, "Description": {"value_type": "string", "value": "Miking/ECting", "content": "Miking/ECting", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 367.0}, {"x": 163.0, "y": 368.0}, {"x": 163.0, "y": 377.0}, {"x": 114.0, "y": 376.0}]}], "spans": [{"offset": 254, "length": 13}], "confidence": 0.293}}, "content": "Miking/ECting\n$1500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 359.0}, {"x": 503.0, "y": 367.0}, {"x": 503.0, "y": 384.0}, {"x": 114.0, "y": 376.0}]}], "spans": [{"offset": 254, "length": 19}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Aaron Hawsins", "content": "Aaron Hawsins", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 283.0, "y": 212.0}, {"x": 333.0, "y": 212.0}, {"x": 333.0, "y": 221.0}, {"x": 283.0, "y": 221.0}]}], "spans": [{"offset": 61, "length": 13}], "confidence": 0.008}, "VendorName": {"value_type": "string", "value": "PiAn\nrecords", "content": "PiAn records", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 416.0, "y": 88.0}, {"x": 501.0, "y": 88.0}, {"x": 501.0, "y": 140.0}, {"x": 416.0, "y": 140.0}]}], "spans": [{"offset": 29, "length": 12}], "confidence": 0.718}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/484_png.rf.6e7ef3bc6e878a4a8f06b876af467283.json b/Data/test/484_png.rf.6e7ef3bc6e878a4a8f06b876af467283.json new file mode 100644 index 0000000000000000000000000000000000000000..45305add437511894d2a8e8804f4c0976d654d96 --- /dev/null +++ b/Data/test/484_png.rf.6e7ef3bc6e878a4a8f06b876af467283.json @@ -0,0 +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": 448}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 600.0, "symbol": "\u00a3"}, "content": "\u00a3600.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 461.0, "y": 526.0}, {"x": 501.0, "y": 526.0}, {"x": 501.0, "y": 537.0}, {"x": 461.0, "y": 537.0}]}], "spans": [{"offset": 358, "length": 7}], "confidence": 0.978}, "CustomerId": {"value_type": "string", "value": "00000000", "content": "00000000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 387.0, "y": 578.0}, {"x": 430.0, "y": 577.0}, {"x": 430.0, "y": 589.0}, {"x": 387.0, "y": 589.0}]}], "spans": [{"offset": 401, "length": 8}], "confidence": 0.521}, "InvoiceId": {"value_type": "string", "value": "INV-001", "content": "INV-001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 334.0, "y": 353.0}, {"x": 389.0, "y": 353.0}, {"x": 389.0, "y": 369.0}, {"x": 334.0, "y": 369.0}]}], "spans": [{"offset": 201, "length": 7}], "confidence": 0.977}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 600.0, "symbol": "\u00a3"}, "content": "\u00a3600.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 461.0, "y": 526.0}, {"x": 501.0, "y": 526.0}, {"x": 501.0, "y": 537.0}, {"x": 461.0, "y": 537.0}]}], "spans": [{"offset": 358, "length": 7}], "confidence": 0.978}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "\u00a3"}, "content": "\u00a3500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 461.0, "y": 471.0}, {"x": 502.0, "y": 471.0}, {"x": 502.0, "y": 484.0}, {"x": 461.0, "y": 483.0}]}], "spans": [{"offset": 321, "length": 7}], "confidence": 0.934}, "Description": {"value_type": "string", "value": "September Work Completed", "content": "September Work Completed", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 471.0}, {"x": 235.0, "y": 471.0}, {"x": 235.0, "y": 485.0}, {"x": 92.0, "y": 485.0}]}], "spans": [{"offset": 296, "length": 24}], "confidence": 0.93}}, "content": "September Work Completed\n\u00a3500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 471.0}, {"x": 502.0, "y": 471.0}, {"x": 502.0, "y": 485.0}, {"x": 92.0, "y": 485.0}]}], "spans": [{"offset": 296, "length": 32}], "confidence": 0.896}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "7 days of invoice date", "content": "7 days of invoice date", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 313.0, "y": 602.0}, {"x": 409.0, "y": 602.0}, {"x": 409.0, "y": 614.0}, {"x": 313.0, "y": 614.0}]}], "spans": [{"offset": 426, "length": 22}], "confidence": 0.705}, "ServiceEndDate": {"value_type": "date", "value": null, "content": "30th September", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 393.0, "y": 391.0}, {"x": 492.0, "y": 392.0}, {"x": 492.0, "y": 410.0}, {"x": 393.0, "y": 409.0}]}], "spans": [{"offset": 254, "length": 14}], "confidence": 0.684}, "ServiceStartDate": {"value_type": "date", "value": null, "content": "1st", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 359.0, "y": 391.0}, {"x": 372.0, "y": 391.0}, {"x": 372.0, "y": 409.0}, {"x": 359.0, "y": 409.0}]}], "spans": [{"offset": 247, "length": 3}], "confidence": 0.595}, "SubTotal": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "\u00a3"}, "content": "\u00a3500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 461.0, "y": 471.0}, {"x": 502.0, "y": 471.0}, {"x": 502.0, "y": 484.0}, {"x": 461.0, "y": 483.0}]}], "spans": [{"offset": 321, "length": 7}], "confidence": 0.595}, "TotalTax": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "\u00a3"}, "content": "\u00a3100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 461.0, "y": 500.0}, {"x": 501.0, "y": 500.0}, {"x": 501.0, "y": 511.0}, {"x": 462.0, "y": 511.0}]}], "spans": [{"offset": 339, "length": 7}], "confidence": 0.978}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/491_jpg.rf.fd0cefad5ac716496774cec99b0c8d94.json b/Data/test/491_jpg.rf.fd0cefad5ac716496774cec99b0c8d94.json new file mode 100644 index 0000000000000000000000000000000000000000..38b37a7c48877b4077b7fa299e05df497c630f5f --- /dev/null +++ b/Data/test/491_jpg.rf.fd0cefad5ac716496774cec99b0c8d94.json @@ -0,0 +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": 386}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Roseville", "state": null, "postal_code": "11623", "country_region": "KH", "street_address": ""}, "content": "Roseville KH 11623", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 229.0, "y": 84.0}, {"x": 285.0, "y": 84.0}, {"x": 285.0, "y": 93.0}, {"x": 229.0, "y": 93.0}]}], "spans": [{"offset": 20, "length": 18}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "Mary Hudson", "content": "Mary Hudson", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 228.0, "y": 73.0}, {"x": 263.0, "y": 74.0}, {"x": 263.0, "y": 83.0}, {"x": 228.0, "y": 82.0}]}], "spans": [{"offset": 8, "length": 11}], "confidence": null}, "CustomerId": {"value_type": "string", "value": "237 894 938 309", "content": "237 894 938 309", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 153.0}, {"x": 518.0, "y": 153.0}, {"x": 518.0, "y": 162.0}, {"x": 469.0, "y": 162.0}]}], "spans": [{"offset": 166, "length": 15}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Mary Hudson", "content": "Mary Hudson", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 228.0, "y": 73.0}, {"x": 263.0, "y": 74.0}, {"x": 263.0, "y": 83.0}, {"x": 228.0, "y": 82.0}]}], "spans": [{"offset": 8, "length": 11}], "confidence": null}, "DueDate": {"value_type": "date", "value": "2020-12-30", "content": "30/12/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 229.0, "y": 153.0}, {"x": 264.0, "y": 152.0}, {"x": 264.0, "y": 161.0}, {"x": 229.0, "y": 161.0}]}], "spans": [{"offset": 99, "length": 10}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2020-12-22", "content": "22/12/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 229.0, "y": 119.0}, {"x": 264.0, "y": 120.0}, {"x": 264.0, "y": 128.0}, {"x": 229.0, "y": 128.0}]}], "spans": [{"offset": 79, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "00248", "content": "00248", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 79.0}, {"x": 516.0, "y": 79.0}, {"x": 516.0, "y": 88.0}, {"x": 494.0, "y": 88.0}]}], "spans": [{"offset": 55, "length": 5}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 180.0, "symbol": "$"}, "content": "$180.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 457.0}, {"x": 486.0, "y": 456.0}, {"x": 486.0, "y": 465.0}, {"x": 463.0, "y": 465.0}]}], "spans": [{"offset": 334, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 70.0, "symbol": "$"}, "content": "$70.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 252.0}, {"x": 486.0, "y": 252.0}, {"x": 486.0, "y": 262.0}, {"x": 464.0, "y": 262.0}]}], "spans": [{"offset": 241, "length": 6}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "Information Security:", "content": "Information Security:", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 239.0, "y": 253.0}, {"x": 304.0, "y": 253.0}, {"x": 304.0, "y": 263.0}, {"x": 239.0, "y": 263.0}]}], "spans": [{"offset": 219, "length": 21}], "confidence": 0.001}, "Quantity": {"value_type": "float", "value": 1.0, "content": "I", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 253.0}, {"x": 156.0, "y": 253.0}, {"x": 156.0, "y": 261.0}, {"x": 151.0, "y": 261.0}]}], "spans": [{"offset": 210, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 70.0, "symbol": "$"}, "content": "$70.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 185.0, "y": 253.0}, {"x": 207.0, "y": 253.0}, {"x": 207.0, "y": 262.0}, {"x": 185.0, "y": 262.0}]}], "spans": [{"offset": 212, "length": 6}], "confidence": null}}, "content": "I\n$70.00\nInformation Security:\n$70.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 252.0}, {"x": 486.0, "y": 252.0}, {"x": 486.0, "y": 263.0}, {"x": 151.0, "y": 263.0}]}], "spans": [{"offset": 210, "length": 37}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 60.0, "symbol": "$"}, "content": "$60.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 269.0}, {"x": 486.0, "y": 269.0}, {"x": 486.0, "y": 278.0}, {"x": 464.0, "y": 278.0}]}], "spans": [{"offset": 268, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Business Automatiun", "content": "Business Automatiun", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 238.0, "y": 269.0}, {"x": 303.0, "y": 270.0}, {"x": 303.0, "y": 279.0}, {"x": 238.0, "y": 278.0}]}], "spans": [{"offset": 248, "length": 19}], "confidence": 0.002}}, "content": "Business Automatiun\n$60.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 238.0, "y": 269.0}, {"x": 486.0, "y": 269.0}, {"x": 486.0, "y": 279.0}, {"x": 238.0, "y": 279.0}]}], "spans": [{"offset": 248, "length": 26}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5000.0, "symbol": "$"}, "content": "$5000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 285.0}, {"x": 486.0, "y": 285.0}, {"x": 486.0, "y": 294.0}, {"x": 464.0, "y": 294.0}]}], "spans": [{"offset": 305, "length": 5}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "Data Synchronization", "content": "Data Synchronization", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 238.0, "y": 286.0}, {"x": 304.0, "y": 286.0}, {"x": 304.0, "y": 296.0}, {"x": 238.0, "y": 296.0}]}], "spans": [{"offset": 284, "length": 20}], "confidence": 0.001}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 286.0}, {"x": 156.0, "y": 286.0}, {"x": 156.0, "y": 294.0}, {"x": 152.0, "y": 294.0}]}], "spans": [{"offset": 275, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 186.0, "y": 285.0}, {"x": 208.0, "y": 285.0}, {"x": 208.0, "y": 294.0}, {"x": 186.0, "y": 294.0}]}], "spans": [{"offset": 277, "length": 6}], "confidence": 0.001}}, "content": "1\n$50.00\nData Synchronization\n$5000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 285.0}, {"x": 486.0, "y": 285.0}, {"x": 486.0, "y": 296.0}, {"x": 152.0, "y": 296.0}]}], "spans": [{"offset": 275, "length": 35}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorName": {"value_type": "string", "value": "TECH", "content": "TECH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 124.0}, {"x": 182.0, "y": 124.0}, {"x": 182.0, "y": 149.0}, {"x": 129.0, "y": 149.0}]}], "spans": [{"offset": 61, "length": 4}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/492_jpg.rf.c5ec5e08ddd2439478b750a8709702e7.json b/Data/test/492_jpg.rf.c5ec5e08ddd2439478b750a8709702e7.json new file mode 100644 index 0000000000000000000000000000000000000000..7f6784c1bee643703e741ced4b0e9ddeffb42b72 --- /dev/null +++ b/Data/test/492_jpg.rf.c5ec5e08ddd2439478b750a8709702e7.json @@ -0,0 +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": 1583}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 27425.0, "symbol": "\u20b9"}, "content": "\u20b9 27,425", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 572.0}, {"x": 532.0, "y": 572.0}, {"x": 532.0, "y": 581.0}, {"x": 501.0, "y": 581.0}]}], "spans": [{"offset": 1357, "length": 8}], "confidence": 0.929}, "BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": "India", "street_address": ""}, "content": "@ Hope Street no. 26, Building B Mumbai, Maharashtra (MH - 27), India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 262.0, "y": 129.0}, {"x": 390.0, "y": 129.0}, {"x": 390.0, "y": 159.0}, {"x": 262.0, "y": 159.0}]}], "spans": [{"offset": 210, "length": 69}], "confidence": 0.57}, "BillingAddressRecipient": {"value_type": "string", "value": "Ab Company", "content": "Ab Company", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 274.0, "y": 118.0}, {"x": 318.0, "y": 119.0}, {"x": 318.0, "y": 129.0}, {"x": 274.0, "y": 128.0}]}], "spans": [{"offset": 199, "length": 10}], "confidence": 0.941}, "CustomerName": {"value_type": "string", "value": "Ab Company", "content": "Ab Company", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 274.0, "y": 118.0}, {"x": 318.0, "y": 119.0}, {"x": 318.0, "y": 129.0}, {"x": 274.0, "y": 128.0}]}], "spans": [{"offset": 199, "length": 10}], "confidence": 0.941}, "CustomerTaxId": {"value_type": "string", "value": "09AAMFC0376K124", "content": "09AAMFC0376K124", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 299.0, "y": 192.0}, {"x": 370.0, "y": 192.0}, {"x": 370.0, "y": 201.0}, {"x": 300.0, "y": 200.0}]}], "spans": [{"offset": 341, "length": 15}], "confidence": 0.759}, "DueDate": {"value_type": "date", "value": "2018-03-03", "content": "March 03, 2018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 61.0}, {"x": 534.0, "y": 61.0}, {"x": 534.0, "y": 71.0}, {"x": 478.0, "y": 71.0}]}], "spans": [{"offset": 424, "length": 14}], "confidence": 0.941}, "InvoiceDate": {"value_type": "date", "value": "2018-02-21", "content": "February 21, 2018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 48.0}, {"x": 534.0, "y": 48.0}, {"x": 534.0, "y": 59.0}, {"x": 469.0, "y": 59.0}]}], "spans": [{"offset": 397, "length": 17}], "confidence": 0.943}, "InvoiceId": {"value_type": "string", "value": "X33", "content": "X33", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 503.0, "y": 30.0}, {"x": 531.0, "y": 30.0}, {"x": 532.0, "y": 46.0}, {"x": 503.0, "y": 46.0}]}], "spans": [{"offset": 388, "length": 3}], "confidence": 0.957}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 27425.0, "symbol": "\u20a1"}, "content": "\u20a1 27,425", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 561.0}, {"x": 533.0, "y": 561.0}, {"x": 533.0, "y": 570.0}, {"x": 501.0, "y": 570.0}]}], "spans": [{"offset": 1337, "length": 8}], "confidence": 0.799}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4894.4, "symbol": null}, "content": "4,894.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 502.0, "y": 245.0}, {"x": 533.0, "y": 245.0}, {"x": 533.0, "y": 254.0}, {"x": 502.0, "y": 253.0}]}], "spans": [{"offset": 734, "length": 8}], "confidence": 0.003}, "Description": {"value_type": "string", "value": "solvent\nwhite cleaner subsctance ISD\n00456", "content": "solvent\nwhite cleaner\nsubsctance ISD 00456", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 128.0, "y": 246.0}, {"x": 245.0, "y": 246.0}, {"x": 245.0, "y": 277.0}, {"x": 128.0, "y": 277.0}]}], "spans": [{"offset": 675, "length": 7}, {"offset": 743, "length": 13}, {"offset": 768, "length": 20}], "confidence": null}, "Quantity": {"value_type": "float", "value": 23.0, "content": "23.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 323.0, "y": 245.0}, {"x": 342.0, "y": 245.0}, {"x": 342.0, "y": 253.0}, {"x": 323.0, "y": 253.0}]}], "spans": [{"offset": 687, "length": 5}], "confidence": 0.002}, "Tax": {"value_type": "currency", "value": {"amount": 218.5, "symbol": null}, "content": "524.40\n218.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 412.0, "y": 244.0}, {"x": 479.0, "y": 244.0}, {"x": 479.0, "y": 253.0}, {"x": 412.0, "y": 253.0}]}], "spans": [{"offset": 713, "length": 6}, {"offset": 727, "length": 6}], "confidence": 0.002}, "TaxRate": {"value_type": "string", "value": "12.00%", "content": "12.00%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 255.0}, {"x": 437.0, "y": 254.0}, {"x": 437.0, "y": 262.0}, {"x": 414.0, "y": 261.0}]}], "spans": [{"offset": 720, "length": 6}], "confidence": 0.002}, "UnitPrice": {"value_type": "currency", "value": {"amount": 200.0, "symbol": null}, "content": "200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 369.0, "y": 245.0}, {"x": 394.0, "y": 245.0}, {"x": 394.0, "y": 253.0}, {"x": 370.0, "y": 253.0}]}], "spans": [{"offset": 693, "length": 6}], "confidence": 0.003}}, "content": "1\nsolvent\n345\n23.00\n200.00\n-Discount 5%\n524.40\n12.00%\n218.50\n4,894.40\nwhite cleaner industrial subsctance ISD 00456", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 244.0}, {"x": 533.0, "y": 244.0}, {"x": 533.0, "y": 277.0}, {"x": 114.0, "y": 277.0}]}], "spans": [{"offset": 673, "length": 115}], "confidence": 0.599}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 7080.0, "symbol": null}, "content": "7,080.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 502.0, "y": 285.0}, {"x": 533.0, "y": 285.0}, {"x": 533.0, "y": 293.0}, {"x": 502.0, "y": 293.0}]}], "spans": [{"offset": 834, "length": 8}], "confidence": 0.003}, "Description": {"value_type": "string", "value": "detergent\nonly carpets 100% KER23", "content": "detergent\nonly carpets 100% KER23", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 128.0, "y": 286.0}, {"x": 204.0, "y": 286.0}, {"x": 204.0, "y": 306.0}, {"x": 128.0, "y": 306.0}]}], "spans": [{"offset": 791, "length": 9}, {"offset": 843, "length": 23}], "confidence": 0.002}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 328.0, "y": 285.0}, {"x": 342.0, "y": 285.0}, {"x": 342.0, "y": 292.0}, {"x": 328.0, "y": 292.0}]}], "spans": [{"offset": 806, "length": 4}], "confidence": 0.002}, "Tax": {"value_type": "currency", "value": {"amount": 1080.0, "symbol": null}, "content": "1,080.00\n0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 406.0, "y": 284.0}, {"x": 479.0, "y": 285.0}, {"x": 479.0, "y": 294.0}, {"x": 406.0, "y": 292.0}]}], "spans": [{"offset": 820, "length": 13}], "confidence": 0.002}, "TaxRate": {"value_type": "string", "value": "18.00%", "content": "18.00%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 295.0}, {"x": 436.0, "y": 294.0}, {"x": 436.0, "y": 301.0}, {"x": 415.0, "y": 301.0}]}], "spans": [{"offset": 867, "length": 6}], "confidence": 0.003}, "UnitPrice": {"value_type": "currency", "value": {"amount": 2000.0, "symbol": null}, "content": "2,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 363.0, "y": 284.0}, {"x": 394.0, "y": 285.0}, {"x": 394.0, "y": 293.0}, {"x": 363.0, "y": 293.0}]}], "spans": [{"offset": 811, "length": 8}], "confidence": 0.003}}, "content": "2\ndetergent\n1296\n3.00\n2,000.00\n1,080.00\n0.00\n7,080.00\nonly carpets 100% KER23\n18.00%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 113.0, "y": 284.0}, {"x": 533.0, "y": 284.0}, {"x": 533.0, "y": 306.0}, {"x": 113.0, "y": 306.0}]}], "spans": [{"offset": 789, "length": 84}], "confidence": 0.752}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 15120.0, "symbol": null}, "content": "15,120.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 313.0}, {"x": 533.0, "y": 312.0}, {"x": 533.0, "y": 321.0}, {"x": 498.0, "y": 321.0}]}], "spans": [{"offset": 919, "length": 9}], "confidence": 0.003}, "Description": {"value_type": "string", "value": "poly cloth\n2 layer, dust, anti static. blue", "content": "poly cloth\n2 layer, dust, anti static. blue", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 128.0, "y": 313.0}, {"x": 215.0, "y": 313.0}, {"x": 215.0, "y": 334.0}, {"x": 128.0, "y": 334.0}]}], "spans": [{"offset": 876, "length": 10}, {"offset": 929, "length": 32}], "confidence": 0.002}, "Quantity": {"value_type": "float", "value": 100.0, "content": "100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 319.0, "y": 313.0}, {"x": 342.0, "y": 313.0}, {"x": 342.0, "y": 320.0}, {"x": 319.0, "y": 320.0}]}], "spans": [{"offset": 892, "length": 6}], "confidence": 0.002}, "Tax": {"value_type": "currency", "value": {"amount": 1620.0, "symbol": null}, "content": "1,620.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 406.0, "y": 313.0}, {"x": 436.0, "y": 313.0}, {"x": 436.0, "y": 320.0}, {"x": 407.0, "y": 320.0}]}], "spans": [{"offset": 906, "length": 8}], "confidence": 0.002}, "TaxRate": {"value_type": "string", "value": "12.00%", "content": "12.00%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 322.0}, {"x": 437.0, "y": 322.0}, {"x": 437.0, "y": 329.0}, {"x": 414.0, "y": 329.0}]}], "spans": [{"offset": 975, "length": 6}], "confidence": 0.003}, "UnitPrice": {"value_type": "currency", "value": {"amount": 150.0, "symbol": null}, "content": "150.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 370.0, "y": 313.0}, {"x": 393.0, "y": 313.0}, {"x": 393.0, "y": 320.0}, {"x": 370.0, "y": 319.0}]}], "spans": [{"offset": 899, "length": 6}], "confidence": 0.003}}, "content": "3\npoly cloth\n3455\n100.00\n150.00\n1,620.00\n0.0\n15,120.00\n2 layer, dust, anti static. blue\nDiscount 10%\n12.00%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 113.0, "y": 312.0}, {"x": 533.0, "y": 312.0}, {"x": 533.0, "y": 334.0}, {"x": 113.0, "y": 334.0}]}], "spans": [{"offset": 874, "length": 107}], "confidence": 0.673}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "02", "content": "02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 523.0, "y": 72.0}, {"x": 534.0, "y": 72.0}, {"x": 534.0, "y": 83.0}, {"x": 524.0, "y": 83.0}]}], "spans": [{"offset": 451, "length": 2}], "confidence": 0.847}, "SubTotal": {"value_type": "currency", "value": {"amount": 25700.0, "symbol": null}, "content": "25,700.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 497.0, "y": 516.0}, {"x": 532.0, "y": 516.0}, {"x": 532.0, "y": 524.0}, {"x": 498.0, "y": 524.0}]}], "spans": [{"offset": 1249, "length": 9}], "confidence": 0.957}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 1730.0, "symbol": null}, "content": "(-) 1,730.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 527.0}, {"x": 533.0, "y": 527.0}, {"x": 533.0, "y": 537.0}, {"x": 490.0, "y": 537.0}]}], "spans": [{"offset": 1268, "length": 12}], "confidence": 0.727}, "TotalTax": {"value_type": "currency", "value": {"amount": 3454.9, "symbol": null}, "content": "3,454.90", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 538.0}, {"x": 532.0, "y": 539.0}, {"x": 532.0, "y": 547.0}, {"x": 502.0, "y": 547.0}]}], "spans": [{"offset": 1298, "length": 8}], "confidence": 0.953}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Madurai", "state": "Tamil Nadu", "postal_code": "33", "country_region": "TN", "street_address": ""}, "content": "@ Long Baharam, 34-38, B Building Madurai, Tamil Nadu (TN - 33), India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 106.0, "y": 119.0}, {"x": 246.0, "y": 119.0}, {"x": 246.0, "y": 140.0}, {"x": 106.0, "y": 140.0}]}], "spans": [{"offset": 49, "length": 70}], "confidence": 0.545}, "VendorAddressRecipient": {"value_type": "string", "value": "Sorina TEST 123", "content": "Sorina TEST 123", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 101.0}, {"x": 201.0, "y": 101.0}, {"x": 201.0, "y": 112.0}, {"x": 120.0, "y": 112.0}]}], "spans": [{"offset": 33, "length": 15}], "confidence": 0.398}, "VendorName": {"value_type": "string", "value": "S\nSLEEK BILL", "content": "S\nSLEEK BILL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 35.0}, {"x": 302.0, "y": 35.0}, {"x": 302.0, "y": 74.0}, {"x": 119.0, "y": 74.0}]}], "spans": [{"offset": 0, "length": 12}], "confidence": 0.554}, "VendorTaxId": {"value_type": "string", "value": "123456711111111", "content": "123456711111111", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 145.0, "y": 173.0}, {"x": 211.0, "y": 172.0}, {"x": 211.0, "y": 182.0}, {"x": 145.0, "y": 182.0}]}], "spans": [{"offset": 174, "length": 15}], "confidence": 0.722}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/496_jpg.rf.9bc88843f6d234579faf75f9aaae3d29.json b/Data/test/496_jpg.rf.9bc88843f6d234579faf75f9aaae3d29.json new file mode 100644 index 0000000000000000000000000000000000000000..7e56183b6b2f2a4607f58b7294eb86155cc25de4 --- /dev/null +++ b/Data/test/496_jpg.rf.9bc88843f6d234579faf75f9aaae3d29.json @@ -0,0 +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": 654}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "6146", "po_box": null, "road": "Honey Bluff Parkway", "city": "Calder", "state": "Michigan", "postal_code": "49628-7978", "country_region": "United States", "street_address": "6146 Honey Bluff Parkway"}, "content": "6146 Honey Bluff Parkway Calder, Michigan, 49628-7978 United States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 24.0, "y": 277.0}, {"x": 159.0, "y": 277.0}, {"x": 159.0, "y": 313.0}, {"x": 24.0, "y": 313.0}]}], "spans": [{"offset": 67, "length": 67}], "confidence": 0.864}, "BillingAddressRecipient": {"value_type": "string", "value": "Veronica Costello", "content": "Veronica Costello", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 24.0, "y": 266.0}, {"x": 103.0, "y": 266.0}, {"x": 103.0, "y": 277.0}, {"x": 24.0, "y": 277.0}]}], "spans": [{"offset": 49, "length": 17}], "confidence": 0.932}, "CustomerName": {"value_type": "string", "value": "Veronica Costello", "content": "Veronica Costello", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 24.0, "y": 266.0}, {"x": 103.0, "y": 266.0}, {"x": 103.0, "y": 277.0}, {"x": 24.0, "y": 277.0}]}], "spans": [{"offset": 49, "length": 17}], "confidence": 0.932}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 34.0, "symbol": "$"}, "content": "$34.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 588.0, "y": 448.0}, {"x": 619.0, "y": 447.0}, {"x": 619.0, "y": 459.0}, {"x": 589.0, "y": 458.0}]}], "spans": [{"offset": 620, "length": 6}], "confidence": 0.767}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 34.0, "symbol": "$"}, "content": "$34.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 542.0, "y": 427.0}, {"x": 573.0, "y": 426.0}, {"x": 572.0, "y": 437.0}, {"x": 542.0, "y": 437.0}]}], "spans": [{"offset": 600, "length": 6}], "confidence": 0.65}, "Description": {"value_type": "string", "value": "Joust Duffle Bag\nSKU: 24-MB01", "content": "Joust Duffle Bag SKU: 24-MB01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 25.0, "y": 420.0}, {"x": 97.0, "y": 420.0}, {"x": 97.0, "y": 443.0}, {"x": 25.0, "y": 443.0}]}], "spans": [{"offset": 544, "length": 29}], "confidence": 0.519}, "Tax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 320.0, "y": 426.0}, {"x": 346.0, "y": 426.0}, {"x": 346.0, "y": 437.0}, {"x": 320.0, "y": 437.0}]}], "spans": [{"offset": 588, "length": 5}], "confidence": 0.901}, "UnitPrice": {"value_type": "currency", "value": {"amount": 34.0, "symbol": "$"}, "content": "$34.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 426.0}, {"x": 166.0, "y": 427.0}, {"x": 166.0, "y": 438.0}, {"x": 135.0, "y": 437.0}]}], "spans": [{"offset": 574, "length": 6}], "confidence": 0.905}}, "content": "Joust Duffle Bag SKU: 24-MB01\n$34.00\n$34.00\n$0.00\n$0.00\n$34.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 25.0, "y": 420.0}, {"x": 573.0, "y": 420.0}, {"x": 573.0, "y": 443.0}, {"x": 25.0, "y": 443.0}]}], "spans": [{"offset": 544, "length": 62}], "confidence": 0.906}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "6146", "po_box": null, "road": "Honey Bluff Parkway", "city": "Calder", "state": "Michigan", "postal_code": "49628-7978", "country_region": "United States", "street_address": "6146 Honey Bluff Parkway"}, "content": "6146 Honey Bluff Parkway Calder, Michigan, 49628-7978 United States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 486.0, "y": 277.0}, {"x": 622.0, "y": 277.0}, {"x": 622.0, "y": 313.0}, {"x": 486.0, "y": 313.0}]}], "spans": [{"offset": 394, "length": 67}], "confidence": 0.853}, "ShippingAddressRecipient": {"value_type": "string", "value": "Veronica Costello", "content": "Veronica Costello", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 542.0, "y": 265.0}, {"x": 619.0, "y": 266.0}, {"x": 619.0, "y": 277.0}, {"x": 542.0, "y": 276.0}]}], "spans": [{"offset": 376, "length": 17}], "confidence": 0.9}, "SubTotal": {"value_type": "currency", "value": {"amount": 34.0, "symbol": "$"}, "content": "$34.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 589.0, "y": 463.0}, {"x": 619.0, "y": 463.0}, {"x": 619.0, "y": 474.0}, {"x": 589.0, "y": 473.0}]}], "spans": [{"offset": 637, "length": 6}], "confidence": 0.943}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 595.0, "y": 478.0}, {"x": 619.0, "y": 478.0}, {"x": 619.0, "y": 489.0}, {"x": 595.0, "y": 489.0}]}], "spans": [{"offset": 649, "length": 5}], "confidence": 0.957}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/506_jpg.rf.930d18b54e7343ceffb4b1c0d28cd8ed.json b/Data/test/506_jpg.rf.930d18b54e7343ceffb4b1c0d28cd8ed.json new file mode 100644 index 0000000000000000000000000000000000000000..0ddd681635cc124fa73748b7e293228c5c81d7d5 --- /dev/null +++ b/Data/test/506_jpg.rf.930d18b54e7343ceffb4b1c0d28cd8ed.json @@ -0,0 +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": 663}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 82608.2, "symbol": null}, "content": "82,608.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 540.0}, {"x": 556.0, "y": 540.0}, {"x": 556.0, "y": 551.0}, {"x": 517.0, "y": 550.0}]}], "spans": [{"offset": 654, "length": 9}], "confidence": null}, "BillingAddress": {"value_type": "address", "value": {"house_number": "1954", "po_box": null, "road": "Bloor Street", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "1954 Bloor Street"}, "content": "1954 Bloor Street Wirst Theprin, ON, MP 3KS Canada", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 81.0, "y": 185.0}, {"x": 172.0, "y": 185.0}, {"x": 172.0, "y": 220.0}, {"x": 81.0, "y": 220.0}]}], "spans": [{"offset": 39, "length": 50}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "Jro Dol", "content": "Jro Dol", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 82.0, "y": 172.0}, {"x": 114.0, "y": 173.0}, {"x": 114.0, "y": 184.0}, {"x": 82.0, "y": 183.0}]}], "spans": [{"offset": 31, "length": 7}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Jro Dol", "content": "Jro Dol", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 82.0, "y": 172.0}, {"x": 114.0, "y": 173.0}, {"x": 114.0, "y": 184.0}, {"x": 82.0, "y": 183.0}]}], "spans": [{"offset": 31, "length": 7}], "confidence": null}, "DueDate": {"value_type": "date", "value": null, "content": "Upon receipt", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 199.0}, {"x": 546.0, "y": 199.0}, {"x": 546.0, "y": 209.0}, {"x": 493.0, "y": 209.0}]}], "spans": [{"offset": 289, "length": 12}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2018-09-25", "content": "2018-09-25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 186.0}, {"x": 540.0, "y": 185.0}, {"x": 540.0, "y": 195.0}, {"x": 494.0, "y": 196.0}]}], "spans": [{"offset": 266, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "14", "content": "14", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 160.0}, {"x": 504.0, "y": 160.0}, {"x": 504.0, "y": 171.0}, {"x": 494.0, "y": 171.0}]}], "spans": [{"offset": 224, "length": 2}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 608.2, "symbol": "$"}, "content": "$2.608:20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 510.0}, {"x": 557.0, "y": 510.0}, {"x": 557.0, "y": 520.0}, {"x": 517.0, "y": 519.0}]}], "spans": [{"offset": 626, "length": 9}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 68.0, "symbol": "$"}, "content": "$68.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 530.0, "y": 316.0}, {"x": 556.0, "y": 316.0}, {"x": 556.0, "y": 326.0}, {"x": 530.0, "y": 326.0}]}], "spans": [{"offset": 420, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Platinum web hosting package\nDown 35etb, Up 100mg", "content": "Platinum web hosting package Down 35etb, Up 100mg", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 315.0}, {"x": 210.0, "y": 317.0}, {"x": 210.0, "y": 341.0}, {"x": 80.0, "y": 339.0}]}], "spans": [{"offset": 361, "length": 49}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 382.0, "y": 316.0}, {"x": 388.0, "y": 316.0}, {"x": 387.0, "y": 327.0}, {"x": 381.0, "y": 327.0}]}], "spans": [{"offset": 411, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 565.0, "symbol": null}, "content": "565.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 315.0}, {"x": 480.0, "y": 315.0}, {"x": 480.0, "y": 325.0}, {"x": 454.0, "y": 325.0}]}], "spans": [{"offset": 413, "length": 6}], "confidence": null}}, "content": "Platinum web hosting package Down 35etb, Up 100mg\n1\n565.00\n$68.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 315.0}, {"x": 556.0, "y": 315.0}, {"x": 556.0, "y": 340.0}, {"x": 80.0, "y": 340.0}]}], "spans": [{"offset": 361, "length": 65}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2100.0, "symbol": "$"}, "content": "$2,100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 357.0}, {"x": 556.0, "y": 357.0}, {"x": 556.0, "y": 367.0}, {"x": 517.0, "y": 367.0}]}], "spans": [{"offset": 511, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "2 page website design\nincludes base wsetrames, and responsive templates", "content": "2 page website design includes base wsetrames, and responsive templates", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 357.0}, {"x": 289.0, "y": 357.0}, {"x": 289.0, "y": 380.0}, {"x": 80.0, "y": 380.0}]}], "spans": [{"offset": 427, "length": 71}], "confidence": null}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 382.0, "y": 357.0}, {"x": 389.0, "y": 357.0}, {"x": 389.0, "y": 367.0}, {"x": 382.0, "y": 367.0}]}], "spans": [{"offset": 499, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 2100.0, "symbol": "$"}, "content": "$2,100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 440.0, "y": 357.0}, {"x": 480.0, "y": 357.0}, {"x": 480.0, "y": 367.0}, {"x": 440.0, "y": 367.0}]}], "spans": [{"offset": 501, "length": 9}], "confidence": null}}, "content": "2 page website design includes base wsetrames, and responsive templates\n3\n$2,100.00\n$2,100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 357.0}, {"x": 556.0, "y": 357.0}, {"x": 556.0, "y": 380.0}, {"x": 80.0, "y": 380.0}]}], "spans": [{"offset": 427, "length": 93}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 250.0, "symbol": "$"}, "content": "$250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 524.0, "y": 399.0}, {"x": 556.0, "y": 399.0}, {"x": 556.0, "y": 409.0}, {"x": 525.0, "y": 409.0}]}], "spans": [{"offset": 575, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "Mobile designs\nmoudes responsive navigation", "content": "Mobile designs moudes responsive navigation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 399.0}, {"x": 202.0, "y": 399.0}, {"x": 202.0, "y": 423.0}, {"x": 79.0, "y": 423.0}]}], "spans": [{"offset": 521, "length": 43}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 382.0, "y": 399.0}, {"x": 387.0, "y": 399.0}, {"x": 387.0, "y": 407.0}, {"x": 382.0, "y": 407.0}]}], "spans": [{"offset": 565, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 250.0, "symbol": "$"}, "content": "$250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 444.0, "y": 399.0}, {"x": 476.0, "y": 399.0}, {"x": 476.0, "y": 409.0}, {"x": 444.0, "y": 409.0}]}], "spans": [{"offset": 567, "length": 7}], "confidence": null}}, "content": "Mobile designs moudes responsive navigation\n1\n$250.00\n$250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 399.0}, {"x": 556.0, "y": 399.0}, {"x": 556.0, "y": 423.0}, {"x": 79.0, "y": 423.0}]}], "spans": [{"offset": 521, "length": 61}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "AD29094", "content": "AD29094", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 173.0}, {"x": 531.0, "y": 173.0}, {"x": 531.0, "y": 182.0}, {"x": 494.0, "y": 183.0}]}], "spans": [{"offset": 244, "length": 7}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 82145.0, "symbol": null}, "content": "82,145.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 464.0}, {"x": 557.0, "y": 464.0}, {"x": 557.0, "y": 475.0}, {"x": 518.0, "y": 475.0}]}], "spans": [{"offset": 593, "length": 9}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 193.2, "symbol": "$"}, "content": "$193.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 524.0, "y": 477.0}, {"x": 557.0, "y": 478.0}, {"x": 557.0, "y": 488.0}, {"x": 524.0, "y": 488.0}]}], "spans": [{"offset": 612, "length": 7}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "156", "po_box": null, "road": "University Ave", "city": "Toronto", "state": "ON", "postal_code": null, "country_region": "Canada", "street_address": "156 University Ave"}, "content": "156 University Ave, Toronto ON, Canada, MISH 2H?", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 68.0}, {"x": 558.0, "y": 68.0}, {"x": 558.0, "y": 93.0}, {"x": 448.0, "y": 93.0}]}], "spans": [{"offset": 146, "length": 48}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "Turnpike Designs", "content": "Turnpike Designs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 55.0}, {"x": 558.0, "y": 56.0}, {"x": 558.0, "y": 69.0}, {"x": 484.0, "y": 68.0}]}], "spans": [{"offset": 129, "length": 16}], "confidence": null}, "VendorName": {"value_type": "string", "value": "T\nTurnpike\nDesigns Co.", "content": "T\nTurnpike Designs Co.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 39.0}, {"x": 269.0, "y": 40.0}, {"x": 269.0, "y": 85.0}, {"x": 105.0, "y": 84.0}]}], "spans": [{"offset": 0, "length": 22}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/50_jpg.rf.27981f2c174cdaa48bc4f05cd4691637.json b/Data/test/50_jpg.rf.27981f2c174cdaa48bc4f05cd4691637.json new file mode 100644 index 0000000000000000000000000000000000000000..e349f075f06d2c96d9aaf62e28ac0a8e087213fa --- /dev/null +++ b/Data/test/50_jpg.rf.27981f2c174cdaa48bc4f05cd4691637.json @@ -0,0 +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": 853}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "13", "po_box": "P.O. Box 523", "road": "Lincoln Road\nGreat", "city": "Beck", "state": "New York", "postal_code": "11021", "country_region": null, "street_address": "13 Lincoln Road\nGreat P.O. Box 523"}, "content": "P.O. Box 523 13 Lincoln Road\nGreat Beck, New York 11021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 179.0, "y": 147.0}, {"x": 308.0, "y": 147.0}, {"x": 308.0, "y": 165.0}, {"x": 179.0, "y": 165.0}]}], "spans": [{"offset": 115, "length": 55}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "CHARGED 10. Leonard Sahn & Assoc. Inc.\nATTN: Lacard 8. Bahn", "content": "CHARGED 10. Leonard Sahn & Assoc. Inc.\nATTN: Lacard 8. Bahn", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 132.0, "y": 137.0}, {"x": 297.0, "y": 137.0}, {"x": 297.0, "y": 178.0}, {"x": 132.0, "y": 178.0}]}], "spans": [{"offset": 76, "length": 38}, {"offset": 171, "length": 20}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "CHARGED 10. Leonard Sahn & Assoc. Inc.\nATTN: Lacard 8. Bahn", "content": "CHARGED 10. Leonard Sahn & Assoc. Inc.\nATTN: Lacard 8. Bahn", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 132.0, "y": 137.0}, {"x": 297.0, "y": 137.0}, {"x": 297.0, "y": 178.0}, {"x": 132.0, "y": 178.0}]}], "spans": [{"offset": 76, "length": 38}, {"offset": 171, "length": 20}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1971-05-21", "content": "May 21, 1971", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 421.0, "y": 189.0}, {"x": 475.0, "y": 189.0}, {"x": 475.0, "y": 198.0}, {"x": 421.0, "y": 198.0}]}], "spans": [{"offset": 227, "length": 12}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "2379", "content": "2379", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 423.0, "y": 138.0}, {"x": 442.0, "y": 138.0}, {"x": 441.0, "y": 146.0}, {"x": 423.0, "y": 145.0}]}], "spans": [{"offset": 200, "length": 4}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1160.53, "symbol": null}, "content": "1160.53", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 425.0, "y": 459.0}, {"x": 457.0, "y": 459.0}, {"x": 458.0, "y": 468.0}, {"x": 425.0, "y": 468.0}]}], "spans": [{"offset": 817, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 341.37, "symbol": null}, "content": "341.37", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 431.0, "y": 278.0}, {"x": 458.0, "y": 278.0}, {"x": 458.0, "y": 287.0}, {"x": 431.0, "y": 286.0}]}], "spans": [{"offset": 511, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Addressing your Cemell far Tobacco\nResearch anvelope to A, CD, G, PH, PAYS,\nTotal Offico Basad Fzim ay specialty, in\nD. B. PUD, R, total office based, primary\nand secondary, is D.S. 75, total patient\ncare in U.S.", "content": "Addressing your Cemell far Tobacco Research anvelope to A, CD, G, PH, PAYS, Total Offico Basad Fzim ay specialty, in D. B. PUD, R, total office based, primary and secondary, is D.S. 75, total patient care in U.S.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 237.0}, {"x": 329.0, "y": 237.0}, {"x": 329.0, "y": 288.0}, {"x": 142.0, "y": 288.0}]}], "spans": [{"offset": 285, "length": 212}], "confidence": null}, "Quantity": {"value_type": "float", "value": 19910.0, "content": "19910", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 342.0, "y": 277.0}, {"x": 365.0, "y": 277.0}, {"x": 365.0, "y": 286.0}, {"x": 342.0, "y": 286.0}]}], "spans": [{"offset": 498, "length": 5}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 19.15, "symbol": null}, "content": "e19.15", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 381.0, "y": 278.0}, {"x": 408.0, "y": 278.0}, {"x": 408.0, "y": 286.0}, {"x": 381.0, "y": 285.0}]}], "spans": [{"offset": 504, "length": 6}], "confidence": null}}, "content": "Addressing your Cemell far Tobacco Research anvelope to A, CD, G, PH, PAYS, Total Offico Basad Fzim ay specialty, in D. B. PUD, R, total office based, primary and secondary, is D.S. 75, total patient care in U.S.\n19910\ne19.15\n341.37", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 237.0}, {"x": 458.0, "y": 237.0}, {"x": 458.0, "y": 288.0}, {"x": 142.0, "y": 288.0}]}], "spans": [{"offset": 285, "length": 232}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 35.0, "symbol": null}, "content": "35.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 435.0, "y": 302.0}, {"x": 457.0, "y": 301.0}, {"x": 458.0, "y": 310.0}, {"x": 435.0, "y": 310.0}]}], "spans": [{"offset": 577, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Addressing above envelopes to Medical\nSchool Libraries", "content": "Addressing above envelopes to Medical School Libraries", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 293.0}, {"x": 311.0, "y": 293.0}, {"x": 311.0, "y": 311.0}, {"x": 141.0, "y": 311.0}]}], "spans": [{"offset": 518, "length": 54}], "confidence": null}, "Quantity": {"value_type": "float", "value": 328.0, "content": "328", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 302.0}, {"x": 364.0, "y": 302.0}, {"x": 364.0, "y": 310.0}, {"x": 351.0, "y": 310.0}]}], "spans": [{"offset": 573, "length": 3}], "confidence": null}}, "content": "Addressing above envelopes to Medical School Libraries\n328\n35.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 293.0}, {"x": 458.0, "y": 293.0}, {"x": 458.0, "y": 311.0}, {"x": 141.0, "y": 311.0}]}], "spans": [{"offset": 518, "length": 64}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 364.28, "symbol": null}, "content": "364.28", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 431.0, "y": 326.0}, {"x": 458.0, "y": 327.0}, {"x": 458.0, "y": 335.0}, {"x": 430.0, "y": 335.0}]}], "spans": [{"offset": 648, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Enclosing book \"Report of the Salentifie\nal raobor\"", "content": "Enclosing book \"Report of the Salentifie al raobor\"", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 317.0}, {"x": 324.0, "y": 317.0}, {"x": 324.0, "y": 336.0}, {"x": 141.0, "y": 336.0}]}], "spans": [{"offset": 583, "length": 51}], "confidence": null}, "Quantity": {"value_type": "float", "value": 20238.0, "content": "20238", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 326.0}, {"x": 363.0, "y": 326.0}, {"x": 363.0, "y": 335.0}, {"x": 341.0, "y": 334.0}]}], "spans": [{"offset": 635, "length": 5}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 13.0, "symbol": null}, "content": "E13.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 381.0, "y": 327.0}, {"x": 407.0, "y": 327.0}, {"x": 407.0, "y": 335.0}, {"x": 381.0, "y": 334.0}]}], "spans": [{"offset": 641, "length": 6}], "confidence": null}}, "content": "Enclosing book \"Report of the Salentifie al raobor\"\n20238\nE13.00\n364.28", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 317.0}, {"x": 458.0, "y": 317.0}, {"x": 458.0, "y": 336.0}, {"x": 141.0, "y": 336.0}]}], "spans": [{"offset": 583, "length": 71}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 119.46, "symbol": null}, "content": "119.46", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 430.0, "y": 365.0}, {"x": 458.0, "y": 365.0}, {"x": 458.0, "y": 375.0}, {"x": 430.0, "y": 375.0}]}], "spans": [{"offset": 695, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Sort and mail", "content": "Sort and mail", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 341.0}, {"x": 202.0, "y": 341.0}, {"x": 202.0, "y": 352.0}, {"x": 141.0, "y": 352.0}]}], "spans": [{"offset": 655, "length": 13}], "confidence": null}, "Quantity": {"value_type": "float", "value": 19910.0, "content": "19910", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 366.0}, {"x": 364.0, "y": 366.0}, {"x": 364.0, "y": 375.0}, {"x": 341.0, "y": 375.0}]}], "spans": [{"offset": 682, "length": 5}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 6.0, "symbol": "\u20ac"}, "content": "\u20ac 6.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 380.0, "y": 367.0}, {"x": 407.0, "y": 367.0}, {"x": 407.0, "y": 375.0}, {"x": 380.0, "y": 375.0}]}], "spans": [{"offset": 688, "length": 6}], "confidence": null}}, "content": "Sort and mail\n20254\ne 7.75\n19910\n\u20ac 6.00\n119.46", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 341.0}, {"x": 458.0, "y": 341.0}, {"x": 458.0, "y": 375.0}, {"x": 141.0, "y": 375.0}]}], "spans": [{"offset": 655, "length": 46}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 951.36, "symbol": null}, "content": "951.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 429.0, "y": 381.0}, {"x": 458.0, "y": 382.0}, {"x": 458.0, "y": 392.0}, {"x": 429.0, "y": 391.0}]}], "spans": [{"offset": 719, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Postago advanced", "content": "Postago advanced", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 381.0}, {"x": 214.0, "y": 382.0}, {"x": 214.0, "y": 393.0}, {"x": 140.0, "y": 392.0}]}], "spans": [{"offset": 702, "length": 16}], "confidence": null}}, "content": "Postago advanced\n951.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 377.0}, {"x": 458.0, "y": 381.0}, {"x": 458.0, "y": 397.0}, {"x": 140.0, "y": 392.0}]}], "spans": [{"offset": 702, "length": 23}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 30.05, "symbol": null}, "content": "30.05", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 435.0, "y": 398.0}, {"x": 457.0, "y": 398.0}, {"x": 457.0, "y": 407.0}, {"x": 435.0, "y": 407.0}]}], "spans": [{"offset": 735, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Bulk fes", "content": "Bulk fes", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 399.0}, {"x": 177.0, "y": 399.0}, {"x": 177.0, "y": 408.0}, {"x": 140.0, "y": 408.0}]}], "spans": [{"offset": 726, "length": 8}], "confidence": null}}, "content": "Bulk fes\n30.05", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 398.0}, {"x": 457.0, "y": 398.0}, {"x": 457.0, "y": 408.0}, {"x": 140.0, "y": 408.0}]}], "spans": [{"offset": 726, "length": 14}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 35.5, "symbol": null}, "content": "35.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 435.0, "y": 405.0}, {"x": 457.0, "y": 405.0}, {"x": 457.0, "y": 415.0}, {"x": 435.0, "y": 415.0}]}], "spans": [{"offset": 741, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "fructing", "content": "fructing", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 408.0}, {"x": 178.0, "y": 407.0}, {"x": 178.0, "y": 416.0}, {"x": 141.0, "y": 416.0}]}], "spans": [{"offset": 747, "length": 8}], "confidence": null}}, "content": "35.50\nfructing", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 405.0}, {"x": 457.0, "y": 405.0}, {"x": 457.0, "y": 416.0}, {"x": 141.0, "y": 416.0}]}], "spans": [{"offset": 741, "length": 14}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.85, "symbol": null}, "content": "10.85", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 434.0, "y": 415.0}, {"x": 457.0, "y": 415.0}, {"x": 457.0, "y": 424.0}, {"x": 435.0, "y": 423.0}]}], "spans": [{"offset": 764, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Traight", "content": "Traight", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 415.0}, {"x": 173.0, "y": 415.0}, {"x": 173.0, "y": 424.0}, {"x": 140.0, "y": 423.0}]}], "spans": [{"offset": 756, "length": 7}], "confidence": null}}, "content": "Traight\n10.85", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 408.0}, {"x": 457.0, "y": 415.0}, {"x": 457.0, "y": 430.0}, {"x": 140.0, "y": 423.0}]}], "spans": [{"offset": 756, "length": 13}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 45.07, "symbol": null}, "content": "45.07", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 434.0, "y": 431.0}, {"x": 457.0, "y": 431.0}, {"x": 458.0, "y": 440.0}, {"x": 434.0, "y": 440.0}]}], "spans": [{"offset": 780, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Sales Tax", "content": "Sales Tax", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 431.0}, {"x": 182.0, "y": 431.0}, {"x": 182.0, "y": 440.0}, {"x": 140.0, "y": 440.0}]}], "spans": [{"offset": 770, "length": 9}], "confidence": null}}, "content": "Sales Tax\n45.07", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 431.0}, {"x": 458.0, "y": 431.0}, {"x": 458.0, "y": 440.0}, {"x": 140.0, "y": 440.0}]}], "spans": [{"offset": 770, "length": 15}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 45.07, "symbol": null}, "content": "45.07", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 434.0, "y": 431.0}, {"x": 457.0, "y": 431.0}, {"x": 458.0, "y": 440.0}, {"x": 434.0, "y": 440.0}]}], "spans": [{"offset": 780, "length": 5}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "120", "po_box": null, "road": "Anghron Road", "city": "Clifton", "state": "New Jersey", "postal_code": "07012", "country_region": null, "street_address": "120 Anghron Road"}, "content": "120 Anghron Road, Clifton, New Jersey 07012", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 184.0, "y": 74.0}, {"x": 324.0, "y": 74.0}, {"x": 324.0, "y": 86.0}, {"x": 184.0, "y": 86.0}]}], "spans": [{"offset": 20, "length": 43}], "confidence": null}, "VendorName": {"value_type": "string", "value": "FISHER-STEVENS,INC.", "content": "FISHER-STEVENS,INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 62.0}, {"x": 327.0, "y": 62.0}, {"x": 327.0, "y": 74.0}, {"x": 189.0, "y": 75.0}]}], "spans": [{"offset": 0, "length": 19}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/511_png.rf.d6cddca900df6abd8d27093761c7d247.json b/Data/test/511_png.rf.d6cddca900df6abd8d27093761c7d247.json new file mode 100644 index 0000000000000000000000000000000000000000..e050865828deb7a5dc8f9634def2470646a6dd1b --- /dev/null +++ b/Data/test/511_png.rf.d6cddca900df6abd8d27093761c7d247.json @@ -0,0 +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": 296}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "97", "po_box": null, "road": "Newport Ave", "city": "New York", "state": "NY", "postal_code": "10006", "country_region": "United States", "street_address": "97 Newport Ave"}, "content": "97 Newport Ave\n10006 New York NY\nUnited States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 9.0, "y": 231.0}, {"x": 112.0, "y": 231.0}, {"x": 112.0, "y": 271.0}, {"x": 9.0, "y": 271.0}]}], "spans": [{"offset": 47, "length": 46}], "confidence": 0.939}, "BillingAddressRecipient": {"value_type": "string", "value": "John Doe Inc.", "content": "John Doe Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 8.0, "y": 214.0}, {"x": 78.0, "y": 213.0}, {"x": 78.0, "y": 226.0}, {"x": 8.0, "y": 227.0}]}], "spans": [{"offset": 33, "length": 13}], "confidence": 0.942}, "CustomerName": {"value_type": "string", "value": "John Doe Inc.", "content": "John Doe Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 8.0, "y": 214.0}, {"x": 78.0, "y": 213.0}, {"x": 78.0, "y": 226.0}, {"x": 8.0, "y": 227.0}]}], "spans": [{"offset": 33, "length": 13}], "confidence": 0.942}, "InvoiceDate": {"value_type": "date", "value": "2021-09-15", "content": "September 15, 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 526.0, "y": 203.0}, {"x": 632.0, "y": 203.0}, {"x": 632.0, "y": 218.0}, {"x": 526.0, "y": 218.0}]}], "spans": [{"offset": 132, "length": 18}], "confidence": 0.943}, "InvoiceId": {"value_type": "string", "value": "OC-6508\nOC-6508", "content": "OC-6508\nOC-6508", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 117.0}, {"x": 632.0, "y": 118.0}, {"x": 631.0, "y": 203.0}, {"x": 518.0, "y": 202.0}]}], "spans": [{"offset": 16, "length": 7}, {"offset": 110, "length": 7}], "confidence": 0.958}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 39.0, "symbol": "$"}, "content": "$US39.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 570.0, "y": 514.0}, {"x": 621.0, "y": 514.0}, {"x": 621.0, "y": 527.0}, {"x": 571.0, "y": 527.0}]}], "spans": [{"offset": 288, "length": 8}], "confidence": 0.987}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 39.0, "symbol": "$"}, "content": "SUS39.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 574.0, "y": 408.0}, {"x": 621.0, "y": 408.0}, {"x": 621.0, "y": 420.0}, {"x": 574.0, "y": 420.0}]}], "spans": [{"offset": 234, "length": 8}], "confidence": 0.944}, "Description": {"value_type": "string", "value": "Octobot Access\nStartup Monthly US", "content": "Octobot Access Startup Monthly US", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 19.0, "y": 399.0}, {"x": 112.0, "y": 399.0}, {"x": 112.0, "y": 429.0}, {"x": 19.0, "y": 429.0}]}], "spans": [{"offset": 189, "length": 33}], "confidence": 0.844}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 408.0}, {"x": 444.0, "y": 408.0}, {"x": 444.0, "y": 419.0}, {"x": 438.0, "y": 419.0}]}], "spans": [{"offset": 232, "length": 1}], "confidence": 0.942}, "UnitPrice": {"value_type": "currency", "value": {"amount": 39.0, "symbol": "$"}, "content": "$US39.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 299.0, "y": 408.0}, {"x": 347.0, "y": 408.0}, {"x": 347.0, "y": 420.0}, {"x": 300.0, "y": 420.0}]}], "spans": [{"offset": 223, "length": 8}], "confidence": 0.941}}, "content": "Octobot Access Startup Monthly US\n$US39.00\n1\nSUS39.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 19.0, "y": 399.0}, {"x": 621.0, "y": 399.0}, {"x": 621.0, "y": 429.0}, {"x": 19.0, "y": 429.0}]}], "spans": [{"offset": 189, "length": 53}], "confidence": 0.932}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 39.0, "symbol": "$"}, "content": "$US39.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 570.0, "y": 458.0}, {"x": 621.0, "y": 457.0}, {"x": 621.0, "y": 471.0}, {"x": 570.0, "y": 471.0}]}], "spans": [{"offset": 253, "length": 8}], "confidence": 0.987}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$US0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 577.0, "y": 487.0}, {"x": 621.0, "y": 487.0}, {"x": 621.0, "y": 499.0}, {"x": 578.0, "y": 498.0}]}], "spans": [{"offset": 274, "length": 7}], "confidence": 0.987}, "VendorName": {"value_type": "string", "value": "Octobat", "content": "Octobat", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 119.0}, {"x": 230.0, "y": 118.0}, {"x": 231.0, "y": 158.0}, {"x": 102.0, "y": 156.0}]}], "spans": [{"offset": 0, "length": 7}], "confidence": 0.987}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/513_jpg.rf.0e59419af73076563457c70735b74bf0.json b/Data/test/513_jpg.rf.0e59419af73076563457c70735b74bf0.json new file mode 100644 index 0000000000000000000000000000000000000000..ed06cfc903995480a7a91997c3d9650aa697d0fc --- /dev/null +++ b/Data/test/513_jpg.rf.0e59419af73076563457c70735b74bf0.json @@ -0,0 +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": 1107}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 39750.18, "symbol": "Rs"}, "content": "Rs. 39,750.18", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 503.0, "y": 26.0}, {"x": 579.0, "y": 28.0}, {"x": 579.0, "y": 43.0}, {"x": 503.0, "y": 40.0}]}], "spans": [{"offset": 69, "length": 13}], "confidence": 0.774}, "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. Uttar Pradesh", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 183.0}, {"x": 164.0, "y": 183.0}, {"x": 164.0, "y": 208.0}, {"x": 60.0, "y": 208.0}]}], "spans": [{"offset": 213, "length": 37}], "confidence": 0.913}, "BillingAddressRecipient": {"value_type": "string", "value": "Nazim Khan", "content": "Nazim Khan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 168.0}, {"x": 113.0, "y": 170.0}, {"x": 113.0, "y": 181.0}, {"x": 60.0, "y": 180.0}]}], "spans": [{"offset": 202, "length": 10}], "confidence": 0.936}, "CustomerName": {"value_type": "string", "value": "Nazim Khan", "content": "Nazim Khan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 168.0}, {"x": 113.0, "y": 170.0}, {"x": 113.0, "y": 181.0}, {"x": 60.0, "y": 180.0}]}], "spans": [{"offset": 202, "length": 10}], "confidence": 0.936}, "CustomerTaxId": {"value_type": "string", "value": "6969696969696969", "content": "6969696969696969", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 226.0}, {"x": 184.0, "y": 226.0}, {"x": 184.0, "y": 237.0}, {"x": 96.0, "y": 237.0}]}], "spans": [{"offset": 278, "length": 16}], "confidence": 0.833}, "DueDate": {"value_type": "date", "value": "2021-03-15", "content": "15-03-2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 525.0, "y": 78.0}, {"x": 579.0, "y": 78.0}, {"x": 580.0, "y": 90.0}, {"x": 525.0, "y": 89.0}]}], "spans": [{"offset": 136, "length": 10}], "confidence": 0.97}, "InvoiceDate": {"value_type": "date", "value": "2021-08-03", "content": "08-03-2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 524.0, "y": 60.0}, {"x": 581.0, "y": 59.0}, {"x": 581.0, "y": 71.0}, {"x": 524.0, "y": 70.0}]}], "spans": [{"offset": 116, "length": 10}], "confidence": 0.971}, "InvoiceId": {"value_type": "string", "value": "4646164", "content": "4646164", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 537.0, "y": 45.0}, {"x": 580.0, "y": 45.0}, {"x": 580.0, "y": 57.0}, {"x": 537.0, "y": 56.0}]}], "spans": [{"offset": 95, "length": 7}], "confidence": 0.972}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 39750.18, "symbol": "Rs"}, "content": "Rs. 39,750.18", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 503.0, "y": 26.0}, {"x": 579.0, "y": 28.0}, {"x": 579.0, "y": 43.0}, {"x": 503.0, "y": 40.0}]}], "spans": [{"offset": 69, "length": 13}], "confidence": 0.774}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 6123.52, "symbol": "Rs"}, "content": "Rs. 6,123.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 269.0}, {"x": 557.0, "y": 269.0}, {"x": 557.0, "y": 279.0}, {"x": 501.0, "y": 279.0}]}], "spans": [{"offset": 477, "length": 12}], "confidence": 0.917}, "Description": {"value_type": "string", "value": "ITEM NAME 2", "content": "ITEM NAME 2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 269.0}, {"x": 199.0, "y": 269.0}, {"x": 199.0, "y": 280.0}, {"x": 137.0, "y": 280.0}]}], "spans": [{"offset": 446, "length": 11}], "confidence": 0.914}, "ProductCode": {"value_type": "string", "value": "2541", "content": "2541", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 256.0, "y": 268.0}, {"x": 276.0, "y": 268.0}, {"x": 276.0, "y": 279.0}, {"x": 256.0, "y": 279.0}]}], "spans": [{"offset": 458, "length": 4}], "confidence": 0.895}, "Quantity": {"value_type": "float", "value": 26.0, "content": "26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 345.0, "y": 269.0}, {"x": 355.0, "y": 269.0}, {"x": 354.0, "y": 279.0}, {"x": 344.0, "y": 278.0}]}], "spans": [{"offset": 463, "length": 2}], "confidence": 0.919}, "UnitPrice": {"value_type": "currency", "value": {"amount": 235.52, "symbol": "Rs"}, "content": "Rs. 235.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 413.0, "y": 267.0}, {"x": 459.0, "y": 269.0}, {"x": 459.0, "y": 281.0}, {"x": 413.0, "y": 279.0}]}], "spans": [{"offset": 466, "length": 10}], "confidence": 0.919}}, "content": "1\nITEM NAME 2\n2541\n26\nRs. 235.52\nRs. 6,123.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 81.0, "y": 268.0}, {"x": 557.0, "y": 268.0}, {"x": 557.0, "y": 280.0}, {"x": 81.0, "y": 280.0}]}], "spans": [{"offset": 444, "length": 45}], "confidence": 0.893}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1316.0, "symbol": "Rs"}, "content": "Rs. 1,316.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 502.0, "y": 281.0}, {"x": 556.0, "y": 283.0}, {"x": 556.0, "y": 295.0}, {"x": 502.0, "y": 293.0}]}], "spans": [{"offset": 522, "length": 12}], "confidence": 0.916}, "Description": {"value_type": "string", "value": "ITEM NAME 3", "content": "ITEM NAME 3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 283.0}, {"x": 199.0, "y": 283.0}, {"x": 199.0, "y": 294.0}, {"x": 138.0, "y": 294.0}]}], "spans": [{"offset": 492, "length": 11}], "confidence": 0.919}, "ProductCode": {"value_type": "string", "value": "4944", "content": "4944", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 255.0, "y": 283.0}, {"x": 277.0, "y": 283.0}, {"x": 276.0, "y": 294.0}, {"x": 254.0, "y": 293.0}]}], "spans": [{"offset": 504, "length": 4}], "confidence": 0.897}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 347.0, "y": 283.0}, {"x": 352.0, "y": 283.0}, {"x": 352.0, "y": 293.0}, {"x": 347.0, "y": 293.0}]}], "spans": [{"offset": 509, "length": 1}], "confidence": 0.926}, "UnitPrice": {"value_type": "currency", "value": {"amount": 658.0, "symbol": "Rs"}, "content": "Rs. 658.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 413.0, "y": 281.0}, {"x": 460.0, "y": 283.0}, {"x": 460.0, "y": 295.0}, {"x": 413.0, "y": 293.0}]}], "spans": [{"offset": 511, "length": 10}], "confidence": 0.916}}, "content": "2\nITEM NAME 3\n4944\n2\nRs. 658.00\nRs. 1,316.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 283.0}, {"x": 556.0, "y": 283.0}, {"x": 556.0, "y": 294.0}, {"x": 80.0, "y": 294.0}]}], "spans": [{"offset": 490, "length": 44}], "confidence": 0.892}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 24250.0, "symbol": "Rs"}, "content": "Rs. 24,250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 297.0}, {"x": 560.0, "y": 297.0}, {"x": 560.0, "y": 308.0}, {"x": 498.0, "y": 308.0}]}], "spans": [{"offset": 568, "length": 13}], "confidence": 0.917}, "Description": {"value_type": "string", "value": "ITEM NAME 4", "content": "ITEM NAME 4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 297.0}, {"x": 198.0, "y": 297.0}, {"x": 198.0, "y": 308.0}, {"x": 137.0, "y": 308.0}]}], "spans": [{"offset": 537, "length": 11}], "confidence": 0.913}, "ProductCode": {"value_type": "string", "value": "2546", "content": "2546", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 256.0, "y": 297.0}, {"x": 277.0, "y": 297.0}, {"x": 277.0, "y": 307.0}, {"x": 256.0, "y": 307.0}]}], "spans": [{"offset": 549, "length": 4}], "confidence": 0.895}, "Quantity": {"value_type": "float", "value": 50.0, "content": "50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 343.0, "y": 297.0}, {"x": 354.0, "y": 297.0}, {"x": 355.0, "y": 306.0}, {"x": 343.0, "y": 307.0}]}], "spans": [{"offset": 554, "length": 2}], "confidence": 0.919}, "UnitPrice": {"value_type": "currency", "value": {"amount": 485.0, "symbol": "Rs"}, "content": "Rs. 485.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 413.0, "y": 297.0}, {"x": 459.0, "y": 297.0}, {"x": 459.0, "y": 308.0}, {"x": 413.0, "y": 308.0}]}], "spans": [{"offset": 557, "length": 10}], "confidence": 0.919}}, "content": "3\nITEM NAME 4\n2546\n50\nRs. 485.00\nRs. 24,250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 297.0}, {"x": 560.0, "y": 297.0}, {"x": 560.0, "y": 308.0}, {"x": 80.0, "y": 308.0}]}], "spans": [{"offset": 535, "length": 46}], "confidence": 0.893}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3225.0, "symbol": "Rs"}, "content": "Rs. 3,225.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 311.0}, {"x": 557.0, "y": 311.0}, {"x": 557.0, "y": 322.0}, {"x": 501.0, "y": 322.0}]}], "spans": [{"offset": 613, "length": 12}], "confidence": 0.927}, "Description": {"value_type": "string", "value": "ITEM NAME 5", "content": "ITEM NAME 5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 311.0}, {"x": 198.0, "y": 311.0}, {"x": 198.0, "y": 322.0}, {"x": 137.0, "y": 322.0}]}], "spans": [{"offset": 582, "length": 11}], "confidence": 0.912}, "ProductCode": {"value_type": "string", "value": "8151", "content": "8151", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 255.0, "y": 311.0}, {"x": 277.0, "y": 311.0}, {"x": 277.0, "y": 320.0}, {"x": 255.0, "y": 321.0}]}], "spans": [{"offset": 594, "length": 4}], "confidence": 0.894}, "Quantity": {"value_type": "float", "value": 15.0, "content": "15", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 343.0, "y": 310.0}, {"x": 355.0, "y": 310.0}, {"x": 355.0, "y": 320.0}, {"x": 343.0, "y": 321.0}]}], "spans": [{"offset": 599, "length": 2}], "confidence": 0.927}, "UnitPrice": {"value_type": "currency", "value": {"amount": 215.0, "symbol": "Rs"}, "content": "Rs. 215.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 413.0, "y": 311.0}, {"x": 459.0, "y": 311.0}, {"x": 459.0, "y": 322.0}, {"x": 413.0, "y": 322.0}]}], "spans": [{"offset": 602, "length": 10}], "confidence": 0.916}}, "content": "ITEM NAME 5\n8151\n15\nRs. 215.00\nRs. 3,225.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 310.0}, {"x": 557.0, "y": 310.0}, {"x": 557.0, "y": 322.0}, {"x": 137.0, "y": 322.0}]}], "spans": [{"offset": 582, "length": 43}], "confidence": 0.891}], "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": 397.0, "y": 183.0}, {"x": 502.0, "y": 183.0}, {"x": 502.0, "y": 209.0}, {"x": 397.0, "y": 209.0}]}], "spans": [{"offset": 317, "length": 37}], "confidence": 0.912}, "ShippingAddressRecipient": {"value_type": "string", "value": "Nazim Khan", "content": "Nazim Khan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 168.0}, {"x": 451.0, "y": 169.0}, {"x": 451.0, "y": 182.0}, {"x": 397.0, "y": 181.0}]}], "spans": [{"offset": 306, "length": 10}], "confidence": 0.936}, "SubTotal": {"value_type": "currency", "value": {"amount": 34914.52, "symbol": "Rs"}, "content": "Rs. 34,914.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 395.0}, {"x": 580.0, "y": 397.0}, {"x": 580.0, "y": 410.0}, {"x": 519.0, "y": 407.0}]}], "spans": [{"offset": 632, "length": 13}], "confidence": 0.638}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2073.92, "symbol": "Rs"}, "content": "Rs. 2,073.92", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 525.0, "y": 441.0}, {"x": 580.0, "y": 442.0}, {"x": 580.0, "y": 453.0}, {"x": 525.0, "y": 452.0}]}], "spans": [{"offset": 715, "length": 12}], "confidence": 0.741}, "Rate": {"value_type": "string", "value": "6%", "content": "6%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 442.0}, {"x": 413.0, "y": 442.0}, {"x": 413.0, "y": 453.0}, {"x": 397.0, "y": 453.0}]}], "spans": [{"offset": 712, "length": 2}], "confidence": 0.761}}, "content": "SGST RATE @ 6%\nRs. 2,073.92", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 442.0}, {"x": 580.0, "y": 442.0}, {"x": 580.0, "y": 453.0}, {"x": 331.0, "y": 453.0}]}], "spans": [{"offset": 700, "length": 27}], "confidence": 0.568}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3110.88, "symbol": "Rs"}, "content": "Rs. 3,110.88", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 524.0, "y": 457.0}, {"x": 580.0, "y": 457.0}, {"x": 580.0, "y": 467.0}, {"x": 524.0, "y": 467.0}]}], "spans": [{"offset": 743, "length": 12}], "confidence": 0.741}, "Rate": {"value_type": "string", "value": "9%", "content": "9%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 457.0}, {"x": 412.0, "y": 457.0}, {"x": 413.0, "y": 468.0}, {"x": 398.0, "y": 468.0}]}], "spans": [{"offset": 740, "length": 2}], "confidence": 0.76}}, "content": "CGST RATE @ 9%\nRs. 3,110.88", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 333.0, "y": 457.0}, {"x": 580.0, "y": 457.0}, {"x": 580.0, "y": 468.0}, {"x": 333.0, "y": 468.0}]}], "spans": [{"offset": 728, "length": 27}], "confidence": 0.714}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 349.15, "symbol": "Rs"}, "content": "Rs. 349.15", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 533.0, "y": 411.0}, {"x": 579.0, "y": 412.0}, {"x": 579.0, "y": 423.0}, {"x": 533.0, "y": 422.0}]}], "spans": [{"offset": 660, "length": 10}], "confidence": 0.908}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Okhla Industrial Area,\nNew Delhi-110020", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "Okhla Industrial Area,\nNew Delhi-110020"}, "content": "Okhla Industrial Area, New Delhi-110020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 46.0}, {"x": 167.0, "y": 46.0}, {"x": 167.0, "y": 72.0}, {"x": 60.0, "y": 72.0}]}], "spans": [{"offset": 16, "length": 39}], "confidence": 0.91}, "VendorAddressRecipient": {"value_type": "string", "value": "S.K.P.S DIGITAL", "content": "S.K.P.S DIGITAL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 61.0, "y": 24.0}, {"x": 189.0, "y": 24.0}, {"x": 189.0, "y": 41.0}, {"x": 61.0, "y": 41.0}]}], "spans": [{"offset": 0, "length": 15}], "confidence": 0.653}, "VendorName": {"value_type": "string", "value": "S.K.P.S DIGITAL", "content": "S.K.P.S DIGITAL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 61.0, "y": 24.0}, {"x": 189.0, "y": 24.0}, {"x": 189.0, "y": 41.0}, {"x": 61.0, "y": 41.0}]}], "spans": [{"offset": 0, "length": 15}], "confidence": 0.653}, "VendorTaxId": {"value_type": "string", "value": "898989898989", "content": "898989898989", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 163.0, "y": 109.0}, {"x": 244.0, "y": 109.0}, {"x": 244.0, "y": 121.0}, {"x": 163.0, "y": 120.0}]}], "spans": [{"offset": 153, "length": 12}], "confidence": 0.726}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/517_jpg.rf.dcfe0e295a247bc6c662e35c5e3a0192.json b/Data/test/517_jpg.rf.dcfe0e295a247bc6c662e35c5e3a0192.json new file mode 100644 index 0000000000000000000000000000000000000000..dee8f01c0f4bcd97580ff21cdbaec643e98a6635 --- /dev/null +++ b/Data/test/517_jpg.rf.dcfe0e295a247bc6c662e35c5e3a0192.json @@ -0,0 +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": 1013}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "29", "po_box": null, "road": "Brooklyn Avenue\n29 Brooklyn Avenue\nNY, US.", "city": null, "state": "NY", "postal_code": "11216", "country_region": "US", "street_address": "29 Brooklyn Avenue\n29 Brooklyn Avenue\nNY, US."}, "content": "29 Brooklyn Avenue\n29 Brooklyn Avenue NY, US. 11216\nNY, US, 11216", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 234.0}, {"x": 309.0, "y": 234.0}, {"x": 309.0, "y": 257.0}, {"x": 110.0, "y": 257.0}]}], "spans": [{"offset": 205, "length": 51}, {"offset": 273, "length": 13}], "confidence": 0.726}, "BillingAddressRecipient": {"value_type": "string", "value": "Jane Doe\nJane Doe", "content": "Jane Doe\nJane Doe", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 222.0}, {"x": 288.0, "y": 222.0}, {"x": 288.0, "y": 232.0}, {"x": 129.0, "y": 232.0}]}], "spans": [{"offset": 176, "length": 17}], "confidence": 0.652}, "CustomerName": {"value_type": "string", "value": "Jane Doe\nJane Doe", "content": "Jane Doe\nJane Doe", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 222.0}, {"x": 288.0, "y": 222.0}, {"x": 288.0, "y": 232.0}, {"x": 129.0, "y": 232.0}]}], "spans": [{"offset": 176, "length": 17}], "confidence": 0.652}, "DueDate": {"value_type": "date", "value": "2020-08-30", "content": "30-08-2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 356.0, "y": 222.0}, {"x": 397.0, "y": 222.0}, {"x": 397.0, "y": 231.0}, {"x": 356.0, "y": 231.0}]}], "spans": [{"offset": 194, "length": 10}], "confidence": 0.694}, "InvoiceDate": {"value_type": "date", "value": "2020-07-31", "content": "31-07-2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 180.0}, {"x": 517.0, "y": 179.0}, {"x": 517.0, "y": 192.0}, {"x": 459.0, "y": 192.0}]}], "spans": [{"offset": 146, "length": 10}], "confidence": 0.932}, "InvoiceId": {"value_type": "string", "value": "0000001", "content": "0000001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 180.0}, {"x": 200.0, "y": 179.0}, {"x": 200.0, "y": 192.0}, {"x": 155.0, "y": 192.0}]}], "spans": [{"offset": 131, "length": 7}], "confidence": 0.859}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 103.44, "symbol": "USD"}, "content": "USD 103.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 497.0, "y": 509.0}, {"x": 540.0, "y": 509.0}, {"x": 540.0, "y": 519.0}, {"x": 497.0, "y": 519.0}]}], "spans": [{"offset": 856, "length": 10}], "confidence": 0.843}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 12.66, "symbol": "USD"}, "content": "USD 12.66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 309.0}, {"x": 540.0, "y": 309.0}, {"x": 540.0, "y": 320.0}, {"x": 501.0, "y": 320.0}]}], "spans": [{"offset": 543, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "4 teacups and\nsaucers made of\nporcelain", "content": "4 teacups and saucers made of porcelain", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 169.0, "y": 310.0}, {"x": 232.0, "y": 310.0}, {"x": 232.0, "y": 341.0}, {"x": 169.0, "y": 341.0}]}], "spans": [{"offset": 476, "length": 39}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 267.0, "y": 310.0}, {"x": 271.0, "y": 310.0}, {"x": 271.0, "y": 318.0}, {"x": 267.0, "y": 318.0}]}], "spans": [{"offset": 516, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 30.0, "symbol": "USD"}, "content": "USD 30.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 318.0, "y": 310.0}, {"x": 355.0, "y": 310.0}, {"x": 355.0, "y": 320.0}, {"x": 318.0, "y": 320.0}]}], "spans": [{"offset": 518, "length": 9}], "confidence": null}}, "content": "Blue Porcelain Tea Set\n4 teacups and saucers made of porcelain\n1\nUSD 30.00\nUSD 0\nUSD 2.66\nUSD 12.66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 309.0}, {"x": 540.0, "y": 309.0}, {"x": 540.0, "y": 341.0}, {"x": 95.0, "y": 341.0}]}], "spans": [{"offset": 453, "length": 99}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 16.34, "symbol": "USD"}, "content": "USD 16.34", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 500.0, "y": 350.0}, {"x": 540.0, "y": 350.0}, {"x": 540.0, "y": 359.0}, {"x": 500.0, "y": 359.0}]}], "spans": [{"offset": 616, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "\"Jane D.\"", "content": "\"Jane D.\"", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 171.0, "y": 349.0}, {"x": 203.0, "y": 348.0}, {"x": 203.0, "y": 359.0}, {"x": 171.0, "y": 360.0}]}], "spans": [{"offset": 579, "length": 9}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 267.0, "y": 350.0}, {"x": 271.0, "y": 350.0}, {"x": 271.0, "y": 358.0}, {"x": 267.0, "y": 358.0}]}], "spans": [{"offset": 589, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 15.0, "symbol": "USD"}, "content": "USD 15.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 317.0, "y": 350.0}, {"x": 355.0, "y": 350.0}, {"x": 355.0, "y": 359.0}, {"x": 317.0, "y": 359.0}]}], "spans": [{"offset": 591, "length": 9}], "confidence": null}}, "content": "Tea Cup Engraving Service\n\"Jane D.\"\n1\nUSD 15.00\nUSD 0\nUSD 1.34\nUSD 16.34", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 349.0}, {"x": 540.0, "y": 349.0}, {"x": 540.0, "y": 371.0}, {"x": 96.0, "y": 371.0}]}], "spans": [{"offset": 553, "length": 72}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 32.66, "symbol": "USD"}, "content": "USD 32.66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 379.0}, {"x": 539.0, "y": 379.0}, {"x": 539.0, "y": 389.0}, {"x": 501.0, "y": 389.0}]}], "spans": [{"offset": 698, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Loose Leaf\nVariation", "content": "Loose Leaf Variation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 378.0}, {"x": 212.0, "y": 379.0}, {"x": 212.0, "y": 400.0}, {"x": 170.0, "y": 399.0}]}], "spans": [{"offset": 650, "length": 20}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 266.0, "y": 379.0}, {"x": 271.0, "y": 379.0}, {"x": 271.0, "y": 388.0}, {"x": 266.0, "y": 388.0}]}], "spans": [{"offset": 671, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 30.0, "symbol": "USD"}, "content": "USD 30.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 318.0, "y": 378.0}, {"x": 356.0, "y": 380.0}, {"x": 355.0, "y": 391.0}, {"x": 318.0, "y": 389.0}]}], "spans": [{"offset": 673, "length": 9}], "confidence": null}}, "content": "Oolong Tea Leaves (1KG)\nLoose Leaf Variation\n1\nUSD 30.00\nUSD 0\nUSD 2.66\nUSD 32.66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 379.0}, {"x": 539.0, "y": 379.0}, {"x": 539.0, "y": 401.0}, {"x": 95.0, "y": 401.0}]}], "spans": [{"offset": 626, "length": 81}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 21.78, "symbol": "USD"}, "content": "USD 21.78", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 408.0}, {"x": 539.0, "y": 409.0}, {"x": 539.0, "y": 419.0}, {"x": 501.0, "y": 418.0}]}], "spans": [{"offset": 782, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Loose Leaf\nVariation", "content": "Loose Leaf Variation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 169.0, "y": 408.0}, {"x": 212.0, "y": 408.0}, {"x": 212.0, "y": 429.0}, {"x": 169.0, "y": 429.0}]}], "spans": [{"offset": 731, "length": 20}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 266.0, "y": 408.0}, {"x": 271.0, "y": 408.0}, {"x": 271.0, "y": 417.0}, {"x": 266.0, "y": 417.0}]}], "spans": [{"offset": 752, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 25.0, "symbol": "USD"}, "content": "USD 25.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 317.0, "y": 408.0}, {"x": 355.0, "y": 408.0}, {"x": 355.0, "y": 418.0}, {"x": 317.0, "y": 418.0}]}], "spans": [{"offset": 754, "length": 9}], "confidence": null}}, "content": "Pu Er Tea Leaves (1KG)\nLoose Leaf Variation\n1\nUSD 25.00\nUSD 5.00\nUSD 1.78\nUSD 21.78", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 408.0}, {"x": 539.0, "y": 408.0}, {"x": 539.0, "y": 429.0}, {"x": 95.0, "y": 429.0}]}], "spans": [{"offset": 708, "length": 83}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "USD"}, "content": "USD 100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 497.0, "y": 449.0}, {"x": 540.0, "y": 449.0}, {"x": 540.0, "y": 458.0}, {"x": 497.0, "y": 458.0}]}], "spans": [{"offset": 804, "length": 10}], "confidence": 0.846}, "TotalTax": {"value_type": "currency", "value": {"amount": 8.44, "symbol": "USD"}, "content": "USD 8.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 506.0, "y": 489.0}, {"x": 540.0, "y": 490.0}, {"x": 540.0, "y": 499.0}, {"x": 506.0, "y": 498.0}]}], "spans": [{"offset": 834, "length": 8}], "confidence": 0.542}, "VendorAddress": {"value_type": "address", "value": {"house_number": "19", "po_box": null, "road": "Cherry Lane, #11-123", "city": "New York", "state": "New York", "postal_code": "15212", "country_region": "US", "street_address": "19 Cherry Lane, #11-123"}, "content": "19 Cherry Lane, #11-123, New York, New York\nUS 15212", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 56.0}, {"x": 301.0, "y": 56.0}, {"x": 301.0, "y": 89.0}, {"x": 95.0, "y": 89.0}]}], "spans": [{"offset": 18, "length": 52}], "confidence": 0.936}, "VendorAddressRecipient": {"value_type": "string", "value": "ABC Corporation", "content": "ABC Corporation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 36.0}, {"x": 170.0, "y": 36.0}, {"x": 170.0, "y": 49.0}, {"x": 95.0, "y": 49.0}]}], "spans": [{"offset": 2, "length": 15}], "confidence": 0.916}, "VendorName": {"value_type": "string", "value": "ABC Corporation", "content": "ABC Corporation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 36.0}, {"x": 170.0, "y": 36.0}, {"x": 170.0, "y": 49.0}, {"x": 95.0, "y": 49.0}]}], "spans": [{"offset": 2, "length": 15}], "confidence": 0.916}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/521_jpg.rf.82d5a1a988d64a0071afa98cfeee5e30.json b/Data/test/521_jpg.rf.82d5a1a988d64a0071afa98cfeee5e30.json new file mode 100644 index 0000000000000000000000000000000000000000..a8f6fab396d6ed7be011b1299542d7bddadaa287 --- /dev/null +++ b/Data/test/521_jpg.rf.82d5a1a988d64a0071afa98cfeee5e30.json @@ -0,0 +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": 1367}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 43956.0, "symbol": "$"}, "content": "$43,956.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 465.0, "y": 570.0}, {"x": 511.0, "y": 570.0}, {"x": 511.0, "y": 581.0}, {"x": 466.0, "y": 580.0}]}], "spans": [{"offset": 1233, "length": 10}], "confidence": null}, "BillingAddress": {"value_type": "address", "value": {"house_number": "43", "po_box": null, "road": "Long", "city": "Street", "state": "WA", "postal_code": "0000", "country_region": "Australia", "street_address": "43 Long Suite 321"}, "content": "Suite 321, 43 Long Street WA 0000, Australia", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 184.0}, {"x": 199.0, "y": 184.0}, {"x": 199.0, "y": 210.0}, {"x": 111.0, "y": 210.0}]}], "spans": [{"offset": 116, "length": 44}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "Arin\nWester Mining Corp", "content": "Arin Wester Mining Corp", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 155.0}, {"x": 183.0, "y": 156.0}, {"x": 183.0, "y": 179.0}, {"x": 111.0, "y": 178.0}]}], "spans": [{"offset": 92, "length": 23}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Wester Mining Corp", "content": "Wester Mining Corp", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 418.0, "y": 528.0}, {"x": 488.0, "y": 528.0}, {"x": 488.0, "y": 538.0}, {"x": 418.0, "y": 538.0}]}], "spans": [{"offset": 1175, "length": 18}], "confidence": null}, "DueDate": {"value_type": "date", "value": "2012-06-01", "content": "1 June 2012", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 594.0}, {"x": 511.0, "y": 594.0}, {"x": 511.0, "y": 604.0}, {"x": 462.0, "y": 604.0}]}], "spans": [{"offset": 1254, "length": 11}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2012-06-01", "content": "1 June 2012", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 408.0, "y": 155.0}, {"x": 451.0, "y": 155.0}, {"x": 451.0, "y": 164.0}, {"x": 408.0, "y": 164.0}]}], "spans": [{"offset": 346, "length": 11}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "000024", "content": "000024", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 268.0, "y": 107.0}, {"x": 303.0, "y": 107.0}, {"x": 303.0, "y": 118.0}, {"x": 268.0, "y": 118.0}]}], "spans": [{"offset": 77, "length": 6}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 43956.0, "symbol": "$"}, "content": "$43,956.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 471.0, "y": 484.0}, {"x": 516.0, "y": 484.0}, {"x": 516.0, "y": 494.0}, {"x": 471.0, "y": 493.0}]}], "spans": [{"offset": 1123, "length": 10}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1120.0, "symbol": "$"}, "content": "$1,120.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 297.0}, {"x": 516.0, "y": 297.0}, {"x": 516.0, "y": 306.0}, {"x": 482.0, "y": 306.0}]}], "spans": [{"offset": 604, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Consutro Services", "content": "Consutro Services", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 239.0, "y": 297.0}, {"x": 306.0, "y": 297.0}, {"x": 306.0, "y": 306.0}, {"x": 239.0, "y": 306.0}]}], "spans": [{"offset": 581, "length": 17}], "confidence": null}, "Quantity": {"value_type": "float", "value": 8.0, "content": "8.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 426.0, "y": 297.0}, {"x": 440.0, "y": 297.0}, {"x": 440.0, "y": 305.0}, {"x": 426.0, "y": 305.0}]}], "spans": [{"offset": 599, "length": 4}], "confidence": null}}, "content": "Environmental Consulting\nConsutro Services\n8.00\n$1,120.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 297.0}, {"x": 516.0, "y": 297.0}, {"x": 516.0, "y": 306.0}, {"x": 111.0, "y": 306.0}]}], "spans": [{"offset": 556, "length": 57}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1540.0, "symbol": "$"}, "content": "$1,540.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 314.0}, {"x": 516.0, "y": 314.0}, {"x": 516.0, "y": 323.0}, {"x": 482.0, "y": 322.0}]}], "spans": [{"offset": 659, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Optimisation Consulting", "content": "Optimisation Consulting", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 239.0, "y": 314.0}, {"x": 320.0, "y": 314.0}, {"x": 320.0, "y": 323.0}, {"x": 239.0, "y": 323.0}]}], "spans": [{"offset": 629, "length": 23}], "confidence": null}, "Quantity": {"value_type": "float", "value": 11.0, "content": "11.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 422.0, "y": 314.0}, {"x": 441.0, "y": 314.0}, {"x": 440.0, "y": 322.0}, {"x": 422.0, "y": 321.0}]}], "spans": [{"offset": 653, "length": 5}], "confidence": null}}, "content": "Water Services\nOptimisation Consulting\n11.00\n$1,540.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 308.0}, {"x": 516.0, "y": 314.0}, {"x": 516.0, "y": 329.0}, {"x": 111.0, "y": 323.0}]}], "spans": [{"offset": 614, "length": 54}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1400.0, "symbol": "$"}, "content": "$1,400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 332.0}, {"x": 516.0, "y": 332.0}, {"x": 516.0, "y": 341.0}, {"x": 482.0, "y": 341.0}]}], "spans": [{"offset": 707, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Water Management", "content": "Water Management", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 238.0, "y": 331.0}, {"x": 307.0, "y": 332.0}, {"x": 307.0, "y": 342.0}, {"x": 238.0, "y": 341.0}]}], "spans": [{"offset": 684, "length": 16}], "confidence": null}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 423.0, "y": 332.0}, {"x": 440.0, "y": 332.0}, {"x": 440.0, "y": 340.0}, {"x": 422.0, "y": 340.0}]}], "spans": [{"offset": 701, "length": 5}], "confidence": null}}, "content": "Water Services\nWater Management\n10.00\n$1,400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 332.0}, {"x": 516.0, "y": 332.0}, {"x": 516.0, "y": 342.0}, {"x": 111.0, "y": 342.0}]}], "spans": [{"offset": 669, "length": 47}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 560.0, "symbol": "$"}, "content": "$560.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 489.0, "y": 350.0}, {"x": 516.0, "y": 350.0}, {"x": 516.0, "y": 358.0}, {"x": 489.0, "y": 357.0}]}], "spans": [{"offset": 752, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "Water Planning", "content": "Water Planning", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 238.0, "y": 348.0}, {"x": 291.0, "y": 349.0}, {"x": 291.0, "y": 359.0}, {"x": 238.0, "y": 358.0}]}], "spans": [{"offset": 732, "length": 14}], "confidence": null}, "Quantity": {"value_type": "float", "value": 4.0, "content": "4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 426.0, "y": 349.0}, {"x": 441.0, "y": 349.0}, {"x": 441.0, "y": 357.0}, {"x": 426.0, "y": 357.0}]}], "spans": [{"offset": 747, "length": 4}], "confidence": null}}, "content": "Ware: Services\nWater Planning\n4.00\n$560.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 349.0}, {"x": 516.0, "y": 349.0}, {"x": 516.0, "y": 359.0}, {"x": 111.0, "y": 359.0}]}], "spans": [{"offset": 717, "length": 42}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 40.0, "symbol": "$"}, "content": "$040.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 489.0, "y": 367.0}, {"x": 516.0, "y": 367.0}, {"x": 516.0, "y": 375.0}, {"x": 489.0, "y": 375.0}]}], "spans": [{"offset": 796, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "Waterway Health", "content": "Waterway Health", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 238.0, "y": 365.0}, {"x": 297.0, "y": 366.0}, {"x": 297.0, "y": 376.0}, {"x": 238.0, "y": 375.0}]}], "spans": [{"offset": 775, "length": 15}], "confidence": null}, "Quantity": {"value_type": "float", "value": 6.0, "content": "6.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 426.0, "y": 366.0}, {"x": 440.0, "y": 366.0}, {"x": 440.0, "y": 374.0}, {"x": 426.0, "y": 374.0}]}], "spans": [{"offset": 791, "length": 4}], "confidence": null}}, "content": "Water Services\nWaterway Health\n6.00\n$040.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 366.0}, {"x": 516.0, "y": 366.0}, {"x": 516.0, "y": 376.0}, {"x": 111.0, "y": 376.0}]}], "spans": [{"offset": 760, "length": 43}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 510500.0, "symbol": null}, "content": "510,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 435.0}, {"x": 516.0, "y": 435.0}, {"x": 516.0, "y": 444.0}, {"x": 479.0, "y": 443.0}]}], "spans": [{"offset": 939, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Water meter", "content": "Water meter", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 148.0, "y": 435.0}, {"x": 192.0, "y": 435.0}, {"x": 192.0, "y": 443.0}, {"x": 148.0, "y": 443.0}]}], "spans": [{"offset": 916, "length": 11}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10500.0, "symbol": "$"}, "content": "$10,500.CO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 429.0, "y": 435.0}, {"x": 466.0, "y": 435.0}, {"x": 466.0, "y": 444.0}, {"x": 429.0, "y": 443.0}]}], "spans": [{"offset": 928, "length": 10}], "confidence": null}}, "content": "Water meter\n$10,500.CO\n510,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 148.0, "y": 430.0}, {"x": 516.0, "y": 435.0}, {"x": 516.0, "y": 448.0}, {"x": 148.0, "y": 443.0}]}], "spans": [{"offset": 916, "length": 33}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ServiceEndDate": {"value_type": "date", "value": "2012-05-01", "content": "1 May 2012", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 325.0, "y": 245.0}, {"x": 365.0, "y": 245.0}, {"x": 365.0, "y": 256.0}, {"x": 325.0, "y": 256.0}]}], "spans": [{"offset": 489, "length": 10}], "confidence": null}, "ServiceStartDate": {"value_type": "date", "value": "2012-04-01", "content": "1 Aprl 2012", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 270.0, "y": 245.0}, {"x": 311.0, "y": 245.0}, {"x": 311.0, "y": 256.0}, {"x": 270.0, "y": 256.0}]}], "spans": [{"offset": 474, "length": 11}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 3996.0, "symbol": "$"}, "content": "$3,996.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 476.0, "y": 470.0}, {"x": 516.0, "y": 470.0}, {"x": 516.0, "y": 479.0}, {"x": 476.0, "y": 479.0}]}], "spans": [{"offset": 1099, "length": 9}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "55", "po_box": null, "road": "Millar Straat", "city": null, "state": "New South Wales", "postal_code": "2189", "country_region": null, "street_address": "55 Millar Straat"}, "content": "55 Millar Straat\nPyrmont, New South Wales, 2189", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 401.0, "y": 77.0}, {"x": 518.0, "y": 77.0}, {"x": 518.0, "y": 104.0}, {"x": 401.0, "y": 104.0}]}], "spans": [{"offset": 201, "length": 47}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "TimeSite South", "content": "TimeSite South", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 60.0}, {"x": 516.0, "y": 60.0}, {"x": 516.0, "y": 68.0}, {"x": 464.0, "y": 68.0}]}], "spans": [{"offset": 170, "length": 14}], "confidence": null}, "VendorName": {"value_type": "string", "value": "TimeSite", "content": "TimeSite", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 380.0, "y": 20.0}, {"x": 476.0, "y": 20.0}, {"x": 477.0, "y": 43.0}, {"x": 379.0, "y": 44.0}]}], "spans": [{"offset": 161, "length": 8}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/549_jpeg.rf.c6e5d6f72e3b27faafa24a7e05f382a9.json b/Data/test/549_jpeg.rf.c6e5d6f72e3b27faafa24a7e05f382a9.json new file mode 100644 index 0000000000000000000000000000000000000000..fef81aba8473730d53d59b9efed7eb59aeebd3be --- /dev/null +++ b/Data/test/549_jpeg.rf.c6e5d6f72e3b27faafa24a7e05f382a9.json @@ -0,0 +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": 1038}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "1", "po_box": null, "road": null, "city": "Crach", "state": "Sindh", "postal_code": "75950", "country_region": "Pakistan", "street_address": "1"}, "content": "1\nCrach, Sindh 75950 Pakistan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 173.0, "y": 121.0}, {"x": 266.0, "y": 121.0}, {"x": 266.0, "y": 139.0}, {"x": 173.0, "y": 139.0}]}], "spans": [{"offset": 54, "length": 29}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "Company", "content": "Company", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 178.0, "y": 113.0}, {"x": 208.0, "y": 113.0}, {"x": 208.0, "y": 120.0}, {"x": 178.0, "y": 120.0}]}], "spans": [{"offset": 33, "length": 7}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Company", "content": "Company", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 178.0, "y": 113.0}, {"x": 208.0, "y": 113.0}, {"x": 208.0, "y": 120.0}, {"x": 178.0, "y": 120.0}]}], "spans": [{"offset": 33, "length": 7}], "confidence": null}, "DueDate": {"value_type": "date", "value": "2020-01-12", "content": "01/12/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 439.0, "y": 129.0}, {"x": 476.0, "y": 128.0}, {"x": 476.0, "y": 137.0}, {"x": 439.0, "y": 137.0}]}], "spans": [{"offset": 144, "length": 10}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2020-01-11", "content": "01/11/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 103.0}, {"x": 477.0, "y": 102.0}, {"x": 477.0, "y": 111.0}, {"x": 438.0, "y": 111.0}]}], "spans": [{"offset": 111, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "100", "content": "100", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 439.0, "y": 89.0}, {"x": 452.0, "y": 89.0}, {"x": 452.0, "y": 97.0}, {"x": 439.0, "y": 97.0}]}], "spans": [{"offset": 94, "length": 3}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2983.75, "symbol": "$"}, "content": "NZ$2,983.75", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 470.0, "y": 377.0}, {"x": 514.0, "y": 377.0}, {"x": 514.0, "y": 386.0}, {"x": 471.0, "y": 386.0}]}], "spans": [{"offset": 921, "length": 11}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Description": {"value_type": "string", "value": "Lorem Ipsum\nLorem ipsum do or sr. amet, consectetur scipisting elt.\nAllquem ultrices rich que nibh cursus, vel sector lectus\ntincidunt", "content": "Lorem Ipsum\nLorem ipsum do or sr. amet, consectetur scipisting elt.\nAllquem ultrices rich que nibh cursus, vel sector lectus tincidunt", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 185.0}, {"x": 345.0, "y": 185.0}, {"x": 345.0, "y": 219.0}, {"x": 172.0, "y": 219.0}]}], "spans": [{"offset": 204, "length": 67}, {"offset": 314, "length": 66}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 125.0, "symbol": null}, "content": "125.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 184.0}, {"x": 455.0, "y": 184.0}, {"x": 455.0, "y": 192.0}, {"x": 433.0, "y": 191.0}]}], "spans": [{"offset": 287, "length": 6}], "confidence": null}}, "content": "Lorem Ipsum\nLorem ipsum do or sr. amet, consectetur scipisting elt.\n125.00\nAllquem ultrices rich que nibh cursus, vel sector lectus tincidunt", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 184.0}, {"x": 455.0, "y": 184.0}, {"x": 455.0, "y": 219.0}, {"x": 172.0, "y": 219.0}]}], "spans": [{"offset": 204, "length": 67}, {"offset": 287, "length": 6}, {"offset": 314, "length": 66}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1200.0, "symbol": null}, "content": "1,200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 487.0, "y": 226.0}, {"x": 514.0, "y": 225.0}, {"x": 514.0, "y": 234.0}, {"x": 487.0, "y": 234.0}]}], "spans": [{"offset": 523, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "Web Services\nPellentesque Palitant morbi tristique senectus et netus et\nma esuada fames ac turpis egestas. Vivamus nor nulla arev.", "content": "Web Services Pellentesque Palitant morbi tristique senectus et netus et ma esuada fames ac turpis egestas. Vivamus nor nulla arev.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 225.0}, {"x": 358.0, "y": 225.0}, {"x": 358.0, "y": 254.0}, {"x": 172.0, "y": 254.0}]}], "spans": [{"offset": 381, "length": 130}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 382.0, "y": 225.0}, {"x": 386.0, "y": 225.0}, {"x": 386.0, "y": 232.0}, {"x": 382.0, "y": 232.0}]}], "spans": [{"offset": 512, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1200.0, "symbol": null}, "content": "1,200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 428.0, "y": 225.0}, {"x": 455.0, "y": 225.0}, {"x": 455.0, "y": 234.0}, {"x": 428.0, "y": 233.0}]}], "spans": [{"offset": 514, "length": 8}], "confidence": null}}, "content": "Web Services Pellentesque Palitant morbi tristique senectus et netus et ma esuada fames ac turpis egestas. Vivamus nor nulla arev.\n1\n1,200.00\n1,200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 225.0}, {"x": 514.0, "y": 225.0}, {"x": 514.0, "y": 254.0}, {"x": 172.0, "y": 254.0}]}], "spans": [{"offset": 381, "length": 150}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 125.0, "symbol": null}, "content": "125.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 185.0}, {"x": 514.0, "y": 184.0}, {"x": 514.0, "y": 192.0}, {"x": 493.0, "y": 191.0}]}], "spans": [{"offset": 307, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Ipsum Lorem\nDoreen.rsus sed nisi en blamlit. Cres ultrices ull-encarper\nneque, a: vulputate tellus vulputate net. Morbi non eit rici.", "content": "Ipsum Lorem Doreen.rsus sed nisi en blamlit. Cres ultrices ull-encarper neque, a: vulputate tellus vulputate net. Morbi non eit rici.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 309.0}, {"x": 359.0, "y": 309.0}, {"x": 359.0, "y": 336.0}, {"x": 172.0, "y": 336.0}]}], "spans": [{"offset": 732, "length": 133}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 383.0, "y": 309.0}, {"x": 386.0, "y": 309.0}, {"x": 386.0, "y": 315.0}, {"x": 383.0, "y": 315.0}]}], "spans": [{"offset": 866, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 550.0, "symbol": null}, "content": "550.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 309.0}, {"x": 455.0, "y": 309.0}, {"x": 455.0, "y": 316.0}, {"x": 433.0, "y": 316.0}]}], "spans": [{"offset": 868, "length": 6}], "confidence": null}}, "content": "RATE\n1\n125.00\nIpsum Lorem Doreen.rsus sed nisi en blamlit. Cres ultrices ull-encarper neque, a: vulputate tellus vulputate net. Morbi non eit rici.\n1\n550.00\n950.00\nSubtotal\n2,625.00\nTax\n358.75", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 166.0}, {"x": 514.0, "y": 166.0}, {"x": 514.0, "y": 369.0}, {"x": 172.0, "y": 369.0}]}], "spans": [{"offset": 192, "length": 4}, {"offset": 285, "length": 1}, {"offset": 307, "length": 6}, {"offset": 732, "length": 178}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 350.0, "symbol": null}, "content": "350.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 257.0}, {"x": 513.0, "y": 258.0}, {"x": 513.0, "y": 265.0}, {"x": 492.0, "y": 265.0}]}], "spans": [{"offset": 725, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Maintenance\nSed sed ribh congue, luctus urw sit amet, congue du Ltiam\neu lest.is enim. Curabitur vitas lacus vitae massa latina\nuhricss id dictum lectus. Pellentesque cgestas urna sed", "content": "Maintenance Sed sed ribh congue, luctus urw sit amet, congue du Ltiam eu lest.is enim. Curabitur vitas lacus vitae massa latina uhricss id dictum lectus. Pellentesque cgestas urna sed", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 257.0}, {"x": 358.0, "y": 257.0}, {"x": 358.0, "y": 294.0}, {"x": 172.0, "y": 294.0}]}], "spans": [{"offset": 532, "length": 183}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 383.0, "y": 257.0}, {"x": 386.0, "y": 257.0}, {"x": 386.0, "y": 264.0}, {"x": 383.0, "y": 264.0}]}], "spans": [{"offset": 716, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 350.0, "symbol": null}, "content": "350.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 257.0}, {"x": 455.0, "y": 257.0}, {"x": 455.0, "y": 265.0}, {"x": 433.0, "y": 265.0}]}], "spans": [{"offset": 718, "length": 6}], "confidence": null}}, "content": "Maintenance Sed sed ribh congue, luctus urw sit amet, congue du Ltiam eu lest.is enim. Curabitur vitas lacus vitae massa latina uhricss id dictum lectus. Pellentesque cgestas urna sed\n1\n350.00\n350.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 257.0}, {"x": 513.0, "y": 257.0}, {"x": 513.0, "y": 294.0}, {"x": 172.0, "y": 294.0}]}], "spans": [{"offset": 532, "length": 199}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Net 30", "content": "Net 30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 116.0}, {"x": 460.0, "y": 116.0}, {"x": 460.0, "y": 124.0}, {"x": 438.0, "y": 124.0}]}], "spans": [{"offset": 128, "length": 6}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 2625.0, "symbol": null}, "content": "2,625.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 487.0, "y": 348.0}, {"x": 514.0, "y": 348.0}, {"x": 514.0, "y": 357.0}, {"x": 487.0, "y": 356.0}]}], "spans": [{"offset": 891, "length": 8}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 358.75, "symbol": null}, "content": "358.75", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 362.0}, {"x": 514.0, "y": 361.0}, {"x": 514.0, "y": 369.0}, {"x": 493.0, "y": 369.0}]}], "spans": [{"offset": 904, "length": 6}], "confidence": null}, "VendorName": {"value_type": "string", "value": "COMPANY\nLOGO", "content": "COMPANY LOGO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 30.0}, {"x": 240.0, "y": 31.0}, {"x": 240.0, "y": 63.0}, {"x": 172.0, "y": 62.0}]}], "spans": [{"offset": 0, "length": 12}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/54_jpg.rf.fe59807f95fb764de337b1a65943db1c.json b/Data/test/54_jpg.rf.fe59807f95fb764de337b1a65943db1c.json new file mode 100644 index 0000000000000000000000000000000000000000..cafb2eee72f969050654c9e4a7ea8a56acf93d44 --- /dev/null +++ b/Data/test/54_jpg.rf.fe59807f95fb764de337b1a65943db1c.json @@ -0,0 +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": 184}], "fields": {"VendorName": {"value_type": "string", "value": "CARBONRENT INDIA PVT. LTD.", "content": "CARBONRENT INDIA PVT. LTD.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 113.0, "y": 484.0}, {"x": 239.0, "y": 484.0}, {"x": 239.0, "y": 498.0}, {"x": 113.0, "y": 498.0}]}], "spans": [{"offset": 34, "length": 26}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/555_png.rf.5876c9b6a84da784396c2bd53d3e7f90.json b/Data/test/555_png.rf.5876c9b6a84da784396c2bd53d3e7f90.json new file mode 100644 index 0000000000000000000000000000000000000000..93722db01d8e784fb58ca4d6664de1304c774d7d --- /dev/null +++ b/Data/test/555_png.rf.5876c9b6a84da784396c2bd53d3e7f90.json @@ -0,0 +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": 928}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 5560.0, "symbol": "AUD"}, "content": "AUD 5560.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 592.0}, {"x": 533.0, "y": 593.0}, {"x": 533.0, "y": 602.0}, {"x": 492.0, "y": 601.0}]}], "spans": [{"offset": 860, "length": 11}], "confidence": null}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "2", "po_box": null, "road": "Middle Street,\nOakey, GLD", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "2 Middle Street,\nOakey, GLD"}, "content": "2 Middle Street,\nOakey, GLD 4401", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 145.0}, {"x": 169.0, "y": 145.0}, {"x": 169.0, "y": 167.0}, {"x": 105.0, "y": 167.0}]}], "spans": [{"offset": 77, "length": 32}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "A & B Grains Pty Ltd", "content": "A & B Grains Pty Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 133.0}, {"x": 178.0, "y": 133.0}, {"x": 178.0, "y": 144.0}, {"x": 105.0, "y": 144.0}]}], "spans": [{"offset": 56, "length": 20}], "confidence": null}, "CustomerId": {"value_type": "string", "value": "10556355", "content": "10556355", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 192.0, "y": 570.0}, {"x": 223.0, "y": 570.0}, {"x": 223.0, "y": 578.0}, {"x": 193.0, "y": 578.0}]}], "spans": [{"offset": 829, "length": 8}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "A & B Grains Pty Ltd", "content": "A & B Grains Pty Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 133.0}, {"x": 178.0, "y": 133.0}, {"x": 178.0, "y": 144.0}, {"x": 105.0, "y": 144.0}]}], "spans": [{"offset": 56, "length": 20}], "confidence": null}, "CustomerTaxId": {"value_type": "string", "value": "57009946141", "content": "57009946141", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 179.0}, {"x": 175.0, "y": 180.0}, {"x": 175.0, "y": 190.0}, {"x": 125.0, "y": 190.0}]}], "spans": [{"offset": 150, "length": 11}], "confidence": null}, "DueDate": {"value_type": "date", "value": "2018-09-21", "content": "21/09/18", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 506.0, "y": 621.0}, {"x": 533.0, "y": 620.0}, {"x": 533.0, "y": 629.0}, {"x": 506.0, "y": 629.0}]}], "spans": [{"offset": 881, "length": 8}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1967-09-18", "content": "67/09/18", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 101.0}, {"x": 135.0, "y": 100.0}, {"x": 136.0, "y": 109.0}, {"x": 105.0, "y": 109.0}]}], "spans": [{"offset": 41, "length": 8}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "10013804", "content": "10013804", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 67.0}, {"x": 138.0, "y": 66.0}, {"x": 138.0, "y": 75.0}, {"x": 106.0, "y": 76.0}]}], "spans": [{"offset": 27, "length": 8}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 550.0, "symbol": "$"}, "content": "$550.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 504.0, "y": 414.0}, {"x": 533.0, "y": 414.0}, {"x": 533.0, "y": 424.0}, {"x": 504.0, "y": 423.0}]}], "spans": [{"offset": 571, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5400.0, "symbol": null}, "content": "5400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 508.0, "y": 315.0}, {"x": 533.0, "y": 315.0}, {"x": 533.0, "y": 324.0}, {"x": 508.0, "y": 323.0}]}], "spans": [{"offset": 463, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2018-06-09", "content": "06/09/18", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 214.0, "y": 316.0}, {"x": 241.0, "y": 316.0}, {"x": 241.0, "y": 324.0}, {"x": 214.0, "y": 323.0}]}], "spans": [{"offset": 428, "length": 8}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "C0018900\n00017008", "content": "C0018900\n00017008", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 314.0}, {"x": 191.0, "y": 315.0}, {"x": 191.0, "y": 325.0}, {"x": 105.0, "y": 324.0}]}], "spans": [{"offset": 410, "length": 17}], "confidence": null}, "Quantity": {"value_type": "float", "value": 4.0, "content": "4 00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 411.0, "y": 315.0}, {"x": 425.0, "y": 315.0}, {"x": 425.0, "y": 323.0}, {"x": 411.0, "y": 323.0}]}], "spans": [{"offset": 450, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 315.0}, {"x": 480.0, "y": 315.0}, {"x": 480.0, "y": 324.0}, {"x": 454.0, "y": 323.0}]}], "spans": [{"offset": 455, "length": 7}], "confidence": null}}, "content": "C0018900\n00017008\n06/09/18\nAPWT\nHok Fot\n4 00\n$100.00\n5400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 307.0}, {"x": 533.0, "y": 315.0}, {"x": 533.0, "y": 332.0}, {"x": 105.0, "y": 324.0}]}], "spans": [{"offset": 410, "length": 60}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 508.0, "y": 334.0}, {"x": 533.0, "y": 334.0}, {"x": 533.0, "y": 343.0}, {"x": 508.0, "y": 343.0}]}], "spans": [{"offset": 524, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2018-05-09", "content": "05/09/18", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 214.0, "y": 334.0}, {"x": 241.0, "y": 334.0}, {"x": 241.0, "y": 343.0}, {"x": 214.0, "y": 343.0}]}], "spans": [{"offset": 489, "length": 8}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "C0018900\n00018000", "content": "C0018900\n00018000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 333.0}, {"x": 191.0, "y": 334.0}, {"x": 191.0, "y": 344.0}, {"x": 104.0, "y": 342.0}]}], "spans": [{"offset": 471, "length": 17}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 411.0, "y": 334.0}, {"x": 424.0, "y": 334.0}, {"x": 425.0, "y": 341.0}, {"x": 411.0, "y": 342.0}]}], "spans": [{"offset": 511, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 334.0}, {"x": 479.0, "y": 334.0}, {"x": 479.0, "y": 343.0}, {"x": 454.0, "y": 343.0}]}], "spans": [{"offset": 516, "length": 7}], "confidence": null}}, "content": "C0018900\n00018000\n05/09/18\nAPW\nHok Port\n1.00\n$100.00\n$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 333.0}, {"x": 533.0, "y": 333.0}, {"x": 533.0, "y": 343.0}, {"x": 104.0, "y": 343.0}]}], "spans": [{"offset": 471, "length": 60}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"SWIFT": {"value_type": "string", "value": "1234", "content": "1234", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 369.0, "y": 569.0}, {"x": 383.0, "y": 569.0}, {"x": 383.0, "y": 576.0}, {"x": 369.0, "y": 577.0}]}], "spans": [{"offset": 845, "length": 4}], "confidence": 0.584}}, "content": null, "bounding_regions": [], "spans": [], "confidence": 0.995}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "$"}, "content": "$500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 508.0, "y": 358.0}, {"x": 533.0, "y": 358.0}, {"x": 533.0, "y": 366.0}, {"x": 508.0, "y": 365.0}]}], "spans": [{"offset": 546, "length": 7}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$50 00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 384.0}, {"x": 534.0, "y": 384.0}, {"x": 534.0, "y": 393.0}, {"x": 512.0, "y": 393.0}]}], "spans": [{"offset": 558, "length": 6}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "Locked Bag 10", "road": null, "city": "Sydney", "state": "NSW", "postal_code": "2830", "country_region": null, "street_address": "Locked Bag 10"}, "content": "Locked Bag 10. Sydney, NSW 2830", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 130.0}, {"x": 534.0, "y": 130.0}, {"x": 534.0, "y": 152.0}, {"x": 464.0, "y": 152.0}]}], "spans": [{"offset": 182, "length": 31}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "AgriTrade Exports 1", "content": "AgriTrade Exports 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 457.0, "y": 119.0}, {"x": 533.0, "y": 119.0}, {"x": 533.0, "y": 130.0}, {"x": 457.0, "y": 130.0}]}], "spans": [{"offset": 162, "length": 19}], "confidence": null}, "VendorName": {"value_type": "string", "value": "AgfTrade", "content": "AgfTrade", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 570.0}, {"x": 134.0, "y": 569.0}, {"x": 134.0, "y": 579.0}, {"x": 104.0, "y": 579.0}]}], "spans": [{"offset": 812, "length": 8}], "confidence": null}, "VendorTaxId": {"value_type": "string", "value": "11111111111", "content": "11111111111", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 491.0, "y": 153.0}, {"x": 535.0, "y": 152.0}, {"x": 535.0, "y": 163.0}, {"x": 491.0, "y": 163.0}]}], "spans": [{"offset": 219, "length": 11}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/55_jpg.rf.ec7f3666fa0e117b60ad2b40be014029.json b/Data/test/55_jpg.rf.ec7f3666fa0e117b60ad2b40be014029.json new file mode 100644 index 0000000000000000000000000000000000000000..6dfb3580502267507420af5e63fedc07b1b01ee4 --- /dev/null +++ b/Data/test/55_jpg.rf.ec7f3666fa0e117b60ad2b40be014029.json @@ -0,0 +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": 676}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": ""}, "content": "4: Anghamer Dtam Sorkey", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 127.0}, {"x": 206.0, "y": 127.0}, {"x": 206.0, "y": 134.0}, {"x": 133.0, "y": 134.0}]}], "spans": [{"offset": 118, "length": 23}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "Wica Sturla", "content": "Wica Sturla", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 335.0, "y": 118.0}, {"x": 364.0, "y": 118.0}, {"x": 364.0, "y": 124.0}, {"x": 335.0, "y": 124.0}]}], "spans": [{"offset": 197, "length": 11}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Wica Sturla", "content": "Wica Sturla", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 335.0, "y": 118.0}, {"x": 364.0, "y": 118.0}, {"x": 364.0, "y": 124.0}, {"x": 335.0, "y": 124.0}]}], "spans": [{"offset": 197, "length": 11}], "confidence": null}, "CustomerTaxId": {"value_type": "string", "value": "27-UCEC'134X225", "content": "27-UCEC'134X225", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 357.0, "y": 146.0}, {"x": 406.0, "y": 146.0}, {"x": 406.0, "y": 153.0}, {"x": 357.0, "y": 153.0}]}], "spans": [{"offset": 215, "length": 15}], "confidence": null}, "DueDate": {"value_type": "date", "value": "2019-06-25", "content": "JUN 25. 2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 79.0}, {"x": 200.0, "y": 79.0}, {"x": 200.0, "y": 86.0}, {"x": 165.0, "y": 86.0}]}], "spans": [{"offset": 69, "length": 12}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2017-06-15", "content": "JUN 15.2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 64.0}, {"x": 199.0, "y": 65.0}, {"x": 199.0, "y": 72.0}, {"x": 166.0, "y": 71.0}]}], "spans": [{"offset": 34, "length": 11}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 42480.0, "symbol": "\u20b9"}, "content": "\u20b942,480", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 461.0, "y": 410.0}, {"x": 503.0, "y": 410.0}, {"x": 503.0, "y": 422.0}, {"x": 461.0, "y": 421.0}]}], "spans": [{"offset": 502, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 11.8, "symbol": "\u20b9"}, "content": "\u20b911.800.DD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 474.0, "y": 224.0}, {"x": 507.0, "y": 224.0}, {"x": 506.0, "y": 231.0}, {"x": 474.0, "y": 231.0}]}], "spans": [{"offset": 288, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "1 Basic Web Development", "content": "1 Basic Web Development", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 131.0, "y": 223.0}, {"x": 206.0, "y": 224.0}, {"x": 206.0, "y": 233.0}, {"x": 131.0, "y": 232.0}]}], "spans": [{"offset": 249, "length": 23}], "confidence": null}, "Quantity": {"value_type": "float", "value": 13.0, "content": "13", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 290.0, "y": 224.0}, {"x": 296.0, "y": 224.0}, {"x": 296.0, "y": 230.0}, {"x": 290.0, "y": 230.0}]}], "spans": [{"offset": 273, "length": 2}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "\u20b9"}, "content": "\u20b9 10.000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 349.0, "y": 224.0}, {"x": 383.0, "y": 224.0}, {"x": 383.0, "y": 231.0}, {"x": 349.0, "y": 231.0}]}], "spans": [{"offset": 276, "length": 11}], "confidence": null}}, "content": "1 Basic Web Development\n13\n\u20b9 10.000.00\n\u20b911.800.DD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 131.0, "y": 223.0}, {"x": 507.0, "y": 223.0}, {"x": 507.0, "y": 232.0}, {"x": 131.0, "y": 232.0}]}], "spans": [{"offset": 249, "length": 49}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 11800.0, "symbol": "\u20ac"}, "content": "\u20ac 11800.00\n\u20ac 11800.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 476.0, "y": 284.0}, {"x": 509.0, "y": 290.0}, {"x": 506.0, "y": 304.0}, {"x": 474.0, "y": 297.0}]}], "spans": [{"offset": 359, "length": 10}, {"offset": 399, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "3. Full Stack Web development", "content": "3. Full Stack Web development", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 131.0, "y": 290.0}, {"x": 219.0, "y": 290.0}, {"x": 219.0, "y": 299.0}, {"x": 131.0, "y": 299.0}]}], "spans": [{"offset": 316, "length": 29}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 291.0, "y": 291.0}, {"x": 294.0, "y": 291.0}, {"x": 294.0, "y": 297.0}, {"x": 291.0, "y": 297.0}]}], "spans": [{"offset": 346, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": null}, "content": "<10.000.CO\n<10.000.CO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 350.0, "y": 291.0}, {"x": 383.0, "y": 291.0}, {"x": 383.0, "y": 298.0}, {"x": 350.0, "y": 297.0}]}], "spans": [{"offset": 348, "length": 10}, {"offset": 388, "length": 10}], "confidence": null}}, "content": "3. Full Stack Web development\n1\n<10.000.CO\n\u20ac 11800.00\n<10.000.CO\n\u20ac 11800.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 131.0, "y": 290.0}, {"x": 507.0, "y": 290.0}, {"x": 507.0, "y": 299.0}, {"x": 131.0, "y": 299.0}]}], "spans": [{"offset": 316, "length": 53}, {"offset": 388, "length": 21}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 40000.0, "symbol": "$"}, "content": "$40,000\n$40,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 475.0, "y": 317.0}, {"x": 503.0, "y": 317.0}, {"x": 503.0, "y": 325.0}, {"x": 475.0, "y": 324.0}]}], "spans": [{"offset": 380, "length": 7}, {"offset": 420, "length": 7}], "confidence": null}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3.24, "symbol": "\u20b9"}, "content": "\u20b93.240", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 479.0, "y": 386.0}, {"x": 503.0, "y": 386.0}, {"x": 503.0, "y": 394.0}, {"x": 479.0, "y": 394.0}]}], "spans": [{"offset": 489, "length": 6}], "confidence": null}}, "content": "SGST\n\u20b93.240", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 353.0, "y": 386.0}, {"x": 503.0, "y": 386.0}, {"x": 503.0, "y": 394.0}, {"x": 353.0, "y": 394.0}]}], "spans": [{"offset": 484, "length": 11}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 4000.0, "symbol": "\u20b9"}, "content": "-\u20b94000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 475.0, "y": 334.0}, {"x": 503.0, "y": 334.0}, {"x": 503.0, "y": 342.0}, {"x": 474.0, "y": 342.0}]}], "spans": [{"offset": 442, "length": 6}], "confidence": null}, "VendorName": {"value_type": "string", "value": "E\nFOOBAR\nLABS", "content": "E\nFOOBAR LABS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 429.0, "y": 46.0}, {"x": 516.0, "y": 49.0}, {"x": 514.0, "y": 78.0}, {"x": 428.0, "y": 75.0}]}], "spans": [{"offset": 82, "length": 13}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/560_jpg.rf.bf6d6c9f1d11f1cd33c65a1db0d738e6.json b/Data/test/560_jpg.rf.bf6d6c9f1d11f1cd33c65a1db0d738e6.json new file mode 100644 index 0000000000000000000000000000000000000000..28633ead2597fe5e85398798bbc55257f9ee8ea3 --- /dev/null +++ b/Data/test/560_jpg.rf.bf6d6c9f1d11f1cd33c65a1db0d738e6.json @@ -0,0 +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": 1673}], "fields": {"CustomerId": {"value_type": "string", "value": "123 XXX 455 XXX", "content": "123 XXX 455 XXX", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 319.0, "y": 287.0}, {"x": 369.0, "y": 287.0}, {"x": 369.0, "y": 295.0}, {"x": 319.0, "y": 295.0}]}], "spans": [{"offset": 595, "length": 15}], "confidence": 0.283}, "InvoiceDate": {"value_type": "date", "value": "2020-12-22", "content": "December 22. 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 406.0, "y": 144.0}, {"x": 465.0, "y": 144.0}, {"x": 465.0, "y": 154.0}, {"x": 406.0, "y": 154.0}]}], "spans": [{"offset": 123, "length": 17}], "confidence": 0.004}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 626.5, "symbol": "Rp"}, "content": "Rp. 626.500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 437.0, "y": 517.0}, {"x": 474.0, "y": 517.0}, {"x": 474.0, "y": 525.0}, {"x": 437.0, "y": 525.0}]}], "spans": [{"offset": 1588, "length": 11}], "confidence": 0.866}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 200.0, "symbol": null}, "content": "200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 449.0, "y": 427.0}, {"x": 468.0, "y": 427.0}, {"x": 469.0, "y": 435.0}, {"x": 449.0, "y": 435.0}]}], "spans": [{"offset": 1243, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Lorem Ipsum Dolor Sit Amet", "content": "Lorem Ipsum Dolor Sit Amet", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 427.0}, {"x": 257.0, "y": 427.0}, {"x": 257.0, "y": 436.0}, {"x": 170.0, "y": 436.0}]}], "spans": [{"offset": 1192, "length": 26}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "OMMSTE\n1", "content": "OMMSTE\n1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 288.0, "y": 421.0}, {"x": 338.0, "y": 427.0}, {"x": 337.0, "y": 440.0}, {"x": 286.0, "y": 434.0}]}], "spans": [{"offset": 1219, "length": 8}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 200.0, "symbol": null}, "content": "200.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 354.0, "y": 427.0}, {"x": 378.0, "y": 427.0}, {"x": 379.0, "y": 435.0}, {"x": 354.0, "y": 434.0}]}], "spans": [{"offset": 1228, "length": 7}], "confidence": null}}, "content": "Lorem Ipsum Dolor Sit Amet\nOMMSTE\n1\n200.000\nWeight\n200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 427.0}, {"x": 469.0, "y": 427.0}, {"x": 469.0, "y": 436.0}, {"x": 170.0, "y": 436.0}]}], "spans": [{"offset": 1192, "length": 57}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 300.0, "symbol": null}, "content": "300.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 446.0, "y": 442.0}, {"x": 470.0, "y": 442.0}, {"x": 471.0, "y": 449.0}, {"x": 447.0, "y": 449.0}]}], "spans": [{"offset": 1303, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "Consectetur Adipiscing Elit", "content": "Consectetur Adipiscing Elit", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 173.0, "y": 441.0}, {"x": 255.0, "y": 441.0}, {"x": 255.0, "y": 450.0}, {"x": 173.0, "y": 450.0}]}], "spans": [{"offset": 1250, "length": 27}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "12NEIBO\n2", "content": "12NEIBO\n2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 288.0, "y": 440.0}, {"x": 337.0, "y": 441.0}, {"x": 337.0, "y": 450.0}, {"x": 288.0, "y": 449.0}]}], "spans": [{"offset": 1278, "length": 9}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 150.0, "symbol": null}, "content": "150.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 354.0, "y": 442.0}, {"x": 378.0, "y": 442.0}, {"x": 378.0, "y": 449.0}, {"x": 354.0, "y": 449.0}]}], "spans": [{"offset": 1288, "length": 7}], "confidence": null}}, "content": "Consectetur Adipiscing Elit\n12NEIBO\n2\n150.000\nWeight\n300.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 173.0, "y": 441.0}, {"x": 471.0, "y": 441.0}, {"x": 471.0, "y": 450.0}, {"x": 173.0, "y": 450.0}]}], "spans": [{"offset": 1250, "length": 60}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 60000.0, "symbol": null}, "content": "60,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 456.0}, {"x": 469.0, "y": 456.0}, {"x": 469.0, "y": 464.0}, {"x": 448.0, "y": 463.0}]}], "spans": [{"offset": 1348, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Pelletesque", "content": "Pelletesque", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 196.0, "y": 455.0}, {"x": 231.0, "y": 456.0}, {"x": 231.0, "y": 464.0}, {"x": 196.0, "y": 464.0}]}], "spans": [{"offset": 1311, "length": 11}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "13JUH3KJ\n1", "content": "13JUH3KJ\n1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 287.0, "y": 454.0}, {"x": 337.0, "y": 455.0}, {"x": 337.0, "y": 465.0}, {"x": 287.0, "y": 464.0}]}], "spans": [{"offset": 1323, "length": 10}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 60.0, "symbol": null}, "content": "60.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 356.0, "y": 456.0}, {"x": 376.0, "y": 456.0}, {"x": 377.0, "y": 463.0}, {"x": 356.0, "y": 463.0}]}], "spans": [{"offset": 1334, "length": 6}], "confidence": null}}, "content": "Pelletesque\n13JUH3KJ\n1\n60.000\nWeight\n60,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 196.0, "y": 451.0}, {"x": 469.0, "y": 456.0}, {"x": 469.0, "y": 469.0}, {"x": 196.0, "y": 464.0}]}], "spans": [{"offset": 1311, "length": 43}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 40.0, "symbol": null}, "content": "40.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 470.0}, {"x": 468.0, "y": 469.0}, {"x": 469.0, "y": 477.0}, {"x": 448.0, "y": 476.0}]}], "spans": [{"offset": 1397, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Lorem Ipsum Dolor", "content": "Lorem Ipsum Dolor", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 183.0, "y": 469.0}, {"x": 244.0, "y": 469.0}, {"x": 244.0, "y": 478.0}, {"x": 183.0, "y": 478.0}]}], "spans": [{"offset": 1355, "length": 17}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "NHJ3KIM\n1", "content": "NHJ3KIM\n1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 287.0, "y": 469.0}, {"x": 337.0, "y": 469.0}, {"x": 337.0, "y": 477.0}, {"x": 287.0, "y": 477.0}]}], "spans": [{"offset": 1373, "length": 9}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 40.0, "symbol": null}, "content": "40.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 355.0, "y": 470.0}, {"x": 376.0, "y": 470.0}, {"x": 376.0, "y": 477.0}, {"x": 356.0, "y": 476.0}]}], "spans": [{"offset": 1383, "length": 6}], "confidence": null}}, "content": "Lorem Ipsum Dolor\nNHJ3KIM\n1\n40.000\nWeight\n40.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 183.0, "y": 469.0}, {"x": 469.0, "y": 469.0}, {"x": 469.0, "y": 478.0}, {"x": 183.0, "y": 478.0}]}], "spans": [{"offset": 1355, "length": 48}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 600.0, "symbol": "Rp"}, "content": "Rp 600.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 437.0, "y": 486.0}, {"x": 473.0, "y": 486.0}, {"x": 473.0, "y": 493.0}, {"x": 437.0, "y": 493.0}]}], "spans": [{"offset": 1419, "length": 10}], "confidence": 0.003}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/571_jpg.rf.dd7da4fd42a7c42f31018d5a47106f14.json b/Data/test/571_jpg.rf.dd7da4fd42a7c42f31018d5a47106f14.json new file mode 100644 index 0000000000000000000000000000000000000000..eabb3ce8f5917d9b9202b77899b73a4afb5319e9 --- /dev/null +++ b/Data/test/571_jpg.rf.dd7da4fd42a7c42f31018d5a47106f14.json @@ -0,0 +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": 916}], "fields": {"InvoiceDate": {"value_type": "date", "value": "2018-08-28", "content": "08/28/2018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 225.0, "y": 406.0}, {"x": 279.0, "y": 407.0}, {"x": 279.0, "y": 417.0}, {"x": 225.0, "y": 417.0}]}], "spans": [{"offset": 532, "length": 10}], "confidence": 0.72}, "InvoiceId": {"value_type": "string", "value": "001382175", "content": "001382175", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 417.0}, {"x": 380.0, "y": 418.0}, {"x": 380.0, "y": 428.0}, {"x": 332.0, "y": 427.0}]}], "spans": [{"offset": 576, "length": 9}], "confidence": 0.682}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 10.83, "symbol": "$"}, "content": "$10.83", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 349.0, "y": 237.0}, {"x": 410.0, "y": 236.0}, {"x": 409.0, "y": 247.0}, {"x": 349.0, "y": 247.0}]}], "spans": [{"offset": 239, "length": 6}], "confidence": 0.801}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4.49, "symbol": "$"}, "content": "$4.49 GC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 380.0, "y": 162.0}, {"x": 424.0, "y": 162.0}, {"x": 424.0, "y": 172.0}, {"x": 380.0, "y": 172.0}]}], "spans": [{"offset": 151, "length": 8}], "confidence": 0.765}, "Description": {"value_type": "string", "value": "Snappers Peanut Btr", "content": "Snappers Peanut Btr", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 204.0, "y": 163.0}, {"x": 306.0, "y": 161.0}, {"x": 306.0, "y": 172.0}, {"x": 204.0, "y": 174.0}]}], "spans": [{"offset": 115, "length": 19}], "confidence": 0.645}}, "content": "Snappers Peanut Btr YOU SAVED $0.50\n$4.49 GC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 204.0, "y": 162.0}, {"x": 424.0, "y": 162.0}, {"x": 424.0, "y": 183.0}, {"x": 204.0, "y": 183.0}]}], "spans": [{"offset": 115, "length": 44}], "confidence": 0.793}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5.82, "symbol": "$"}, "content": "$5.82 GC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 379.0, "y": 193.0}, {"x": 423.0, "y": 194.0}, {"x": 423.0, "y": 205.0}, {"x": 379.0, "y": 204.0}]}], "spans": [{"offset": 179, "length": 8}], "confidence": 0.83}, "Description": {"value_type": "string", "value": "Pine-berry", "content": "Pine-berry", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 203.0, "y": 195.0}, {"x": 258.0, "y": 194.0}, {"x": 258.0, "y": 205.0}, {"x": 204.0, "y": 205.0}]}], "spans": [{"offset": 168, "length": 10}], "confidence": 0.78}}, "content": "Pine-berry\n$5.82 GC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 203.0, "y": 194.0}, {"x": 423.0, "y": 194.0}, {"x": 423.0, "y": 205.0}, {"x": 203.0, "y": 205.0}]}], "spans": [{"offset": 168, "length": 19}], "confidence": 0.849}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.5, "symbol": "$"}, "content": "$0.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 380.0, "y": 302.0}, {"x": 406.0, "y": 301.0}, {"x": 406.0, "y": 311.0}, {"x": 380.0, "y": 311.0}]}], "spans": [{"offset": 350, "length": 5}], "confidence": 0.644}, "Description": {"value_type": "string", "value": "Discounts", "content": "Discounts", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 199.0, "y": 301.0}, {"x": 247.0, "y": 301.0}, {"x": 247.0, "y": 311.0}, {"x": 199.0, "y": 311.0}]}], "spans": [{"offset": 329, "length": 9}], "confidence": 0.479}}, "content": "Discounts & Specials\n$0.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 199.0, "y": 301.0}, {"x": 406.0, "y": 301.0}, {"x": 406.0, "y": 311.0}, {"x": 199.0, "y": 311.0}]}], "spans": [{"offset": 329, "length": 26}], "confidence": 0.413}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "SB2073842703", "content": "SB2073842703", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 273.0, "y": 365.0}, {"x": 337.0, "y": 365.0}, {"x": 337.0, "y": 375.0}, {"x": 274.0, "y": 374.0}]}], "spans": [{"offset": 445, "length": 12}], "confidence": 0.691}, "SubTotal": {"value_type": "currency", "value": {"amount": 10.31, "symbol": "$"}, "content": "$10.31", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 374.0, "y": 216.0}, {"x": 407.0, "y": 216.0}, {"x": 407.0, "y": 225.0}, {"x": 375.0, "y": 225.0}]}], "spans": [{"offset": 197, "length": 6}], "confidence": 0.942}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.52, "symbol": "$"}, "content": "$0.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 379.0, "y": 227.0}, {"x": 407.0, "y": 226.0}, {"x": 407.0, "y": 236.0}, {"x": 380.0, "y": 235.0}]}], "spans": [{"offset": 211, "length": 5}], "confidence": 0.846}, "VendorAddress": {"value_type": "address", "value": {"house_number": "1766", "po_box": null, "road": "Robson St.", "city": "Vancouver", "state": null, "postal_code": null, "country_region": null, "street_address": "1766 Robson St."}, "content": "1766 Robson St. Vancouver", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 238.0, "y": 77.0}, {"x": 370.0, "y": 77.0}, {"x": 370.0, "y": 87.0}, {"x": 238.0, "y": 87.0}]}], "spans": [{"offset": 23, "length": 25}], "confidence": 0.889}, "VendorAddressRecipient": {"value_type": "string", "value": "Safeway Robson", "content": "Safeway Robson", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 264.0, "y": 67.0}, {"x": 337.0, "y": 67.0}, {"x": 337.0, "y": 76.0}, {"x": 264.0, "y": 76.0}]}], "spans": [{"offset": 8, "length": 14}], "confidence": 0.923}, "VendorName": {"value_type": "string", "value": "SAFEWAY", "content": "SAFEWAY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 219.0, "y": 15.0}, {"x": 363.0, "y": 16.0}, {"x": 363.0, "y": 46.0}, {"x": 220.0, "y": 46.0}]}], "spans": [{"offset": 0, "length": 7}], "confidence": 0.831}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/595_jpg.rf.fc537d420d2837e50982ecb9796f08b1.json b/Data/test/595_jpg.rf.fc537d420d2837e50982ecb9796f08b1.json new file mode 100644 index 0000000000000000000000000000000000000000..c988708133e97cc4047d4e6b674b3ccf7cd0d61b --- /dev/null +++ b/Data/test/595_jpg.rf.fc537d420d2837e50982ecb9796f08b1.json @@ -0,0 +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": 549}], "fields": {"CustomerId": {"value_type": "string", "value": "#22", "content": "#22", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 230.0, "y": 276.0}, {"x": 252.0, "y": 276.0}, {"x": 252.0, "y": 291.0}, {"x": 231.0, "y": 291.0}]}], "spans": [{"offset": 178, "length": 3}], "confidence": 0.845}, "InvoiceDate": {"value_type": "date", "value": "2019-10-20", "content": "20.10.2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 286.0, "y": 244.0}, {"x": 378.0, "y": 243.0}, {"x": 378.0, "y": 258.0}, {"x": 286.0, "y": 257.0}]}], "spans": [{"offset": 158, "length": 10}], "confidence": 0.952}, "InvoiceId": {"value_type": "string", "value": "51200", "content": "51200", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 359.0, "y": 228.0}, {"x": 406.0, "y": 227.0}, {"x": 406.0, "y": 242.0}, {"x": 360.0, "y": 242.0}]}], "spans": [{"offset": 147, "length": 5}], "confidence": 0.956}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 28.7, "symbol": "\u20ac"}, "content": "28,70 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 361.0, "y": 522.0}, {"x": 429.0, "y": 522.0}, {"x": 429.0, "y": 542.0}, {"x": 361.0, "y": 542.0}]}], "spans": [{"offset": 454, "length": 7}], "confidence": 0.774}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.95, "symbol": null}, "content": "10,95 A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 396.0, "y": 322.0}, {"x": 447.0, "y": 322.0}, {"x": 447.0, "y": 337.0}, {"x": 396.0, "y": 337.0}]}], "spans": [{"offset": 201, "length": 7}], "confidence": 0.51}, "Description": {"value_type": "string", "value": "x Dallas \u00e0 10,95", "content": "x Dallas \u00e0 10,95", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 193.0, "y": 323.0}, {"x": 302.0, "y": 323.0}, {"x": 302.0, "y": 337.0}, {"x": 193.0, "y": 337.0}]}], "spans": [{"offset": 184, "length": 16}], "confidence": 0.624}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 182.0, "y": 323.0}, {"x": 189.0, "y": 323.0}, {"x": 190.0, "y": 337.0}, {"x": 183.0, "y": 337.0}]}], "spans": [{"offset": 182, "length": 1}], "confidence": 0.619}}, "content": "1 x Dallas \u00e0 10,95\n10,95 A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 182.0, "y": 322.0}, {"x": 447.0, "y": 322.0}, {"x": 447.0, "y": 337.0}, {"x": 182.0, "y": 337.0}]}], "spans": [{"offset": 182, "length": 26}], "confidence": 0.621}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 11.95, "symbol": null}, "content": "11,95", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 367.0}, {"x": 430.0, "y": 367.0}, {"x": 430.0, "y": 382.0}, {"x": 397.0, "y": 382.0}]}], "spans": [{"offset": 256, "length": 5}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "x New York \u00e0 11,95", "content": "x New York \u00e0 11,95", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 195.0, "y": 369.0}, {"x": 315.0, "y": 369.0}, {"x": 315.0, "y": 384.0}, {"x": 195.0, "y": 384.0}]}], "spans": [{"offset": 237, "length": 18}], "confidence": 0.66}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 183.0, "y": 369.0}, {"x": 190.0, "y": 370.0}, {"x": 190.0, "y": 384.0}, {"x": 183.0, "y": 384.0}]}], "spans": [{"offset": 235, "length": 1}], "confidence": 0.619}, "Tax": {"value_type": "currency", "value": null, "content": "A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 439.0, "y": 368.0}, {"x": 447.0, "y": 368.0}, {"x": 447.0, "y": 381.0}, {"x": 439.0, "y": 381.0}]}], "spans": [{"offset": 262, "length": 1}], "confidence": 0.196}}, "content": "1 x New York \u00e0 11,95\n11,95\nA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 183.0, "y": 367.0}, {"x": 447.0, "y": 367.0}, {"x": 447.0, "y": 384.0}, {"x": 183.0, "y": 384.0}]}], "spans": [{"offset": 235, "length": 28}], "confidence": 0.573}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3.45, "symbol": null}, "content": "3,45", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 403.0, "y": 414.0}, {"x": 430.0, "y": 414.0}, {"x": 430.0, "y": 429.0}, {"x": 403.0, "y": 428.0}]}], "spans": [{"offset": 326, "length": 4}], "confidence": 0.931}, "Description": {"value_type": "string", "value": "x Schwarzbier 500ml \u00e0 3,45", "content": "x Schwarzbier 500ml \u00e0 3,45", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 415.0}, {"x": 365.0, "y": 415.0}, {"x": 365.0, "y": 429.0}, {"x": 194.0, "y": 429.0}]}], "spans": [{"offset": 299, "length": 26}], "confidence": 0.645}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 183.0, "y": 416.0}, {"x": 190.0, "y": 416.0}, {"x": 190.0, "y": 429.0}, {"x": 183.0, "y": 430.0}]}], "spans": [{"offset": 297, "length": 1}], "confidence": 0.889}, "Tax": {"value_type": "currency", "value": null, "content": "A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 439.0, "y": 415.0}, {"x": 447.0, "y": 415.0}, {"x": 447.0, "y": 428.0}, {"x": 439.0, "y": 428.0}]}], "spans": [{"offset": 331, "length": 1}], "confidence": 0.314}}, "content": "1 x Schwarzbier 500ml \u00e0 3,45\n3,45\nA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 183.0, "y": 414.0}, {"x": 447.0, "y": 414.0}, {"x": 447.0, "y": 430.0}, {"x": 183.0, "y": 430.0}]}], "spans": [{"offset": 297, "length": 35}], "confidence": 0.573}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2.35, "symbol": null}, "content": "2,35 A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 403.0, "y": 430.0}, {"x": 447.0, "y": 430.0}, {"x": 447.0, "y": 444.0}, {"x": 403.0, "y": 444.0}]}], "spans": [{"offset": 360, "length": 6}], "confidence": 0.456}, "Description": {"value_type": "string", "value": "x Coca-Cola 330ml \u00e0 2,35", "content": "x Coca-Cola 330ml \u00e0 2,35", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 431.0}, {"x": 353.0, "y": 431.0}, {"x": 353.0, "y": 445.0}, {"x": 194.0, "y": 445.0}]}], "spans": [{"offset": 335, "length": 24}], "confidence": 0.645}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 183.0, "y": 432.0}, {"x": 190.0, "y": 432.0}, {"x": 190.0, "y": 445.0}, {"x": 183.0, "y": 445.0}]}], "spans": [{"offset": 333, "length": 1}], "confidence": 0.884}}, "content": "1 x Coca-Cola 330ml \u00e0 2,35\n2,35 A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 183.0, "y": 430.0}, {"x": 447.0, "y": 430.0}, {"x": 447.0, "y": 445.0}, {"x": 183.0, "y": 445.0}]}], "spans": [{"offset": 333, "length": 33}], "confidence": 0.573}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 4.58, "symbol": "\u20ac"}, "content": "4,58 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 508.0}, {"x": 397.0, "y": 508.0}, {"x": 397.0, "y": 521.0}, {"x": 358.0, "y": 521.0}]}], "spans": [{"offset": 435, "length": 6}], "confidence": 0.931}, "VendorAddress": {"value_type": "address", "value": {"house_number": "11", "po_box": null, "road": "L\u00fctzner Stra\u00dfe", "city": "Leipzig", "state": null, "postal_code": "04177", "country_region": null, "street_address": "11 L\u00fctzner Stra\u00dfe"}, "content": "L\u00fctzner Stra\u00dfe 11 * 04177 Leipzig", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 204.0, "y": 182.0}, {"x": 415.0, "y": 182.0}, {"x": 415.0, "y": 198.0}, {"x": 204.0, "y": 198.0}]}], "spans": [{"offset": 63, "length": 33}], "confidence": 0.796}, "VendorAddressRecipient": {"value_type": "string", "value": "Schnitzel Leipzig ZZ GmbH", "content": "Schnitzel Leipzig ZZ GmbH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 231.0, "y": 167.0}, {"x": 390.0, "y": 167.0}, {"x": 390.0, "y": 182.0}, {"x": 231.0, "y": 182.0}]}], "spans": [{"offset": 37, "length": 25}], "confidence": 0.917}, "VendorName": {"value_type": "string", "value": "SchNizz", "content": "SchNizz", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 238.0, "y": 89.0}, {"x": 389.0, "y": 77.0}, {"x": 391.0, "y": 118.0}, {"x": 241.0, "y": 130.0}]}], "spans": [{"offset": 0, "length": 7}], "confidence": 0.952}, "VendorTaxId": {"value_type": "string", "value": "DE297328973", "content": "DE297328973", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 245.0, "y": 575.0}, {"x": 317.0, "y": 574.0}, {"x": 317.0, "y": 588.0}, {"x": 245.0, "y": 589.0}]}], "spans": [{"offset": 517, "length": 11}], "confidence": 0.829}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/597_jpg.rf.08aaad0fd5d81bc7ac4bafa7a4e8457e.json b/Data/test/597_jpg.rf.08aaad0fd5d81bc7ac4bafa7a4e8457e.json new file mode 100644 index 0000000000000000000000000000000000000000..8edf294f7ddf4142ca00e4c62f3e673e24451981 --- /dev/null +++ b/Data/test/597_jpg.rf.08aaad0fd5d81bc7ac4bafa7a4e8457e.json @@ -0,0 +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": 501}], "fields": {"InvoiceDate": {"value_type": "date", "value": "2019-02-26", "content": "26. Feb 2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 295.0, "y": 281.0}, {"x": 356.0, "y": 281.0}, {"x": 356.0, "y": 292.0}, {"x": 295.0, "y": 292.0}]}], "spans": [{"offset": 86, "length": 12}], "confidence": 0.836}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 94.4, "symbol": "\u20ac"}, "content": "94,40\u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 384.0, "y": 428.0}, {"x": 418.0, "y": 427.0}, {"x": 419.0, "y": 448.0}, {"x": 385.0, "y": 449.0}]}], "spans": [{"offset": 378, "length": 6}], "confidence": 0.725}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4.4, "symbol": "\u20ac"}, "content": "4.40 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 393.0, "y": 302.0}, {"x": 423.0, "y": 303.0}, {"x": 423.0, "y": 313.0}, {"x": 393.0, "y": 312.0}]}], "spans": [{"offset": 130, "length": 6}], "confidence": 0.638}, "Description": {"value_type": "string", "value": "Krombacher 0,5", "content": "Krombacher 0,5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 237.0, "y": 305.0}, {"x": 308.0, "y": 305.0}, {"x": 308.0, "y": 316.0}, {"x": 237.0, "y": 316.0}]}], "spans": [{"offset": 108, "length": 14}], "confidence": 0.615}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1x", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 306.0}, {"x": 233.0, "y": 306.0}, {"x": 233.0, "y": 316.0}, {"x": 223.0, "y": 316.0}]}], "spans": [{"offset": 105, "length": 2}], "confidence": 0.292}, "UnitPrice": {"value_type": "currency", "value": {"amount": 4.4, "symbol": "\u20ac"}, "content": "4,40 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 348.0, "y": 304.0}, {"x": 379.0, "y": 304.0}, {"x": 379.0, "y": 314.0}, {"x": 348.0, "y": 314.0}]}], "spans": [{"offset": 123, "length": 6}], "confidence": 0.594}}, "content": "1x Krombacher 0,5\n4,40 \u20ac\n4.40 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 302.0}, {"x": 423.0, "y": 302.0}, {"x": 423.0, "y": 316.0}, {"x": 223.0, "y": 316.0}]}], "spans": [{"offset": 105, "length": 31}], "confidence": 0.248}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 13.5, "symbol": "\u20ac"}, "content": "13,50 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 389.0, "y": 315.0}, {"x": 424.0, "y": 315.0}, {"x": 424.0, "y": 325.0}, {"x": 389.0, "y": 325.0}]}], "spans": [{"offset": 171, "length": 7}], "confidence": 0.622}, "Description": {"value_type": "string", "value": "Patty Nelt\n1x 3.Medium", "content": "Patty Nelt 1x 3.Medium", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 236.0, "y": 316.0}, {"x": 296.0, "y": 316.0}, {"x": 296.0, "y": 339.0}, {"x": 236.0, "y": 339.0}]}], "spans": [{"offset": 140, "length": 22}], "confidence": 0.649}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1x", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 317.0}, {"x": 233.0, "y": 317.0}, {"x": 234.0, "y": 327.0}, {"x": 224.0, "y": 327.0}]}], "spans": [{"offset": 137, "length": 2}], "confidence": 0.293}, "UnitPrice": {"value_type": "currency", "value": {"amount": 13.5, "symbol": "\u20ac"}, "content": "13,50 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 344.0, "y": 315.0}, {"x": 379.0, "y": 315.0}, {"x": 379.0, "y": 326.0}, {"x": 344.0, "y": 326.0}]}], "spans": [{"offset": 163, "length": 7}], "confidence": 0.557}}, "content": "1x Patty Nelt 1x 3.Medium\n13,50 \u20ac\n13,50 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 315.0}, {"x": 424.0, "y": 315.0}, {"x": 424.0, "y": 339.0}, {"x": 223.0, "y": 339.0}]}], "spans": [{"offset": 137, "length": 41}], "confidence": 0.214}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5.5, "symbol": "\u20ac"}, "content": "5,50 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 393.0, "y": 338.0}, {"x": 424.0, "y": 338.0}, {"x": 424.0, "y": 348.0}, {"x": 393.0, "y": 348.0}]}], "spans": [{"offset": 201, "length": 6}], "confidence": 0.619}, "Description": {"value_type": "string", "value": "Wings 6 APP\n1x 3. Napalm", "content": "Wings 6 APP\n1x 3. Napalm", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 236.0, "y": 339.0}, {"x": 301.0, "y": 339.0}, {"x": 301.0, "y": 362.0}, {"x": 236.0, "y": 362.0}]}], "spans": [{"offset": 182, "length": 11}, {"offset": 208, "length": 12}], "confidence": 0.685}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1x", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 341.0}, {"x": 234.0, "y": 340.0}, {"x": 234.0, "y": 351.0}, {"x": 224.0, "y": 351.0}]}], "spans": [{"offset": 179, "length": 2}], "confidence": 0.292}, "UnitPrice": {"value_type": "currency", "value": {"amount": 5.5, "symbol": "\u20ac"}, "content": "5,50 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 348.0, "y": 338.0}, {"x": 379.0, "y": 338.0}, {"x": 379.0, "y": 348.0}, {"x": 348.0, "y": 348.0}]}], "spans": [{"offset": 194, "length": 6}], "confidence": 0.569}}, "content": "1x Wings 6 APP\n5,50 \u20ac\n5,50 \u20ac\n1x 3. Napalm", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 338.0}, {"x": 424.0, "y": 338.0}, {"x": 424.0, "y": 362.0}, {"x": 223.0, "y": 362.0}]}], "spans": [{"offset": 179, "length": 41}], "confidence": 0.159}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2.5, "symbol": "\u20ac"}, "content": "2,50 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 394.0, "y": 361.0}, {"x": 424.0, "y": 361.0}, {"x": 424.0, "y": 371.0}, {"x": 394.0, "y": 371.0}]}], "spans": [{"offset": 247, "length": 6}], "confidence": 0.566}, "Description": {"value_type": "string", "value": "add Napalm Side", "content": "add Napalm Side", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 237.0, "y": 362.0}, {"x": 314.0, "y": 361.0}, {"x": 314.0, "y": 373.0}, {"x": 237.0, "y": 374.0}]}], "spans": [{"offset": 224, "length": 15}], "confidence": 0.616}, "Quantity": {"value_type": "float", "value": null, "content": "ix", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 225.0, "y": 362.0}, {"x": 234.0, "y": 362.0}, {"x": 234.0, "y": 374.0}, {"x": 225.0, "y": 374.0}]}], "spans": [{"offset": 221, "length": 2}], "confidence": 0.28}, "UnitPrice": {"value_type": "currency", "value": {"amount": 2.5, "symbol": "\u20ac"}, "content": "2,50 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 349.0, "y": 362.0}, {"x": 379.0, "y": 362.0}, {"x": 379.0, "y": 371.0}, {"x": 349.0, "y": 371.0}]}], "spans": [{"offset": 240, "length": 6}], "confidence": 0.562}}, "content": "ix add Napalm Side\n2,50 \u20ac\n2,50 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 225.0, "y": 361.0}, {"x": 424.0, "y": 361.0}, {"x": 424.0, "y": 374.0}, {"x": 225.0, "y": 374.0}]}], "spans": [{"offset": 221, "length": 32}], "confidence": 0.24}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 6.5, "symbol": "\u20ac"}, "content": "6,50 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 393.0, "y": 373.0}, {"x": 424.0, "y": 373.0}, {"x": 424.0, "y": 383.0}, {"x": 393.0, "y": 383.0}]}], "spans": [{"offset": 281, "length": 6}], "confidence": 0.537}, "Description": {"value_type": "string", "value": "Macallan 12y 2cl", "content": "Macallan 12y 2cl", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 237.0, "y": 374.0}, {"x": 324.0, "y": 372.0}, {"x": 324.0, "y": 385.0}, {"x": 237.0, "y": 386.0}]}], "spans": [{"offset": 257, "length": 16}], "confidence": 0.565}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1x", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 224.0, "y": 375.0}, {"x": 233.0, "y": 374.0}, {"x": 234.0, "y": 385.0}, {"x": 225.0, "y": 385.0}]}], "spans": [{"offset": 254, "length": 2}], "confidence": 0.293}, "UnitPrice": {"value_type": "currency", "value": {"amount": 6.5, "symbol": "\u20ac"}, "content": "6,50 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 348.0, "y": 373.0}, {"x": 378.0, "y": 373.0}, {"x": 378.0, "y": 382.0}, {"x": 348.0, "y": 382.0}]}], "spans": [{"offset": 274, "length": 6}], "confidence": 0.587}}, "content": "1x Macallan 12y 2cl\n6,50 \u20ac\n6,50 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 224.0, "y": 373.0}, {"x": 424.0, "y": 373.0}, {"x": 424.0, "y": 385.0}, {"x": 224.0, "y": 385.0}]}], "spans": [{"offset": 254, "length": 33}], "confidence": 0.241}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 12.0, "symbol": "\u20ac"}, "content": "12,00 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 389.0, "y": 384.0}, {"x": 424.0, "y": 384.0}, {"x": 424.0, "y": 394.0}, {"x": 389.0, "y": 394.0}]}], "spans": [{"offset": 313, "length": 7}], "confidence": 0.579}, "Description": {"value_type": "string", "value": "Brooklyn Lager", "content": "Brooklyn Lager", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 238.0, "y": 386.0}, {"x": 310.0, "y": 385.0}, {"x": 310.0, "y": 396.0}, {"x": 238.0, "y": 397.0}]}], "spans": [{"offset": 291, "length": 14}], "confidence": 0.614}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2x", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 386.0}, {"x": 233.0, "y": 386.0}, {"x": 234.0, "y": 396.0}, {"x": 224.0, "y": 396.0}]}], "spans": [{"offset": 288, "length": 2}], "confidence": 0.294}, "UnitPrice": {"value_type": "currency", "value": {"amount": 6.0, "symbol": "\u20ac"}, "content": "6,00 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 348.0, "y": 383.0}, {"x": 379.0, "y": 384.0}, {"x": 379.0, "y": 395.0}, {"x": 348.0, "y": 394.0}]}], "spans": [{"offset": 306, "length": 6}], "confidence": 0.558}}, "content": "2x Brooklyn Lager\n6,00 \u20ac\n12,00 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 384.0}, {"x": 424.0, "y": 384.0}, {"x": 424.0, "y": 396.0}, {"x": 223.0, "y": 396.0}]}], "spans": [{"offset": 288, "length": 32}], "confidence": 0.249}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "\u20ac"}, "content": "50,00 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 388.0, "y": 392.0}, {"x": 426.0, "y": 395.0}, {"x": 425.0, "y": 408.0}, {"x": 387.0, "y": 405.0}]}], "spans": [{"offset": 345, "length": 7}], "confidence": 0.599}, "Description": {"value_type": "string", "value": "NY STRIP 400\n1x 2. Medium Rare", "content": "NY STRIP 400\n1x 2. Medium Rare", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 237.0, "y": 396.0}, {"x": 322.0, "y": 396.0}, {"x": 322.0, "y": 419.0}, {"x": 237.0, "y": 419.0}]}], "spans": [{"offset": 324, "length": 12}, {"offset": 353, "length": 17}], "confidence": 0.683}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1x", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 224.0, "y": 397.0}, {"x": 234.0, "y": 397.0}, {"x": 234.0, "y": 407.0}, {"x": 225.0, "y": 408.0}]}], "spans": [{"offset": 321, "length": 2}], "confidence": 0.291}, "UnitPrice": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "\u20ac"}, "content": "50,00 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 344.0, "y": 396.0}, {"x": 380.0, "y": 396.0}, {"x": 380.0, "y": 406.0}, {"x": 344.0, "y": 406.0}]}], "spans": [{"offset": 337, "length": 7}], "confidence": 0.574}}, "content": "1x NY STRIP 400\n50,00 \u20ac\n50,00 \u20ac\n1x 2. Medium Rare", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 224.0, "y": 395.0}, {"x": 425.0, "y": 395.0}, {"x": 425.0, "y": 419.0}, {"x": 224.0, "y": 419.0}]}], "spans": [{"offset": 321, "length": 49}], "confidence": 0.123}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 79.33, "symbol": null}, "content": "79,33", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 369.0, "y": 457.0}, {"x": 395.0, "y": 457.0}, {"x": 395.0, "y": 470.0}, {"x": 369.0, "y": 470.0}]}], "spans": [{"offset": 416, "length": 5}], "confidence": 0.372}, "TotalTax": {"value_type": "currency", "value": {"amount": 15.07, "symbol": "\u20ac"}, "content": "15,07 \u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 293.0, "y": 457.0}, {"x": 331.0, "y": 457.0}, {"x": 331.0, "y": 471.0}, {"x": 293.0, "y": 471.0}]}], "spans": [{"offset": 401, "length": 7}], "confidence": 0.525}, "VendorAddress": {"value_type": "address", "value": {"house_number": "5", "po_box": null, "road": "Am Falkplatz", "city": "Berlin", "state": null, "postal_code": "10437", "country_region": null, "street_address": "5 Am Falkplatz"}, "content": "Am Falkplatz 5, 10437 Berlin", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 246.0, "y": 182.0}, {"x": 387.0, "y": 180.0}, {"x": 387.0, "y": 193.0}, {"x": 246.0, "y": 196.0}]}], "spans": [{"offset": 12, "length": 28}], "confidence": 0.788}, "VendorAddressRecipient": {"value_type": "string", "value": "BIR\n0\nTHE", "content": "THE BIR\n0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 294.0, "y": 57.0}, {"x": 359.0, "y": 87.0}, {"x": 339.0, "y": 130.0}, {"x": 274.0, "y": 100.0}]}], "spans": [{"offset": 2, "length": 9}], "confidence": 0.295}, "VendorName": {"value_type": "string", "value": ".", "content": ".", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 268.0, "y": 113.0}, {"x": 271.0, "y": 107.0}, {"x": 284.0, "y": 114.0}, {"x": 281.0, "y": 119.0}]}], "spans": [{"offset": 0, "length": 1}], "confidence": 0.273}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/601_jpg.rf.a51fd7ab408cf140e4d12f339c2ac466.json b/Data/test/601_jpg.rf.a51fd7ab408cf140e4d12f339c2ac466.json new file mode 100644 index 0000000000000000000000000000000000000000..6fe91b4c60f80e4ac940abb040705682aef81795 --- /dev/null +++ b/Data/test/601_jpg.rf.a51fd7ab408cf140e4d12f339c2ac466.json @@ -0,0 +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": 388}], "fields": {"InvoiceDate": {"value_type": "date", "value": "2018-08-31", "content": "Aug 31, 18", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 357.0, "y": 323.0}, {"x": 421.0, "y": 323.0}, {"x": 421.0, "y": 338.0}, {"x": 357.0, "y": 338.0}]}], "spans": [{"offset": 165, "length": 10}], "confidence": 0.799}, "InvoiceId": {"value_type": "string", "value": "186922 #1", "content": "186922 #1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 182.0, "y": 323.0}, {"x": 244.0, "y": 323.0}, {"x": 244.0, "y": 336.0}, {"x": 182.0, "y": 336.0}]}], "spans": [{"offset": 150, "length": 9}], "confidence": 0.428}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 24.01, "symbol": "$"}, "content": "$24.01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 401.0, "y": 479.0}, {"x": 483.0, "y": 479.0}, {"x": 483.0, "y": 504.0}, {"x": 402.0, "y": 504.0}]}], "spans": [{"offset": 303, "length": 6}], "confidence": 0.957}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 15.25, "symbol": "$"}, "content": "$15.25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 431.0, "y": 354.0}, {"x": 481.0, "y": 354.0}, {"x": 482.0, "y": 370.0}, {"x": 432.0, "y": 369.0}]}], "spans": [{"offset": 212, "length": 6}], "confidence": 0.935}, "Description": {"value_type": "string", "value": "Spaghetti with Meatballs", "content": "Spaghetti with Meatballs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 209.0, "y": 353.0}, {"x": 393.0, "y": 352.0}, {"x": 393.0, "y": 370.0}, {"x": 209.0, "y": 372.0}]}], "spans": [{"offset": 187, "length": 24}], "confidence": 0.932}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 162.0, "y": 354.0}, {"x": 169.0, "y": 354.0}, {"x": 168.0, "y": 368.0}, {"x": 162.0, "y": 367.0}]}], "spans": [{"offset": 185, "length": 1}], "confidence": 0.928}}, "content": "1\nSpaghetti with Meatballs\n$15.25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 162.0, "y": 351.0}, {"x": 482.0, "y": 354.0}, {"x": 482.0, "y": 372.0}, {"x": 162.0, "y": 370.0}]}], "spans": [{"offset": 185, "length": 33}], "confidence": 0.89}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 6.95, "symbol": "$"}, "content": "$6.95", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 372.0}, {"x": 483.0, "y": 372.0}, {"x": 483.0, "y": 387.0}, {"x": 441.0, "y": 387.0}]}], "spans": [{"offset": 255, "length": 5}], "confidence": 0.933}, "Description": {"value_type": "string", "value": "Granville Island Summer\nAle[Pint]", "content": "Granville Island Summer\nAle[Pint]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 209.0, "y": 370.0}, {"x": 394.0, "y": 371.0}, {"x": 394.0, "y": 409.0}, {"x": 209.0, "y": 407.0}]}], "spans": [{"offset": 221, "length": 33}], "confidence": 0.782}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 162.0, "y": 372.0}, {"x": 169.0, "y": 372.0}, {"x": 169.0, "y": 385.0}, {"x": 162.0, "y": 385.0}]}], "spans": [{"offset": 219, "length": 1}], "confidence": 0.928}}, "content": "1\nGranville Island Summer\nAle[Pint]\n$6.95", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 162.0, "y": 371.0}, {"x": 483.0, "y": 371.0}, {"x": 483.0, "y": 408.0}, {"x": 162.0, "y": 408.0}]}], "spans": [{"offset": 219, "length": 41}], "confidence": 0.87}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 22.2, "symbol": "$"}, "content": "$22.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 431.0, "y": 423.0}, {"x": 481.0, "y": 423.0}, {"x": 481.0, "y": 438.0}, {"x": 431.0, "y": 438.0}]}], "spans": [{"offset": 270, "length": 6}], "confidence": 0.969}, "TotalTax": {"value_type": "currency", "value": {"amount": 1.11, "symbol": "$"}, "content": "$1.11", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 442.0, "y": 440.0}, {"x": 483.0, "y": 440.0}, {"x": 483.0, "y": 456.0}, {"x": 442.0, "y": 456.0}]}], "spans": [{"offset": 281, "length": 5}], "confidence": 0.54}, "VendorAddress": {"value_type": "address", "value": {"house_number": "53", "po_box": null, "road": "Water St.", "city": "Vancouver", "state": "BC", "postal_code": "V6B 1A1", "country_region": null, "street_address": "53 Water St."}, "content": "53 Water St. Vancouver, BC, V6B 1A1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 229.0, "y": 196.0}, {"x": 415.0, "y": 196.0}, {"x": 415.0, "y": 231.0}, {"x": 229.0, "y": 231.0}]}], "spans": [{"offset": 65, "length": 35}], "confidence": 0.888}, "VendorAddressRecipient": {"value_type": "string", "value": "The Old Spaghetti Factory - Gastown", "content": "The Old Spaghetti Factory - Gastown", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 184.0, "y": 178.0}, {"x": 460.0, "y": 178.0}, {"x": 460.0, "y": 196.0}, {"x": 184.0, "y": 196.0}]}], "spans": [{"offset": 29, "length": 35}], "confidence": 0.696}, "VendorName": {"value_type": "string", "value": "the old\nspaghetti\nfactory", "content": "the old spaghetti factory", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 272.0, "y": 109.0}, {"x": 363.0, "y": 93.0}, {"x": 373.0, "y": 154.0}, {"x": 283.0, "y": 170.0}]}], "spans": [{"offset": 3, "length": 25}], "confidence": 0.88}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/602_jpg.rf.fb09b4864f2f3421b192600727f4b916.json b/Data/test/602_jpg.rf.fb09b4864f2f3421b192600727f4b916.json new file mode 100644 index 0000000000000000000000000000000000000000..1f5eb29722f64d8ce565f6691f724a08d0379081 --- /dev/null +++ b/Data/test/602_jpg.rf.fb09b4864f2f3421b192600727f4b916.json @@ -0,0 +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": 487}], "fields": {"InvoiceDate": {"value_type": "date", "value": "2018-04-12", "content": "04.12.2018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 324.0, "y": 265.0}, {"x": 372.0, "y": 265.0}, {"x": 372.0, "y": 275.0}, {"x": 324.0, "y": 275.0}]}], "spans": [{"offset": 141, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "442 / ID 2 6596", "content": "442 / ID 2 6596", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 271.0, "y": 518.0}, {"x": 335.0, "y": 518.0}, {"x": 335.0, "y": 527.0}, {"x": 271.0, "y": 527.0}]}], "spans": [{"offset": 356, "length": 15}], "confidence": 0.001}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 9.8, "symbol": "\u20ac"}, "content": "9,80\u20ac", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 363.0, "y": 416.0}, {"x": 397.0, "y": 416.0}, {"x": 397.0, "y": 430.0}, {"x": 363.0, "y": 429.0}]}], "spans": [{"offset": 252, "length": 5}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9.4, "symbol": null}, "content": "9,40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 391.0, "y": 349.0}, {"x": 411.0, "y": 349.0}, {"x": 410.0, "y": 360.0}, {"x": 390.0, "y": 359.0}]}], "spans": [{"offset": 193, "length": 4}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "JB Cheese Men\u00fc\nPommes Frites\nCola 0,3 1", "content": "JB Cheese Men\u00fc\nPommes Frites Cola 0,3 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 245.0, "y": 350.0}, {"x": 312.0, "y": 350.0}, {"x": 312.0, "y": 383.0}, {"x": 245.0, "y": 383.0}]}], "spans": [{"offset": 178, "length": 14}, {"offset": 198, "length": 24}], "confidence": 0.968}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 237.0, "y": 350.0}, {"x": 242.0, "y": 350.0}, {"x": 242.0, "y": 361.0}, {"x": 236.0, "y": 361.0}]}], "spans": [{"offset": 176, "length": 1}], "confidence": 0.001}}, "content": "1 JB Cheese Men\u00fc 9,40 Pommes Frites Cola 0,3 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 236.0, "y": 349.0}, {"x": 411.0, "y": 349.0}, {"x": 411.0, "y": 383.0}, {"x": 236.0, "y": 383.0}]}], "spans": [{"offset": 176, "length": 46}], "confidence": 0.091}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.4, "symbol": null}, "content": "0,40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 391.0, "y": 393.0}, {"x": 409.0, "y": 393.0}, {"x": 409.0, "y": 404.0}, {"x": 391.0, "y": 403.0}]}], "spans": [{"offset": 236, "length": 4}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "JB Ketchup", "content": "JB Ketchup", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 246.0, "y": 393.0}, {"x": 294.0, "y": 394.0}, {"x": 294.0, "y": 405.0}, {"x": 246.0, "y": 404.0}]}], "spans": [{"offset": 225, "length": 10}], "confidence": 0.002}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 236.0, "y": 393.0}, {"x": 242.0, "y": 393.0}, {"x": 242.0, "y": 404.0}, {"x": 236.0, "y": 404.0}]}], "spans": [{"offset": 223, "length": 1}], "confidence": 0.001}}, "content": "1 JB Ketchup\n0,40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 236.0, "y": 388.0}, {"x": 409.0, "y": 393.0}, {"x": 409.0, "y": 409.0}, {"x": 236.0, "y": 404.0}]}], "spans": [{"offset": 223, "length": 17}], "confidence": 0.003}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "29-32", "po_box": null, "road": "Dammtorstra\u00dfe", "city": "Hamburg", "state": null, "postal_code": "20354", "country_region": null, "street_address": "29-32 Dammtorstra\u00dfe"}, "content": "Dammtorstra\u00dfe 29-32| 20354 Hamburg", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 242.0, "y": 199.0}, {"x": 403.0, "y": 199.0}, {"x": 403.0, "y": 211.0}, {"x": 242.0, "y": 211.0}]}], "spans": [{"offset": 57, "length": 34}], "confidence": 0.004}, "VendorAddressRecipient": {"value_type": "string", "value": "Jin Block Restaurant", "content": "Jin Block Restaurant", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 276.0, "y": 189.0}, {"x": 371.0, "y": 189.0}, {"x": 371.0, "y": 200.0}, {"x": 276.0, "y": 200.0}]}], "spans": [{"offset": 36, "length": 20}], "confidence": 0.001}, "VendorName": {"value_type": "string", "value": "JB\nJIM BLOCK", "content": "JB\nJIM BLOCK", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 227.0, "y": 56.0}, {"x": 402.0, "y": 54.0}, {"x": 403.0, "y": 146.0}, {"x": 228.0, "y": 148.0}]}], "spans": [{"offset": 0, "length": 12}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/test/613_jpg.rf.fd0f913972e641cd11c98c58e8ce04f5.json b/Data/test/613_jpg.rf.fd0f913972e641cd11c98c58e8ce04f5.json new file mode 100644 index 0000000000000000000000000000000000000000..eb5bf6786e63c06b9491d88e2e929d05b668e28b --- /dev/null +++ b/Data/test/613_jpg.rf.fd0f913972e641cd11c98c58e8ce04f5.json @@ -0,0 +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": 511}], "fields": {"InvoiceDate": {"value_type": "date", "value": "2020-01-02", "content": "02Jan20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 326.0, "y": 298.0}, {"x": 367.0, "y": 297.0}, {"x": 368.0, "y": 313.0}, {"x": 327.0, "y": 313.0}]}], "spans": [{"offset": 239, "length": 7}], "confidence": 0.84}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 32.0, "symbol": "EUR"}, "content": "32,00 EUR", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 410.0, "y": 384.0}, {"x": 462.0, "y": 385.0}, {"x": 462.0, "y": 403.0}, {"x": 410.0, "y": 402.0}]}], "spans": [{"offset": 321, "length": 9}], "confidence": 0.933}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 32.0, "symbol": "EUR"}, "content": "32,00 EUR", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 410.0, "y": 384.0}, {"x": 462.0, "y": 385.0}, {"x": 462.0, "y": 403.0}, {"x": 410.0, "y": 402.0}]}], "spans": [{"offset": 321, "length": 9}], "confidence": 0.604}, "Description": {"value_type": "string", "value": "Gesamtbetrag:", "content": "Gesamtbetrag:", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 387.0}, {"x": 229.0, "y": 387.0}, {"x": 229.0, "y": 404.0}, {"x": 156.0, "y": 403.0}]}], "spans": [{"offset": 307, "length": 13}], "confidence": 0.591}}, "content": "Gesamtbetrag:\n32,00 EUR", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 383.0}, {"x": 462.0, "y": 385.0}, {"x": 462.0, "y": 406.0}, {"x": 155.0, "y": 403.0}]}], "spans": [{"offset": 307, "length": 23}], "confidence": 0.78}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "9", "po_box": null, "road": "Muhlenbr\u00fccke", "city": "L\u00fcbeck", "state": null, "postal_code": "23552", "country_region": "Deutschland", "street_address": "9 Muhlenbr\u00fccke"}, "content": "Muhlenbr\u00fccke 9 - 23552 L\u00fcbeck -\nPetersstr. 44 - 04109 Leipzig - Deutschland", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 192.0}, {"x": 438.0, "y": 192.0}, {"x": 438.0, "y": 253.0}, {"x": 194.0, "y": 253.0}]}], "spans": [{"offset": 61, "length": 31}, {"offset": 110, "length": 43}], "confidence": 0.307}, "VendorAddressRecipient": {"value_type": "string", "value": "Greater Union First Cinema B.V\nLeipzig CineStar", "content": "Greater Union First Cinema B.V\nLeipzig CineStar", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 206.0, "y": 175.0}, {"x": 427.0, "y": 175.0}, {"x": 427.0, "y": 237.0}, {"x": 206.0, "y": 237.0}]}], "spans": [{"offset": 30, "length": 30}, {"offset": 93, "length": 16}], "confidence": 0.398}, "VendorName": {"value_type": "string", "value": "Cine Star\nSo macht Kino Spa\u00df.", "content": "Cine Star So macht Kino Spa\u00df.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 236.0, "y": 74.0}, {"x": 398.0, "y": 72.0}, {"x": 399.0, "y": 150.0}, {"x": 237.0, "y": 152.0}]}], "spans": [{"offset": 0, "length": 29}], "confidence": 0.605}, "VendorTaxId": {"value_type": "string", "value": "DE 288 270 772", "content": "DE 288 270 772", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 307.0, "y": 283.0}, {"x": 388.0, "y": 283.0}, {"x": 388.0, "y": 298.0}, {"x": 307.0, "y": 298.0}]}], "spans": [{"offset": 212, "length": 14}], "confidence": 0.595}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/00000D51616813-png-1_png_jpg.rf.175b64d9a24db4bedd0aafcedf1aa5d6.json b/Data/train/00000D51616813-png-1_png_jpg.rf.175b64d9a24db4bedd0aafcedf1aa5d6.json new file mode 100644 index 0000000000000000000000000000000000000000..a27e9fa5a6754dfe5fe842976da6eb686ea50920 --- /dev/null +++ b/Data/train/00000D51616813-png-1_png_jpg.rf.175b64d9a24db4bedd0aafcedf1aa5d6.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1078}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "31825", "po_box": null, "road": "GREAT WESTERN DR", "city": "WINDSOR", "state": "CO", "postal_code": "80550", "country_region": null, "street_address": "31825 GREAT WESTERN DR"}, "content": "31825 GREAT WESTERN DR\nWINDSOR, CO 80550", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 537.0, "y": 249.0}, {"x": 712.0, "y": 249.0}, {"x": 712.0, "y": 278.0}, {"x": 537.0, "y": 278.0}]}], "spans": [{"offset": 373, "length": 40}], "confidence": 0.891}, "BillingAddressRecipient": {"value_type": "string", "value": "PLAREPLUS INC", "content": "PLAREPLUS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 538.0, "y": 236.0}, {"x": 640.0, "y": 236.0}, {"x": 640.0, "y": 249.0}, {"x": 538.0, "y": 249.0}]}], "spans": [{"offset": 359, "length": 13}], "confidence": 0.936}, "CustomerId": {"value_type": "string", "value": "37876", "content": "37876", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 540.0, "y": 139.0}, {"x": 579.0, "y": 138.0}, {"x": 579.0, "y": 152.0}, {"x": 540.0, "y": 152.0}]}], "spans": [{"offset": 117, "length": 5}], "confidence": 0.943}, "CustomerName": {"value_type": "string", "value": "PLAREPLUS INC", "content": "PLAREPLUS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 538.0, "y": 236.0}, {"x": 640.0, "y": 236.0}, {"x": 640.0, "y": 249.0}, {"x": 538.0, "y": 249.0}]}], "spans": [{"offset": 359, "length": 13}], "confidence": 0.936}, "InvoiceDate": {"value_type": "date", "value": "2018-10-24", "content": "10/24/2018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 721.0, "y": 125.0}, {"x": 799.0, "y": 125.0}, {"x": 799.0, "y": 137.0}, {"x": 722.0, "y": 138.0}]}], "spans": [{"offset": 175, "length": 10}], "confidence": 0.949}, "InvoiceId": {"value_type": "string", "value": "0051616813", "content": "0051616813", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 539.0, "y": 125.0}, {"x": 619.0, "y": 125.0}, {"x": 618.0, "y": 138.0}, {"x": 539.0, "y": 139.0}]}], "spans": [{"offset": 95, "length": 10}], "confidence": 0.941}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 711.0, "symbol": null}, "content": "711.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 729.0, "y": 582.0}, {"x": 775.0, "y": 583.0}, {"x": 775.0, "y": 596.0}, {"x": 729.0, "y": 596.0}]}], "spans": [{"offset": 765, "length": 6}], "confidence": 0.937}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 250.0, "symbol": null}, "content": "250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 721.0, "y": 446.0}, {"x": 767.0, "y": 446.0}, {"x": 767.0, "y": 458.0}, {"x": 722.0, "y": 457.0}]}], "spans": [{"offset": 571, "length": 6}], "confidence": 0.93}, "Description": {"value_type": "string", "value": "INSPECTION, ANNUAL ALARM SYSTEM", "content": "INSPECTION, ANNUAL ALARM SYSTEM", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 247.0, "y": 445.0}, {"x": 490.0, "y": 445.0}, {"x": 490.0, "y": 459.0}, {"x": 247.0, "y": 459.0}]}], "spans": [{"offset": 532, "length": 31}], "confidence": 0.928}, "ProductCode": {"value_type": "string", "value": "INFA", "content": "INFA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 445.0}, {"x": 160.0, "y": 445.0}, {"x": 160.0, "y": 458.0}, {"x": 129.0, "y": 458.0}]}], "spans": [{"offset": 525, "length": 4}], "confidence": 0.913}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 224.0, "y": 445.0}, {"x": 230.0, "y": 445.0}, {"x": 231.0, "y": 457.0}, {"x": 225.0, "y": 457.0}]}], "spans": [{"offset": 530, "length": 1}], "confidence": 0.928}, "Tax": {"value_type": "currency", "value": null, "content": "N", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 791.0, "y": 446.0}, {"x": 797.0, "y": 446.0}, {"x": 797.0, "y": 457.0}, {"x": 791.0, "y": 457.0}]}], "spans": [{"offset": 578, "length": 1}], "confidence": 0.563}, "UnitPrice": {"value_type": "currency", "value": {"amount": 250.0, "symbol": null}, "content": "250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 571.0, "y": 446.0}, {"x": 617.0, "y": 445.0}, {"x": 617.0, "y": 459.0}, {"x": 571.0, "y": 458.0}]}], "spans": [{"offset": 564, "length": 6}], "confidence": 0.93}}, "content": "INFA\n1\nINSPECTION, ANNUAL ALARM SYSTEM\n250.00\n250.00\nN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 445.0}, {"x": 797.0, "y": 445.0}, {"x": 797.0, "y": 459.0}, {"x": 129.0, "y": 459.0}]}], "spans": [{"offset": 525, "length": 54}], "confidence": 0.889}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 130.0, "symbol": null}, "content": "130.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 721.0, "y": 472.0}, {"x": 767.0, "y": 472.0}, {"x": 767.0, "y": 485.0}, {"x": 721.0, "y": 484.0}]}], "spans": [{"offset": 634, "length": 6}], "confidence": 0.929}, "Description": {"value_type": "string", "value": "INSPECTION, SPRINKLER SYSTEM BACK FLOW", "content": "INSPECTION, SPRINKLER SYSTEM BACK FLOW", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 247.0, "y": 471.0}, {"x": 545.0, "y": 471.0}, {"x": 545.0, "y": 486.0}, {"x": 247.0, "y": 486.0}]}], "spans": [{"offset": 589, "length": 38}], "confidence": 0.928}, "ProductCode": {"value_type": "string", "value": "INSPBF", "content": "INSPBF", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 472.0}, {"x": 175.0, "y": 473.0}, {"x": 175.0, "y": 485.0}, {"x": 129.0, "y": 485.0}]}], "spans": [{"offset": 580, "length": 6}], "confidence": 0.928}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 224.0, "y": 471.0}, {"x": 231.0, "y": 471.0}, {"x": 231.0, "y": 484.0}, {"x": 224.0, "y": 484.0}]}], "spans": [{"offset": 587, "length": 1}], "confidence": 0.928}, "Tax": {"value_type": "currency", "value": null, "content": "N", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 792.0, "y": 473.0}, {"x": 797.0, "y": 473.0}, {"x": 797.0, "y": 483.0}, {"x": 792.0, "y": 483.0}]}], "spans": [{"offset": 641, "length": 1}], "confidence": 0.603}, "UnitPrice": {"value_type": "currency", "value": {"amount": 65.0, "symbol": null}, "content": "65.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 578.0, "y": 472.0}, {"x": 617.0, "y": 472.0}, {"x": 617.0, "y": 486.0}, {"x": 579.0, "y": 485.0}]}], "spans": [{"offset": 628, "length": 5}], "confidence": 0.93}}, "content": "INSPBF\n2\nINSPECTION, SPRINKLER SYSTEM BACK FLOW\n65.00\n130.00\nN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 471.0}, {"x": 797.0, "y": 471.0}, {"x": 797.0, "y": 486.0}, {"x": 129.0, "y": 486.0}]}], "spans": [{"offset": 580, "length": 62}], "confidence": 0.886}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 257.0, "symbol": null}, "content": "257.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 721.0, "y": 501.0}, {"x": 767.0, "y": 501.0}, {"x": 767.0, "y": 513.0}, {"x": 722.0, "y": 513.0}]}], "spans": [{"offset": 685, "length": 6}], "confidence": 0.93}, "Description": {"value_type": "string", "value": "INSP. SPRINKLER RISER EACH", "content": "INSP. SPRINKLER RISER EACH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 248.0, "y": 499.0}, {"x": 450.0, "y": 499.0}, {"x": 450.0, "y": 514.0}, {"x": 248.0, "y": 514.0}]}], "spans": [{"offset": 651, "length": 26}], "confidence": 0.929}, "ProductCode": {"value_type": "string", "value": "INSPW", "content": "INSPW", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 502.0}, {"x": 165.0, "y": 501.0}, {"x": 165.0, "y": 513.0}, {"x": 129.0, "y": 512.0}]}], "spans": [{"offset": 643, "length": 5}], "confidence": 0.913}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 224.0, "y": 500.0}, {"x": 230.0, "y": 500.0}, {"x": 231.0, "y": 512.0}, {"x": 224.0, "y": 512.0}]}], "spans": [{"offset": 649, "length": 1}], "confidence": 0.927}, "Tax": {"value_type": "currency", "value": null, "content": "N", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 792.0, "y": 501.0}, {"x": 797.0, "y": 501.0}, {"x": 797.0, "y": 511.0}, {"x": 792.0, "y": 511.0}]}], "spans": [{"offset": 692, "length": 1}], "confidence": 0.638}, "UnitPrice": {"value_type": "currency", "value": {"amount": 257.0, "symbol": null}, "content": "257.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 571.0, "y": 500.0}, {"x": 617.0, "y": 500.0}, {"x": 617.0, "y": 514.0}, {"x": 571.0, "y": 513.0}]}], "spans": [{"offset": 678, "length": 6}], "confidence": 0.93}}, "content": "INSPW\n1\nINSP. SPRINKLER RISER EACH\n257.00\n257.00\nN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 499.0}, {"x": 797.0, "y": 499.0}, {"x": 797.0, "y": 514.0}, {"x": 129.0, "y": 514.0}]}], "spans": [{"offset": 643, "length": 50}], "confidence": 0.889}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 74.0, "symbol": null}, "content": "74.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 729.0, "y": 528.0}, {"x": 768.0, "y": 528.0}, {"x": 768.0, "y": 541.0}, {"x": 729.0, "y": 541.0}]}], "spans": [{"offset": 720, "length": 5}], "confidence": 0.929}, "Description": {"value_type": "string", "value": "SERVICE CHARGE", "content": "SERVICE CHARGE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 247.0, "y": 527.0}, {"x": 356.0, "y": 527.0}, {"x": 356.0, "y": 542.0}, {"x": 247.0, "y": 542.0}]}], "spans": [{"offset": 699, "length": 14}], "confidence": 0.929}, "ProductCode": {"value_type": "string", "value": "SC", "content": "SC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 528.0}, {"x": 143.0, "y": 528.0}, {"x": 143.0, "y": 540.0}, {"x": 129.0, "y": 540.0}]}], "spans": [{"offset": 694, "length": 2}], "confidence": 0.785}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 224.0, "y": 527.0}, {"x": 230.0, "y": 527.0}, {"x": 231.0, "y": 539.0}, {"x": 225.0, "y": 539.0}]}], "spans": [{"offset": 697, "length": 1}], "confidence": 0.927}, "Tax": {"value_type": "currency", "value": null, "content": "N", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 792.0, "y": 529.0}, {"x": 797.0, "y": 529.0}, {"x": 797.0, "y": 539.0}, {"x": 792.0, "y": 539.0}]}], "spans": [{"offset": 726, "length": 1}], "confidence": 0.586}, "UnitPrice": {"value_type": "currency", "value": {"amount": 74.0, "symbol": null}, "content": "74.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 579.0, "y": 527.0}, {"x": 617.0, "y": 527.0}, {"x": 617.0, "y": 542.0}, {"x": 579.0, "y": 541.0}]}], "spans": [{"offset": 714, "length": 5}], "confidence": 0.93}}, "content": "SC\n1\nSERVICE CHARGE\n74.00\n74.00\nN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 527.0}, {"x": 797.0, "y": 527.0}, {"x": 797.0, "y": 542.0}, {"x": 129.0, "y": 542.0}]}], "spans": [{"offset": 694, "length": 33}], "confidence": 0.888}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. BOX 636525", "road": null, "city": "CINCINNATI", "state": "OH", "postal_code": "452636525", "country_region": null, "street_address": "P.O. BOX 636525"}, "content": "P.O. BOX 636525 CINCINNATI, OH 452636525", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 175.0, "y": 249.0}, {"x": 373.0, "y": 249.0}, {"x": 373.0, "y": 278.0}, {"x": 175.0, "y": 278.0}]}], "spans": [{"offset": 294, "length": 40}], "confidence": 0.893}, "RemittanceAddressRecipient": {"value_type": "string", "value": "CINTAS FIRE 636525", "content": "CINTAS FIRE 636525", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 175.0, "y": 235.0}, {"x": 318.0, "y": 235.0}, {"x": 318.0, "y": 250.0}, {"x": 175.0, "y": 250.0}]}], "spans": [{"offset": 275, "length": 18}], "confidence": 0.929}, "ServiceAddress": {"value_type": "address", "value": {"house_number": "31825", "po_box": null, "road": "GREAT WESTERN DR", "city": "WINDSOR", "state": "CO", "postal_code": "80550", "country_region": null, "street_address": "31825 GREAT WESTERN DR"}, "content": "31825 GREAT WESTERN DR WINDSOR, CO 80550", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 175.0, "y": 332.0}, {"x": 349.0, "y": 332.0}, {"x": 349.0, "y": 361.0}, {"x": 175.0, "y": 361.0}]}], "spans": [{"offset": 438, "length": 40}], "confidence": 0.889}, "ServiceAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC", "content": "PLATEPLUS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 175.0, "y": 319.0}, {"x": 277.0, "y": 319.0}, {"x": 277.0, "y": 333.0}, {"x": 175.0, "y": 333.0}]}], "spans": [{"offset": 424, "length": 13}], "confidence": 0.933}, "SubTotal": {"value_type": "currency", "value": {"amount": 711.0, "symbol": null}, "content": "711.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 730.0, "y": 556.0}, {"x": 774.0, "y": 556.0}, {"x": 775.0, "y": 569.0}, {"x": 730.0, "y": 568.0}]}], "spans": [{"offset": 740, "length": 6}], "confidence": 0.943}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": ".00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 753.0, "y": 571.0}, {"x": 775.0, "y": 571.0}, {"x": 775.0, "y": 582.0}, {"x": 753.0, "y": 582.0}]}], "spans": [{"offset": 753, "length": 3}], "confidence": 0.799}, "VendorName": {"value_type": "string", "value": "CINTAS\nFIRE PROTECTION", "content": "CINTAS FIRE PROTECTION", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 36.0}, {"x": 258.0, "y": 36.0}, {"x": 258.0, "y": 91.0}, {"x": 133.0, "y": 91.0}]}], "spans": [{"offset": 0, "length": 22}], "confidence": 0.425}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0000ANA-25636-VR-12688-png-1_png_jpg.rf.aca432379ac869dd473c591cb5793442.json b/Data/train/0000ANA-25636-VR-12688-png-1_png_jpg.rf.aca432379ac869dd473c591cb5793442.json new file mode 100644 index 0000000000000000000000000000000000000000..a4b944de3302b95e24716b1920ec5618f10f1d8a --- /dev/null +++ b/Data/train/0000ANA-25636-VR-12688-png-1_png_jpg.rf.aca432379ac869dd473c591cb5793442.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 806}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 300.0, "symbol": null}, "content": "300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 715.0, "y": 877.0}, {"x": 759.0, "y": 877.0}, {"x": 759.0, "y": 893.0}, {"x": 715.0, "y": 892.0}]}], "spans": [{"offset": 635, "length": 6}], "confidence": 0.954}, "BillingAddress": {"value_type": "address", "value": {"house_number": "1035", "po_box": null, "road": "KEYSTONE AVE", "city": "CATOOSA", "state": "OK", "postal_code": "74015", "country_region": null, "street_address": "1035 KEYSTONE AVE"}, "content": "1035 KEYSTONE AVE CATOOSA, OK 74015", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 76.0, "y": 243.0}, {"x": 226.0, "y": 243.0}, {"x": 226.0, "y": 283.0}, {"x": 76.0, "y": 283.0}]}], "spans": [{"offset": 98, "length": 35}], "confidence": 0.909}, "BillingAddressRecipient": {"value_type": "string", "value": "22CARGILLSTE\nPLATEPLUS, INC\nATTENTION: 8630", "content": "22CARGILLSTE PLATEPLUS, INC ATTENTION: 8630", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 175.0}, {"x": 262.0, "y": 176.0}, {"x": 262.0, "y": 238.0}, {"x": 75.0, "y": 237.0}]}], "spans": [{"offset": 54, "length": 43}], "confidence": 0.909}, "CustomerId": {"value_type": "string", "value": "22CARGILLSTE", "content": "22CARGILLSTE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 149.0, "y": 966.0}, {"x": 257.0, "y": 967.0}, {"x": 257.0, "y": 984.0}, {"x": 149.0, "y": 984.0}]}], "spans": [{"offset": 701, "length": 12}], "confidence": 0.938}, "CustomerName": {"value_type": "string", "value": "22CARGILLSTE\nPLATEPLUS, INC\nATTENTION: 8630", "content": "22CARGILLSTE PLATEPLUS, INC ATTENTION: 8630", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 175.0}, {"x": 262.0, "y": 176.0}, {"x": 262.0, "y": 238.0}, {"x": 75.0, "y": 237.0}]}], "spans": [{"offset": 54, "length": 43}], "confidence": 0.909}, "DueDate": {"value_type": "date", "value": "2021-07-19", "content": "7/19/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 744.0, "y": 295.0}, {"x": 808.0, "y": 295.0}, {"x": 808.0, "y": 311.0}, {"x": 744.0, "y": 310.0}]}], "spans": [{"offset": 215, "length": 9}], "confidence": 0.956}, "InvoiceDate": {"value_type": "date", "value": "2021-07-19", "content": "7/19/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 635.0, "y": 115.0}, {"x": 702.0, "y": 117.0}, {"x": 701.0, "y": 133.0}, {"x": 635.0, "y": 132.0}]}], "spans": [{"offset": 29, "length": 9}], "confidence": 0.957}, "InvoiceId": {"value_type": "string", "value": "25636", "content": "25636", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 771.0, "y": 117.0}, {"x": 810.0, "y": 118.0}, {"x": 810.0, "y": 133.0}, {"x": 771.0, "y": 132.0}]}], "spans": [{"offset": 39, "length": 5}], "confidence": 0.957}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 300.0, "symbol": null}, "content": "300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 716.0, "y": 837.0}, {"x": 760.0, "y": 837.0}, {"x": 760.0, "y": 853.0}, {"x": 717.0, "y": 852.0}]}], "spans": [{"offset": 605, "length": 6}], "confidence": 0.956}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 300.0, "symbol": null}, "content": "300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 744.0, "y": 358.0}, {"x": 788.0, "y": 358.0}, {"x": 788.0, "y": 373.0}, {"x": 745.0, "y": 373.0}]}], "spans": [{"offset": 305, "length": 6}], "confidence": 0.934}, "Description": {"value_type": "string", "value": "ADDITIONAL SERVICE\nWEEK OF JULY 12", "content": "ADDITIONAL SERVICE WEEK OF JULY 12", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 163.0, "y": 353.0}, {"x": 320.0, "y": 353.0}, {"x": 320.0, "y": 386.0}, {"x": 163.0, "y": 386.0}]}], "spans": [{"offset": 263, "length": 34}], "confidence": 0.931}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 353.0}, {"x": 125.0, "y": 353.0}, {"x": 126.0, "y": 367.0}, {"x": 121.0, "y": 367.0}]}], "spans": [{"offset": 261, "length": 1}], "confidence": 0.933}, "UnitPrice": {"value_type": "currency", "value": {"amount": 300.0, "symbol": null}, "content": "300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 559.0, "y": 356.0}, {"x": 604.0, "y": 356.0}, {"x": 604.0, "y": 372.0}, {"x": 560.0, "y": 371.0}]}], "spans": [{"offset": 298, "length": 6}], "confidence": 0.934}}, "content": "1\nADDITIONAL SERVICE WEEK OF JULY 12\n300.00\n300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 353.0}, {"x": 788.0, "y": 353.0}, {"x": 788.0, "y": 386.0}, {"x": 120.0, "y": 386.0}]}], "spans": [{"offset": 261, "length": 50}], "confidence": 0.89}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": "4725", "po_box": null, "road": "S. MEMORIAL", "city": "TULSA", "state": "OK", "postal_code": "74145", "country_region": null, "street_address": "4725 S. MEMORIAL SUITE A"}, "content": "4725 S. MEMORIAL, SUITE A\nTULSA, OK 74145", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 437.0, "y": 969.0}, {"x": 638.0, "y": 969.0}, {"x": 638.0, "y": 1010.0}, {"x": 437.0, "y": 1010.0}]}], "spans": [{"offset": 765, "length": 41}], "confidence": 0.833}, "RemittanceAddressRecipient": {"value_type": "string", "value": "ANAGO OF TULSA", "content": "ANAGO OF TULSA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 437.0, "y": 943.0}, {"x": 569.0, "y": 943.0}, {"x": 569.0, "y": 965.0}, {"x": 437.0, "y": 965.0}]}], "spans": [{"offset": 750, "length": 14}], "confidence": 0.932}, "ServiceAddress": {"value_type": "address", "value": {"house_number": "1035", "po_box": null, "road": "KEYSTONE AVE", "city": "CATOOSA", "state": "OK", "postal_code": "74015-0000", "country_region": null, "street_address": "1035 KEYSTONE AVE"}, "content": "1035 KEYSTONE AVE\nCATOOSA\nOK 74015-0000\nPO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 527.0, "y": 201.0}, {"x": 807.0, "y": 201.0}, {"x": 807.0, "y": 262.0}, {"x": 527.0, "y": 262.0}]}], "spans": [{"offset": 154, "length": 42}], "confidence": 0.421}, "ServiceAddressRecipient": {"value_type": "string", "value": "PLATEPLUS", "content": "PLATEPLUS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 526.0, "y": 179.0}, {"x": 611.0, "y": 179.0}, {"x": 612.0, "y": 196.0}, {"x": 527.0, "y": 196.0}]}], "spans": [{"offset": 144, "length": 9}], "confidence": 0.954}, "ServiceStartDate": {"value_type": "date", "value": null, "content": "JULY 12", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 222.0, "y": 371.0}, {"x": 269.0, "y": 371.0}, {"x": 269.0, "y": 386.0}, {"x": 222.0, "y": 386.0}]}], "spans": [{"offset": 290, "length": 7}], "confidence": 0.576}, "SubTotal": {"value_type": "currency", "value": {"amount": 300.0, "symbol": null}, "content": "300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 715.0, "y": 773.0}, {"x": 759.0, "y": 774.0}, {"x": 759.0, "y": 789.0}, {"x": 715.0, "y": 788.0}]}], "spans": [{"offset": 573, "length": 6}], "confidence": 0.957}, "VendorName": {"value_type": "string", "value": "Anago", "content": "Anago", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 91.0, "y": 39.0}, {"x": 282.0, "y": 39.0}, {"x": 282.0, "y": 115.0}, {"x": 91.0, "y": 116.0}]}], "spans": [{"offset": 0, "length": 5}], "confidence": 0.956}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0000ARN-210521-png-1_png_jpg.rf.1b34c2f594f13cfb9daaa0e1be3ad270.json b/Data/train/0000ARN-210521-png-1_png_jpg.rf.1b34c2f594f13cfb9daaa0e1be3ad270.json new file mode 100644 index 0000000000000000000000000000000000000000..639116071f9b6a253cdc49da50e7a51acde08284 --- /dev/null +++ b/Data/train/0000ARN-210521-png-1_png_jpg.rf.1b34c2f594f13cfb9daaa0e1be3ad270.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 575}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "Waterway Avenue", "city": "The Woodlands", "state": "TX", "postal_code": "Ste.525", "country_region": null, "street_address": "21 Waterway Avenue"}, "content": "21 Waterway Avenue Ste.525\nThe Woodlands, TX 77028", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 244.0}, {"x": 257.0, "y": 244.0}, {"x": 257.0, "y": 274.0}, {"x": 97.0, "y": 274.0}]}], "spans": [{"offset": 163, "length": 50}], "confidence": 0.892}, "BillingAddressRecipient": {"value_type": "string", "value": "Plateplus, Inc.\nAttention: 8850", "content": "Plateplus, Inc.\nAttention: 8850", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 215.0}, {"x": 184.0, "y": 215.0}, {"x": 184.0, "y": 243.0}, {"x": 96.0, "y": 243.0}]}], "spans": [{"offset": 131, "length": 31}], "confidence": 0.876}, "CustomerName": {"value_type": "string", "value": "Plateplus, Inc.\nAttention: 8850", "content": "Plateplus, Inc.\nAttention: 8850", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 215.0}, {"x": 184.0, "y": 215.0}, {"x": 184.0, "y": 243.0}, {"x": 96.0, "y": 243.0}]}], "spans": [{"offset": 131, "length": 31}], "confidence": 0.876}, "InvoiceDate": {"value_type": "date", "value": "2021-05-07", "content": "5/7/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 671.0, "y": 133.0}, {"x": 718.0, "y": 134.0}, {"x": 718.0, "y": 147.0}, {"x": 671.0, "y": 147.0}]}], "spans": [{"offset": 294, "length": 8}], "confidence": 0.978}, "InvoiceId": {"value_type": "string", "value": "210521", "content": "210521", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 773.0, "y": 133.0}, {"x": 814.0, "y": 133.0}, {"x": 814.0, "y": 148.0}, {"x": 773.0, "y": 147.0}]}], "spans": [{"offset": 303, "length": 6}], "confidence": 0.978}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1850.0, "symbol": "$"}, "content": "$1,850.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 781.0, "y": 1015.0}, {"x": 835.0, "y": 1014.0}, {"x": 835.0, "y": 1029.0}, {"x": 781.0, "y": 1028.0}]}], "spans": [{"offset": 566, "length": 9}], "confidence": 0.977}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1850.0, "symbol": null}, "content": "1,850.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 787.0, "y": 464.0}, {"x": 834.0, "y": 464.0}, {"x": 834.0, "y": 479.0}, {"x": 787.0, "y": 478.0}]}], "spans": [{"offset": 498, "length": 8}], "confidence": 0.831}, "Description": {"value_type": "string", "value": "Crane Wheel Assembly - repaired\n210521", "content": "Crane Wheel Assembly - repaired\n210521", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 295.0, "y": 463.0}, {"x": 475.0, "y": 463.0}, {"x": 475.0, "y": 524.0}, {"x": 295.0, "y": 524.0}]}], "spans": [{"offset": 457, "length": 31}, {"offset": 517, "length": 6}], "confidence": 0.442}, "ProductCode": {"value_type": "string", "value": "CRANE WHEEL", "content": "CRANE WHEEL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 176.0, "y": 464.0}, {"x": 268.0, "y": 464.0}, {"x": 268.0, "y": 478.0}, {"x": 176.0, "y": 478.0}]}], "spans": [{"offset": 445, "length": 11}], "confidence": 0.793}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 161.0, "y": 465.0}, {"x": 167.0, "y": 465.0}, {"x": 168.0, "y": 476.0}, {"x": 162.0, "y": 476.0}]}], "spans": [{"offset": 443, "length": 1}], "confidence": 0.82}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1850.0, "symbol": null}, "content": "1,850.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 676.0, "y": 464.0}, {"x": 724.0, "y": 464.0}, {"x": 723.0, "y": 478.0}, {"x": 676.0, "y": 478.0}]}], "spans": [{"offset": 489, "length": 8}], "confidence": 0.823}}, "content": "1\nCRANE WHEEL\nCrane Wheel Assembly - repaired\n1,850.00\n1,850.00\nShipper # 210521", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 161.0, "y": 463.0}, {"x": 834.0, "y": 463.0}, {"x": 834.0, "y": 524.0}, {"x": 161.0, "y": 524.0}]}], "spans": [{"offset": 443, "length": 80}], "confidence": 0.742}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Net 30", "content": "Net 30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 408.0}, {"x": 438.0, "y": 408.0}, {"x": 438.0, "y": 421.0}, {"x": 400.0, "y": 421.0}]}], "spans": [{"offset": 366, "length": 6}], "confidence": 0.939}, "PurchaseOrder": {"value_type": "string", "value": "Verbal J", "content": "Verbal J", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 271.0, "y": 408.0}, {"x": 318.0, "y": 408.0}, {"x": 318.0, "y": 422.0}, {"x": 271.0, "y": 422.0}]}], "spans": [{"offset": 357, "length": 8}], "confidence": 0.935}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "333", "po_box": null, "road": "Old Rock Road", "city": "Granite City", "state": "IL", "postal_code": "62040", "country_region": null, "street_address": "333 Old Rock Road"}, "content": "333 Old Rock Road\nGranite City, IL 62040", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 486.0, "y": 229.0}, {"x": 609.0, "y": 229.0}, {"x": 609.0, "y": 259.0}, {"x": 486.0, "y": 259.0}]}], "spans": [{"offset": 238, "length": 40}], "confidence": 0.892}, "ShippingAddressRecipient": {"value_type": "string", "value": "Plateplus, Inc.", "content": "Plateplus, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 485.0, "y": 215.0}, {"x": 561.0, "y": 215.0}, {"x": 561.0, "y": 229.0}, {"x": 485.0, "y": 229.0}]}], "spans": [{"offset": 222, "length": 15}], "confidence": 0.926}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 810.0, "y": 523.0}, {"x": 835.0, "y": 523.0}, {"x": 835.0, "y": 536.0}, {"x": 810.0, "y": 536.0}]}], "spans": [{"offset": 541, "length": 4}], "confidence": 0.599}, "VendorAddress": {"value_type": "address", "value": {"house_number": "3203", "po_box": null, "road": "MISSOURI AVE.", "city": "GRANITE CITY", "state": "IL", "postal_code": null, "country_region": null, "street_address": "3203 MISSOURI AVE."}, "content": "3203 MISSOURI AVE. GRANITE CITY, IL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 88.0, "y": 100.0}, {"x": 258.0, "y": 100.0}, {"x": 258.0, "y": 138.0}, {"x": 88.0, "y": 138.0}]}], "spans": [{"offset": 64, "length": 35}], "confidence": 0.882}, "VendorAddressRecipient": {"value_type": "string", "value": "ARNETTE PATTERN COMPANY, INC.\nMIDWEST MACHINING AND FABRICATING", "content": "ARNETTE PATTERN COMPANY, INC. MIDWEST MACHINING AND FABRICATING", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 60.0}, {"x": 440.0, "y": 60.0}, {"x": 440.0, "y": 98.0}, {"x": 87.0, "y": 98.0}]}], "spans": [{"offset": 0, "length": 63}], "confidence": 0.864}, "VendorName": {"value_type": "string", "value": "ARNETTE PATTERN COMPANY, INC.\nMIDWEST MACHINING AND FABRICATING", "content": "ARNETTE PATTERN COMPANY, INC. MIDWEST MACHINING AND FABRICATING", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 60.0}, {"x": 440.0, "y": 60.0}, {"x": 440.0, "y": 98.0}, {"x": 87.0, "y": 98.0}]}], "spans": [{"offset": 0, "length": 63}], "confidence": 0.864}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0000CME-CI-MD1235228-VR-7927-png-1_png_jpg.rf.6a0981cd05efc70f795eaef8f7176900.json b/Data/train/0000CME-CI-MD1235228-VR-7927-png-1_png_jpg.rf.6a0981cd05efc70f795eaef8f7176900.json new file mode 100644 index 0000000000000000000000000000000000000000..a468349e9b4871b527e9f9f260d5a21bb887b570 --- /dev/null +++ b/Data/train/0000CME-CI-MD1235228-VR-7927-png-1_png_jpg.rf.6a0981cd05efc70f795eaef8f7176900.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1472}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 110.0, "symbol": "USD"}, "content": "110.00 USD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 778.0, "y": 262.0}, {"x": 840.0, "y": 263.0}, {"x": 840.0, "y": 275.0}, {"x": 778.0, "y": 274.0}]}], "spans": [{"offset": 401, "length": 10}], "confidence": 0.912}, "BillingAddress": {"value_type": "address", "value": {"house_number": "251", "po_box": null, "road": "LITTLE FALLS DRIVE", "city": "WILMINGTON", "state": "DE", "postal_code": "19808", "country_region": "United States of America", "street_address": "251 LITTLE FALLS DRIVE"}, "content": "251 LITTLE FALLS DRIVE\nWILMINGTON, DE 19808\nUnited States of America", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 29.0, "y": 256.0}, {"x": 157.0, "y": 256.0}, {"x": 157.0, "y": 293.0}, {"x": 29.0, "y": 293.0}]}], "spans": [{"offset": 205, "length": 68}], "confidence": 0.877}, "BillingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS, INC.", "content": "PLATEPLUS, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 29.0, "y": 245.0}, {"x": 118.0, "y": 245.0}, {"x": 118.0, "y": 257.0}, {"x": 29.0, "y": 257.0}]}], "spans": [{"offset": 189, "length": 15}], "confidence": 0.935}, "CustomerId": {"value_type": "string", "value": "C-00098242", "content": "C-00098242", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 741.0, "y": 140.0}, {"x": 814.0, "y": 140.0}, {"x": 814.0, "y": 155.0}, {"x": 742.0, "y": 154.0}]}], "spans": [{"offset": 161, "length": 10}], "confidence": 0.957}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS, INC.", "content": "PLATEPLUS, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 29.0, "y": 245.0}, {"x": 118.0, "y": 245.0}, {"x": 118.0, "y": 257.0}, {"x": 29.0, "y": 257.0}]}], "spans": [{"offset": 189, "length": 15}], "confidence": 0.935}, "DueDate": {"value_type": "date", "value": "2021-06-30", "content": "06/30/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 757.0, "y": 247.0}, {"x": 811.0, "y": 247.0}, {"x": 811.0, "y": 260.0}, {"x": 757.0, "y": 259.0}]}], "spans": [{"offset": 378, "length": 10}], "confidence": 0.957}, "InvoiceDate": {"value_type": "date", "value": "2021-05-31", "content": "5/31/21", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 770.0, "y": 121.0}, {"x": 814.0, "y": 121.0}, {"x": 814.0, "y": 137.0}, {"x": 770.0, "y": 135.0}]}], "spans": [{"offset": 140, "length": 7}], "confidence": 0.957}, "InvoiceId": {"value_type": "string", "value": "CI-MD1235228", "content": "CI-MD1235228", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 725.0, "y": 102.0}, {"x": 815.0, "y": 103.0}, {"x": 815.0, "y": 118.0}, {"x": 724.0, "y": 117.0}]}], "spans": [{"offset": 113, "length": 12}], "confidence": 0.957}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 110.0, "symbol": "USD"}, "content": "110.00\nUSD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 783.0, "y": 542.0}, {"x": 851.0, "y": 545.0}, {"x": 850.0, "y": 559.0}, {"x": 782.0, "y": 556.0}]}], "spans": [{"offset": 917, "length": 10}], "confidence": 0.913}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 110.0, "symbol": null}, "content": "110.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 832.0, "y": 380.0}, {"x": 864.0, "y": 380.0}, {"x": 864.0, "y": 391.0}, {"x": 833.0, "y": 390.0}]}], "spans": [{"offset": 695, "length": 6}], "confidence": 0.93}, "Date": {"value_type": "date", "value": "2021-04-30", "content": "4/1/21\n4/30/21", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 317.0, "y": 378.0}, {"x": 428.0, "y": 380.0}, {"x": 428.0, "y": 392.0}, {"x": 317.0, "y": 390.0}]}], "spans": [{"offset": 656, "length": 14}], "confidence": 0.931}, "Description": {"value_type": "string", "value": "COMEX Device - Real Time (CME\nDirect)", "content": "COMEX Device - Real Time (CME Direct)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 379.0}, {"x": 249.0, "y": 379.0}, {"x": 249.0, "y": 402.0}, {"x": 87.0, "y": 402.0}]}], "spans": [{"offset": 618, "length": 37}], "confidence": 0.93}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 380.0}, {"x": 502.0, "y": 380.0}, {"x": 502.0, "y": 390.0}, {"x": 482.0, "y": 390.0}]}], "spans": [{"offset": 671, "length": 4}], "confidence": 0.933}, "Tax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 742.0, "y": 380.0}, {"x": 762.0, "y": 380.0}, {"x": 762.0, "y": 390.0}, {"x": 742.0, "y": 390.0}]}], "spans": [{"offset": 690, "length": 4}], "confidence": 0.933}, "UnitPrice": {"value_type": "currency", "value": {"amount": 110.0, "symbol": null}, "content": "110.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 552.0, "y": 380.0}, {"x": 583.0, "y": 380.0}, {"x": 583.0, "y": 391.0}, {"x": 552.0, "y": 390.0}]}], "spans": [{"offset": 676, "length": 6}], "confidence": 0.933}}, "content": "COMEX Device - Real Time (CME Direct)\n4/1/21\n4/30/21\n1.00\n110.00\n110.00\n0.00\n110.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 379.0}, {"x": 864.0, "y": 379.0}, {"x": 864.0, "y": 402.0}, {"x": 87.0, "y": 402.0}]}], "spans": [{"offset": 618, "length": 83}], "confidence": 0.877}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 844.0, "y": 419.0}, {"x": 864.0, "y": 419.0}, {"x": 864.0, "y": 429.0}, {"x": 844.0, "y": 429.0}]}], "spans": [{"offset": 780, "length": 4}], "confidence": 0.932}, "Date": {"value_type": "date", "value": "2021-04-30", "content": "4/1/21\n4/30/21", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 317.0, "y": 418.0}, {"x": 428.0, "y": 416.0}, {"x": 428.0, "y": 430.0}, {"x": 317.0, "y": 432.0}]}], "spans": [{"offset": 745, "length": 14}], "confidence": 0.931}, "Description": {"value_type": "string", "value": "COMEX Waived Desktop Device (CME\nDirect)", "content": "COMEX Waived Desktop Device (CME Direct)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 417.0}, {"x": 271.0, "y": 417.0}, {"x": 271.0, "y": 442.0}, {"x": 87.0, "y": 442.0}]}], "spans": [{"offset": 704, "length": 40}], "confidence": 0.932}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 419.0}, {"x": 502.0, "y": 419.0}, {"x": 502.0, "y": 429.0}, {"x": 482.0, "y": 429.0}]}], "spans": [{"offset": 760, "length": 4}], "confidence": 0.933}, "Tax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 742.0, "y": 419.0}, {"x": 762.0, "y": 419.0}, {"x": 762.0, "y": 429.0}, {"x": 742.0, "y": 429.0}]}], "spans": [{"offset": 775, "length": 4}], "confidence": 0.932}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 562.0, "y": 419.0}, {"x": 584.0, "y": 419.0}, {"x": 584.0, "y": 429.0}, {"x": 562.0, "y": 429.0}]}], "spans": [{"offset": 765, "length": 4}], "confidence": 0.933}}, "content": "2\nCOMEX Waived Desktop Device (CME Direct)\n4/1/21\n4/30/21\n2.00\n0.00\n0.00\n0.00\n0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 54.0, "y": 417.0}, {"x": 864.0, "y": 417.0}, {"x": 864.0, "y": 442.0}, {"x": 54.0, "y": 442.0}]}], "spans": [{"offset": 702, "length": 82}], "confidence": 0.879}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 844.0, "y": 457.0}, {"x": 865.0, "y": 457.0}, {"x": 864.0, "y": 468.0}, {"x": 844.0, "y": 467.0}]}], "spans": [{"offset": 862, "length": 4}], "confidence": 0.932}, "Date": {"value_type": "date", "value": "2021-04-30", "content": "4/1/21\n4/30/21", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 316.0, "y": 455.0}, {"x": 428.0, "y": 457.0}, {"x": 428.0, "y": 469.0}, {"x": 316.0, "y": 467.0}]}], "spans": [{"offset": 827, "length": 14}], "confidence": 0.931}, "Description": {"value_type": "string", "value": "COMEX Waived Mobile Device (CME\nDirect)", "content": "COMEX Waived Mobile Device (CME Direct)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 455.0}, {"x": 263.0, "y": 455.0}, {"x": 263.0, "y": 481.0}, {"x": 87.0, "y": 481.0}]}], "spans": [{"offset": 787, "length": 39}], "confidence": 0.931}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 456.0}, {"x": 502.0, "y": 456.0}, {"x": 502.0, "y": 467.0}, {"x": 482.0, "y": 467.0}]}], "spans": [{"offset": 842, "length": 4}], "confidence": 0.933}, "Tax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 742.0, "y": 457.0}, {"x": 762.0, "y": 457.0}, {"x": 762.0, "y": 468.0}, {"x": 741.0, "y": 467.0}]}], "spans": [{"offset": 857, "length": 4}], "confidence": 0.933}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 563.0, "y": 457.0}, {"x": 583.0, "y": 457.0}, {"x": 583.0, "y": 467.0}, {"x": 563.0, "y": 467.0}]}], "spans": [{"offset": 847, "length": 4}], "confidence": 0.932}}, "content": "3\nCOMEX Waived Mobile Device (CME Direct)\n4/1/21\n4/30/21\n3.00\n0.00\n0.00\n0.00\n0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 53.0, "y": 455.0}, {"x": 865.0, "y": 455.0}, {"x": 865.0, "y": 481.0}, {"x": 53.0, "y": 481.0}]}], "spans": [{"offset": 785, "length": 81}], "confidence": 0.88}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"SWIFT": {"value_type": "string", "value": "CHASUS33", "content": "CHASUS33", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 363.0, "y": 989.0}, {"x": 420.0, "y": 989.0}, {"x": 420.0, "y": 1002.0}, {"x": 363.0, "y": 1002.0}]}], "spans": [{"offset": 1349, "length": 8}], "confidence": 0.788}}, "content": null, "bounding_regions": [], "spans": [], "confidence": 0.995}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O Box 73672", "road": null, "city": "Chicago", "state": "IL", "postal_code": "60673-7672", "country_region": null, "street_address": "P.O Box 73672"}, "content": "P.O Box 73672\nChicago, IL 60673-7672", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 32.0, "y": 967.0}, {"x": 146.0, "y": 967.0}, {"x": 146.0, "y": 991.0}, {"x": 32.0, "y": 991.0}]}], "spans": [{"offset": 1185, "length": 36}], "confidence": 0.894}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Chicago Mercantile Exchange Inc.\nAttn: Accounts Receivable", "content": "Chicago Mercantile Exchange Inc.\nAttn: Accounts Receivable", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 31.0, "y": 942.0}, {"x": 192.0, "y": 942.0}, {"x": 192.0, "y": 968.0}, {"x": 31.0, "y": 968.0}]}], "spans": [{"offset": 1126, "length": 58}], "confidence": 0.888}, "ServiceEndDate": {"value_type": "date", "value": "2021-04-30", "content": "4/30/21", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 392.0, "y": 420.0}, {"x": 428.0, "y": 419.0}, {"x": 428.0, "y": 430.0}, {"x": 392.0, "y": 430.0}]}], "spans": [{"offset": 752, "length": 7}], "confidence": 0.954}, "ServiceStartDate": {"value_type": "date", "value": "2021-04-01", "content": "4/1/21", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 317.0, "y": 418.0}, {"x": 345.0, "y": 418.0}, {"x": 345.0, "y": 428.0}, {"x": 317.0, "y": 429.0}]}], "spans": [{"offset": 745, "length": 6}], "confidence": 0.956}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "251", "po_box": null, "road": "LITTLE FALLS DRIVE", "city": "WILMINGTON", "state": "DE", "postal_code": "19808", "country_region": "United States of America", "street_address": "251 LITTLE FALLS DRIVE"}, "content": "251 LITTLE FALLS DRIVE\nWILMINGTON, DE 19808\nUnited States of America", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 283.0, "y": 256.0}, {"x": 408.0, "y": 256.0}, {"x": 408.0, "y": 293.0}, {"x": 283.0, "y": 293.0}]}], "spans": [{"offset": 299, "length": 68}], "confidence": 0.871}, "ShippingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS, INC.", "content": "PLATEPLUS, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 283.0, "y": 244.0}, {"x": 374.0, "y": 244.0}, {"x": 374.0, "y": 257.0}, {"x": 283.0, "y": 257.0}]}], "spans": [{"offset": 283, "length": 15}], "confidence": 0.934}, "SubTotal": {"value_type": "currency", "value": {"amount": 110.0, "symbol": "USD"}, "content": "110.00 USD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 783.0, "y": 502.0}, {"x": 851.0, "y": 504.0}, {"x": 851.0, "y": 517.0}, {"x": 783.0, "y": 515.0}]}], "spans": [{"offset": 878, "length": 10}], "confidence": 0.931}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "USD"}, "content": "0.00\nUSD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 794.0, "y": 517.0}, {"x": 851.0, "y": 520.0}, {"x": 850.0, "y": 533.0}, {"x": 793.0, "y": 530.0}]}], "spans": [{"offset": 901, "length": 8}], "confidence": 0.91}, "VendorAddress": {"value_type": "address", "value": {"house_number": "20", "po_box": null, "road": "S. Wacker Drive", "city": "Chicago", "state": "IL", "postal_code": "60606", "country_region": null, "street_address": "20 S. Wacker Drive"}, "content": "20 S. Wacker Drive Chicago, IL 60606", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 31.0, "y": 92.0}, {"x": 144.0, "y": 92.0}, {"x": 144.0, "y": 122.0}, {"x": 31.0, "y": 122.0}]}], "spans": [{"offset": 43, "length": 36}], "confidence": 0.898}, "VendorAddressRecipient": {"value_type": "string", "value": "Chicago Mercantile Exchange Inc.", "content": "Chicago Mercantile Exchange Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 31.0, "y": 75.0}, {"x": 232.0, "y": 77.0}, {"x": 232.0, "y": 95.0}, {"x": 31.0, "y": 93.0}]}], "spans": [{"offset": 10, "length": 32}], "confidence": 0.913}, "VendorName": {"value_type": "string", "value": "CME Group", "content": "CME Group", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 31.0, "y": 30.0}, {"x": 223.0, "y": 36.0}, {"x": 222.0, "y": 75.0}, {"x": 30.0, "y": 69.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": 0.932}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0000JSW-13811-png-1_png_jpg.rf.08838a0cc743513f31ce31ecd4f0c0a5.json b/Data/train/0000JSW-13811-png-1_png_jpg.rf.08838a0cc743513f31ce31ecd4f0c0a5.json new file mode 100644 index 0000000000000000000000000000000000000000..1c150b5340d59b197688c3e0757a07229991f54e --- /dev/null +++ b/Data/train/0000JSW-13811-png-1_png_jpg.rf.08838a0cc743513f31ce31ecd4f0c0a5.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1166}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "WATERWAY AVE", "city": "THE WOODLANDS", "state": "TX", "postal_code": "77380", "country_region": null, "street_address": "21 WATERWAY AVE STE 525"}, "content": "21 WATERWAY AVE\nSTE 525\nTHE WOODLANDS, TX 77380", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 265.0}, {"x": 281.0, "y": 265.0}, {"x": 281.0, "y": 316.0}, {"x": 79.0, "y": 316.0}]}], "spans": [{"offset": 394, "length": 47}], "confidence": 0.88}, "BillingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS, INC.", "content": "PLATEPLUS, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 78.0, "y": 249.0}, {"x": 207.0, "y": 249.0}, {"x": 207.0, "y": 266.0}, {"x": 78.0, "y": 266.0}]}], "spans": [{"offset": 378, "length": 15}], "confidence": 0.936}, "CustomerId": {"value_type": "string", "value": "( 000586-000", "content": "( 000586-000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 192.0, "y": 224.0}, {"x": 286.0, "y": 224.0}, {"x": 286.0, "y": 242.0}, {"x": 192.0, "y": 242.0}]}], "spans": [{"offset": 363, "length": 12}], "confidence": 0.672}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS, INC.", "content": "PLATEPLUS, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 78.0, "y": 249.0}, {"x": 207.0, "y": 249.0}, {"x": 207.0, "y": 266.0}, {"x": 78.0, "y": 266.0}]}], "spans": [{"offset": 378, "length": 15}], "confidence": 0.936}, "DueDate": {"value_type": "date", "value": "2019-06-22", "content": "06/22/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 761.0, "y": 185.0}, {"x": 834.0, "y": 186.0}, {"x": 835.0, "y": 201.0}, {"x": 761.0, "y": 201.0}]}], "spans": [{"offset": 344, "length": 10}], "confidence": 0.954}, "InvoiceDate": {"value_type": "date", "value": "2019-05-23", "content": "05/23/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 676.0, "y": 107.0}, {"x": 751.0, "y": 107.0}, {"x": 751.0, "y": 124.0}, {"x": 676.0, "y": 124.0}]}], "spans": [{"offset": 113, "length": 10}], "confidence": 0.955}, "InvoiceId": {"value_type": "string", "value": "F000013811", "content": "F000013811", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 648.0, "y": 58.0}, {"x": 779.0, "y": 57.0}, {"x": 779.0, "y": 81.0}, {"x": 648.0, "y": 81.0}]}], "spans": [{"offset": 89, "length": 10}], "confidence": 0.95}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 14046.88, "symbol": null}, "content": "14,046.88", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 793.0, "y": 586.0}, {"x": 858.0, "y": 585.0}, {"x": 858.0, "y": 602.0}, {"x": 794.0, "y": 602.0}]}], "spans": [{"offset": 902, "length": 9}], "confidence": 0.943}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 14046.88, "symbol": null}, "content": "14,046.88", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 793.0, "y": 457.0}, {"x": 857.0, "y": 456.0}, {"x": 857.0, "y": 472.0}, {"x": 793.0, "y": 471.0}]}], "spans": [{"offset": 791, "length": 9}], "confidence": 0.931}, "Description": {"value_type": "string", "value": "H7261\nHot Rolled Coil 7261", "content": "H7261 Hot Rolled Coil 7261", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 210.0, "y": 456.0}, {"x": 352.0, "y": 456.0}, {"x": 352.0, "y": 488.0}, {"x": 210.0, "y": 488.0}]}], "spans": [{"offset": 732, "length": 26}], "confidence": 0.647}, "Quantity": {"value_type": "float", "value": 44950.0, "content": "44,950 LBS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 115.0, "y": 456.0}, {"x": 194.0, "y": 456.0}, {"x": 194.0, "y": 471.0}, {"x": 115.0, "y": 471.0}]}], "spans": [{"offset": 721, "length": 10}], "confidence": 0.819}, "UnitPrice": {"value_type": "currency", "value": {"amount": 31.25, "symbol": null}, "content": "31.2500 CWT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 622.0, "y": 455.0}, {"x": 714.0, "y": 455.0}, {"x": 714.0, "y": 471.0}, {"x": 622.0, "y": 471.0}]}], "spans": [{"offset": 779, "length": 11}], "confidence": 0.66}}, "content": "001\n44,950 LBS\nH7261 Hot Rolled Coil 7261 TAG NBR LOT NBR LBS\n31.2500 CWT\n14,046.88", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 47.0, "y": 455.0}, {"x": 857.0, "y": 455.0}, {"x": 857.0, "y": 518.0}, {"x": 47.0, "y": 518.0}]}], "spans": [{"offset": 717, "length": 83}], "confidence": 0.745}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"SWIFT": {"value_type": "string", "value": "HATRUS44", "content": "HATRUS44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 378.0, "y": 796.0}, {"x": 456.0, "y": 796.0}, {"x": 456.0, "y": 813.0}, {"x": 378.0, "y": 813.0}]}], "spans": [{"offset": 1079, "length": 8}], "confidence": 0.792}}, "content": null, "bounding_regions": [], "spans": [], "confidence": 0.995}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Net 30 Days", "content": "Net 30 Days", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 386.0, "y": 185.0}, {"x": 472.0, "y": 186.0}, {"x": 472.0, "y": 203.0}, {"x": 386.0, "y": 202.0}]}], "spans": [{"offset": 332, "length": 11}], "confidence": 0.926}, "PurchaseOrder": {"value_type": "string", "value": "LO-9127", "content": "LO-9127", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 370.0, "y": 429.0}, {"x": 430.0, "y": 431.0}, {"x": 429.0, "y": 447.0}, {"x": 370.0, "y": 446.0}]}], "spans": [{"offset": 680, "length": 7}], "confidence": 0.843}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. Box 74855", "road": null, "city": "Chicago", "state": "IL", "postal_code": "60694-4855", "country_region": null, "street_address": "P.O. Box 74855"}, "content": "P.O. Box 74855\nChicago, IL 60694-4855", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 334.0, "y": 666.0}, {"x": 496.0, "y": 666.0}, {"x": 496.0, "y": 700.0}, {"x": 334.0, "y": 700.0}]}], "spans": [{"offset": 956, "length": 37}], "confidence": 0.894}, "RemittanceAddressRecipient": {"value_type": "string", "value": "JSW Steel USA Ohio, Inc.", "content": "JSW Steel USA Ohio, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 335.0, "y": 650.0}, {"x": 512.0, "y": 650.0}, {"x": 512.0, "y": 667.0}, {"x": 335.0, "y": 667.0}]}], "spans": [{"offset": 931, "length": 24}], "confidence": 0.908}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "266", "po_box": null, "road": "BLAIR BEND DR", "city": "LOUDON", "state": "TN", "postal_code": "37774", "country_region": null, "street_address": "266 BLAIR BEND DR"}, "content": "266 BLAIR BEND DR\nLOUDON, TN 37774", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 527.0, "y": 265.0}, {"x": 671.0, "y": 265.0}, {"x": 671.0, "y": 300.0}, {"x": 527.0, "y": 300.0}]}], "spans": [{"offset": 507, "length": 34}], "confidence": 0.896}, "ShippingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS, INC.", "content": "PLATEPLUS, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 527.0, "y": 247.0}, {"x": 656.0, "y": 249.0}, {"x": 656.0, "y": 268.0}, {"x": 527.0, "y": 266.0}]}], "spans": [{"offset": 491, "length": 15}], "confidence": 0.932}, "VendorAddress": {"value_type": "address", "value": {"house_number": "1500", "po_box": null, "road": "Commercial Avenue", "city": "Mingo Junction", "state": "OH", "postal_code": "43938", "country_region": null, "street_address": "1500 Commercial Avenue"}, "content": "1500 Commercial Avenue Mingo Junction, OH 43938", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 225.0, "y": 81.0}, {"x": 402.0, "y": 81.0}, {"x": 402.0, "y": 114.0}, {"x": 225.0, "y": 114.0}]}], "spans": [{"offset": 29, "length": 47}], "confidence": 0.889}, "VendorAddressRecipient": {"value_type": "string", "value": "zsw Steel USA Ohio, Inc.", "content": "zsw Steel USA Ohio, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 225.0, "y": 63.0}, {"x": 423.0, "y": 63.0}, {"x": 423.0, "y": 81.0}, {"x": 225.0, "y": 81.0}]}], "spans": [{"offset": 4, "length": 24}], "confidence": 0.538}, "VendorName": {"value_type": "string", "value": "JSW", "content": "JSW", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 63.0}, {"x": 167.0, "y": 60.0}, {"x": 169.0, "y": 112.0}, {"x": 89.0, "y": 115.0}]}], "spans": [{"offset": 0, "length": 3}], "confidence": 0.945}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0000NSBS-1122809-png-1_png_jpg.rf.27099ac9a80eccc8a2ba710e1284ad21.json b/Data/train/0000NSBS-1122809-png-1_png_jpg.rf.27099ac9a80eccc8a2ba710e1284ad21.json new file mode 100644 index 0000000000000000000000000000000000000000..9d81e22ae06f104bb6fc472348e0f2519c21b229 --- /dev/null +++ b/Data/train/0000NSBS-1122809-png-1_png_jpg.rf.27099ac9a80eccc8a2ba710e1284ad21.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1939}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": "P.O. Box suite 525", "road": "Waterway Avenue", "city": "The Woodlands", "state": "TX", "postal_code": "77385", "country_region": null, "street_address": "21 Waterway Avenue P.O. Box suite 525"}, "content": "21 Waterway Avenue\nP.O. Box suite 525\nThe Woodlands, TX 77385", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 81.0, "y": 173.0}, {"x": 226.0, "y": 173.0}, {"x": 226.0, "y": 215.0}, {"x": 81.0, "y": 215.0}]}], "spans": [{"offset": 160, "length": 61}], "confidence": 0.891}, "BillingAddressRecipient": {"value_type": "string", "value": "Plateplus, Inc.\nAttn. Accounts Payable", "content": "Plateplus, Inc.\nAttn. Accounts Payable", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 81.0, "y": 158.0}, {"x": 205.0, "y": 158.0}, {"x": 205.0, "y": 230.0}, {"x": 81.0, "y": 230.0}]}], "spans": [{"offset": 144, "length": 15}, {"offset": 222, "length": 22}], "confidence": 0.908}, "CustomerId": {"value_type": "string", "value": "1959", "content": "1959", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 101.0, "y": 263.0}, {"x": 126.0, "y": 263.0}, {"x": 125.0, "y": 276.0}, {"x": 101.0, "y": 276.0}]}], "spans": [{"offset": 257, "length": 4}], "confidence": 0.943}, "CustomerName": {"value_type": "string", "value": "Plateplus, Inc.\nAttn. Accounts Payable", "content": "Plateplus, Inc.\nAttn. Accounts Payable", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 81.0, "y": 158.0}, {"x": 205.0, "y": 158.0}, {"x": 205.0, "y": 230.0}, {"x": 81.0, "y": 230.0}]}], "spans": [{"offset": 144, "length": 15}, {"offset": 222, "length": 22}], "confidence": 0.908}, "DueDate": {"value_type": "date", "value": "2020-08-23", "content": "Aug 23, 2020.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 234.0, "y": 962.0}, {"x": 311.0, "y": 962.0}, {"x": 311.0, "y": 979.0}, {"x": 234.0, "y": 979.0}]}], "spans": [{"offset": 1362, "length": 13}], "confidence": 0.934}, "InvoiceDate": {"value_type": "date", "value": "2020-07-24", "content": "07/24/20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 652.0, "y": 165.0}, {"x": 698.0, "y": 165.0}, {"x": 698.0, "y": 177.0}, {"x": 652.0, "y": 176.0}]}], "spans": [{"offset": 439, "length": 8}], "confidence": 0.951}, "InvoiceId": {"value_type": "string", "value": "1122809", "content": "1122809", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 765.0, "y": 165.0}, {"x": 809.0, "y": 165.0}, {"x": 809.0, "y": 177.0}, {"x": 765.0, "y": 177.0}]}], "spans": [{"offset": 458, "length": 7}], "confidence": 0.951}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 43320.74, "symbol": "$"}, "content": "$43,320.74", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 764.0, "y": 993.0}, {"x": 825.0, "y": 993.0}, {"x": 825.0, "y": 1006.0}, {"x": 764.0, "y": 1006.0}]}], "spans": [{"offset": 1469, "length": 10}], "confidence": 0.943}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9942.27, "symbol": "$"}, "content": "$9,942.27", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 767.0, "y": 354.0}, {"x": 821.0, "y": 354.0}, {"x": 821.0, "y": 367.0}, {"x": 767.0, "y": 367.0}]}], "spans": [{"offset": 686, "length": 9}], "confidence": 0.332}, "Description": {"value_type": "string", "value": "Hot Rolled Bands\n1011-33\n0.112 Min X 60.000\nin.", "content": "Hot Rolled Bands\n1011-33\n0.112 Min X 60.000 in.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 292.0, "y": 354.0}, {"x": 441.0, "y": 354.0}, {"x": 441.0, "y": 396.0}, {"x": 292.0, "y": 396.0}]}], "spans": [{"offset": 636, "length": 16}, {"offset": 696, "length": 7}, {"offset": 714, "length": 22}], "confidence": 0.156}, "UnitPrice": {"value_type": "currency", "value": {"amount": 21.35, "symbol": "$"}, "content": "$21.35", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 718.0, "y": 354.0}, {"x": 756.0, "y": 354.0}, {"x": 756.0, "y": 367.0}, {"x": 719.0, "y": 367.0}]}], "spans": [{"offset": 679, "length": 6}], "confidence": 0.295}}, "content": "4\nLO-9303-4\n465331 - 1\nHot Rolled Bands\n253931\n2046005\n46,568 lbs\n$21.35\n$9,942.27\n1011-33\n21,123 kg\n0.112 Min X 60.000 in.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 27.0, "y": 353.0}, {"x": 821.0, "y": 353.0}, {"x": 821.0, "y": 396.0}, {"x": 27.0, "y": 396.0}]}], "spans": [{"offset": 613, "length": 123}], "confidence": 0.513}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": -526.22, "symbol": "$"}, "content": "($526.22)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 775.0, "y": 399.0}, {"x": 829.0, "y": 399.0}, {"x": 829.0, "y": 414.0}, {"x": 775.0, "y": 413.0}]}], "spans": [{"offset": 778, "length": 9}], "confidence": 0.296}, "Description": {"value_type": "string", "value": "Prepaid Freight $2.35", "content": "Prepaid Freight $2.35", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 290.0, "y": 399.0}, {"x": 409.0, "y": 399.0}, {"x": 409.0, "y": 413.0}, {"x": 290.0, "y": 413.0}]}], "spans": [{"offset": 737, "length": 21}], "confidence": 0.155}, "UnitPrice": {"value_type": "currency", "value": {"amount": -1.13, "symbol": "$"}, "content": "($1.13)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 717.0, "y": 400.0}, {"x": 755.0, "y": 400.0}, {"x": 755.0, "y": 414.0}, {"x": 717.0, "y": 413.0}]}], "spans": [{"offset": 770, "length": 7}], "confidence": 0.057}}, "content": "Prepaid Freight $2.35 Fit. Equal\n($1.13)\n($526.22)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 290.0, "y": 399.0}, {"x": 829.0, "y": 399.0}, {"x": 829.0, "y": 414.0}, {"x": 290.0, "y": 414.0}]}], "spans": [{"offset": 737, "length": 50}], "confidence": 0.396}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10093.85, "symbol": "$"}, "content": "$10,093.85", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 767.0, "y": 430.0}, {"x": 827.0, "y": 429.0}, {"x": 827.0, "y": 443.0}, {"x": 767.0, "y": 442.0}]}], "spans": [{"offset": 861, "length": 10}], "confidence": 0.366}, "Description": {"value_type": "string", "value": "Hot Rolled Bands\n1011-33\n0.112 Min X 60.000\nin.", "content": "Hot Rolled Bands\n1011-33\n0.112 Min X 60.000 in.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 292.0, "y": 430.0}, {"x": 441.0, "y": 430.0}, {"x": 441.0, "y": 471.0}, {"x": 292.0, "y": 471.0}]}], "spans": [{"offset": 811, "length": 16}, {"offset": 872, "length": 7}, {"offset": 890, "length": 22}], "confidence": 0.141}, "UnitPrice": {"value_type": "currency", "value": {"amount": 21.35, "symbol": "$"}, "content": "$21.35", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 718.0, "y": 430.0}, {"x": 756.0, "y": 429.0}, {"x": 756.0, "y": 442.0}, {"x": 719.0, "y": 442.0}]}], "spans": [{"offset": 854, "length": 6}], "confidence": 0.294}}, "content": "3\nLO-9303-4\n465331 - 1\nHot Rolled Bands\n253931\n2046004\n47,278 lbs\n$21.35\n$10,093.85\n1011-33\n21,445 kg\n0.112 Min X 60.000 in.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 26.0, "y": 429.0}, {"x": 827.0, "y": 429.0}, {"x": 827.0, "y": 471.0}, {"x": 26.0, "y": 471.0}]}], "spans": [{"offset": 788, "length": 124}], "confidence": 0.518}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": -534.24, "symbol": "$"}, "content": "($534.24)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 775.0, "y": 475.0}, {"x": 828.0, "y": 474.0}, {"x": 828.0, "y": 489.0}, {"x": 775.0, "y": 488.0}]}], "spans": [{"offset": 954, "length": 9}], "confidence": 0.296}, "Description": {"value_type": "string", "value": "Prepaid Freight $2.35", "content": "Prepaid Freight $2.35", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 290.0, "y": 473.0}, {"x": 410.0, "y": 474.0}, {"x": 410.0, "y": 490.0}, {"x": 290.0, "y": 488.0}]}], "spans": [{"offset": 913, "length": 21}], "confidence": 0.151}, "UnitPrice": {"value_type": "currency", "value": {"amount": -1.13, "symbol": "$"}, "content": "($1.13)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 716.0, "y": 474.0}, {"x": 754.0, "y": 474.0}, {"x": 754.0, "y": 488.0}, {"x": 716.0, "y": 488.0}]}], "spans": [{"offset": 946, "length": 7}], "confidence": 0.056}}, "content": "Prepaid Freight $2.35 Fit. Equal\n($1.13)\n($534.24)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 290.0, "y": 474.0}, {"x": 828.0, "y": 474.0}, {"x": 828.0, "y": 489.0}, {"x": 290.0, "y": 489.0}]}], "spans": [{"offset": 913, "length": 50}], "confidence": 0.385}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9912.59, "symbol": "$"}, "content": "$9,912.59", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 767.0, "y": 504.0}, {"x": 821.0, "y": 504.0}, {"x": 821.0, "y": 517.0}, {"x": 767.0, "y": 517.0}]}], "spans": [{"offset": 1037, "length": 9}], "confidence": 0.337}, "Description": {"value_type": "string", "value": "Hot Rolled Bands\n1011-33\n0.112 Min X 60.000\nin.", "content": "Hot Rolled Bands\n1011-33 0.112 Min X 60.000 in.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 292.0, "y": 504.0}, {"x": 441.0, "y": 504.0}, {"x": 441.0, "y": 546.0}, {"x": 292.0, "y": 546.0}]}], "spans": [{"offset": 987, "length": 16}, {"offset": 1047, "length": 30}], "confidence": 0.116}, "OrderQuantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 274.0, "y": 505.0}, {"x": 280.0, "y": 505.0}, {"x": 280.0, "y": 516.0}, {"x": 274.0, "y": 516.0}]}], "spans": [{"offset": 985, "length": 1}], "confidence": 0.049}, "UnitPrice": {"value_type": "currency", "value": {"amount": 21.35, "symbol": "$"}, "content": "$21.35", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 719.0, "y": 504.0}, {"x": 755.0, "y": 504.0}, {"x": 756.0, "y": 517.0}, {"x": 719.0, "y": 517.0}]}], "spans": [{"offset": 1030, "length": 6}], "confidence": 0.294}}, "content": "2\nLO-9303-4\n465331 - 1\nHot Rolled Bands\n253931\n2046003\n46,429 lbs\n$21.35\n$9,912.59\n1011-33 0.112 Min X 60.000 in.\n21,060 kg", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 27.0, "y": 504.0}, {"x": 821.0, "y": 504.0}, {"x": 821.0, "y": 546.0}, {"x": 27.0, "y": 546.0}]}], "spans": [{"offset": 964, "length": 123}], "confidence": 0.563}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": -524.65, "symbol": "$"}, "content": "($524.65)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 775.0, "y": 550.0}, {"x": 830.0, "y": 549.0}, {"x": 830.0, "y": 564.0}, {"x": 775.0, "y": 563.0}]}], "spans": [{"offset": 1129, "length": 9}], "confidence": 0.297}, "Description": {"value_type": "string", "value": "Prepaid Freight $2.35", "content": "Prepaid Freight $2.35", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 291.0, "y": 549.0}, {"x": 409.0, "y": 549.0}, {"x": 409.0, "y": 563.0}, {"x": 291.0, "y": 563.0}]}], "spans": [{"offset": 1088, "length": 21}], "confidence": 0.196}, "UnitPrice": {"value_type": "currency", "value": {"amount": -1.13, "symbol": "$"}, "content": "($1.13)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 717.0, "y": 549.0}, {"x": 755.0, "y": 549.0}, {"x": 755.0, "y": 563.0}, {"x": 717.0, "y": 562.0}]}], "spans": [{"offset": 1121, "length": 7}], "confidence": 0.036}}, "content": "Prepaid Freight $2.35 Fit. Equal\n($1.13)\n($524.65)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 291.0, "y": 549.0}, {"x": 830.0, "y": 549.0}, {"x": 830.0, "y": 564.0}, {"x": 291.0, "y": 564.0}]}], "spans": [{"offset": 1088, "length": 50}], "confidence": 0.356}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 11081.68, "symbol": "$"}, "content": "$11,081.68", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 767.0, "y": 580.0}, {"x": 825.0, "y": 579.0}, {"x": 826.0, "y": 592.0}, {"x": 767.0, "y": 592.0}]}], "spans": [{"offset": 1202, "length": 10}], "confidence": 0.35}, "Description": {"value_type": "string", "value": "Hot Rolled Bands\n1011-33\n0.056 Min X 48.000\nin", "content": "Hot Rolled Bands\n1011-33 0.056 Min X 48.000 in", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 292.0, "y": 579.0}, {"x": 437.0, "y": 579.0}, {"x": 437.0, "y": 621.0}, {"x": 292.0, "y": 621.0}]}], "spans": [{"offset": 1152, "length": 16}, {"offset": 1213, "length": 29}], "confidence": 0.122}, "UnitPrice": {"value_type": "currency", "value": {"amount": 23.35, "symbol": "$"}, "content": "$23.35", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 718.0, "y": 580.0}, {"x": 755.0, "y": 580.0}, {"x": 755.0, "y": 592.0}, {"x": 719.0, "y": 592.0}]}], "spans": [{"offset": 1195, "length": 6}], "confidence": 0.296}}, "content": "1\n465328 - 1\nHot Rolled Bands\n253894\n2045685\n47,459 lbs\n$23.35\n$11,081.68\n1011-33 0.056 Min X 48.000 in\n21,527 kg", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 26.0, "y": 579.0}, {"x": 826.0, "y": 579.0}, {"x": 826.0, "y": 621.0}, {"x": 26.0, "y": 621.0}]}], "spans": [{"offset": 1139, "length": 113}], "confidence": 0.563}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": -536.29, "symbol": "$"}, "content": "($536.29)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 775.0, "y": 625.0}, {"x": 828.0, "y": 625.0}, {"x": 828.0, "y": 639.0}, {"x": 775.0, "y": 638.0}]}], "spans": [{"offset": 1294, "length": 9}], "confidence": 0.305}, "Description": {"value_type": "string", "value": "Prepaid Freight $2.35", "content": "Prepaid Freight $2.35", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 291.0, "y": 624.0}, {"x": 409.0, "y": 624.0}, {"x": 409.0, "y": 638.0}, {"x": 291.0, "y": 638.0}]}], "spans": [{"offset": 1253, "length": 21}], "confidence": 0.226}}, "content": "Prepaid Freight $2.35 Fit. Equal\n($1.13)\n($536.29)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 291.0, "y": 620.0}, {"x": 828.0, "y": 625.0}, {"x": 828.0, "y": 642.0}, {"x": 291.0, "y": 637.0}]}], "spans": [{"offset": 1253, "length": 50}], "confidence": 0.338}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": "25544", "po_box": null, "road": "Network Place", "city": "Chicago", "state": "IL", "postal_code": "60673-1255", "country_region": null, "street_address": "25544 Network Place"}, "content": "25544 Network Place\nChicago, IL 60673-1255", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 324.0, "y": 83.0}, {"x": 489.0, "y": 84.0}, {"x": 489.0, "y": 119.0}, {"x": 324.0, "y": 118.0}]}], "spans": [{"offset": 80, "length": 42}], "confidence": 0.907}, "RemittanceAddressRecipient": {"value_type": "string", "value": "North Star BlueScope Steel LLC", "content": "North Star BlueScope Steel LLC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 323.0, "y": 66.0}, {"x": 548.0, "y": 66.0}, {"x": 548.0, "y": 85.0}, {"x": 323.0, "y": 85.0}]}], "spans": [{"offset": 49, "length": 30}], "confidence": 0.932}, "ServiceAddress": {"value_type": "address", "value": {"house_number": "266", "po_box": null, "road": "Blair Bend Dr", "city": "Loudon", "state": "TN", "postal_code": "37774", "country_region": null, "street_address": "266 Blair Bend Dr"}, "content": "266 Blair Bend Dr\nLoudon, TN 37774", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 379.0, "y": 173.0}, {"x": 482.0, "y": 173.0}, {"x": 482.0, "y": 217.0}, {"x": 379.0, "y": 217.0}]}], "spans": [{"offset": 369, "length": 34}], "confidence": 0.523}, "ServiceAddressRecipient": {"value_type": "string", "value": "Plateplus LO", "content": "Plateplus LO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 379.0, "y": 158.0}, {"x": 453.0, "y": 159.0}, {"x": 453.0, "y": 174.0}, {"x": 379.0, "y": 173.0}]}], "spans": [{"offset": 356, "length": 12}], "confidence": 0.586}, "SubTotal": {"value_type": "currency", "value": {"amount": 38908.99, "symbol": "$"}, "content": "$38,908.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 764.0, "y": 886.0}, {"x": 825.0, "y": 885.0}, {"x": 825.0, "y": 898.0}, {"x": 764.0, "y": 898.0}]}], "spans": [{"offset": 1386, "length": 10}], "confidence": 0.943}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 793.0, "y": 912.0}, {"x": 824.0, "y": 912.0}, {"x": 824.0, "y": 924.0}, {"x": 793.0, "y": 924.0}]}], "spans": [{"offset": 1401, "length": 5}], "confidence": 0.943}, "VendorName": {"value_type": "string", "value": "NORTH STAR BLUESCOPE STEEL LLC", "content": "NORTH STAR BLUESCOPE STEEL LLC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 16.0, "y": 35.0}, {"x": 440.0, "y": 35.0}, {"x": 440.0, "y": 59.0}, {"x": 16.0, "y": 59.0}]}], "spans": [{"offset": 0, "length": 30}], "confidence": 0.93}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0000SDI-2537443-png-1_png_jpg.rf.8c311b8212bfdc50f750a9aa51e1b855.json b/Data/train/0000SDI-2537443-png-1_png_jpg.rf.8c311b8212bfdc50f750a9aa51e1b855.json new file mode 100644 index 0000000000000000000000000000000000000000..2e1719f348150446aaf42b79c04f155c1cdd3deb --- /dev/null +++ b/Data/train/0000SDI-2537443-png-1_png_jpg.rf.8c311b8212bfdc50f750a9aa51e1b855.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1553}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "Waterway Ave", "city": "The Woodlands", "state": "TX", "postal_code": "77380", "country_region": null, "street_address": "21 Waterway Ave Suite 525"}, "content": "21 Waterway Ave Suite 525\nThe Woodlands, TX 77380", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 277.0}, {"x": 298.0, "y": 277.0}, {"x": 298.0, "y": 308.0}, {"x": 119.0, "y": 308.0}]}], "spans": [{"offset": 315, "length": 49}], "confidence": 0.846}, "CustomerAddressRecipient": {"value_type": "string", "value": "Plateplus Inc", "content": "Plateplus Inc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 261.0}, {"x": 205.0, "y": 261.0}, {"x": 205.0, "y": 278.0}, {"x": 118.0, "y": 278.0}]}], "spans": [{"offset": 297, "length": 13}], "confidence": 0.932}, "CustomerName": {"value_type": "string", "value": "Plateplus Inc", "content": "Plateplus Inc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 261.0}, {"x": 205.0, "y": 261.0}, {"x": 205.0, "y": 278.0}, {"x": 118.0, "y": 278.0}]}], "spans": [{"offset": 297, "length": 13}], "confidence": 0.932}, "InvoiceDate": {"value_type": "date", "value": "2020-10-31", "content": "10/31/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 158.0, "y": 218.0}, {"x": 246.0, "y": 219.0}, {"x": 246.0, "y": 237.0}, {"x": 158.0, "y": 238.0}]}], "spans": [{"offset": 146, "length": 10}], "confidence": 0.943}, "InvoiceId": {"value_type": "string", "value": "2537443", "content": "2537443", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 754.0, "y": 217.0}, {"x": 823.0, "y": 216.0}, {"x": 823.0, "y": 239.0}, {"x": 754.0, "y": 239.0}]}], "spans": [{"offset": 284, "length": 7}], "confidence": 0.943}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 12464.96, "symbol": "$"}, "content": "$12,464.96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 770.0, "y": 667.0}, {"x": 838.0, "y": 666.0}, {"x": 839.0, "y": 681.0}, {"x": 770.0, "y": 680.0}]}], "spans": [{"offset": 1117, "length": 10}], "confidence": 0.942}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 11556.3, "symbol": "$"}, "content": "$11,556.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 771.0, "y": 472.0}, {"x": 839.0, "y": 471.0}, {"x": 839.0, "y": 486.0}, {"x": 772.0, "y": 485.0}]}], "spans": [{"offset": 967, "length": 10}], "confidence": 0.906}, "Description": {"value_type": "string", "value": "COIL # 20L785050\nPrime Pickled Hot Rolled Sheet\nGRADE: A36 \"Conversion To\"\nSIZE: 0.24 x 60 Len: 882\nPart No: 2400 x 60.0000 HRPO / Alt Part No:\nPO No: LO-9307 - 8\nEnd Use: STOCK FOR FLAT LEVELLING\nPricing Contract: Plateplus HR CRU 2020 # 12556-1", "content": "COIL # 20L785050 Prime Pickled Hot Rolled Sheet GRADE: A36 \"Conversion To\" SIZE: 0.24 x 60 Len: 882 Part No: 2400 x 60.0000 HRPO / Alt Part No: PO No: LO-9307 - 8 End Use: STOCK FOR FLAT LEVELLING\nPricing Contract: Plateplus HR CRU 2020 # 12556-1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 471.0}, {"x": 446.0, "y": 471.0}, {"x": 446.0, "y": 583.0}, {"x": 137.0, "y": 583.0}]}], "spans": [{"offset": 756, "length": 196}, {"offset": 978, "length": 49}], "confidence": 0.002}, "ProductCode": {"value_type": "string", "value": "1", "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 471.0}, {"x": 123.0, "y": 471.0}, {"x": 124.0, "y": 483.0}, {"x": 118.0, "y": 483.0}]}], "spans": [{"offset": 754, "length": 1}], "confidence": 0.287}, "Quantity": {"value_type": "float", "value": 46598.0, "content": "46,598", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 586.0, "y": 472.0}, {"x": 626.0, "y": 472.0}, {"x": 626.0, "y": 485.0}, {"x": 586.0, "y": 485.0}]}], "spans": [{"offset": 953, "length": 6}], "confidence": 0.646}, "UnitPrice": {"value_type": "currency", "value": {"amount": 24.8, "symbol": "$"}, "content": "$24.80", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 691.0, "y": 472.0}, {"x": 731.0, "y": 472.0}, {"x": 731.0, "y": 485.0}, {"x": 691.0, "y": 485.0}]}], "spans": [{"offset": 960, "length": 6}], "confidence": 0.905}}, "content": "1\nCOIL # 20L785050 Prime Pickled Hot Rolled Sheet GRADE: A36 \"Conversion To\" SIZE: 0.24 x 60 Len: 882 Part No: 2400 x 60.0000 HRPO / Alt Part No: PO No: LO-9307 - 8 End Use: STOCK FOR FLAT LEVELLING\n46,598\n$24.80\n$11,556.30\nPricing Contract: Plateplus HR CRU 2020 # 12556-1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 471.0}, {"x": 839.0, "y": 471.0}, {"x": 839.0, "y": 583.0}, {"x": 117.0, "y": 583.0}]}], "spans": [{"offset": 754, "length": 273}], "confidence": 0.365}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 908.66, "symbol": "$"}, "content": "$908.66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 789.0, "y": 583.0}, {"x": 838.0, "y": 582.0}, {"x": 838.0, "y": 597.0}, {"x": 789.0, "y": 596.0}]}], "spans": [{"offset": 1043, "length": 7}], "confidence": 0.903}, "Description": {"value_type": "string", "value": "FREIGHT:", "content": "FREIGHT:", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 582.0}, {"x": 199.0, "y": 581.0}, {"x": 199.0, "y": 597.0}, {"x": 137.0, "y": 596.0}]}], "spans": [{"offset": 1028, "length": 8}], "confidence": 0.738}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1.95, "symbol": "$"}, "content": "$1.95", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 698.0, "y": 582.0}, {"x": 733.0, "y": 582.0}, {"x": 733.0, "y": 597.0}, {"x": 698.0, "y": 597.0}]}], "spans": [{"offset": 1037, "length": 5}], "confidence": 0.9}}, "content": "FREIGHT:\n$1.95\n$908.66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 581.0}, {"x": 838.0, "y": 581.0}, {"x": 838.0, "y": 597.0}, {"x": 137.0, "y": 597.0}]}], "spans": [{"offset": 1028, "length": 22}], "confidence": 0.932}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "1/2% 10 Net 30", "content": "1/2% 10 Net 30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 695.0, "y": 427.0}, {"x": 776.0, "y": 427.0}, {"x": 776.0, "y": 439.0}, {"x": 695.0, "y": 439.0}]}], "spans": [{"offset": 688, "length": 14}], "confidence": 0.829}, "PurchaseOrder": {"value_type": "string", "value": "LO-9307 - 8", "content": "LO-9307 - 8", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 184.0, "y": 540.0}, {"x": 255.0, "y": 540.0}, {"x": 255.0, "y": 555.0}, {"x": 184.0, "y": 555.0}]}], "spans": [{"offset": 907, "length": 11}], "confidence": 0.603}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "PO Box 203641", "road": null, "city": "Dallas", "state": "TX", "postal_code": "75320-3641", "country_region": null, "street_address": "PO Box 203641"}, "content": "PO Box 203641 Dallas, TX 75320-3641", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 683.0, "y": 157.0}, {"x": 833.0, "y": 157.0}, {"x": 833.0, "y": 189.0}, {"x": 683.0, "y": 189.0}]}], "spans": [{"offset": 236, "length": 35}], "confidence": 0.893}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Steel Dynamics\nColumbus, LLC\nLockbox Acct", "content": "Steel Dynamics Columbus, LLC\nLockbox Acct", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 679.0, "y": 66.0}, {"x": 833.0, "y": 66.0}, {"x": 833.0, "y": 158.0}, {"x": 679.0, "y": 158.0}]}], "spans": [{"offset": 177, "length": 28}, {"offset": 223, "length": 12}], "confidence": 0.721}, "ShippingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Loudon", "state": "TN", "postal_code": "37774", "country_region": null, "street_address": ""}, "content": "Loudon, TN 37774", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 546.0, "y": 293.0}, {"x": 668.0, "y": 292.0}, {"x": 668.0, "y": 307.0}, {"x": 546.0, "y": 308.0}]}], "spans": [{"offset": 371, "length": 16}], "confidence": 0.837}, "ShippingAddressRecipient": {"value_type": "string", "value": "Plateplus-LO", "content": "Plateplus-LO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 546.0, "y": 261.0}, {"x": 628.0, "y": 261.0}, {"x": 629.0, "y": 278.0}, {"x": 546.0, "y": 278.0}]}], "spans": [{"offset": 396, "length": 12}], "confidence": 0.936}, "SubTotal": {"value_type": "currency", "value": {"amount": 11556.3, "symbol": "$"}, "content": "$11,556.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 771.0, "y": 619.0}, {"x": 840.0, "y": 618.0}, {"x": 840.0, "y": 633.0}, {"x": 772.0, "y": 632.0}]}], "spans": [{"offset": 1070, "length": 10}], "confidence": 0.595}, "VendorAddress": {"value_type": "address", "value": {"house_number": "1945", "po_box": "P.O. Box 1467", "road": "Airport Road", "city": "Columbus", "state": "MS", "postal_code": "39701", "country_region": null, "street_address": "1945 Airport Road P.O. Box 1467"}, "content": "1945 Airport Road | P.O. Box 1467 Columbus, MS 39701", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 55.0, "y": 93.0}, {"x": 258.0, "y": 93.0}, {"x": 258.0, "y": 122.0}, {"x": 55.0, "y": 122.0}]}], "spans": [{"offset": 41, "length": 52}], "confidence": 0.749}, "VendorName": {"value_type": "string", "value": "Steel Dynamics, Inc:\nSDI\nCOLUMBUS", "content": "SDI\nSteel Dynamics, Inc:\nCOLUMBUS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 38.0, "y": 39.0}, {"x": 548.0, "y": 37.0}, {"x": 548.0, "y": 105.0}, {"x": 38.0, "y": 108.0}]}], "spans": [{"offset": 0, "length": 24}, {"offset": 206, "length": 8}], "confidence": 0.595}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0000USS-161-103842-png-1_png_jpg.rf.440c2f3104091d06987742d79ea1e6a8.json b/Data/train/0000USS-161-103842-png-1_png_jpg.rf.440c2f3104091d06987742d79ea1e6a8.json new file mode 100644 index 0000000000000000000000000000000000000000..d86d11496b52512cc671f7bea15ff5a612ed26f9 --- /dev/null +++ b/Data/train/0000USS-161-103842-png-1_png_jpg.rf.440c2f3104091d06987742d79ea1e6a8.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1775}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "WATERWAY AVE", "city": "THE WOODLANDS", "state": "TX", "postal_code": "77380-3129", "country_region": null, "street_address": "21 WATERWAY AVE STE 525"}, "content": "21 WATERWAY AVE\nSTE 525\nTHE WOODLANDS TX 77380-3129", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 153.0, "y": 257.0}, {"x": 368.0, "y": 257.0}, {"x": 368.0, "y": 295.0}, {"x": 153.0, "y": 295.0}]}], "spans": [{"offset": 350, "length": 51}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC", "content": "PLATEPLUS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 244.0}, {"x": 255.0, "y": 244.0}, {"x": 255.0, "y": 256.0}, {"x": 152.0, "y": 256.0}]}], "spans": [{"offset": 336, "length": 13}], "confidence": null}, "CustomerId": {"value_type": "string", "value": "33911-339A-301", "content": "33911-339A-301", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 143.0}, {"x": 510.0, "y": 143.0}, {"x": 510.0, "y": 156.0}, {"x": 400.0, "y": 156.0}]}], "spans": [{"offset": 184, "length": 14}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS INC", "content": "PLATEPLUS INC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 244.0}, {"x": 255.0, "y": 244.0}, {"x": 255.0, "y": 256.0}, {"x": 152.0, "y": 256.0}]}], "spans": [{"offset": 336, "length": 13}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2020-12-04", "content": "12-04-20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 543.0, "y": 182.0}, {"x": 604.0, "y": 182.0}, {"x": 604.0, "y": 194.0}, {"x": 543.0, "y": 194.0}]}], "spans": [{"offset": 257, "length": 8}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "161-103842", "content": "161-103842", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 622.0, "y": 181.0}, {"x": 701.0, "y": 182.0}, {"x": 702.0, "y": 194.0}, {"x": 623.0, "y": 194.0}]}], "spans": [{"offset": 266, "length": 10}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 25980.88, "symbol": null}, "content": "25980.88", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 670.0, "y": 993.0}, {"x": 733.0, "y": 993.0}, {"x": 733.0, "y": 1006.0}, {"x": 671.0, "y": 1006.0}]}], "spans": [{"offset": 1534, "length": 8}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 25620.3, "symbol": null}, "content": "25620.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 670.0, "y": 618.0}, {"x": 732.0, "y": 618.0}, {"x": 732.0, "y": 632.0}, {"x": 670.0, "y": 632.0}]}], "spans": [{"offset": 1210, "length": 8}], "confidence": null}, "Quantity": {"value_type": "float", "value": 94890.0, "content": "94890", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 527.0, "y": 618.0}, {"x": 566.0, "y": 619.0}, {"x": 566.0, "y": 631.0}, {"x": 528.0, "y": 631.0}]}], "spans": [{"offset": 1187, "length": 5}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 27.0, "symbol": null}, "content": "27.0000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 598.0, "y": 619.0}, {"x": 652.0, "y": 618.0}, {"x": 652.0, "y": 632.0}, {"x": 598.0, "y": 631.0}]}], "spans": [{"offset": 1202, "length": 7}], "confidence": null}}, "content": "2550\n94890\n94890\n27.0000\n25620.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 361.0, "y": 618.0}, {"x": 732.0, "y": 618.0}, {"x": 732.0, "y": 632.0}, {"x": 361.0, "y": 632.0}]}], "spans": [{"offset": 1170, "length": 10}, {"offset": 1187, "length": 5}, {"offset": 1202, "length": 16}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 360.58, "symbol": null}, "content": "360.58", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 686.0, "y": 681.0}, {"x": 732.0, "y": 681.0}, {"x": 732.0, "y": 695.0}, {"x": 686.0, "y": 694.0}]}], "spans": [{"offset": 1302, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "PLUS TRANSPORTATION CHARGE\nCOMP", "content": "PLUS TRANSPORTATION CHARGE COMP", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 668.0}, {"x": 334.0, "y": 668.0}, {"x": 334.0, "y": 694.0}, {"x": 129.0, "y": 694.0}]}], "spans": [{"offset": 1248, "length": 31}], "confidence": null}, "Quantity": {"value_type": "float", "value": 94890.0, "content": "94890", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 527.0, "y": 681.0}, {"x": 566.0, "y": 681.0}, {"x": 566.0, "y": 694.0}, {"x": 528.0, "y": 694.0}]}], "spans": [{"offset": 1290, "length": 5}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.38, "symbol": null}, "content": ".3800", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 615.0, "y": 682.0}, {"x": 652.0, "y": 682.0}, {"x": 652.0, "y": 694.0}, {"x": 615.0, "y": 694.0}]}], "spans": [{"offset": 1296, "length": 5}], "confidence": null}}, "content": "PLUS TRANSPORTATION CHARGE COMP\nPER 100LB\n94890\n.3800\n360.58", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 668.0}, {"x": 732.0, "y": 668.0}, {"x": 732.0, "y": 695.0}, {"x": 129.0, "y": 695.0}]}], "spans": [{"offset": 1248, "length": 60}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "96", "content": "96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 345.0, "y": 107.0}, {"x": 358.0, "y": 107.0}, {"x": 358.0, "y": 118.0}, {"x": 345.0, "y": 118.0}]}], "spans": [{"offset": 111, "length": 2}], "confidence": null}, "ServiceStartDate": {"value_type": "date", "value": "1930-01-02", "content": "30-1/2-10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 181.0}, {"x": 471.0, "y": 182.0}, {"x": 471.0, "y": 194.0}, {"x": 400.0, "y": 195.0}]}], "spans": [{"offset": 247, "length": 9}], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "4502", "po_box": null, "road": "W CLINE AVENUE", "city": "EAST CHICAGO", "state": "IN", "postal_code": "46312", "country_region": null, "street_address": "4502 W CLINE AVENUE"}, "content": "4502 W CLINE AVENUE\nEAST CHICAGO IN 46312", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 268.0}, {"x": 630.0, "y": 268.0}, {"x": 630.0, "y": 295.0}, {"x": 463.0, "y": 295.0}]}], "spans": [{"offset": 436, "length": 41}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "6800", "po_box": null, "road": "RELIABLE PARKWAY", "city": "CHICAGO", "state": "IL", "postal_code": "60686", "country_region": null, "street_address": "6800 RELIABLE PARKWAY"}, "content": "6800 RELIABLE PARKWAY\nCHICAGO IL\n60686", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 177.0, "y": 156.0}, {"x": 344.0, "y": 156.0}, {"x": 344.0, "y": 182.0}, {"x": 177.0, "y": 182.0}]}], "spans": [{"offset": 124, "length": 38}], "confidence": null}, "VendorName": {"value_type": "string", "value": "UNITED STATES STEEL\nUSS", "content": "USS\nUNITED STATES STEEL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 31.0, "y": 57.0}, {"x": 280.0, "y": 57.0}, {"x": 280.0, "y": 101.0}, {"x": 31.0, "y": 101.0}]}], "spans": [{"offset": 0, "length": 23}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0001ACC-58062086-VR-12901-png-1_png_jpg.rf.7cbad3598227bff724715eb9a97e7cde.json b/Data/train/0001ACC-58062086-VR-12901-png-1_png_jpg.rf.7cbad3598227bff724715eb9a97e7cde.json new file mode 100644 index 0000000000000000000000000000000000000000..ddaad360fdea09414f26061a7b9abe4a599d5578 --- /dev/null +++ b/Data/train/0001ACC-58062086-VR-12901-png-1_png_jpg.rf.7cbad3598227bff724715eb9a97e7cde.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1279}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 2640.4, "symbol": "$"}, "content": "$ 2,640.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 745.0, "y": 598.0}, {"x": 819.0, "y": 598.0}, {"x": 819.0, "y": 612.0}, {"x": 745.0, "y": 612.0}]}], "spans": [{"offset": 648, "length": 10}], "confidence": 0.932}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "Waterway Ave", "city": "The Woodlands", "state": "TX", "postal_code": "77380", "country_region": null, "street_address": "21 Waterway Ave"}, "content": "21 Waterway Ave The Woodlands TX 77380", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 247.0}, {"x": 273.0, "y": 247.0}, {"x": 273.0, "y": 278.0}, {"x": 136.0, "y": 278.0}]}], "spans": [{"offset": 240, "length": 38}], "confidence": 0.926}, "CustomerAddressRecipient": {"value_type": "string", "value": "Personal & Confidential\nMargaret McCreadie\nPLATEPLUS\nSte 525", "content": "Personal & Confidential Margaret McCreadie PLATEPLUS Ste 525", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 179.0}, {"x": 272.0, "y": 180.0}, {"x": 272.0, "y": 246.0}, {"x": 136.0, "y": 245.0}]}], "spans": [{"offset": 179, "length": 60}], "confidence": 0.428}, "CustomerId": {"value_type": "string", "value": "002044578", "content": "002044578", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 717.0, "y": 80.0}, {"x": 777.0, "y": 81.0}, {"x": 777.0, "y": 94.0}, {"x": 718.0, "y": 95.0}]}], "spans": [{"offset": 113, "length": 9}], "confidence": 0.955}, "CustomerName": {"value_type": "string", "value": "Personal & Confidential\nMargaret McCreadie\nPLATEPLUS\nSte 525", "content": "Personal & Confidential Margaret McCreadie PLATEPLUS Ste 525", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 179.0}, {"x": 272.0, "y": 180.0}, {"x": 272.0, "y": 246.0}, {"x": 136.0, "y": 245.0}]}], "spans": [{"offset": 179, "length": 60}], "confidence": 0.428}, "DueDate": {"value_type": "date", "value": null, "content": "UPON RECEIPT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 685.0, "y": 147.0}, {"x": 775.0, "y": 147.0}, {"x": 775.0, "y": 162.0}, {"x": 685.0, "y": 162.0}]}], "spans": [{"offset": 166, "length": 12}], "confidence": 0.455}, "InvoiceDate": {"value_type": "date", "value": "2021-07-20", "content": "07/20/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 717.0, "y": 48.0}, {"x": 777.0, "y": 48.0}, {"x": 777.0, "y": 62.0}, {"x": 718.0, "y": 61.0}]}], "spans": [{"offset": 60, "length": 10}], "confidence": 0.956}, "InvoiceId": {"value_type": "string", "value": "58062086", "content": "58062086", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 717.0, "y": 65.0}, {"x": 771.0, "y": 65.0}, {"x": 771.0, "y": 78.0}, {"x": 717.0, "y": 78.0}]}], "spans": [{"offset": 87, "length": 8}], "confidence": 0.956}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2640.4, "symbol": "$"}, "content": "$ 2,640.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 745.0, "y": 598.0}, {"x": 819.0, "y": 598.0}, {"x": 819.0, "y": 612.0}, {"x": 745.0, "y": 612.0}]}], "spans": [{"offset": 648, "length": 10}], "confidence": 0.932}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2640.4, "symbol": "$"}, "content": "$ 2,640.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 744.0, "y": 365.0}, {"x": 818.0, "y": 365.0}, {"x": 818.0, "y": 378.0}, {"x": 744.0, "y": 378.0}]}], "spans": [{"offset": 533, "length": 10}], "confidence": 0.196}, "Date": {"value_type": "date", "value": "2021-07-16", "content": "07/16/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 259.0, "y": 365.0}, {"x": 320.0, "y": 364.0}, {"x": 321.0, "y": 378.0}, {"x": 259.0, "y": 378.0}]}], "spans": [{"offset": 486, "length": 10}], "confidence": 0.069}, "Description": {"value_type": "string", "value": "Antonio, Luz H", "content": "Antonio, Luz H", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 71.0, "y": 365.0}, {"x": 143.0, "y": 365.0}, {"x": 143.0, "y": 379.0}, {"x": 71.0, "y": 379.0}]}], "spans": [{"offset": 471, "length": 14}], "confidence": null}, "Quantity": {"value_type": "float", "value": 40.0, "content": "40.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 528.0, "y": 365.0}, {"x": 557.0, "y": 365.0}, {"x": 557.0, "y": 378.0}, {"x": 529.0, "y": 378.0}]}], "spans": [{"offset": 511, "length": 5}], "confidence": 0.183}, "Unit": {"value_type": "string", "value": "HRS REG", "content": "HRS REG", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 573.0, "y": 364.0}, {"x": 630.0, "y": 364.0}, {"x": 630.0, "y": 378.0}, {"x": 573.0, "y": 378.0}]}], "spans": [{"offset": 517, "length": 7}], "confidence": 0.004}, "UnitPrice": {"value_type": "currency", "value": {"amount": 66.01, "symbol": "$"}, "content": "$ 66.01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 659.0, "y": 365.0}, {"x": 725.0, "y": 365.0}, {"x": 725.0, "y": 378.0}, {"x": 659.0, "y": 378.0}]}], "spans": [{"offset": 525, "length": 7}], "confidence": 0.199}}, "content": "1\nAntonio, Luz H\n07/16/2021\nJohnson,Berry\n40.00 HRS REG\n$ 66.01\n$ 2,640.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 46.0, "y": 364.0}, {"x": 818.0, "y": 364.0}, {"x": 818.0, "y": 380.0}, {"x": 46.0, "y": 380.0}]}], "spans": [{"offset": 469, "length": 74}], "confidence": 0.89}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. BOX 743295", "road": null, "city": "Los Angeles", "state": "CA", "postal_code": "90074-3295", "country_region": null, "street_address": "P.O. BOX 743295"}, "content": "P.O. BOX 743295\nLos Angeles CA 90074-3295", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 566.0, "y": 214.0}, {"x": 717.0, "y": 214.0}, {"x": 717.0, "y": 246.0}, {"x": 566.0, "y": 246.0}]}], "spans": [{"offset": 308, "length": 41}], "confidence": 0.916}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Accountemps", "content": "Accountemps", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 567.0, "y": 198.0}, {"x": 640.0, "y": 199.0}, {"x": 640.0, "y": 213.0}, {"x": 567.0, "y": 212.0}]}], "spans": [{"offset": 296, "length": 11}], "confidence": 0.953}, "ServiceEndDate": {"value_type": "date", "value": "2021-07-16", "content": "07/16/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 259.0, "y": 365.0}, {"x": 320.0, "y": 364.0}, {"x": 321.0, "y": 378.0}, {"x": 259.0, "y": 378.0}]}], "spans": [{"offset": 486, "length": 10}], "confidence": 0.728}, "SubTotal": {"value_type": "currency", "value": {"amount": 2640.4, "symbol": "$"}, "content": "$ 2,640.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 744.0, "y": 565.0}, {"x": 819.0, "y": 565.0}, {"x": 819.0, "y": 578.0}, {"x": 744.0, "y": 578.0}]}], "spans": [{"offset": 619, "length": 10}], "confidence": 0.937}, "VendorName": {"value_type": "string", "value": "Accountemps!", "content": "Accountemps!", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 823.0}, {"x": 623.0, "y": 823.0}, {"x": 623.0, "y": 848.0}, {"x": 482.0, "y": 849.0}]}], "spans": [{"offset": 1102, "length": 12}], "confidence": 0.941}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0001ACC-58062086-VR-12901-png-1_png_jpg.rf.aaa15f169fa2961798f31f50976ff9d3.json b/Data/train/0001ACC-58062086-VR-12901-png-1_png_jpg.rf.aaa15f169fa2961798f31f50976ff9d3.json new file mode 100644 index 0000000000000000000000000000000000000000..ff419a60968a575637ba486fdc50f08d7c17342b --- /dev/null +++ b/Data/train/0001ACC-58062086-VR-12901-png-1_png_jpg.rf.aaa15f169fa2961798f31f50976ff9d3.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1275}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 2640.4, "symbol": "$"}, "content": "$ 2,640.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 745.0, "y": 598.0}, {"x": 819.0, "y": 598.0}, {"x": 819.0, "y": 611.0}, {"x": 745.0, "y": 611.0}]}], "spans": [{"offset": 647, "length": 10}], "confidence": 0.9}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "525\n21", "po_box": null, "road": "Waterway Ave", "city": "The Woodlands", "state": "TX", "postal_code": "77380", "country_region": null, "street_address": "525\n21 Waterway Ave"}, "content": "525 21 Waterway Ave The Woodlands TX 77380", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 231.0}, {"x": 273.0, "y": 231.0}, {"x": 273.0, "y": 278.0}, {"x": 137.0, "y": 278.0}]}], "spans": [{"offset": 235, "length": 42}], "confidence": 0.753}, "CustomerAddressRecipient": {"value_type": "string", "value": "Personal & Confidential\nMargaret McCreadie\nPLATEPLUS\nSte", "content": "Personal & Confidential Margaret McCreadie PLATEPLUS Ste", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 180.0}, {"x": 272.0, "y": 180.0}, {"x": 272.0, "y": 244.0}, {"x": 136.0, "y": 244.0}]}], "spans": [{"offset": 178, "length": 56}], "confidence": 0.417}, "CustomerId": {"value_type": "string", "value": "002044578", "content": "002044578", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 717.0, "y": 81.0}, {"x": 777.0, "y": 81.0}, {"x": 777.0, "y": 95.0}, {"x": 717.0, "y": 95.0}]}], "spans": [{"offset": 112, "length": 9}], "confidence": 0.951}, "CustomerName": {"value_type": "string", "value": "Personal & Confidential\nMargaret McCreadie\nPLATEPLUS\nSte", "content": "Personal & Confidential Margaret McCreadie PLATEPLUS Ste", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 180.0}, {"x": 272.0, "y": 180.0}, {"x": 272.0, "y": 244.0}, {"x": 136.0, "y": 244.0}]}], "spans": [{"offset": 178, "length": 56}], "confidence": 0.417}, "DueDate": {"value_type": "date", "value": null, "content": "UPON RECEIPT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 684.0, "y": 147.0}, {"x": 775.0, "y": 147.0}, {"x": 775.0, "y": 162.0}, {"x": 684.0, "y": 162.0}]}], "spans": [{"offset": 165, "length": 12}], "confidence": 0.488}, "InvoiceDate": {"value_type": "date", "value": "2021-07-20", "content": "07/20/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 717.0, "y": 48.0}, {"x": 777.0, "y": 48.0}, {"x": 777.0, "y": 62.0}, {"x": 718.0, "y": 61.0}]}], "spans": [{"offset": 59, "length": 10}], "confidence": 0.953}, "InvoiceId": {"value_type": "string", "value": "58062086", "content": "58062086", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 717.0, "y": 65.0}, {"x": 771.0, "y": 65.0}, {"x": 771.0, "y": 78.0}, {"x": 717.0, "y": 78.0}]}], "spans": [{"offset": 86, "length": 8}], "confidence": 0.953}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2640.4, "symbol": "$"}, "content": "$ 2,640.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 745.0, "y": 598.0}, {"x": 819.0, "y": 598.0}, {"x": 819.0, "y": 611.0}, {"x": 745.0, "y": 611.0}]}], "spans": [{"offset": 647, "length": 10}], "confidence": 0.9}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2640.4, "symbol": "$"}, "content": "$ 2,640.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 744.0, "y": 365.0}, {"x": 819.0, "y": 365.0}, {"x": 819.0, "y": 378.0}, {"x": 744.0, "y": 378.0}]}], "spans": [{"offset": 532, "length": 10}], "confidence": 0.928}, "Date": {"value_type": "date", "value": "2021-07-16", "content": "07/16/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 259.0, "y": 365.0}, {"x": 320.0, "y": 364.0}, {"x": 321.0, "y": 378.0}, {"x": 259.0, "y": 378.0}]}], "spans": [{"offset": 485, "length": 10}], "confidence": 0.757}, "Description": {"value_type": "string", "value": "Antonio, Luz H", "content": "Antonio, Luz H", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 70.0, "y": 364.0}, {"x": 144.0, "y": 364.0}, {"x": 144.0, "y": 379.0}, {"x": 70.0, "y": 379.0}]}], "spans": [{"offset": 470, "length": 14}], "confidence": 0.126}, "Quantity": {"value_type": "float", "value": 40.0, "content": "40.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 528.0, "y": 366.0}, {"x": 558.0, "y": 365.0}, {"x": 558.0, "y": 378.0}, {"x": 529.0, "y": 378.0}]}], "spans": [{"offset": 510, "length": 5}], "confidence": 0.928}, "Unit": {"value_type": "string", "value": "HRS REG", "content": "HRS REG", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 574.0, "y": 364.0}, {"x": 630.0, "y": 364.0}, {"x": 630.0, "y": 378.0}, {"x": 574.0, "y": 378.0}]}], "spans": [{"offset": 516, "length": 7}], "confidence": 0.524}, "UnitPrice": {"value_type": "currency", "value": {"amount": 66.01, "symbol": "$"}, "content": "$ 66.01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 660.0, "y": 360.0}, {"x": 727.0, "y": 365.0}, {"x": 726.0, "y": 382.0}, {"x": 659.0, "y": 376.0}]}], "spans": [{"offset": 524, "length": 7}], "confidence": 0.92}}, "content": "1\nAntonio, Luz H\n07/16/2021\nJohnson,Berry\n40.00 HRS REG\n$ 66.01\n$ 2,640.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 46.0, "y": 364.0}, {"x": 819.0, "y": 364.0}, {"x": 819.0, "y": 380.0}, {"x": 46.0, "y": 380.0}]}], "spans": [{"offset": 468, "length": 74}], "confidence": 0.754}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. BOX 743295", "road": null, "city": "Los Angeles", "state": "CA", "postal_code": "90074-3295", "country_region": null, "street_address": "P.O. BOX 743295"}, "content": "P.O. BOX 743295\nLos Angeles CA 90074-3295", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 566.0, "y": 214.0}, {"x": 717.0, "y": 214.0}, {"x": 717.0, "y": 246.0}, {"x": 566.0, "y": 246.0}]}], "spans": [{"offset": 307, "length": 41}], "confidence": 0.889}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Accountemps", "content": "Accountemps", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 567.0, "y": 198.0}, {"x": 640.0, "y": 199.0}, {"x": 640.0, "y": 212.0}, {"x": 567.0, "y": 212.0}]}], "spans": [{"offset": 295, "length": 11}], "confidence": 0.943}, "ServiceEndDate": {"value_type": "date", "value": "2021-07-16", "content": "07/16/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 259.0, "y": 365.0}, {"x": 320.0, "y": 364.0}, {"x": 321.0, "y": 378.0}, {"x": 259.0, "y": 378.0}]}], "spans": [{"offset": 485, "length": 10}], "confidence": 0.726}, "SubTotal": {"value_type": "currency", "value": {"amount": 2640.4, "symbol": "$"}, "content": "$ 2,640.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 743.0, "y": 565.0}, {"x": 819.0, "y": 565.0}, {"x": 819.0, "y": 578.0}, {"x": 743.0, "y": 578.0}]}], "spans": [{"offset": 618, "length": 10}], "confidence": 0.925}, "VendorName": {"value_type": "string", "value": "Accountemps!", "content": "Accountemps!", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 483.0, "y": 822.0}, {"x": 624.0, "y": 823.0}, {"x": 624.0, "y": 848.0}, {"x": 483.0, "y": 849.0}]}], "spans": [{"offset": 1098, "length": 12}], "confidence": 0.847}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0001FB244451028-BL-422247-png-1_png_jpg.rf.6424e5353761ceeb25879cb40f172907.json b/Data/train/0001FB244451028-BL-422247-png-1_png_jpg.rf.6424e5353761ceeb25879cb40f172907.json new file mode 100644 index 0000000000000000000000000000000000000000..12a10eea9d5c81d7b21511c31da233a24d42f3ec --- /dev/null +++ b/Data/train/0001FB244451028-BL-422247-png-1_png_jpg.rf.6424e5353761ceeb25879cb40f172907.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1412}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "920", "po_box": null, "road": "SE QUINCY ST", "city": "TOPEKA", "state": "KS", "postal_code": "666121116", "country_region": null, "street_address": "920 SE QUINCY ST"}, "content": "920 SE QUINCY ST TOPEKA, KS 666121116", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 262.0}, {"x": 290.0, "y": 262.0}, {"x": 290.0, "y": 299.0}, {"x": 166.0, "y": 299.0}]}], "spans": [{"offset": 345, "length": 37}], "confidence": 0.252}, "InvoiceDate": {"value_type": "date", "value": "2021-01-11", "content": "01/11/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 390.0, "y": 286.0}, {"x": 445.0, "y": 286.0}, {"x": 445.0, "y": 299.0}, {"x": 390.0, "y": 298.0}]}], "spans": [{"offset": 474, "length": 10}], "confidence": 0.845}, "InvoiceId": {"value_type": "string", "value": "244451028", "content": "244451028", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 502.0, "y": 284.0}, {"x": 568.0, "y": 283.0}, {"x": 568.0, "y": 298.0}, {"x": 502.0, "y": 298.0}]}], "spans": [{"offset": 485, "length": 9}], "confidence": 0.677}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 3290.0, "symbol": "$"}, "content": "$3,290.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 655.0, "y": 953.0}, {"x": 714.0, "y": 952.0}, {"x": 714.0, "y": 967.0}, {"x": 655.0, "y": 967.0}]}], "spans": [{"offset": 1392, "length": 9}], "confidence": 0.674}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3290.0, "symbol": null}, "content": "3290.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 599.0, "y": 628.0}, {"x": 638.0, "y": 628.0}, {"x": 638.0, "y": 641.0}, {"x": 599.0, "y": 640.0}]}], "spans": [{"offset": 1154, "length": 7}], "confidence": 0.729}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 627.0}, {"x": 467.0, "y": 627.0}, {"x": 468.0, "y": 638.0}, {"x": 464.0, "y": 639.0}]}], "spans": [{"offset": 1144, "length": 1}], "confidence": 0.671}, "UnitPrice": {"value_type": "currency", "value": {"amount": 3290.0, "symbol": null}, "content": "3290.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 503.0, "y": 628.0}, {"x": 543.0, "y": 628.0}, {"x": 543.0, "y": 640.0}, {"x": 504.0, "y": 640.0}]}], "spans": [{"offset": 1146, "length": 7}], "confidence": 0.738}}, "content": "1 3290.00\n3290.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 627.0}, {"x": 638.0, "y": 627.0}, {"x": 638.0, "y": 641.0}, {"x": 463.0, "y": 641.0}]}], "spans": [{"offset": 1144, "length": 17}], "confidence": 0.803}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"SWIFT": {"value_type": "string", "value": "CNORUS 44", "content": "CNORUS 44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 653.0, "y": 149.0}, {"x": 709.0, "y": 150.0}, {"x": 709.0, "y": 163.0}, {"x": 653.0, "y": 162.0}]}], "spans": [{"offset": 195, "length": 9}], "confidence": 0.796}}, "content": null, "bounding_regions": [], "spans": [], "confidence": 0.995}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorName": {"value_type": "string", "value": "BNSF\nBNSF Railway Company\nRAILWAY", "content": "BNSF\nRAILWAY\nBNSF Railway Company", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 68.0, "y": 11.0}, {"x": 614.0, "y": 11.0}, {"x": 614.0, "y": 56.0}, {"x": 68.0, "y": 56.0}]}], "spans": [{"offset": 0, "length": 12}, {"offset": 37, "length": 20}], "confidence": 0.605}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0001Grainger-9707310430-png-1_png_jpg.rf.c13404b95a015ee5159370c9e257c91b.json b/Data/train/0001Grainger-9707310430-png-1_png_jpg.rf.c13404b95a015ee5159370c9e257c91b.json new file mode 100644 index 0000000000000000000000000000000000000000..e30625e426c1d1c33dfd3e717452292821953423 --- /dev/null +++ b/Data/train/0001Grainger-9707310430-png-1_png_jpg.rf.c13404b95a015ee5159370c9e257c91b.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 2236}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 682.3, "symbol": "$"}, "content": "$682.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 778.0, "y": 1056.0}, {"x": 833.0, "y": 1055.0}, {"x": 833.0, "y": 1072.0}, {"x": 779.0, "y": 1072.0}]}], "spans": [{"offset": 2218, "length": 7}], "confidence": 0.936}, "BillingAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "WATERWAY AVE", "city": "THE WOODLANDS", "state": "TX", "postal_code": "77380-3129", "country_region": null, "street_address": "21 WATERWAY AVE STE 525"}, "content": "21 WATERWAY AVE, STE 525\nTHE WOODLANDS TX 77380-3129", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 277.0}, {"x": 267.0, "y": 277.0}, {"x": 267.0, "y": 299.0}, {"x": 75.0, "y": 299.0}]}], "spans": [{"offset": 440, "length": 52}], "confidence": 0.872}, "BillingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS INC\nATTN ACCOUNTS PAYABLE", "content": "PLATEPLUS INC\nATTN ACCOUNTS PAYABLE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 256.0}, {"x": 231.0, "y": 256.0}, {"x": 231.0, "y": 278.0}, {"x": 75.0, "y": 278.0}]}], "spans": [{"offset": 404, "length": 35}], "confidence": 0.918}, "CustomerId": {"value_type": "string", "value": "883458499", "content": "883458499", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 219.0, "y": 1057.0}, {"x": 287.0, "y": 1057.0}, {"x": 286.0, "y": 1072.0}, {"x": 219.0, "y": 1071.0}]}], "spans": [{"offset": 2086, "length": 9}], "confidence": 0.938}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS INC\nATTN ACCOUNTS PAYABLE", "content": "PLATEPLUS INC\nATTN ACCOUNTS PAYABLE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 256.0}, {"x": 231.0, "y": 256.0}, {"x": 231.0, "y": 278.0}, {"x": 75.0, "y": 278.0}]}], "spans": [{"offset": 404, "length": 35}], "confidence": 0.918}, "DueDate": {"value_type": "date", "value": "2020-12-04", "content": "12/04/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 733.0, "y": 100.0}, {"x": 791.0, "y": 100.0}, {"x": 792.0, "y": 114.0}, {"x": 733.0, "y": 113.0}]}], "spans": [{"offset": 243, "length": 10}], "confidence": 0.941}, "InvoiceDate": {"value_type": "date", "value": "2020-11-04", "content": "11/04/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 733.0, "y": 86.0}, {"x": 791.0, "y": 86.0}, {"x": 791.0, "y": 99.0}, {"x": 733.0, "y": 99.0}]}], "spans": [{"offset": 223, "length": 10}], "confidence": 0.941}, "InvoiceId": {"value_type": "string", "value": "9707310430", "content": "9707310430", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 725.0, "y": 73.0}, {"x": 792.0, "y": 72.0}, {"x": 792.0, "y": 86.0}, {"x": 725.0, "y": 86.0}]}], "spans": [{"offset": 199, "length": 10}], "confidence": 0.942}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 682.3, "symbol": "$"}, "content": "$682.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 778.0, "y": 1056.0}, {"x": 833.0, "y": 1055.0}, {"x": 833.0, "y": 1072.0}, {"x": 779.0, "y": 1072.0}]}], "spans": [{"offset": 2218, "length": 7}], "confidence": 0.936}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 77.5, "symbol": null}, "content": "77.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 759.0, "y": 385.0}, {"x": 789.0, "y": 385.0}, {"x": 789.0, "y": 397.0}, {"x": 759.0, "y": 397.0}]}], "spans": [{"offset": 750, "length": 5}], "confidence": 0.964}, "Description": {"value_type": "string", "value": "WEAR PLUG\nMANUFACTURER # 017939", "content": "WEAR PLUG MANUFACTURER # 017939", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 161.0, "y": 395.0}, {"x": 315.0, "y": 395.0}, {"x": 315.0, "y": 419.0}, {"x": 161.0, "y": 419.0}]}], "spans": [{"offset": 710, "length": 31}], "confidence": 0.877}, "ProductCode": {"value_type": "string", "value": "22ZH55", "content": "22ZH55", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 386.0}, {"x": 138.0, "y": 386.0}, {"x": 138.0, "y": 398.0}, {"x": 97.0, "y": 398.0}]}], "spans": [{"offset": 703, "length": 6}], "confidence": 0.963}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 594.0, "y": 386.0}, {"x": 600.0, "y": 386.0}, {"x": 600.0, "y": 396.0}, {"x": 594.0, "y": 396.0}]}], "spans": [{"offset": 742, "length": 1}], "confidence": 0.963}, "UnitPrice": {"value_type": "currency", "value": {"amount": 77.5, "symbol": null}, "content": "77.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 651.0, "y": 385.0}, {"x": 679.0, "y": 385.0}, {"x": 679.0, "y": 397.0}, {"x": 651.0, "y": 397.0}]}], "spans": [{"offset": 744, "length": 5}], "confidence": 0.964}}, "content": "1 1 2\n22ZH55\nWEAR PLUG MANUFACTURER # 017939\n1\n77.50\n77.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 45.0, "y": 385.0}, {"x": 789.0, "y": 385.0}, {"x": 789.0, "y": 425.0}, {"x": 45.0, "y": 425.0}]}], "spans": [{"offset": 697, "length": 58}], "confidence": 0.712}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 472.6, "symbol": null}, "content": "472.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 752.0, "y": 418.0}, {"x": 789.0, "y": 418.0}, {"x": 789.0, "y": 430.0}, {"x": 752.0, "y": 430.0}]}], "spans": [{"offset": 837, "length": 6}], "confidence": 0.964}, "Description": {"value_type": "string", "value": "STEEL STRAPPING TENSIONER,MANUAL,HVY DT\nMANUFACTURER # MIP-1620", "content": "STEEL STRAPPING TENSIONER,MANUAL,HVY DT MANUFACTURER # MIP-1620", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 161.0, "y": 426.0}, {"x": 448.0, "y": 426.0}, {"x": 448.0, "y": 450.0}, {"x": 161.0, "y": 450.0}]}], "spans": [{"offset": 764, "length": 63}], "confidence": 0.611}, "ProductCode": {"value_type": "string", "value": "5ZW74", "content": "5ZW74", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 417.0}, {"x": 134.0, "y": 417.0}, {"x": 134.0, "y": 430.0}, {"x": 96.0, "y": 430.0}]}], "spans": [{"offset": 758, "length": 5}], "confidence": 0.963}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 594.0, "y": 418.0}, {"x": 600.0, "y": 418.0}, {"x": 600.0, "y": 429.0}, {"x": 594.0, "y": 429.0}]}], "spans": [{"offset": 828, "length": 1}], "confidence": 0.963}, "UnitPrice": {"value_type": "currency", "value": {"amount": 472.6, "symbol": null}, "content": "472.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 642.0, "y": 418.0}, {"x": 679.0, "y": 418.0}, {"x": 679.0, "y": 430.0}, {"x": 642.0, "y": 430.0}]}], "spans": [{"offset": 830, "length": 6}], "confidence": 0.964}}, "content": "2\n5ZW74\nSTEEL STRAPPING TENSIONER,MANUAL,HVY DT MANUFACTURER # MIP-1620\n1\n472.60\n472.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 46.0, "y": 417.0}, {"x": 789.0, "y": 417.0}, {"x": 789.0, "y": 450.0}, {"x": 46.0, "y": 450.0}]}], "spans": [{"offset": 756, "length": 87}], "confidence": 0.803}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 73.0, "symbol": null}, "content": "73.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 759.0, "y": 451.0}, {"x": 789.0, "y": 451.0}, {"x": 789.0, "y": 463.0}, {"x": 759.0, "y": 463.0}]}], "spans": [{"offset": 894, "length": 5}], "confidence": 0.964}, "Description": {"value_type": "string", "value": "FEED WHEEL\nMANUFACTURER # 020517", "content": "FEED WHEEL MANUFACTURER # 020517", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 162.0, "y": 461.0}, {"x": 315.0, "y": 461.0}, {"x": 315.0, "y": 485.0}, {"x": 162.0, "y": 485.0}]}], "spans": [{"offset": 853, "length": 32}], "confidence": 0.757}, "ProductCode": {"value_type": "string", "value": "22UP47", "content": "22UP47", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 451.0}, {"x": 139.0, "y": 451.0}, {"x": 139.0, "y": 464.0}, {"x": 97.0, "y": 463.0}]}], "spans": [{"offset": 846, "length": 6}], "confidence": 0.963}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 593.0, "y": 450.0}, {"x": 600.0, "y": 450.0}, {"x": 601.0, "y": 462.0}, {"x": 594.0, "y": 463.0}]}], "spans": [{"offset": 886, "length": 1}], "confidence": 0.963}, "UnitPrice": {"value_type": "currency", "value": {"amount": 73.0, "symbol": null}, "content": "73.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 650.0, "y": 450.0}, {"x": 680.0, "y": 450.0}, {"x": 680.0, "y": 463.0}, {"x": 650.0, "y": 463.0}]}], "spans": [{"offset": 888, "length": 5}], "confidence": 0.964}}, "content": "3\n22UP47\nFEED WHEEL MANUFACTURER # 020517\n1\n73.00\n73.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 46.0, "y": 450.0}, {"x": 789.0, "y": 450.0}, {"x": 789.0, "y": 485.0}, {"x": 46.0, "y": 485.0}]}], "spans": [{"offset": 844, "length": 55}], "confidence": 0.822}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "FOB ORIGIN", "content": "FOB ORIGIN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 631.0, "y": 193.0}, {"x": 693.0, "y": 193.0}, {"x": 693.0, "y": 206.0}, {"x": 631.0, "y": 206.0}]}], "spans": [{"offset": 385, "length": 10}], "confidence": 0.936}, "PurchaseOrder": {"value_type": "string", "value": "WEB1799858845", "content": "WEB1799858845", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 631.0, "y": 147.0}, {"x": 714.0, "y": 147.0}, {"x": 714.0, "y": 159.0}, {"x": 632.0, "y": 158.0}]}], "spans": [{"offset": 284, "length": 13}], "confidence": 0.935}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. BOX 419267", "road": null, "city": "KANSAS CITY", "state": "MO", "postal_code": "64141-6267", "country_region": null, "street_address": "P.O. BOX 419267"}, "content": "P.O. BOX 419267\nKANSAS CITY, MO 64141-6267", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 903.0}, {"x": 636.0, "y": 903.0}, {"x": 636.0, "y": 929.0}, {"x": 463.0, "y": 929.0}]}], "spans": [{"offset": 1965, "length": 42}], "confidence": 0.89}, "RemittanceAddressRecipient": {"value_type": "string", "value": "GRAINGER\nDEPT. 886857658", "content": "GRAINGER\nDEPT. 886857658", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 879.0}, {"x": 562.0, "y": 880.0}, {"x": 562.0, "y": 909.0}, {"x": 463.0, "y": 908.0}]}], "spans": [{"offset": 1940, "length": 24}], "confidence": 0.926}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "266", "po_box": null, "road": "Blair Bend Dr", "city": "Loudon", "state": "TN", "postal_code": "37774-6564", "country_region": null, "street_address": "266 Blair Bend Dr"}, "content": "266 Blair Bend Dr\nLoudon TN 37774-6564", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 160.0}, {"x": 203.0, "y": 160.0}, {"x": 203.0, "y": 183.0}, {"x": 74.0, "y": 183.0}]}], "spans": [{"offset": 87, "length": 38}], "confidence": 0.9}, "ShippingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS", "content": "PLATEPLUS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 149.0}, {"x": 142.0, "y": 149.0}, {"x": 142.0, "y": 162.0}, {"x": 75.0, "y": 161.0}]}], "spans": [{"offset": 77, "length": 9}], "confidence": 0.939}, "SubTotal": {"value_type": "currency", "value": {"amount": 623.1, "symbol": null}, "content": "623.10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 746.0, "y": 671.0}, {"x": 783.0, "y": 671.0}, {"x": 783.0, "y": 684.0}, {"x": 746.0, "y": 683.0}]}], "spans": [{"offset": 1715, "length": 6}], "confidence": 0.941}, "TotalTax": {"value_type": "currency", "value": {"amount": 59.2, "symbol": null}, "content": "59.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 754.0, "y": 681.0}, {"x": 784.0, "y": 681.0}, {"x": 784.0, "y": 692.0}, {"x": 754.0, "y": 693.0}]}], "spans": [{"offset": 1726, "length": 5}], "confidence": 0.94}, "VendorAddress": {"value_type": "address", "value": {"house_number": "6500", "po_box": null, "road": "BAUM DR.", "city": "KNOXVILLE", "state": "TN", "postal_code": "37919-7309", "country_region": null, "street_address": "6500 BAUM DR."}, "content": "6500 BAUM DR. KNOXVILLE, TN 37919-7309", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 44.0, "y": 69.0}, {"x": 204.0, "y": 69.0}, {"x": 204.0, "y": 93.0}, {"x": 44.0, "y": 93.0}]}], "spans": [{"offset": 13, "length": 38}], "confidence": 0.889}, "VendorAddressRecipient": {"value_type": "string", "value": "DC MINOOKA 005", "content": "DC MINOOKA 005", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 259.0, "y": 524.0}, {"x": 359.0, "y": 524.0}, {"x": 359.0, "y": 537.0}, {"x": 259.0, "y": 537.0}]}], "spans": [{"offset": 1028, "length": 14}], "confidence": 0.3}, "VendorName": {"value_type": "string", "value": "GRAINGER\u00ae", "content": "GRAINGER\u00ae", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 43.0, "y": 16.0}, {"x": 257.0, "y": 15.0}, {"x": 258.0, "y": 51.0}, {"x": 42.0, "y": 50.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": 0.936}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0002BER-76624-VR-6393-png-1_png_jpg.rf.9a39a5235b8187ccb2dde3a825bff57f.json b/Data/train/0002BER-76624-VR-6393-png-1_png_jpg.rf.9a39a5235b8187ccb2dde3a825bff57f.json new file mode 100644 index 0000000000000000000000000000000000000000..cb8273993465a456f1cc37d2664f5496e3722477 --- /dev/null +++ b/Data/train/0002BER-76624-VR-6393-png-1_png_jpg.rf.9a39a5235b8187ccb2dde3a825bff57f.json @@ -0,0 +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": 473}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. BOX 6034", "road": null, "city": "FARGO", "state": "ND", "postal_code": "58108-6034", "country_region": null, "street_address": "P.O. BOX 6034"}, "content": "P.O. BOX 6034\nFARGO, ND 58108-6034", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 64.0, "y": 142.0}, {"x": 175.0, "y": 142.0}, {"x": 175.0, "y": 162.0}, {"x": 64.0, "y": 162.0}]}], "spans": [{"offset": 147, "length": 34}], "confidence": 0.913}, "BillingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS, INC.\nATTN: 19884-50249849", "content": "PLATEPLUS, INC.\nATTN: 19884-50249849", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 64.0, "y": 122.0}, {"x": 174.0, "y": 122.0}, {"x": 174.0, "y": 142.0}, {"x": 64.0, "y": 142.0}]}], "spans": [{"offset": 110, "length": 36}], "confidence": 0.929}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS, INC.\nATTN: 19884-50249849", "content": "PLATEPLUS, INC.\nATTN: 19884-50249849", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 64.0, "y": 122.0}, {"x": 174.0, "y": 122.0}, {"x": 174.0, "y": 142.0}, {"x": 64.0, "y": 142.0}]}], "spans": [{"offset": 110, "length": 36}], "confidence": 0.929}, "InvoiceDate": {"value_type": "date", "value": "2021-05-19", "content": "5/19/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 412.0, "y": 66.0}, {"x": 461.0, "y": 66.0}, {"x": 461.0, "y": 77.0}, {"x": 412.0, "y": 77.0}]}], "spans": [{"offset": 205, "length": 9}], "confidence": 0.984}, "InvoiceId": {"value_type": "string", "value": "76624", "content": "76624", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 68.0}, {"x": 540.0, "y": 67.0}, {"x": 540.0, "y": 77.0}, {"x": 513.0, "y": 76.0}]}], "spans": [{"offset": 215, "length": 5}], "confidence": 0.984}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 110.0, "symbol": "$"}, "content": "$110.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 532.0, "y": 591.0}, {"x": 568.0, "y": 591.0}, {"x": 568.0, "y": 601.0}, {"x": 532.0, "y": 601.0}]}], "spans": [{"offset": 466, "length": 7}], "confidence": 0.983}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 110.0, "symbol": null}, "content": "110.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 507.0, "y": 289.0}, {"x": 537.0, "y": 289.0}, {"x": 537.0, "y": 298.0}, {"x": 507.0, "y": 298.0}]}], "spans": [{"offset": 384, "length": 6}], "confidence": 0.937}, "Description": {"value_type": "string", "value": "ARMANDO TORRES\nRECEIPT NO. 196777 / SA 88952", "content": "ARMANDO TORRES RECEIPT NO. 196777 / SA 88952", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 48.0, "y": 288.0}, {"x": 201.0, "y": 288.0}, {"x": 201.0, "y": 309.0}, {"x": 48.0, "y": 309.0}]}], "spans": [{"offset": 339, "length": 44}], "confidence": 0.927}}, "content": "ARMANDO TORRES RECEIPT NO. 196777 / SA 88952\n110.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 48.0, "y": 288.0}, {"x": 537.0, "y": 288.0}, {"x": 537.0, "y": 309.0}, {"x": 48.0, "y": 309.0}]}], "spans": [{"offset": 339, "length": 51}], "confidence": 0.903}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "NET 45", "content": "NET 45", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 226.0, "y": 238.0}, {"x": 260.0, "y": 238.0}, {"x": 260.0, "y": 248.0}, {"x": 226.0, "y": 248.0}]}], "spans": [{"offset": 313, "length": 6}], "confidence": 0.943}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "4303", "po_box": null, "road": "KENNEDY AVENUE", "city": "EAST CHICAGO", "state": "IN", "postal_code": "46312", "country_region": null, "street_address": "4303 KENNEDY AVENUE"}, "content": "4303 KENNEDY AVENUE\nEAST CHICAGO, IN 46312", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 390.0, "y": 132.0}, {"x": 511.0, "y": 132.0}, {"x": 511.0, "y": 152.0}, {"x": 390.0, "y": 152.0}]}], "spans": [{"offset": 246, "length": 42}], "confidence": 0.907}, "ShippingAddressRecipient": {"value_type": "string", "value": "PLATEPLUS, INC.", "content": "PLATEPLUS, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 389.0, "y": 122.0}, {"x": 471.0, "y": 122.0}, {"x": 471.0, "y": 133.0}, {"x": 389.0, "y": 133.0}]}], "spans": [{"offset": 230, "length": 15}], "confidence": 0.942}, "VendorAddress": {"value_type": "address", "value": {"house_number": "7121", "po_box": null, "road": "INDIANAPOLIS BLVD.", "city": "HAMMOND", "state": "IN", "postal_code": "48324-2289", "country_region": null, "street_address": "7121 INDIANAPOLIS BLVD."}, "content": "7121 INDIANAPOLIS BLVD. HAMMOND, IN 48324-2289", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 101.0, "y": 55.0}, {"x": 207.0, "y": 55.0}, {"x": 207.0, "y": 71.0}, {"x": 101.0, "y": 71.0}]}], "spans": [{"offset": 14, "length": 46}], "confidence": 0.89}, "VendorName": {"value_type": "string", "value": "B BEREY BROS.", "content": "B BEREY BROS.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 71.0, "y": 31.0}, {"x": 236.0, "y": 35.0}, {"x": 236.0, "y": 58.0}, {"x": 70.0, "y": 54.0}]}], "spans": [{"offset": 0, "length": 13}], "confidence": 0.599}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0002CHA-106237-png-1_png_jpg.rf.0bb5daa45d0a4085733ec6404a67ffa2.json b/Data/train/0002CHA-106237-png-1_png_jpg.rf.0bb5daa45d0a4085733ec6404a67ffa2.json new file mode 100644 index 0000000000000000000000000000000000000000..b9273b9d4abb4967fbaa81c0410755d8decbf8e0 --- /dev/null +++ b/Data/train/0002CHA-106237-png-1_png_jpg.rf.0bb5daa45d0a4085733ec6404a67ffa2.json @@ -0,0 +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": 1455}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "WATERWAY AVENUE", "city": "THE WOODLANDS", "state": "TX", "postal_code": "77385", "country_region": "UNITED STATES", "street_address": "21 WATERWAY AVENUE SUITE 525"}, "content": "21 WATERWAY AVENUE\nSUITE 525\nTHE WOODLANDS, TX 77385\nUNITED STATES", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 65.0, "y": 150.0}, {"x": 229.0, "y": 150.0}, {"x": 229.0, "y": 187.0}, {"x": 65.0, "y": 187.0}]}], "spans": [{"offset": 74, "length": 66}], "confidence": 0.845}, "CustomerAddressRecipient": {"value_type": "string", "value": "PLATEPLUS, INC.\nATTN: ACCOUNTS PAYABLE", "content": "PLATEPLUS, INC.\nATTN: ACCOUNTS PAYABLE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 65.0, "y": 133.0}, {"x": 216.0, "y": 133.0}, {"x": 216.0, "y": 150.0}, {"x": 65.0, "y": 150.0}]}], "spans": [{"offset": 35, "length": 38}], "confidence": 0.88}, "CustomerId": {"value_type": "string", "value": "19911}", "content": "19911}", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 124.0}, {"x": 208.0, "y": 124.0}, {"x": 208.0, "y": 133.0}, {"x": 170.0, "y": 132.0}]}], "spans": [{"offset": 28, "length": 6}], "confidence": 0.726}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS, INC.\nATTN: ACCOUNTS PAYABLE", "content": "PLATEPLUS, INC.\nATTN: ACCOUNTS PAYABLE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 65.0, "y": 133.0}, {"x": 216.0, "y": 133.0}, {"x": 216.0, "y": 150.0}, {"x": 65.0, "y": 150.0}]}], "spans": [{"offset": 35, "length": 38}], "confidence": 0.88}, "DueDate": {"value_type": "date", "value": "2021-06-09", "content": "09Jun21", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 507.0, "y": 52.0}, {"x": 553.0, "y": 52.0}, {"x": 554.0, "y": 62.0}, {"x": 507.0, "y": 62.0}]}], "spans": [{"offset": 246, "length": 7}], "confidence": 0.936}, "InvoiceDate": {"value_type": "date", "value": "2021-05-10", "content": "10May21", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 507.0, "y": 43.0}, {"x": 554.0, "y": 44.0}, {"x": 554.0, "y": 54.0}, {"x": 507.0, "y": 53.0}]}], "spans": [{"offset": 232, "length": 7}], "confidence": 0.95}, "InvoiceId": {"value_type": "string", "value": "HOU IV-106237", "content": "HOU IV-106237", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 34.0}, {"x": 582.0, "y": 34.0}, {"x": 582.0, "y": 44.0}, {"x": 492.0, "y": 44.0}]}], "spans": [{"offset": 212, "length": 13}], "confidence": 0.831}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 37549.32, "symbol": null}, "content": "37,549.32", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 560.0}, {"x": 554.0, "y": 559.0}, {"x": 554.0, "y": 568.0}, {"x": 493.0, "y": 569.0}]}], "spans": [{"offset": 1384, "length": 9}], "confidence": 0.652}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 37549.32, "symbol": null}, "content": "37,549.32", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 514.0, "y": 302.0}, {"x": 575.0, "y": 301.0}, {"x": 575.0, "y": 311.0}, {"x": 514.0, "y": 310.0}]}], "spans": [{"offset": 727, "length": 9}], "confidence": 0.9}, "Description": {"value_type": "string", "value": "MATERIAL", "content": "MATERIAL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 37.0, "y": 302.0}, {"x": 91.0, "y": 301.0}, {"x": 92.0, "y": 310.0}, {"x": 37.0, "y": 310.0}]}], "spans": [{"offset": 693, "length": 8}], "confidence": 0.221}, "Quantity": {"value_type": "float", "value": 46966.0, "content": "46,966 LBS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 245.0, "y": 300.0}, {"x": 312.0, "y": 302.0}, {"x": 312.0, "y": 312.0}, {"x": 245.0, "y": 310.0}]}], "spans": [{"offset": 702, "length": 10}], "confidence": 0.291}, "Unit": {"value_type": "string", "value": "CWT", "content": "CWT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 431.0, "y": 301.0}, {"x": 452.0, "y": 301.0}, {"x": 452.0, "y": 310.0}, {"x": 431.0, "y": 310.0}]}], "spans": [{"offset": 723, "length": 3}], "confidence": 0.177}, "UnitPrice": {"value_type": "currency", "value": {"amount": 79.95, "symbol": null}, "content": "79.9500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 370.0, "y": 302.0}, {"x": 415.0, "y": 302.0}, {"x": 415.0, "y": 310.0}, {"x": 370.0, "y": 310.0}]}], "spans": [{"offset": 715, "length": 7}], "confidence": 0.421}}, "content": "USA (MELT & MFG. ) MATERIAL\n46,966 LBS @\n79.9500\nCWT\n37,549.32", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 30.0, "y": 292.0}, {"x": 575.0, "y": 292.0}, {"x": 575.0, "y": 311.0}, {"x": 30.0, "y": 311.0}]}], "spans": [{"offset": 674, "length": 62}], "confidence": 0.299}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "TUL-132282/JORDAN/BARBARA", "content": "TUL-132282/JORDAN/BARBARA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 321.0, "y": 203.0}, {"x": 492.0, "y": 203.0}, {"x": 491.0, "y": 212.0}, {"x": 321.0, "y": 213.0}]}], "spans": [{"offset": 446, "length": 25}], "confidence": 0.595}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "PO Box 951928", "road": null, "city": "Dallas", "state": "TX", "postal_code": "75395-1928", "country_region": null, "street_address": "PO Box 951928"}, "content": "PO Box 951928\nDallas, TX 75395-1928", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 340.0, "y": 69.0}, {"x": 492.0, "y": 69.0}, {"x": 492.0, "y": 89.0}, {"x": 340.0, "y": 89.0}]}], "spans": [{"offset": 172, "length": 35}], "confidence": 0.889}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Chapel Steel", "content": "Chapel Steel", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 61.0}, {"x": 423.0, "y": 61.0}, {"x": 423.0, "y": 70.0}, {"x": 341.0, "y": 70.0}]}], "spans": [{"offset": 159, "length": 12}], "confidence": 0.924}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "6605", "po_box": null, "road": "N. HOUSTON ROSSLYN RD.", "city": "HOUSTON", "state": "TX", "postal_code": "77091", "country_region": null, "street_address": "6605 N. HOUSTON ROSSLYN RD."}, "content": "6605 N. HOUSTON ROSSLYN RD. HOUSTON, TX 77091", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 340.0, "y": 141.0}, {"x": 526.0, "y": 141.0}, {"x": 526.0, "y": 160.0}, {"x": 340.0, "y": 160.0}]}], "spans": [{"offset": 293, "length": 45}], "confidence": 0.866}, "ShippingAddressRecipient": {"value_type": "string", "value": "CPU - PLATEPLUS, INC.", "content": "CPU - PLATEPLUS, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 340.0, "y": 132.0}, {"x": 485.0, "y": 132.0}, {"x": 485.0, "y": 142.0}, {"x": 340.0, "y": 142.0}]}], "spans": [{"offset": 271, "length": 21}], "confidence": 0.763}, "VendorName": {"value_type": "string", "value": "CHAPEL STEEL", "content": "CHAPEL STEEL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 78.0}, {"x": 298.0, "y": 77.0}, {"x": 298.0, "y": 100.0}, {"x": 79.0, "y": 101.0}]}], "spans": [{"offset": 0, "length": 12}], "confidence": 0.925}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0002CHA-106237-png-1_png_jpg.rf.b9d96dd0d2ee1b8826b7177f22340611.json b/Data/train/0002CHA-106237-png-1_png_jpg.rf.b9d96dd0d2ee1b8826b7177f22340611.json new file mode 100644 index 0000000000000000000000000000000000000000..4e86c75d2caaf5c51c4c746270ac5de69dbba2c2 --- /dev/null +++ b/Data/train/0002CHA-106237-png-1_png_jpg.rf.b9d96dd0d2ee1b8826b7177f22340611.json @@ -0,0 +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": 1454}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "WATERWAY AVENUE", "city": "THE WOODLANDS", "state": "TX", "postal_code": "77385", "country_region": "UNITED STATES", "street_address": "21 WATERWAY AVENUE SUITE 525"}, "content": "21 WATERWAY AVENUE\nSUITE 525\nTHE WOODLANDS, TX 77385\nUNITED STATES", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 65.0, "y": 150.0}, {"x": 229.0, "y": 150.0}, {"x": 229.0, "y": 187.0}, {"x": 65.0, "y": 187.0}]}], "spans": [{"offset": 74, "length": 66}], "confidence": 0.845}, "CustomerAddressRecipient": {"value_type": "string", "value": "PLATEPLUS, INC.\nATTN: ACCOUNTS PAYABLE", "content": "PLATEPLUS, INC.\nATTN: ACCOUNTS PAYABLE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 65.0, "y": 133.0}, {"x": 215.0, "y": 133.0}, {"x": 215.0, "y": 150.0}, {"x": 65.0, "y": 150.0}]}], "spans": [{"offset": 35, "length": 38}], "confidence": 0.878}, "CustomerId": {"value_type": "string", "value": "19911}", "content": "19911}", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 124.0}, {"x": 208.0, "y": 124.0}, {"x": 208.0, "y": 133.0}, {"x": 170.0, "y": 132.0}]}], "spans": [{"offset": 28, "length": 6}], "confidence": 0.732}, "CustomerName": {"value_type": "string", "value": "PLATEPLUS, INC.\nATTN: ACCOUNTS PAYABLE", "content": "PLATEPLUS, INC.\nATTN: ACCOUNTS PAYABLE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 65.0, "y": 133.0}, {"x": 215.0, "y": 133.0}, {"x": 215.0, "y": 150.0}, {"x": 65.0, "y": 150.0}]}], "spans": [{"offset": 35, "length": 38}], "confidence": 0.878}, "DueDate": {"value_type": "date", "value": "2021-06-09", "content": "09Jun21", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 507.0, "y": 52.0}, {"x": 554.0, "y": 53.0}, {"x": 554.0, "y": 62.0}, {"x": 507.0, "y": 62.0}]}], "spans": [{"offset": 246, "length": 7}], "confidence": 0.936}, "InvoiceDate": {"value_type": "date", "value": "2021-05-10", "content": "10May21", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 507.0, "y": 43.0}, {"x": 554.0, "y": 44.0}, {"x": 554.0, "y": 54.0}, {"x": 508.0, "y": 53.0}]}], "spans": [{"offset": 232, "length": 7}], "confidence": 0.946}, "InvoiceId": {"value_type": "string", "value": "HOU IV-106237", "content": "HOU IV-106237", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 34.0}, {"x": 582.0, "y": 34.0}, {"x": 582.0, "y": 44.0}, {"x": 492.0, "y": 44.0}]}], "spans": [{"offset": 212, "length": 13}], "confidence": 0.889}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 37549.32, "symbol": null}, "content": "37,549.32", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 560.0}, {"x": 554.0, "y": 559.0}, {"x": 554.0, "y": 569.0}, {"x": 493.0, "y": 569.0}]}], "spans": [{"offset": 1383, "length": 9}], "confidence": 0.657}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 37549.32, "symbol": null}, "content": "37,549.32", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 514.0, "y": 302.0}, {"x": 575.0, "y": 301.0}, {"x": 575.0, "y": 311.0}, {"x": 514.0, "y": 310.0}]}], "spans": [{"offset": 712, "length": 9}], "confidence": 0.828}, "Description": {"value_type": "string", "value": "USA\nMATERIAL", "content": "USA\nMATERIAL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 30.0, "y": 292.0}, {"x": 92.0, "y": 292.0}, {"x": 92.0, "y": 310.0}, {"x": 30.0, "y": 310.0}]}], "spans": [{"offset": 672, "length": 3}, {"offset": 691, "length": 8}], "confidence": 0.149}, "Quantity": {"value_type": "float", "value": 46966.0, "content": "46,966 LBS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 245.0, "y": 301.0}, {"x": 313.0, "y": 301.0}, {"x": 313.0, "y": 310.0}, {"x": 245.0, "y": 310.0}]}], "spans": [{"offset": 746, "length": 10}], "confidence": 0.292}, "Unit": {"value_type": "string", "value": "CWT", "content": "CWT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 431.0, "y": 301.0}, {"x": 452.0, "y": 301.0}, {"x": 452.0, "y": 310.0}, {"x": 431.0, "y": 310.0}]}], "spans": [{"offset": 708, "length": 3}], "confidence": 0.161}, "UnitPrice": {"value_type": "currency", "value": {"amount": 79.95, "symbol": null}, "content": "79.9500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 370.0, "y": 302.0}, {"x": 415.0, "y": 302.0}, {"x": 415.0, "y": 310.0}, {"x": 370.0, "y": 310.0}]}], "spans": [{"offset": 700, "length": 7}], "confidence": 0.296}}, "content": "USA (MELT & MFG. )\nMATERIAL\n79.9500 CWT\n37,549.32\n46,966 LBS @", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 30.0, "y": 292.0}, {"x": 575.0, "y": 292.0}, {"x": 575.0, "y": 311.0}, {"x": 30.0, "y": 311.0}]}], "spans": [{"offset": 672, "length": 49}, {"offset": 746, "length": 12}], "confidence": 0.246}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "TUL-132282/JORDAN/BARBARA", "content": "TUL-132282/JORDAN/BARBARA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 321.0, "y": 203.0}, {"x": 491.0, "y": 203.0}, {"x": 491.0, "y": 212.0}, {"x": 321.0, "y": 213.0}]}], "spans": [{"offset": 444, "length": 25}], "confidence": 0.549}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "PO Box 951928", "road": null, "city": "Dallas", "state": "TX", "postal_code": "75395-1928", "country_region": null, "street_address": "PO Box 951928"}, "content": "PO Box 951928\nDallas, TX 75395-1928", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 340.0, "y": 69.0}, {"x": 492.0, "y": 69.0}, {"x": 492.0, "y": 89.0}, {"x": 340.0, "y": 89.0}]}], "spans": [{"offset": 172, "length": 35}], "confidence": 0.885}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Chapel Steel", "content": "Chapel Steel", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 60.0}, {"x": 423.0, "y": 61.0}, {"x": 423.0, "y": 72.0}, {"x": 341.0, "y": 70.0}]}], "spans": [{"offset": 159, "length": 12}], "confidence": 0.921}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "6605", "po_box": null, "road": "N. HOUSTON ROSSLYN RD.", "city": "HOUSTON", "state": "TX", "postal_code": "77091", "country_region": null, "street_address": "6605 N. HOUSTON ROSSLYN RD."}, "content": "6605 N. HOUSTON ROSSLYN RD. HOUSTON, TX 77091", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 340.0, "y": 141.0}, {"x": 526.0, "y": 141.0}, {"x": 526.0, "y": 160.0}, {"x": 340.0, "y": 160.0}]}], "spans": [{"offset": 291, "length": 45}], "confidence": 0.86}, "ShippingAddressRecipient": {"value_type": "string", "value": "CPU - PLATEPLUS, INC.", "content": "CPU - PLATEPLUS, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 340.0, "y": 132.0}, {"x": 485.0, "y": 132.0}, {"x": 485.0, "y": 142.0}, {"x": 340.0, "y": 142.0}]}], "spans": [{"offset": 269, "length": 21}], "confidence": 0.751}, "VendorName": {"value_type": "string", "value": "CHAPEL STEEL", "content": "CHAPEL STEEL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 76.0}, {"x": 299.0, "y": 76.0}, {"x": 299.0, "y": 101.0}, {"x": 79.0, "y": 101.0}]}], "spans": [{"offset": 0, "length": 12}], "confidence": 0.921}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/0bd2c883-0000CHR-INV877760-VR-8165-png-1_png_jpg.rf.a1bb1ade176aa0f423521a479dc204d0.json b/Data/train/0bd2c883-0000CHR-INV877760-VR-8165-png-1_png_jpg.rf.a1bb1ade176aa0f423521a479dc204d0.json new file mode 100644 index 0000000000000000000000000000000000000000..2d006df5aaf9bc351ab961856ea2393a939026d2 --- /dev/null +++ b/Data/train/0bd2c883-0000CHR-INV877760-VR-8165-png-1_png_jpg.rf.a1bb1ade176aa0f423521a479dc204d0.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 900.0, "y": 0.0}, {"x": 900.0, "y": 1100.0}, {"x": 0.0, "y": 1100.0}]}], "spans": [{"offset": 0, "length": 1690}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 1309.94, "symbol": "USD"}, "content": "USD $1,309.94", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 748.0, "y": 740.0}, {"x": 840.0, "y": 741.0}, {"x": 840.0, "y": 757.0}, {"x": 748.0, "y": 756.0}]}], "spans": [{"offset": 712, "length": 13}], "confidence": 0.933}, "BillingAddress": {"value_type": "address", "value": {"house_number": "21", "po_box": null, "road": "Waterway Ave", "city": "Spring", "state": "TX", "postal_code": "77380-3129", "country_region": "United States", "street_address": "21 Waterway Ave Ste 525"}, "content": "21 Waterway Ave Ste 525\nSpring TX 77380-3129\nUnited States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 370.0}, {"x": 212.0, "y": 370.0}, {"x": 212.0, "y": 415.0}, {"x": 60.0, "y": 415.0}]}], "spans": [{"offset": 130, "length": 58}], "confidence": 0.888}, "BillingAddressRecipient": {"value_type": "string", "value": "Plateplus, Inc.", "content": "Plateplus, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 354.0}, {"x": 145.0, "y": 356.0}, {"x": 145.0, "y": 372.0}, {"x": 60.0, "y": 370.0}]}], "spans": [{"offset": 114, "length": 15}], "confidence": 0.934}, "CustomerName": {"value_type": "string", "value": "Plateplus, Inc.", "content": "Plateplus, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 354.0}, {"x": 145.0, "y": 356.0}, {"x": 145.0, "y": 372.0}, {"x": 60.0, "y": 370.0}]}], "spans": [{"offset": 114, "length": 15}], "confidence": 0.934}, "DueDate": {"value_type": "date", "value": "2021-06-01", "content": "6/1/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 717.0, "y": 185.0}, {"x": 771.0, "y": 185.0}, {"x": 771.0, "y": 201.0}, {"x": 717.0, "y": 201.0}]}], "spans": [{"offset": 92, "length": 8}], "confidence": 0.943}, "InvoiceDate": {"value_type": "date", "value": "2021-06-01", "content": "6/1/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 717.0, "y": 114.0}, {"x": 771.0, "y": 114.0}, {"x": 771.0, "y": 129.0}, {"x": 718.0, "y": 128.0}]}], "spans": [{"offset": 33, "length": 8}], "confidence": 0.943}, "InvoiceId": {"value_type": "string", "value": "INV877760", "content": "INV877760", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 717.0, "y": 138.0}, {"x": 785.0, "y": 137.0}, {"x": 785.0, "y": 153.0}, {"x": 718.0, "y": 152.0}]}], "spans": [{"offset": 52, "length": 9}], "confidence": 0.943}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1309.94, "symbol": "USD"}, "content": "USD $1,309.94", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 748.0, "y": 740.0}, {"x": 840.0, "y": 741.0}, {"x": 840.0, "y": 757.0}, {"x": 748.0, "y": 756.0}]}], "spans": [{"offset": 712, "length": 13}], "confidence": 0.933}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 787.0, "y": 497.0}, {"x": 822.0, "y": 497.0}, {"x": 822.0, "y": 511.0}, {"x": 787.0, "y": 512.0}]}], "spans": [{"offset": 335, "length": 5}], "confidence": 0.933}, "Date": {"value_type": "date", "value": "2021-05-31", "content": "5/1/2021\n5/31/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 442.0, "y": 498.0}, {"x": 583.0, "y": 498.0}, {"x": 583.0, "y": 512.0}, {"x": 442.0, "y": 512.0}]}], "spans": [{"offset": 307, "length": 18}], "confidence": 0.935}, "Description": {"value_type": "string", "value": "EXPENSE\n-\nTransactional\nOverage", "content": "EXPENSE - Transactional Overage", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 216.0, "y": 496.0}, {"x": 422.0, "y": 498.0}, {"x": 422.0, "y": 530.0}, {"x": 216.0, "y": 529.0}]}], "spans": [{"offset": 275, "length": 31}], "confidence": 0.872}, "Quantity": {"value_type": "float", "value": 68.0, "content": "68", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 499.0}, {"x": 182.0, "y": 499.0}, {"x": 182.0, "y": 511.0}, {"x": 168.0, "y": 511.0}]}], "spans": [{"offset": 272, "length": 2}], "confidence": 0.935}, "TaxRate": {"value_type": "string", "value": "0%", "content": "0%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 711.0, "y": 498.0}, {"x": 732.0, "y": 499.0}, {"x": 732.0, "y": 511.0}, {"x": 711.0, "y": 510.0}]}], "spans": [{"offset": 332, "length": 2}], "confidence": 0.934}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 619.0, "y": 498.0}, {"x": 652.0, "y": 498.0}, {"x": 653.0, "y": 512.0}, {"x": 620.0, "y": 512.0}]}], "spans": [{"offset": 326, "length": 5}], "confidence": 0.933}}, "content": "68\nEXPENSE - Transactional Overage\n5/1/2021\n5/31/2021\n$0.00\n0%\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 497.0}, {"x": 822.0, "y": 497.0}, {"x": 822.0, "y": 529.0}, {"x": 168.0, "y": 529.0}]}], "spans": [{"offset": 272, "length": 68}], "confidence": 0.816}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 12.0, "symbol": "$"}, "content": "$12.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 783.0, "y": 542.0}, {"x": 824.0, "y": 540.0}, {"x": 824.0, "y": 555.0}, {"x": 783.0, "y": 555.0}]}], "spans": [{"offset": 404, "length": 6}], "confidence": 0.934}, "Date": {"value_type": "date", "value": "2021-05-31", "content": "5/1/2021\n5/31/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 443.0, "y": 540.0}, {"x": 582.0, "y": 541.0}, {"x": 582.0, "y": 555.0}, {"x": 443.0, "y": 554.0}]}], "spans": [{"offset": 373, "length": 18}], "confidence": 0.935}, "Description": {"value_type": "string", "value": "DIRECT PAY - ACH Transaction", "content": "DIRECT PAY - ACH Transaction", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 224.0, "y": 539.0}, {"x": 412.0, "y": 539.0}, {"x": 412.0, "y": 555.0}, {"x": 224.0, "y": 555.0}]}], "spans": [{"offset": 344, "length": 28}], "confidence": 0.8}, "Quantity": {"value_type": "float", "value": 24.0, "content": "24", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 540.0}, {"x": 182.0, "y": 540.0}, {"x": 182.0, "y": 553.0}, {"x": 168.0, "y": 553.0}]}], "spans": [{"offset": 341, "length": 2}], "confidence": 0.935}, "TaxRate": {"value_type": "string", "value": "8.25%", "content": "8.25%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 701.0, "y": 541.0}, {"x": 739.0, "y": 541.0}, {"x": 739.0, "y": 554.0}, {"x": 701.0, "y": 553.0}]}], "spans": [{"offset": 398, "length": 5}], "confidence": 0.934}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.5, "symbol": "$"}, "content": "$0.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 619.0, "y": 540.0}, {"x": 652.0, "y": 540.0}, {"x": 653.0, "y": 553.0}, {"x": 620.0, "y": 553.0}]}], "spans": [{"offset": 392, "length": 5}], "confidence": 0.932}}, "content": "24\nDIRECT PAY - ACH Transaction\n5/1/2021\n5/31/2021\n$0.50\n8.25%\n$12.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 539.0}, {"x": 824.0, "y": 539.0}, {"x": 824.0, "y": 555.0}, {"x": 168.0, "y": 555.0}]}], "spans": [{"offset": 341, "length": 69}], "confidence": 0.799}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1093.31, "symbol": "$"}, "content": "$1,093.31", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 774.0, "y": 567.0}, {"x": 833.0, "y": 566.0}, {"x": 833.0, "y": 581.0}, {"x": 774.0, "y": 580.0}]}], "spans": [{"offset": 487, "length": 9}], "confidence": 0.933}, "Date": {"value_type": "date", "value": "2021-06-30", "content": "6/1/2021\n6/30/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 443.0, "y": 566.0}, {"x": 582.0, "y": 567.0}, {"x": 582.0, "y": 581.0}, {"x": 443.0, "y": 579.0}]}], "spans": [{"offset": 449, "length": 18}], "confidence": 0.936}, "Description": {"value_type": "string", "value": "EXPENSE\n-\nTransactional\n(Monthly)", "content": "EXPENSE - Transactional (Monthly)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 215.0, "y": 565.0}, {"x": 420.0, "y": 567.0}, {"x": 420.0, "y": 599.0}, {"x": 215.0, "y": 598.0}]}], "spans": [{"offset": 415, "length": 33}], "confidence": 0.802}, "Quantity": {"value_type": "float", "value": 175.0, "content": "175", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 567.0}, {"x": 185.0, "y": 567.0}, {"x": 185.0, "y": 579.0}, {"x": 165.0, "y": 579.0}]}], "spans": [{"offset": 411, "length": 3}], "confidence": 0.935}, "TaxRate": {"value_type": "string", "value": "8.25%", "content": "8.25%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 702.0, "y": 568.0}, {"x": 740.0, "y": 568.0}, {"x": 740.0, "y": 580.0}, {"x": 702.0, "y": 580.0}]}], "spans": [{"offset": 481, "length": 5}], "confidence": 0.934}, "UnitPrice": {"value_type": "currency", "value": {"amount": 6.247485, "symbol": "$"}, "content": "$6.247485", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 602.0, "y": 567.0}, {"x": 670.0, "y": 567.0}, {"x": 670.0, "y": 581.0}, {"x": 603.0, "y": 580.0}]}], "spans": [{"offset": 468, "length": 9}], "confidence": 0.735}}, "content": "175\nEXPENSE - Transactional (Monthly)\n6/1/2021\n6/30/2021\n$6.247485 71\n8.25%\n$1,093.31", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 566.0}, {"x": 833.0, "y": 566.0}, {"x": 833.0, "y": 598.0}, {"x": 165.0, "y": 598.0}]}], "spans": [{"offset": 411, "length": 85}], "confidence": 0.759}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 784.0, "y": 608.0}, {"x": 823.0, "y": 607.0}, {"x": 823.0, "y": 621.0}, {"x": 784.0, "y": 621.0}]}], "spans": [{"offset": 560, "length": 6}], "confidence": 0.872}, "Date": {"value_type": "date", "value": "2021-06-30", "content": "6/1/2021\n6/30/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 443.0, "y": 607.0}, {"x": 581.0, "y": 607.0}, {"x": 581.0, "y": 621.0}, {"x": 443.0, "y": 621.0}]}], "spans": [{"offset": 528, "length": 18}], "confidence": 0.935}, "Description": {"value_type": "string", "value": "DIRECT PAY - Monthly Service", "content": "DIRECT PAY - Monthly Service", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 226.0, "y": 606.0}, {"x": 410.0, "y": 606.0}, {"x": 410.0, "y": 623.0}, {"x": 226.0, "y": 623.0}]}], "spans": [{"offset": 499, "length": 28}], "confidence": 0.869}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 608.0}, {"x": 178.0, "y": 608.0}, {"x": 178.0, "y": 619.0}, {"x": 172.0, "y": 619.0}]}], "spans": [{"offset": 497, "length": 1}], "confidence": 0.935}, "TaxRate": {"value_type": "string", "value": "8.25%", "content": "8.25%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 701.0, "y": 608.0}, {"x": 740.0, "y": 608.0}, {"x": 740.0, "y": 621.0}, {"x": 701.0, "y": 621.0}]}], "spans": [{"offset": 554, "length": 5}], "confidence": 0.934}, "UnitPrice": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 615.0, "y": 607.0}, {"x": 656.0, "y": 608.0}, {"x": 657.0, "y": 622.0}, {"x": 616.0, "y": 621.0}]}], "spans": [{"offset": 547, "length": 6}], "confidence": 0.933}}, "content": "1\nDIRECT PAY - Monthly Service\n6/1/2021\n6/30/2021\n$50.00\n8.25%\n$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 606.0}, {"x": 823.0, "y": 606.0}, {"x": 823.0, "y": 623.0}, {"x": 172.0, "y": 623.0}]}], "spans": [{"offset": 497, "length": 69}], "confidence": 0.799}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 73.5, "symbol": "$"}, "content": "$73.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 783.0, "y": 634.0}, {"x": 824.0, "y": 633.0}, {"x": 824.0, "y": 648.0}, {"x": 783.0, "y": 647.0}]}], "spans": [{"offset": 625, "length": 6}], "confidence": 0.933}, "Date": {"value_type": "date", "value": "2021-06-30", "content": "6/1/2021\n6/30/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 442.0, "y": 633.0}, {"x": 582.0, "y": 633.0}, {"x": 582.0, "y": 647.0}, {"x": 442.0, "y": 647.0}]}], "spans": [{"offset": 594, "length": 18}], "confidence": 0.936}, "Description": {"value_type": "string", "value": "FOLIO - Expense Bundle", "content": "FOLIO - Expense Bundle", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 243.0, "y": 632.0}, {"x": 393.0, "y": 632.0}, {"x": 393.0, "y": 649.0}, {"x": 243.0, "y": 649.0}]}], "spans": [{"offset": 571, "length": 22}], "confidence": 0.87}, "Quantity": {"value_type": "float", "value": 175.0, "content": "175", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 633.0}, {"x": 185.0, "y": 633.0}, {"x": 185.0, "y": 646.0}, {"x": 165.0, "y": 646.0}]}], "spans": [{"offset": 567, "length": 3}], "confidence": 0.934}, "TaxRate": {"value_type": "string", "value": "8.25%", "content": "8.25%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 700.0, "y": 634.0}, {"x": 741.0, "y": 634.0}, {"x": 741.0, "y": 647.0}, {"x": 701.0, "y": 647.0}]}], "spans": [{"offset": 619, "length": 5}], "confidence": 0.935}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.42, "symbol": "$"}, "content": "$0.42", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 620.0, "y": 633.0}, {"x": 653.0, "y": 633.0}, {"x": 653.0, "y": 647.0}, {"x": 620.0, "y": 647.0}]}], "spans": [{"offset": 613, "length": 5}], "confidence": 0.933}}, "content": "175\nFOLIO - Expense Bundle\n6/1/2021\n6/30/2021\n$0.42\n8.25%\n$73.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 632.0}, {"x": 824.0, "y": 632.0}, {"x": 824.0, "y": 649.0}, {"x": 165.0, "y": 649.0}]}], "spans": [{"offset": 567, "length": 64}], "confidence": 0.815}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Due on receipt", "content": "Due on receipt", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 718.0, "y": 160.0}, {"x": 808.0, "y": 162.0}, {"x": 808.0, "y": 179.0}, {"x": 718.0, "y": 177.0}]}], "spans": [{"offset": 68, "length": 14}], "confidence": 0.932}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": "320", "po_box": "P.O. Box 840669", "road": "Cumberland Ave\nPortland, ME 04", "city": "Los Angeles", "state": "CA", "postal_code": "90084-0669", "country_region": null, "street_address": "320 Cumberland Ave\nPortland, ME 04 P.O. Box 840669"}, "content": "P.O. Box 840669 Los Angeles, CA 90084-0669\n320 Cumberland Ave Portland, ME 04 101", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 277.0, "y": 971.0}, {"x": 414.0, "y": 971.0}, {"x": 414.0, "y": 1065.0}, {"x": 277.0, "y": 1065.0}]}], "spans": [{"offset": 1114, "length": 42}, {"offset": 1243, "length": 38}], "confidence": 0.829}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Chrome River Technologies, Inc.\nChrome River Technologies, Inc.\nAttn: Accounts Receivable", "content": "Chrome River Technologies, Inc.\nChrome River Technologies, Inc. Attn: Accounts Receivable", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 277.0, "y": 959.0}, {"x": 427.0, "y": 959.0}, {"x": 427.0, "y": 1043.0}, {"x": 277.0, "y": 1043.0}]}], "spans": [{"offset": 1082, "length": 31}, {"offset": 1185, "length": 57}], "confidence": 0.8}, "ServiceEndDate": {"value_type": "date", "value": "2021-05-31", "content": "5/31/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 523.0, "y": 499.0}, {"x": 583.0, "y": 498.0}, {"x": 583.0, "y": 512.0}, {"x": 523.0, "y": 511.0}]}], "spans": [{"offset": 316, "length": 9}], "confidence": 0.942}, "ServiceStartDate": {"value_type": "date", "value": "2021-05-01", "content": "5/1/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 442.0, "y": 498.0}, {"x": 495.0, "y": 498.0}, {"x": 495.0, "y": 512.0}, {"x": 442.0, "y": 512.0}]}], "spans": [{"offset": 307, "length": 8}], "confidence": 0.943}, "SubTotal": {"value_type": "currency", "value": {"amount": 1228.81, "symbol": "USD"}, "content": "USD $1,228.81", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 748.0, "y": 668.0}, {"x": 839.0, "y": 670.0}, {"x": 839.0, "y": 685.0}, {"x": 748.0, "y": 683.0}]}], "spans": [{"offset": 638, "length": 13}], "confidence": 0.563}, "TotalTax": {"value_type": "currency", "value": {"amount": 81.13, "symbol": "USD"}, "content": "USD $81.13", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 767.0, "y": 693.0}, {"x": 839.0, "y": 693.0}, {"x": 839.0, "y": 708.0}, {"x": 767.0, "y": 708.0}]}], "spans": [{"offset": 662, "length": 10}], "confidence": 0.933}, "VendorName": {"value_type": "string", "value": "emburse\nchromeriver", "content": "emburse chromeriver", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 68.0}, {"x": 353.0, "y": 68.0}, {"x": 353.0, "y": 122.0}, {"x": 123.0, "y": 122.0}]}], "spans": [{"offset": 0, "length": 19}], "confidence": 0.728}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/100_jpg.rf.cd0db3a064e069509021405dc890f045.json b/Data/train/100_jpg.rf.cd0db3a064e069509021405dc890f045.json new file mode 100644 index 0000000000000000000000000000000000000000..279f2cb8ccef41187190531cade2ceb5d7da37aa --- /dev/null +++ b/Data/train/100_jpg.rf.cd0db3a064e069509021405dc890f045.json @@ -0,0 +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": 663}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 6250.0, "symbol": "$"}, "content": "$6,250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 568.0}, {"x": 515.0, "y": 568.0}, {"x": 515.0, "y": 578.0}, {"x": 469.0, "y": 578.0}]}], "spans": [{"offset": 654, "length": 9}], "confidence": null}, "CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "PO BOX 26603", "road": null, "city": "RICHMOND", "state": "VA", "postal_code": "23261", "country_region": null, "street_address": "PO BOX 26603"}, "content": "PO BOX 26603 RICHMOND, VA 23261", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 177.0}, {"x": 218.0, "y": 177.0}, {"x": 218.0, "y": 195.0}, {"x": 125.0, "y": 195.0}]}], "spans": [{"offset": 180, "length": 31}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "Attni ACCOUNTS PAYABLE\nPHILIP MORRIS USA", "content": "Attni ACCOUNTS PAYABLE PHILIP MORRIS USA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 158.0}, {"x": 238.0, "y": 158.0}, {"x": 238.0, "y": 176.0}, {"x": 125.0, "y": 176.0}]}], "spans": [{"offset": 139, "length": 40}], "confidence": null}, "CustomerId": {"value_type": "string", "value": "734", "content": "734", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 183.0, "y": 141.0}, {"x": 196.0, "y": 141.0}, {"x": 197.0, "y": 148.0}, {"x": 183.0, "y": 148.0}]}], "spans": [{"offset": 135, "length": 3}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Attni ACCOUNTS PAYABLE\nPHILIP MORRIS USA", "content": "Attni ACCOUNTS PAYABLE PHILIP MORRIS USA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 158.0}, {"x": 238.0, "y": 158.0}, {"x": 238.0, "y": 176.0}, {"x": 125.0, "y": 176.0}]}], "spans": [{"offset": 139, "length": 40}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1992-09-25", "content": "09/25/92", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 410.0, "y": 68.0}, {"x": 451.0, "y": 67.0}, {"x": 451.0, "y": 77.0}, {"x": 411.0, "y": 76.0}]}], "spans": [{"offset": 234, "length": 8}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "8951", "content": "8951", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 68.0}, {"x": 502.0, "y": 67.0}, {"x": 502.0, "y": 76.0}, {"x": 482.0, "y": 75.0}]}], "spans": [{"offset": 243, "length": 4}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 6250.0, "symbol": "$"}, "content": "$6,250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 568.0}, {"x": 515.0, "y": 568.0}, {"x": 515.0, "y": 578.0}, {"x": 469.0, "y": 578.0}]}], "spans": [{"offset": 654, "length": 9}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 6290.0, "symbol": null}, "content": "6,290.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 470.0, "y": 269.0}, {"x": 510.0, "y": 268.0}, {"x": 510.0, "y": 276.0}, {"x": 470.0, "y": 276.0}]}], "spans": [{"offset": 486, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "Spoker,Panel\nTelephone Interviewingy\nTabulation", "content": "Spoker,Panel\nTelephone Interviewingy Tabulation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 178.0, "y": 246.0}, {"x": 302.0, "y": 245.0}, {"x": 302.0, "y": 278.0}, {"x": 178.0, "y": 280.0}]}], "spans": [{"offset": 408, "length": 12}, {"offset": 451, "length": 34}], "confidence": null}}, "content": "Spoker,Panel\nTelephone Interviewingy Tabulation\n6,290.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 178.0, "y": 246.0}, {"x": 510.0, "y": 242.0}, {"x": 510.0, "y": 276.0}, {"x": 178.0, "y": 280.0}]}], "spans": [{"offset": 408, "length": 12}, {"offset": 451, "length": 43}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "3032220", "content": "3032220", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 322.0, "y": 201.0}, {"x": 356.0, "y": 200.0}, {"x": 356.0, "y": 209.0}, {"x": 322.0, "y": 209.0}]}], "spans": [{"offset": 379, "length": 7}], "confidence": null}, "ServiceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "PO BOX 26603", "road": null, "city": "RICHMOND", "state": "VA", "postal_code": "23261", "country_region": null, "street_address": "PO BOX 26603"}, "content": "PO BOX 26603 RICHMOND, VA 23261", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 356.0, "y": 174.0}, {"x": 448.0, "y": 174.0}, {"x": 448.0, "y": 191.0}, {"x": 356.0, "y": 191.0}]}], "spans": [{"offset": 331, "length": 31}], "confidence": 0.014}, "ServiceAddressRecipient": {"value_type": "string", "value": "Attn: ACCOUNTS PAYABLE\nPHILIP MORRIS USA", "content": "Attn: ACCOUNTS PAYABLE PHILIP MORRIS USA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 356.0, "y": 156.0}, {"x": 467.0, "y": 154.0}, {"x": 467.0, "y": 173.0}, {"x": 356.0, "y": 174.0}]}], "spans": [{"offset": 290, "length": 40}], "confidence": 0.014}, "VendorAddress": {"value_type": "address", "value": {"house_number": "8000", "po_box": null, "road": "CARDUNA AVENUE / RICHMOND, V\u00c0", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "8000 CARDUNA AVENUE / RICHMOND, V\u00c0"}, "content": "8000 CARDUNA AVENUE / RICHMOND, V\u00c0 2113", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 113.0, "y": 121.0}, {"x": 217.0, "y": 119.0}, {"x": 217.0, "y": 126.0}, {"x": 113.0, "y": 128.0}]}], "spans": [{"offset": 58, "length": 39}], "confidence": null}, "VendorName": {"value_type": "string", "value": "NA\nNORTH AMERICAN MARKETING CORP.", "content": "NA\nNORTH AMERICAN MARKETING CORP.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 72.0}, {"x": 287.0, "y": 69.0}, {"x": 288.0, "y": 119.0}, {"x": 112.0, "y": 122.0}]}], "spans": [{"offset": 24, "length": 33}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/102021012274-1_jpg.rf.e0ad709c5312c77f88a7578888eb36c9.json b/Data/train/102021012274-1_jpg.rf.e0ad709c5312c77f88a7578888eb36c9.json new file mode 100644 index 0000000000000000000000000000000000000000..cc24a8705f62a5ad44692ee16ca5a9bf22f8a613 --- /dev/null +++ b/Data/train/102021012274-1_jpg.rf.e0ad709c5312c77f88a7578888eb36c9.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1448.0, "y": 0.0}, {"x": 1448.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 2048}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "\u20b9"}, "content": "\u20b90.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1317.0, "y": 1129.0}, {"x": 1371.0, "y": 1129.0}, {"x": 1370.0, "y": 1149.0}, {"x": 1317.0, "y": 1148.0}]}], "spans": [{"offset": 1425, "length": 5}], "confidence": 0.917}, "BillingAddress": {"value_type": "address", "value": {"house_number": "Suite No.952", "po_box": null, "road": "27th Main, 13th Cross HSR Layout, Sector 1", "city": "Bangalore", "state": "Karnataka", "postal_code": "560102", "country_region": "India", "street_address": "Suite No.952 27th Main, 13th Cross HSR Layout, Sector 1 #677"}, "content": "#677, 1st Floor, Suite No.952 27th Main, 13th Cross HSR Layout, Sector 1 Bangalore 560102 Karnataka India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 69.0, "y": 598.0}, {"x": 713.0, "y": 598.0}, {"x": 713.0, "y": 676.0}, {"x": 69.0, "y": 676.0}]}], "spans": [{"offset": 698, "length": 105}], "confidence": 0.838}, "BillingAddressRecipient": {"value_type": "string", "value": "Hanatech Solutions Private Limited\nAttn:", "content": "Hanatech Solutions Private Limited Attn:", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 69.0, "y": 541.0}, {"x": 442.0, "y": 541.0}, {"x": 442.0, "y": 595.0}, {"x": 69.0, "y": 595.0}]}], "spans": [{"offset": 635, "length": 40}], "confidence": 0.456}, "CustomerName": {"value_type": "string", "value": "Hanatech Solutions Private\nLimited", "content": "Hanatech Solutions Private\nLimited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1052.0, "y": 406.0}, {"x": 1316.0, "y": 406.0}, {"x": 1316.0, "y": 451.0}, {"x": 1052.0, "y": 451.0}]}], "spans": [{"offset": 930, "length": 34}], "confidence": 0.368}, "CustomerTaxId": {"value_type": "string", "value": "29AAFCH1765F1ZI", "content": "29AAFCH1765F1ZI", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 130.0, "y": 681.0}, {"x": 297.0, "y": 680.0}, {"x": 297.0, "y": 704.0}, {"x": 130.0, "y": 704.0}]}], "spans": [{"offset": 810, "length": 15}], "confidence": 0.829}, "DueDate": {"value_type": "date", "value": "2020-05-07", "content": "07 May 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 399.0, "y": 434.0}, {"x": 516.0, "y": 434.0}, {"x": 516.0, "y": 456.0}, {"x": 399.0, "y": 456.0}]}], "spans": [{"offset": 407, "length": 11}], "confidence": 0.911}, "InvoiceDate": {"value_type": "date", "value": "2020-05-07", "content": "07 May 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 399.0, "y": 381.0}, {"x": 515.0, "y": 381.0}, {"x": 515.0, "y": 402.0}, {"x": 399.0, "y": 402.0}]}], "spans": [{"offset": 361, "length": 11}], "confidence": 0.915}, "InvoiceId": {"value_type": "string", "value": "102021012274", "content": "102021012274", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 402.0, "y": 353.0}, {"x": 534.0, "y": 354.0}, {"x": 535.0, "y": 374.0}, {"x": 403.0, "y": 375.0}]}], "spans": [{"offset": 341, "length": 12}], "confidence": 0.938}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 3549.46, "symbol": "\u20b9"}, "content": "\u20b93,549.46", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1284.0, "y": 1067.0}, {"x": 1372.0, "y": 1068.0}, {"x": 1372.0, "y": 1089.0}, {"x": 1284.0, "y": 1088.0}]}], "spans": [{"offset": 1377, "length": 9}], "confidence": 0.936}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3008.02, "symbol": null}, "content": "3,008.02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1300.0, "y": 796.0}, {"x": 1376.0, "y": 794.0}, {"x": 1376.0, "y": 817.0}, {"x": 1300.0, "y": 816.0}]}], "spans": [{"offset": 1165, "length": 8}], "confidence": 0.881}, "Description": {"value_type": "string", "value": "3440101S\nService : Zoho People Plus\nPlan : People Plus\nPayment Duration : Yearly\nStart 07 May 2020 End 08 March 2021", "content": "3440101S Service : Zoho People Plus Plan : People Plus Payment Duration : Yearly Start 07 May 2020 End 08 March 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 70.0, "y": 794.0}, {"x": 404.0, "y": 794.0}, {"x": 404.0, "y": 907.0}, {"x": 70.0, "y": 907.0}]}], "spans": [{"offset": 1023, "length": 116}], "confidence": 0.407}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 756.0, "y": 795.0}, {"x": 791.0, "y": 795.0}, {"x": 791.0, "y": 815.0}, {"x": 756.0, "y": 815.0}]}], "spans": [{"offset": 1140, "length": 4}], "confidence": 0.88}, "Tax": {"value_type": "currency", "value": {"amount": 541.44, "symbol": null}, "content": "541.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1142.0, "y": 796.0}, {"x": 1201.0, "y": 795.0}, {"x": 1202.0, "y": 815.0}, {"x": 1142.0, "y": 814.0}]}], "spans": [{"offset": 1158, "length": 6}], "confidence": 0.665}, "TaxRate": {"value_type": "string", "value": "18%", "content": "18%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1032.0, "y": 795.0}, {"x": 1072.0, "y": 795.0}, {"x": 1072.0, "y": 814.0}, {"x": 1032.0, "y": 814.0}]}], "spans": [{"offset": 1154, "length": 3}], "confidence": 0.88}, "UnitPrice": {"value_type": "currency", "value": {"amount": 3008.02, "symbol": null}, "content": "3,008.02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 862.0, "y": 796.0}, {"x": 937.0, "y": 795.0}, {"x": 937.0, "y": 816.0}, {"x": 862.0, "y": 816.0}]}], "spans": [{"offset": 1145, "length": 8}], "confidence": 0.881}}, "content": "3440101S Service : Zoho People Plus Plan : People Plus Payment Duration : Yearly Start 07 May 2020 End 08 March 2021\n1.00\n3,008.02\n18%\n541.44\n3,008.02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 70.0, "y": 794.0}, {"x": 1376.0, "y": 794.0}, {"x": 1376.0, "y": 907.0}, {"x": 70.0, "y": 907.0}]}], "spans": [{"offset": 1023, "length": 150}], "confidence": 0.362}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Due On Receipt", "content": "Due On Receipt", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 407.0}, {"x": 545.0, "y": 407.0}, {"x": 545.0, "y": 430.0}, {"x": 400.0, "y": 430.0}]}], "spans": [{"offset": 381, "length": 14}], "confidence": 0.912}, "PurchaseOrder": {"value_type": "string", "value": "277000026146795", "content": "277000026146795", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 459.0}, {"x": 568.0, "y": 460.0}, {"x": 569.0, "y": 482.0}, {"x": 401.0, "y": 482.0}]}], "spans": [{"offset": 427, "length": 15}], "confidence": 0.936}, "ServiceEndDate": {"value_type": "date", "value": "2021-03-08", "content": "08 March 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 273.0, "y": 883.0}, {"x": 404.0, "y": 882.0}, {"x": 404.0, "y": 907.0}, {"x": 273.0, "y": 909.0}]}], "spans": [{"offset": 1126, "length": 13}], "confidence": 0.594}, "ServiceStartDate": {"value_type": "date", "value": "2020-05-07", "content": "07 May 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 884.0}, {"x": 230.0, "y": 884.0}, {"x": 230.0, "y": 907.0}, {"x": 119.0, "y": 907.0}]}], "spans": [{"offset": 1110, "length": 11}], "confidence": 0.725}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "Suite No.952", "po_box": null, "road": "27th Main, 13th Cross HSR Layout, Sector 1", "city": "Bangalore", "state": "Karnataka", "postal_code": "560102", "country_region": "India", "street_address": "Suite No.952 27th Main, 13th Cross HSR Layout, Sector 1 #677"}, "content": "#677, 1st Floor, Suite No.952 27th Main, 13th Cross HSR Layout, Sector 1\nBangalore 560102\nKarnataka India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 731.0, "y": 597.0}, {"x": 1373.0, "y": 597.0}, {"x": 1373.0, "y": 676.0}, {"x": 731.0, "y": 676.0}]}], "spans": [{"offset": 529, "length": 105}], "confidence": 0.835}, "ShippingAddressRecipient": {"value_type": "string", "value": "Hanatech Solutions Private Limited\nHanatech Solutions Private Limited", "content": "Hanatech Solutions Private Limited\nHanatech Solutions Private Limited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 731.0, "y": 543.0}, {"x": 1043.0, "y": 543.0}, {"x": 1043.0, "y": 594.0}, {"x": 731.0, "y": 594.0}]}], "spans": [{"offset": 459, "length": 69}], "confidence": 0.876}, "SubTotal": {"value_type": "currency", "value": {"amount": 3008.02, "symbol": null}, "content": "3,008.02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1295.0, "y": 1008.0}, {"x": 1371.0, "y": 1007.0}, {"x": 1371.0, "y": 1030.0}, {"x": 1296.0, "y": 1029.0}]}], "spans": [{"offset": 1342, "length": 8}], "confidence": 0.937}, "TotalTax": {"value_type": "currency", "value": {"amount": 541.44, "symbol": null}, "content": "541.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1311.0, "y": 1039.0}, {"x": 1370.0, "y": 1038.0}, {"x": 1371.0, "y": 1058.0}, {"x": 1312.0, "y": 1058.0}]}], "spans": [{"offset": 1364, "length": 6}], "confidence": 0.936}, "VendorAddress": {"value_type": "address", "value": {"house_number": "361", "po_box": null, "road": "Avvai Shanmugam Salai (Lloyds Road", "city": "Chennai", "state": null, "postal_code": null, "country_region": "India", "street_address": "361 Avvai Shanmugam Salai (Lloyds Road"}, "content": "361 Avvai Shanmugam Salai (Lloyds Road), Gopalapuram, Chennai,\nChennai, India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 390.0, "y": 136.0}, {"x": 767.0, "y": 136.0}, {"x": 767.0, "y": 230.0}, {"x": 390.0, "y": 230.0}]}], "spans": [{"offset": 108, "length": 62}, {"offset": 189, "length": 14}], "confidence": 0.596}, "VendorAddressRecipient": {"value_type": "string", "value": "Zoho Technologies Pvt. Ltd.", "content": "Zoho Technologies Pvt. Ltd.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 390.0, "y": 94.0}, {"x": 780.0, "y": 94.0}, {"x": 780.0, "y": 129.0}, {"x": 390.0, "y": 129.0}]}], "spans": [{"offset": 75, "length": 27}], "confidence": 0.801}, "VendorName": {"value_type": "string", "value": "ZOHO", "content": "ZOHO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 199.0}, {"x": 326.0, "y": 198.0}, {"x": 326.0, "y": 259.0}, {"x": 97.0, "y": 261.0}]}], "spans": [{"offset": 103, "length": 4}], "confidence": 0.936}, "VendorTaxId": {"value_type": "string", "value": "33AAACZ5230C1ZU", "content": "33AAACZ5230C1ZU", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 320.0}, {"x": 627.0, "y": 320.0}, {"x": 627.0, "y": 341.0}, {"x": 454.0, "y": 341.0}]}], "spans": [{"offset": 302, "length": 15}], "confidence": 0.763}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/102_jpg.rf.d922c557df468306ae9d2ead08ac1995.json b/Data/train/102_jpg.rf.d922c557df468306ae9d2ead08ac1995.json new file mode 100644 index 0000000000000000000000000000000000000000..ed6c688c9da2dcfe1d75a2df91877f26cc9d380f --- /dev/null +++ b/Data/train/102_jpg.rf.d922c557df468306ae9d2ead08ac1995.json @@ -0,0 +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": 1556}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "Box 287", "road": null, "city": "Richmond", "state": "VA", "postal_code": null, "country_region": "2329B", "street_address": "Box 287"}, "content": "Box 287\nRichmond, VA 2329B", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 149.0}, {"x": 231.0, "y": 149.0}, {"x": 231.0, "y": 172.0}, {"x": 151.0, "y": 172.0}]}], "spans": [{"offset": 108, "length": 26}], "confidence": 0.418}, "CustomerAddressRecipient": {"value_type": "string", "value": "Medical College of VA Foundation", "content": "Medical College of VA Foundation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 136.0}, {"x": 292.0, "y": 136.0}, {"x": 292.0, "y": 148.0}, {"x": 151.0, "y": 148.0}]}], "spans": [{"offset": 75, "length": 32}], "confidence": 0.298}, "CustomerName": {"value_type": "string", "value": "Medical College of VA Foundation", "content": "Medical College of VA Foundation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 136.0}, {"x": 292.0, "y": 136.0}, {"x": 292.0, "y": 148.0}, {"x": 151.0, "y": 148.0}]}], "spans": [{"offset": 75, "length": 32}], "confidence": 0.298}, "DueDate": {"value_type": "date", "value": "1990-10-09", "content": "Oct. 9/ 1990", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 417.0, "y": 318.0}, {"x": 472.0, "y": 318.0}, {"x": 472.0, "y": 329.0}, {"x": 417.0, "y": 329.0}]}], "spans": [{"offset": 399, "length": 12}], "confidence": 0.533}, "InvoiceDate": {"value_type": "date", "value": "1990-10-03", "content": "Oct. 3. 1990", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 434.0, "y": 76.0}, {"x": 488.0, "y": 76.0}, {"x": 488.0, "y": 86.0}, {"x": 434.0, "y": 86.0}]}], "spans": [{"offset": 48, "length": 12}], "confidence": 0.812}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 25000.0, "symbol": "$"}, "content": "$25,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 237.0}, {"x": 496.0, "y": 237.0}, {"x": 496.0, "y": 247.0}, {"x": 454.0, "y": 246.0}]}], "spans": [{"offset": 319, "length": 10}], "confidence": 0.011}, "Description": {"value_type": "string", "value": "Grant for Dr. P. Guzelian (1 of 4 quarterly\npayments for third year of five years)", "content": "Grant for Dr. P. Guzelian (1 of 4 quarterly\npayments for third year of five years)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 224.0}, {"x": 340.0, "y": 224.0}, {"x": 340.0, "y": 248.0}, {"x": 151.0, "y": 248.0}]}], "spans": [{"offset": 226, "length": 82}], "confidence": null}}, "content": "Grant for Dr. P. Guzelian (1 of 4 quarterly\npayments for third year of five years)\n9-301-470\n$25,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 224.0}, {"x": 496.0, "y": 224.0}, {"x": 496.0, "y": 248.0}, {"x": 151.0, "y": 248.0}]}], "spans": [{"offset": 226, "length": 103}], "confidence": 0.229}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorName": {"value_type": "string", "value": "PHILIP MORRIS U. S. A.", "content": "PHILIP MORRIS U. S. A.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 255.0, "y": 57.0}, {"x": 375.0, "y": 57.0}, {"x": 375.0, "y": 70.0}, {"x": 255.0, "y": 70.0}]}], "spans": [{"offset": 9, "length": 22}], "confidence": 0.599}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/103_jpg.rf.3740bf066b18623aeb04d6f585df21c6.json b/Data/train/103_jpg.rf.3740bf066b18623aeb04d6f585df21c6.json new file mode 100644 index 0000000000000000000000000000000000000000..ca068466e4cc18a8512781ebd140db6b7ed8cc64 --- /dev/null +++ b/Data/train/103_jpg.rf.3740bf066b18623aeb04d6f585df21c6.json @@ -0,0 +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": 1007}], "fields": {"CustomerName": {"value_type": "string", "value": "Dhr: J. Joris", "content": "Dhr: J. Joris", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 206.0, "y": 295.0}, {"x": 278.0, "y": 297.0}, {"x": 278.0, "y": 308.0}, {"x": 206.0, "y": 306.0}]}], "spans": [{"offset": 350, "length": 13}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": null, "content": "89", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 218.0, "y": 323.0}, {"x": 228.0, "y": 324.0}, {"x": 228.0, "y": 332.0}, {"x": 218.0, "y": 333.0}]}], "spans": [{"offset": 385, "length": 2}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 516.0, "symbol": null}, "content": "516.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 457.0}, {"x": 467.0, "y": 457.0}, {"x": 467.0, "y": 467.0}, {"x": 434.0, "y": 466.0}]}], "spans": [{"offset": 653, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "franse les mot flextebel\ntijdschema aan 1. 700 BEC/h", "content": "franse les mot flextebel\ntijdschema aan 1. 700 BEC/h", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 258.0, "y": 443.0}, {"x": 401.0, "y": 447.0}, {"x": 400.0, "y": 466.0}, {"x": 258.0, "y": 462.0}]}], "spans": [{"offset": 600, "length": 52}], "confidence": null}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3'0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 438.0}, {"x": 132.0, "y": 438.0}, {"x": 132.0, "y": 448.0}, {"x": 122.0, "y": 448.0}]}], "spans": [{"offset": 596, "length": 3}], "confidence": null}}, "content": "3'0 franse les mot flextebel\ntijdschema aan 1. 700 BEC/h 516.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 438.0}, {"x": 467.0, "y": 444.0}, {"x": 467.0, "y": 467.0}, {"x": 122.0, "y": 460.0}]}], "spans": [{"offset": 596, "length": 64}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "56", "po_box": null, "road": "Stationsstraat", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "56 Stationsstraat"}, "content": "Stationsstraat 56.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 127.0, "y": 184.0}, {"x": 222.0, "y": 186.0}, {"x": 222.0, "y": 197.0}, {"x": 127.0, "y": 195.0}]}], "spans": [{"offset": 152, "length": 18}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "Communication Corporation (2 x C)", "content": "Communication Corporation (2 x C)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 127.0, "y": 174.0}, {"x": 308.0, "y": 178.0}, {"x": 308.0, "y": 191.0}, {"x": 127.0, "y": 187.0}]}], "spans": [{"offset": 80, "length": 33}], "confidence": null}, "VendorName": {"value_type": "string", "value": "CRC CONTRACT RESEARCH CENTER DE", "content": "CRC CONTRACT RESEARCH CENTER DE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 91.0}, {"x": 474.0, "y": 105.0}, {"x": 473.0, "y": 132.0}, {"x": 133.0, "y": 118.0}]}], "spans": [{"offset": 0, "length": 31}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/104_jpg.rf.d3f094b63ff270ba9b6dbd8dfb759a18.json b/Data/train/104_jpg.rf.d3f094b63ff270ba9b6dbd8dfb759a18.json new file mode 100644 index 0000000000000000000000000000000000000000..e0e1b706b8118241f0ea73a5fe032536b040f588 --- /dev/null +++ b/Data/train/104_jpg.rf.d3f094b63ff270ba9b6dbd8dfb759a18.json @@ -0,0 +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": 918}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "464\nB-3030", "po_box": null, "road": "Geldenaaksobaan", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "464\nB-3030 Geldenaaksobaan"}, "content": "Geldenaaksobaan 464\nB-3030\nLouyan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 209.0}, {"x": 218.0, "y": 211.0}, {"x": 218.0, "y": 241.0}, {"x": 112.0, "y": 239.0}]}], "spans": [{"offset": 86, "length": 33}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "TELEFAX\nVEI", "content": "TELEFAX\nVEI", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 113.0, "y": 181.0}, {"x": 153.0, "y": 183.0}, {"x": 152.0, "y": 209.0}, {"x": 112.0, "y": 207.0}]}], "spans": [{"offset": 74, "length": 11}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "TELEFAX\nVEI", "content": "TELEFAX\nVEI", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 113.0, "y": 181.0}, {"x": 153.0, "y": 183.0}, {"x": 152.0, "y": 209.0}, {"x": 112.0, "y": 207.0}]}], "spans": [{"offset": 74, "length": 11}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2009-03-20", "content": "20.maa. 09", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 329.0}, {"x": 216.0, "y": 330.0}, {"x": 216.0, "y": 340.0}, {"x": 168.0, "y": 339.0}]}], "spans": [{"offset": 211, "length": 10}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 6.852, "symbol": null}, "content": "6.852 .-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 545.0}, {"x": 475.0, "y": 547.0}, {"x": 475.0, "y": 556.0}, {"x": 437.0, "y": 554.0}]}], "spans": [{"offset": 757, "length": 8}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 748.0, "symbol": null}, "content": "748 ;-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 451.0, "y": 474.0}, {"x": 477.0, "y": 474.0}, {"x": 477.0, "y": 482.0}, {"x": 451.0, "y": 482.0}]}], "spans": [{"offset": 608, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "maatkolf met NS-stop; N5 12\n(50 mlj, bestelnr. 1123512.", "content": "maatkolf met NS-stop; N5 12\n(50 mlj, bestelnr. 1123512.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 247.0, "y": 458.0}, {"x": 396.0, "y": 461.0}, {"x": 396.0, "y": 482.0}, {"x": 247.0, "y": 479.0}]}], "spans": [{"offset": 552, "length": 55}], "confidence": null}, "Unit": {"value_type": "string", "value": "stuk", "content": "stuk", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 176.0, "y": 458.0}, {"x": 197.0, "y": 458.0}, {"x": 196.0, "y": 467.0}, {"x": 176.0, "y": 466.0}]}], "spans": [{"offset": 547, "length": 4}], "confidence": null}}, "content": "stuk\nmaatkolf met NS-stop; N5 12\n(50 mlj, bestelnr. 1123512.\n748 ;-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 176.0, "y": 456.0}, {"x": 477.0, "y": 463.0}, {"x": 477.0, "y": 484.0}, {"x": 176.0, "y": 477.0}]}], "spans": [{"offset": 547, "length": 67}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1.224, "symbol": null}, "content": "1.224,-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 439.0, "y": 499.0}, {"x": 475.0, "y": 499.0}, {"x": 475.0, "y": 510.0}, {"x": 439.0, "y": 509.0}]}], "spans": [{"offset": 677, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "maatkolf met NS-stop, NS 14\n(250 ml); bestelnr. 1123520.", "content": "maatkolf met NS-stop, NS 14 (250 ml); bestelnr. 1123520.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 245.0, "y": 485.0}, {"x": 397.0, "y": 489.0}, {"x": 397.0, "y": 509.0}, {"x": 245.0, "y": 505.0}]}], "spans": [{"offset": 620, "length": 56}], "confidence": null}, "Unit": {"value_type": "string", "value": "atuk", "content": "atuk", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 176.0, "y": 485.0}, {"x": 197.0, "y": 485.0}, {"x": 197.0, "y": 494.0}, {"x": 176.0, "y": 493.0}]}], "spans": [{"offset": 615, "length": 4}], "confidence": null}}, "content": "atuk\nmaatkolf met NS-stop, NS 14 (250 ml); bestelnr. 1123520.\n1.224,-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 176.0, "y": 484.0}, {"x": 475.0, "y": 490.0}, {"x": 475.0, "y": 511.0}, {"x": 176.0, "y": 504.0}]}], "spans": [{"offset": 615, "length": 69}], "confidence": null}, {"value_type": "dictionary", "value": {"Description": {"value_type": "string", "value": "horlogeglazen uit gewoon glas\n(80 == 0), bestelnr. 1179735", "content": "horlogeglazen uit gewoon glas (80 == 0), bestelnr. 1179735", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 245.0, "y": 512.0}, {"x": 406.0, "y": 517.0}, {"x": 406.0, "y": 537.0}, {"x": 245.0, "y": 533.0}]}], "spans": [{"offset": 690, "length": 58}], "confidence": null}, "Unit": {"value_type": "string", "value": "stuk", "content": "stuk", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 174.0, "y": 511.0}, {"x": 196.0, "y": 511.0}, {"x": 196.0, "y": 521.0}, {"x": 174.0, "y": 521.0}]}], "spans": [{"offset": 685, "length": 4}], "confidence": null}}, "content": "stuk\nhorlogeglazen uit gewoon glas (80 == 0), bestelnr. 1179735", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 174.0, "y": 510.0}, {"x": 406.0, "y": 517.0}, {"x": 406.0, "y": 537.0}, {"x": 173.0, "y": 531.0}]}], "spans": [{"offset": 685, "length": 63}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "30 -dagen pinde van de maand", "content": "30 -dagen pinde van de maand", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 238.0, "y": 591.0}, {"x": 387.0, "y": 596.0}, {"x": 387.0, "y": 610.0}, {"x": 238.0, "y": 605.0}]}], "spans": [{"offset": 890, "length": 28}], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "2/20.maa. 89", "content": "2/20.maa. 89", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 250.0, "y": 265.0}, {"x": 311.0, "y": 266.0}, {"x": 311.0, "y": 279.0}, {"x": 250.0, "y": 278.0}]}], "spans": [{"offset": 149, "length": 12}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 4.724, "symbol": null}, "content": "4.724,-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 440.0, "y": 445.0}, {"x": 478.0, "y": 446.0}, {"x": 478.0, "y": 456.0}, {"x": 440.0, "y": 453.0}]}], "spans": [{"offset": 539, "length": 7}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "101d", "po_box": null, "road": "B-1940", "city": "Zaventem", "state": null, "postal_code": null, "country_region": null, "street_address": "101d B-1940"}, "content": "B-1940 Zaventem Tolean/Avenue du Plage 101d", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 373.0, "y": 179.0}, {"x": 487.0, "y": 182.0}, {"x": 486.0, "y": 210.0}, {"x": 373.0, "y": 208.0}]}], "spans": [{"offset": 348, "length": 43}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "CONTRACT RESEARCH CENTER BVBASPAL", "content": "CONTRACT RESEARCH CENTER BVBASPAL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 185.0, "y": 111.0}, {"x": 493.0, "y": 119.0}, {"x": 493.0, "y": 136.0}, {"x": 185.0, "y": 128.0}]}], "spans": [{"offset": 16, "length": 33}], "confidence": null}, "VendorName": {"value_type": "string", "value": "CRC", "content": "CRC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 116.0, "y": 100.0}, {"x": 170.0, "y": 100.0}, {"x": 170.0, "y": 126.0}, {"x": 116.0, "y": 125.0}]}], "spans": [{"offset": 12, "length": 3}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/105_jpg.rf.5808f70bbaaed04d619cee4f487b4106.json b/Data/train/105_jpg.rf.5808f70bbaaed04d619cee4f487b4106.json new file mode 100644 index 0000000000000000000000000000000000000000..d550cea12484acd0ecd30f6e2de9e4b1300ba2df --- /dev/null +++ b/Data/train/105_jpg.rf.5808f70bbaaed04d619cee4f487b4106.json @@ -0,0 +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": 539}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "464", "po_box": null, "road": "Vel\nGeldensaksebaan", "city": "Leuven", "state": null, "postal_code": "B-3030", "country_region": null, "street_address": "464 Vel\nGeldensaksebaan"}, "content": "Vel Geldensaksebaan 464\nB-3030\nLeuven", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 141.0}, {"x": 229.0, "y": 141.0}, {"x": 229.0, "y": 180.0}, {"x": 123.0, "y": 180.0}]}], "spans": [{"offset": 60, "length": 37}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1989-12-21", "content": "21 dec. 89", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 186.0, "y": 281.0}, {"x": 235.0, "y": 281.0}, {"x": 235.0, "y": 292.0}, {"x": 186.0, "y": 292.0}]}], "spans": [{"offset": 253, "length": 10}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 8.357, "symbol": null}, "content": "8.357,-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 456.0, "y": 430.0}, {"x": 495.0, "y": 430.0}, {"x": 495.0, "y": 442.0}, {"x": 457.0, "y": 440.0}]}], "spans": [{"offset": 436, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5.8, "symbol": null}, "content": "5.800,-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 411.0}, {"x": 495.0, "y": 411.0}, {"x": 496.0, "y": 424.0}, {"x": 455.0, "y": 423.0}]}], "spans": [{"offset": 420, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "slang uit silicone mat bulten-\ndiameter van 21 mm en binnen-\ndiameter van 15 mm, nx. 7327795", "content": "slang uit silicone mat bulten- diameter van 21 mm en binnen- diameter van 15 mm, nx. 7327795", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 262.0, "y": 391.0}, {"x": 435.0, "y": 391.0}, {"x": 435.0, "y": 422.0}, {"x": 262.0, "y": 422.0}]}], "spans": [{"offset": 327, "length": 92}], "confidence": null}, "Quantity": {"value_type": "float", "value": 20.0, "content": "20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 390.0}, {"x": 136.0, "y": 390.0}, {"x": 136.0, "y": 401.0}, {"x": 125.0, "y": 401.0}]}], "spans": [{"offset": 324, "length": 2}], "confidence": null}}, "content": "20\nslang uit silicone mat bulten- diameter van 21 mm en binnen- diameter van 15 mm, nx. 7327795 5.800,-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 390.0}, {"x": 496.0, "y": 390.0}, {"x": 496.0, "y": 424.0}, {"x": 125.0, "y": 424.0}]}], "spans": [{"offset": 324, "length": 103}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "2/21", "content": "2/21", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 262.0, "y": 215.0}, {"x": 286.0, "y": 216.0}, {"x": 286.0, "y": 229.0}, {"x": 262.0, "y": 228.0}]}], "spans": [{"offset": 172, "length": 4}], "confidence": null}, "VendorName": {"value_type": "string", "value": "CRC\nCONTRACT RESEARCH CENTER", "content": "CRC\nCONTRACT RESEARCH CENTER", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 41.0}, {"x": 390.0, "y": 44.0}, {"x": 390.0, "y": 72.0}, {"x": 125.0, "y": 69.0}]}], "spans": [{"offset": 0, "length": 28}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/10_jpg.rf.9602ef095993a679a9d12b1bcab51e1b.json b/Data/train/10_jpg.rf.9602ef095993a679a9d12b1bcab51e1b.json new file mode 100644 index 0000000000000000000000000000000000000000..04d622a06ff35b15b6cd18812b6b15c69f8e1256 --- /dev/null +++ b/Data/train/10_jpg.rf.9602ef095993a679a9d12b1bcab51e1b.json @@ -0,0 +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": 418}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 5500.0, "symbol": "$"}, "content": "$5,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 445.0}, {"x": 535.0, "y": 444.0}, {"x": 535.0, "y": 455.0}, {"x": 495.0, "y": 455.0}]}], "spans": [{"offset": 409, "length": 9}], "confidence": 0.976}, "BillingAddress": {"value_type": "address", "value": {"house_number": "123", "po_box": null, "road": "Main Street", "city": "Townsville", "state": "Ontario", "postal_code": "M4L2DY", "country_region": null, "street_address": "123 Main Street"}, "content": "123 Main Street\nTownsville, Ontario\nM4L2DY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 195.0}, {"x": 179.0, "y": 195.0}, {"x": 179.0, "y": 228.0}, {"x": 103.0, "y": 228.0}]}], "spans": [{"offset": 181, "length": 15}, {"offset": 206, "length": 19}, {"offset": 237, "length": 6}], "confidence": 0.896}, "BillingAddressRecipient": {"value_type": "string", "value": "Aden Matchett\nVandelay Group", "content": "Aden Matchett\nVandelay Group", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 173.0}, {"x": 168.0, "y": 173.0}, {"x": 168.0, "y": 195.0}, {"x": 104.0, "y": 195.0}]}], "spans": [{"offset": 152, "length": 28}], "confidence": 0.931}, "CustomerName": {"value_type": "string", "value": "Aden Matchett\nVandelay Group", "content": "Aden Matchett\nVandelay Group", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 173.0}, {"x": 168.0, "y": 173.0}, {"x": 168.0, "y": 195.0}, {"x": 104.0, "y": 195.0}]}], "spans": [{"offset": 152, "length": 28}], "confidence": 0.931}, "DueDate": {"value_type": "date", "value": "2019-07-03", "content": "07/03/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 228.0, "y": 211.0}, {"x": 274.0, "y": 211.0}, {"x": 274.0, "y": 222.0}, {"x": 228.0, "y": 222.0}]}], "spans": [{"offset": 226, "length": 10}], "confidence": 0.984}, "InvoiceDate": {"value_type": "date", "value": "2019-06-03", "content": "06/03/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 228.0, "y": 173.0}, {"x": 273.0, "y": 173.0}, {"x": 273.0, "y": 183.0}, {"x": 228.0, "y": 182.0}]}], "spans": [{"offset": 91, "length": 10}], "confidence": 0.984}, "InvoiceId": {"value_type": "string", "value": "0000005", "content": "0000005", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 322.0, "y": 173.0}, {"x": 357.0, "y": 172.0}, {"x": 358.0, "y": 183.0}, {"x": 323.0, "y": 182.0}]}], "spans": [{"offset": 117, "length": 7}], "confidence": 0.984}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 5500.0, "symbol": null}, "content": "5,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 499.0, "y": 409.0}, {"x": 535.0, "y": 409.0}, {"x": 535.0, "y": 419.0}, {"x": 499.0, "y": 419.0}]}], "spans": [{"offset": 366, "length": 8}], "confidence": 0.979}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5000.0, "symbol": "$"}, "content": "$5,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 306.0}, {"x": 535.0, "y": 305.0}, {"x": 535.0, "y": 315.0}, {"x": 495.0, "y": 315.0}]}], "spans": [{"offset": 296, "length": 9}], "confidence": 0.887}, "Description": {"value_type": "string", "value": "Project", "content": "Project", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 306.0}, {"x": 133.0, "y": 306.0}, {"x": 133.0, "y": 316.0}, {"x": 104.0, "y": 316.0}]}], "spans": [{"offset": 276, "length": 7}], "confidence": 0.843}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 466.0, "y": 305.0}, {"x": 472.0, "y": 305.0}, {"x": 472.0, "y": 314.0}, {"x": 467.0, "y": 315.0}]}], "spans": [{"offset": 294, "length": 1}], "confidence": 0.892}, "UnitPrice": {"value_type": "currency", "value": {"amount": 5000.0, "symbol": "$"}, "content": "$5,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 368.0, "y": 305.0}, {"x": 408.0, "y": 305.0}, {"x": 409.0, "y": 315.0}, {"x": 368.0, "y": 315.0}]}], "spans": [{"offset": 284, "length": 9}], "confidence": 0.663}}, "content": "Project\n$5,000.00\n1\n$5,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 305.0}, {"x": 535.0, "y": 305.0}, {"x": 535.0, "y": 316.0}, {"x": 104.0, "y": 316.0}]}], "spans": [{"offset": 276, "length": 29}], "confidence": 0.824}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "$"}, "content": "$500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 502.0, "y": 330.0}, {"x": 534.0, "y": 330.0}, {"x": 534.0, "y": 340.0}, {"x": 502.0, "y": 339.0}]}], "spans": [{"offset": 325, "length": 7}], "confidence": 0.886}, "Description": {"value_type": "string", "value": "Expenses", "content": "Expenses", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 331.0}, {"x": 144.0, "y": 330.0}, {"x": 144.0, "y": 340.0}, {"x": 104.0, "y": 340.0}]}], "spans": [{"offset": 306, "length": 8}], "confidence": 0.893}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 330.0}, {"x": 472.0, "y": 330.0}, {"x": 471.0, "y": 339.0}, {"x": 467.0, "y": 338.0}]}], "spans": [{"offset": 323, "length": 1}], "confidence": 0.891}, "UnitPrice": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "$"}, "content": "$500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 376.0, "y": 331.0}, {"x": 408.0, "y": 330.0}, {"x": 408.0, "y": 339.0}, {"x": 376.0, "y": 339.0}]}], "spans": [{"offset": 315, "length": 7}], "confidence": 0.734}}, "content": "Expenses\n$500.00\n1\n$500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 323.0}, {"x": 534.0, "y": 330.0}, {"x": 534.0, "y": 347.0}, {"x": 104.0, "y": 340.0}]}], "spans": [{"offset": 306, "length": 26}], "confidence": 0.821}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 5500.0, "symbol": null}, "content": "5,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 499.0, "y": 370.0}, {"x": 534.0, "y": 370.0}, {"x": 534.0, "y": 380.0}, {"x": 499.0, "y": 379.0}]}], "spans": [{"offset": 342, "length": 8}], "confidence": 0.983}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 516.0, "y": 385.0}, {"x": 534.0, "y": 384.0}, {"x": 534.0, "y": 393.0}, {"x": 517.0, "y": 394.0}]}], "spans": [{"offset": 355, "length": 4}], "confidence": 0.982}, "VendorAddress": {"value_type": "address", "value": {"house_number": "87", "po_box": null, "road": "Queen Street", "city": "Hamlet", "state": "Ontario", "postal_code": "N2R2R2", "country_region": "Canada", "street_address": "87 Queen Street"}, "content": "87 Queen Street Hamlet, Ontario N2R2R2 Canada", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 31.0}, {"x": 536.0, "y": 31.0}, {"x": 536.0, "y": 77.0}, {"x": 469.0, "y": 77.0}]}], "spans": [{"offset": 21, "length": 45}], "confidence": 0.855}, "VendorAddressRecipient": {"value_type": "string", "value": "Acme", "content": "Acme", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 432.0, "y": 31.0}, {"x": 455.0, "y": 32.0}, {"x": 454.0, "y": 42.0}, {"x": 431.0, "y": 41.0}]}], "spans": [{"offset": 5, "length": 4}], "confidence": 0.974}, "VendorName": {"value_type": "string", "value": "acme", "content": "acme", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 60.0}, {"x": 257.0, "y": 58.0}, {"x": 257.0, "y": 87.0}, {"x": 156.0, "y": 86.0}]}], "spans": [{"offset": 0, "length": 4}], "confidence": 0.983}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/1106-T-1_jpg.rf.1ad901fb63145f4ecfa6127a97de8e09.json b/Data/train/1106-T-1_jpg.rf.1ad901fb63145f4ecfa6127a97de8e09.json new file mode 100644 index 0000000000000000000000000000000000000000..e649715ec3d61b3c108c4cb5e20f9b1d7dc2fa19 --- /dev/null +++ b/Data/train/1106-T-1_jpg.rf.1ad901fb63145f4ecfa6127a97de8e09.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1446.0, "y": 0.0}, {"x": 1446.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 1133}], "fields": {"CustomerName": {"value_type": "string", "value": "RENUKA J", "content": "RENUKA J", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 801.0, "y": 376.0}, {"x": 921.0, "y": 376.0}, {"x": 921.0, "y": 402.0}, {"x": 801.0, "y": 402.0}]}], "spans": [{"offset": 214, "length": 8}], "confidence": 0.931}, "InvoiceDate": {"value_type": "date", "value": "2021-02-27", "content": "27/02/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 389.0, "y": 273.0}, {"x": 504.0, "y": 274.0}, {"x": 503.0, "y": 299.0}, {"x": 389.0, "y": 299.0}]}], "spans": [{"offset": 81, "length": 10}], "confidence": 0.973}, "InvoiceId": {"value_type": "string", "value": "BMP-S1703456/21-22/1106", "content": "BMP-S1703456/21-22/1106", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 369.0, "y": 234.0}, {"x": 647.0, "y": 235.0}, {"x": 647.0, "y": 261.0}, {"x": 369.0, "y": 262.0}]}], "spans": [{"offset": 50, "length": 23}], "confidence": 0.972}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 363.44, "symbol": null}, "content": "363.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1307.0, "y": 929.0}, {"x": 1368.0, "y": 928.0}, {"x": 1368.0, "y": 948.0}, {"x": 1307.0, "y": 948.0}]}], "spans": [{"offset": 689, "length": 6}], "confidence": 0.42}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 363.44, "symbol": null}, "content": "363.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1303.0, "y": 716.0}, {"x": 1371.0, "y": 716.0}, {"x": 1371.0, "y": 738.0}, {"x": 1304.0, "y": 738.0}]}], "spans": [{"offset": 646, "length": 6}], "confidence": 0.927}, "Description": {"value_type": "string", "value": "AHIKA WITH THE DEVICE OF\nTREE Crepe Floral Print\nStraight Kurti for Women\nColor :\nBlue\nSize :\nXL", "content": "AHIKA WITH THE DEVICE OF TREE Crepe Floral Print Straight Kurti for Women Color : Blue Size : XL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 99.0, "y": 713.0}, {"x": 382.0, "y": 713.0}, {"x": 382.0, "y": 874.0}, {"x": 99.0, "y": 874.0}]}], "spans": [{"offset": 510, "length": 96}], "confidence": 0.612}, "ProductCode": {"value_type": "string", "value": "6211", "content": "6211", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 432.0, "y": 711.0}, {"x": 480.0, "y": 711.0}, {"x": 480.0, "y": 732.0}, {"x": 432.0, "y": 732.0}]}], "spans": [{"offset": 607, "length": 4}], "confidence": 0.666}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 658.0, "y": 722.0}, {"x": 667.0, "y": 722.0}, {"x": 668.0, "y": 740.0}, {"x": 659.0, "y": 740.0}]}], "spans": [{"offset": 619, "length": 1}], "confidence": 0.928}, "Tax": {"value_type": "currency", "value": {"amount": 8.65, "symbol": null}, "content": "8.65\n8.65\n0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 974.0, "y": 715.0}, {"x": 1227.0, "y": 715.0}, {"x": 1227.0, "y": 737.0}, {"x": 974.0, "y": 737.0}]}], "spans": [{"offset": 634, "length": 11}], "confidence": 0.426}, "UnitPrice": {"value_type": "currency", "value": {"amount": 393.33, "symbol": null}, "content": "393.33", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 536.0, "y": 716.0}, {"x": 604.0, "y": 715.0}, {"x": 604.0, "y": 739.0}, {"x": 536.0, "y": 738.0}]}], "spans": [{"offset": 612, "length": 6}], "confidence": 0.927}}, "content": "1\nAHIKA WITH THE DEVICE OF TREE Crepe Floral Print Straight Kurti for Women Color : Blue Size : XL\n6211\n393.33\n1\n49.56\n346.13\n8.65\n8.65\n0\n363.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 711.0}, {"x": 1371.0, "y": 711.0}, {"x": 1371.0, "y": 874.0}, {"x": 59.0, "y": 874.0}]}], "spans": [{"offset": 508, "length": 144}], "confidence": 0.882}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "HYDERABAD", "state": "TELANGANA", "postal_code": "500090", "country_region": "India", "street_address": ""}, "content": "h no 1-29/5Madas ramchander colonyMallampetMdl dundigalDist medchalmalkajgiri\nHYDERABAD\nTELANGANA\nIndia\n500090", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 800.0, "y": 409.0}, {"x": 1253.0, "y": 409.0}, {"x": 1253.0, "y": 568.0}, {"x": 800.0, "y": 568.0}]}], "spans": [{"offset": 223, "length": 77}, {"offset": 308, "length": 9}, {"offset": 328, "length": 9}, {"offset": 348, "length": 5}, {"offset": 367, "length": 6}], "confidence": 0.538}, "ShippingAddressRecipient": {"value_type": "string", "value": "RENUKA J", "content": "RENUKA J", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 801.0, "y": 376.0}, {"x": 921.0, "y": 376.0}, {"x": 921.0, "y": 402.0}, {"x": 801.0, "y": 402.0}]}], "spans": [{"offset": 214, "length": 8}], "confidence": 0.931}, "SubTotal": {"value_type": "currency", "value": {"amount": 346.13, "symbol": null}, "content": "346.13", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 845.0, "y": 929.0}, {"x": 908.0, "y": 928.0}, {"x": 908.0, "y": 948.0}, {"x": 846.0, "y": 948.0}]}], "spans": [{"offset": 667, "length": 6}], "confidence": 0.45}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 49.56, "symbol": null}, "content": "49.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 729.0, "y": 928.0}, {"x": 779.0, "y": 928.0}, {"x": 778.0, "y": 947.0}, {"x": 729.0, "y": 947.0}]}], "spans": [{"offset": 661, "length": 5}], "confidence": 0.562}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Hyderabad", "state": "Telangana", "postal_code": "500089", "country_region": "India", "street_address": ""}, "content": "Hyderabad\nTelangana\nIndia\n500089", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 419.0}, {"x": 434.0, "y": 421.0}, {"x": 434.0, "y": 480.0}, {"x": 109.0, "y": 479.0}]}], "spans": [{"offset": 118, "length": 9}, {"offset": 138, "length": 9}, {"offset": 158, "length": 5}, {"offset": 177, "length": 6}], "confidence": 0.42}, "VendorAddressRecipient": {"value_type": "string", "value": "Zaakart.com", "content": "Zaakart.com", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 49.0, "y": 380.0}, {"x": 222.0, "y": 381.0}, {"x": 222.0, "y": 413.0}, {"x": 50.0, "y": 413.0}]}], "spans": [{"offset": 99, "length": 11}], "confidence": 0.508}, "VendorName": {"value_type": "string", "value": "Zaakart\n.com", "content": "Zaakart\n.com", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1116.0, "y": 121.0}, {"x": 1373.0, "y": 120.0}, {"x": 1373.0, "y": 184.0}, {"x": 1116.0, "y": 184.0}]}], "spans": [{"offset": 184, "length": 12}], "confidence": 0.762}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/111_jpg.rf.41af55fea2c58c91673b394f849c3ef0.json b/Data/train/111_jpg.rf.41af55fea2c58c91673b394f849c3ef0.json new file mode 100644 index 0000000000000000000000000000000000000000..e288032745a94a0cc46f6cb229941a4b14276a33 --- /dev/null +++ b/Data/train/111_jpg.rf.41af55fea2c58c91673b394f849c3ef0.json @@ -0,0 +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": 704}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "420", "po_box": null, "road": "English Street", "city": "Greensboro.", "state": "NC", "postal_code": "27405", "country_region": null, "street_address": "420 English Street"}, "content": "420 English Street\nGreensboro. NC 27405", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 202.0}, {"x": 236.0, "y": 202.0}, {"x": 236.0, "y": 221.0}, {"x": 141.0, "y": 221.0}]}], "spans": [{"offset": 165, "length": 39}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "LORILLARD, INC.\nAttn: Dr. Harry Minneneyer", "content": "LORILLARD, INC.\nAttn: Dr. Harry Minneneyer", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 192.0}, {"x": 262.0, "y": 192.0}, {"x": 262.0, "y": 239.0}, {"x": 141.0, "y": 239.0}]}], "spans": [{"offset": 149, "length": 15}, {"offset": 205, "length": 26}], "confidence": null}, "CustomerId": {"value_type": "string", "value": "4111", "content": "4111", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 461.0, "y": 226.0}, {"x": 482.0, "y": 226.0}, {"x": 483.0, "y": 237.0}, {"x": 462.0, "y": 238.0}]}], "spans": [{"offset": 273, "length": 4}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "LORILLARD, INC.\nAttn: Dr. Harry Minneneyer", "content": "LORILLARD, INC.\nAttn: Dr. Harry Minneneyer", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 192.0}, {"x": 262.0, "y": 192.0}, {"x": 262.0, "y": 239.0}, {"x": 141.0, "y": 239.0}]}], "spans": [{"offset": 149, "length": 15}, {"offset": 205, "length": 26}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1983-12-14", "content": "December 14, 1983", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 166.0}, {"x": 219.0, "y": 166.0}, {"x": 219.0, "y": 177.0}, {"x": 142.0, "y": 177.0}]}], "spans": [{"offset": 131, "length": 17}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "1544-2", "content": "1544-2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 205.0, "y": 273.0}, {"x": 232.0, "y": 273.0}, {"x": 232.0, "y": 283.0}, {"x": 205.0, "y": 283.0}]}], "spans": [{"offset": 347, "length": 6}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 15675.0, "symbol": "$"}, "content": "$ 15,675.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 406.0, "y": 316.0}, {"x": 456.0, "y": 316.0}, {"x": 456.0, "y": 329.0}, {"x": 406.0, "y": 329.0}]}], "spans": [{"offset": 431, "length": 11}], "confidence": 0.984}, "Description": {"value_type": "string", "value": "90 Day Subchronic Toxicity Study in Rats with 0-14, 0-15,\n& D-20", "content": "90 Day Subchronic Toxicity Study in Rats with 0-14, 0-15,\n& D-20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 317.0}, {"x": 396.0, "y": 317.0}, {"x": 396.0, "y": 337.0}, {"x": 141.0, "y": 337.0}]}], "spans": [{"offset": 373, "length": 57}, {"offset": 443, "length": 6}], "confidence": 0.9}}, "content": "90 Day Subchronic Toxicity Study in Rats with 0-14, 0-15, $ 15,675.00\n& D-20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 316.0}, {"x": 456.0, "y": 316.0}, {"x": 456.0, "y": 337.0}, {"x": 141.0, "y": 337.0}]}], "spans": [{"offset": 373, "length": 76}], "confidence": 0.073}, {"value_type": "dictionary", "value": {"Description": {"value_type": "string", "value": "Invoice", "content": "Invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 266.0, "y": 371.0}, {"x": 296.0, "y": 372.0}, {"x": 296.0, "y": 381.0}, {"x": 266.0, "y": 381.0}]}], "spans": [{"offset": 484, "length": 7}], "confidence": 0.982}}, "content": "Invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 266.0, "y": 371.0}, {"x": 296.0, "y": 372.0}, {"x": 296.0, "y": 381.0}, {"x": 266.0, "y": 381.0}]}], "spans": [{"offset": 484, "length": 7}], "confidence": 0.002}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": "11140", "po_box": null, "road": "Rockville Pike", "city": "Rockville", "state": "MD", "postal_code": "20852", "country_region": null, "street_address": "11140 Rockville Pike"}, "content": "11140 Rockville Pike Rockville, MD 20852", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 304.0, "y": 504.0}, {"x": 395.0, "y": 504.0}, {"x": 395.0, "y": 523.0}, {"x": 304.0, "y": 523.0}]}], "spans": [{"offset": 601, "length": 40}], "confidence": null}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Borriston Laboratories, Inc.\nDYNAMAC BUILDING", "content": "Borriston Laboratories, Inc. DYNAMAC BUILDING", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 304.0, "y": 484.0}, {"x": 429.0, "y": 486.0}, {"x": 429.0, "y": 506.0}, {"x": 304.0, "y": 504.0}]}], "spans": [{"offset": 555, "length": 45}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Temole", "city": "Hills", "state": "Maryland", "postal_code": "20748", "country_region": null, "street_address": "Temole"}, "content": "Temole Hills Maryland 20748", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 131.0}, {"x": 227.0, "y": 131.0}, {"x": 227.0, "y": 140.0}, {"x": 142.0, "y": 140.0}]}], "spans": [{"offset": 53, "length": 27}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "Bomcion Laboralones Ipc", "content": "Bomcion Laboralones Ipc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 116.0}, {"x": 216.0, "y": 117.0}, {"x": 216.0, "y": 125.0}, {"x": 142.0, "y": 124.0}]}], "spans": [{"offset": 29, "length": 23}], "confidence": null}, "VendorName": {"value_type": "string", "value": "BORRISTON\nLABORATORIES, INC.", "content": "BORRISTON LABORATORIES, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 79.0}, {"x": 244.0, "y": 79.0}, {"x": 244.0, "y": 103.0}, {"x": 142.0, "y": 103.0}]}], "spans": [{"offset": 0, "length": 28}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/113_jpg.rf.2889c632d82b870e13b3ab1d1c0ad818.json b/Data/train/113_jpg.rf.2889c632d82b870e13b3ab1d1c0ad818.json new file mode 100644 index 0000000000000000000000000000000000000000..836a0ed096818061e9ff30a0c1d9987d652fd9bf --- /dev/null +++ b/Data/train/113_jpg.rf.2889c632d82b870e13b3ab1d1c0ad818.json @@ -0,0 +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": 595}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Delhi", "state": "Delhi", "postal_code": "40003", "country_region": null, "street_address": ""}, "content": "27, Dif City, Central\nDelhi, Delhi 40003", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 148.0, "y": 164.0}, {"x": 215.0, "y": 164.0}, {"x": 215.0, "y": 186.0}, {"x": 148.0, "y": 186.0}]}], "spans": [{"offset": 147, "length": 21}, {"offset": 223, "length": 18}], "confidence": 0.851}, "BillingAddressRecipient": {"value_type": "string", "value": "Panchika Randhawa", "content": "Panchika Randhawa", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 147.0, "y": 152.0}, {"x": 219.0, "y": 153.0}, {"x": 219.0, "y": 163.0}, {"x": 147.0, "y": 162.0}]}], "spans": [{"offset": 89, "length": 17}], "confidence": 0.889}, "CustomerName": {"value_type": "string", "value": "Panchika Randhawa", "content": "Panchika Randhawa", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 147.0, "y": 152.0}, {"x": 219.0, "y": 153.0}, {"x": 219.0, "y": 163.0}, {"x": 147.0, "y": 162.0}]}], "spans": [{"offset": 89, "length": 17}], "confidence": 0.889}, "DueDate": {"value_type": "date", "value": "2019-04-26", "content": "26/04/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 450.0, "y": 189.0}, {"x": 489.0, "y": 189.0}, {"x": 489.0, "y": 199.0}, {"x": 451.0, "y": 198.0}]}], "spans": [{"offset": 251, "length": 10}], "confidence": 0.932}, "InvoiceDate": {"value_type": "date", "value": "2019-01-29", "content": "29/01/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 451.0, "y": 154.0}, {"x": 489.0, "y": 154.0}, {"x": 489.0, "y": 163.0}, {"x": 451.0, "y": 162.0}]}], "spans": [{"offset": 136, "length": 10}], "confidence": 0.932}, "InvoiceId": {"value_type": "string", "value": "IN-001", "content": "IN-001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 466.0, "y": 136.0}, {"x": 489.0, "y": 136.0}, {"x": 489.0, "y": 145.0}, {"x": 466.0, "y": 144.0}]}], "spans": [{"offset": 82, "length": 6}], "confidence": 0.932}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 12980.76, "symbol": "\u00a5"}, "content": "\u00a512,980.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 443.0, "y": 331.0}, {"x": 489.0, "y": 331.0}, {"x": 490.0, "y": 342.0}, {"x": 444.0, "y": 342.0}]}], "spans": [{"offset": 463, "length": 10}], "confidence": 0.936}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9999.0, "symbol": null}, "content": "9,999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 246.0}, {"x": 489.0, "y": 245.0}, {"x": 490.0, "y": 254.0}, {"x": 459.0, "y": 254.0}]}], "spans": [{"offset": 335, "length": 8}], "confidence": 0.976}, "Description": {"value_type": "string", "value": "Frontend design restructure", "content": "Frontend design restructure", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 187.0, "y": 244.0}, {"x": 281.0, "y": 246.0}, {"x": 281.0, "y": 256.0}, {"x": 187.0, "y": 254.0}]}], "spans": [{"offset": 298, "length": 27}], "confidence": 0.971}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 245.0}, {"x": 169.0, "y": 245.0}, {"x": 169.0, "y": 254.0}, {"x": 166.0, "y": 254.0}]}], "spans": [{"offset": 296, "length": 1}], "confidence": 0.977}, "UnitPrice": {"value_type": "currency", "value": {"amount": 9999.0, "symbol": null}, "content": "9,999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 383.0, "y": 245.0}, {"x": 412.0, "y": 245.0}, {"x": 412.0, "y": 255.0}, {"x": 383.0, "y": 254.0}]}], "spans": [{"offset": 326, "length": 8}], "confidence": 0.978}}, "content": "1\nFrontend design restructure\n9,999.00\n9,999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 240.0}, {"x": 490.0, "y": 245.0}, {"x": 490.0, "y": 260.0}, {"x": 166.0, "y": 254.0}]}], "spans": [{"offset": 296, "length": 47}], "confidence": 0.97}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1950.0, "symbol": null}, "content": "1,950.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 460.0, "y": 262.0}, {"x": 489.0, "y": 261.0}, {"x": 489.0, "y": 271.0}, {"x": 460.0, "y": 270.0}]}], "spans": [{"offset": 373, "length": 8}], "confidence": 0.976}, "Description": {"value_type": "string", "value": "Custom icon package", "content": "Custom icon package", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 187.0, "y": 262.0}, {"x": 261.0, "y": 262.0}, {"x": 261.0, "y": 272.0}, {"x": 187.0, "y": 272.0}]}], "spans": [{"offset": 346, "length": 19}], "confidence": 0.971}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 262.0}, {"x": 170.0, "y": 262.0}, {"x": 170.0, "y": 270.0}, {"x": 165.0, "y": 270.0}]}], "spans": [{"offset": 344, "length": 1}], "confidence": 0.977}, "UnitPrice": {"value_type": "currency", "value": {"amount": 975.0, "symbol": null}, "content": "975.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 389.0, "y": 263.0}, {"x": 412.0, "y": 262.0}, {"x": 412.0, "y": 270.0}, {"x": 389.0, "y": 270.0}]}], "spans": [{"offset": 366, "length": 6}], "confidence": 0.976}}, "content": "2\nCustom icon package\n975.00\n1,950.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 261.0}, {"x": 489.0, "y": 261.0}, {"x": 489.0, "y": 272.0}, {"x": 165.0, "y": 272.0}]}], "spans": [{"offset": 344, "length": 37}], "confidence": 0.971}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 297.0, "symbol": null}, "content": "297.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 466.0, "y": 278.0}, {"x": 490.0, "y": 278.0}, {"x": 490.0, "y": 287.0}, {"x": 466.0, "y": 287.0}]}], "spans": [{"offset": 407, "length": 6}], "confidence": 0.978}, "Description": {"value_type": "string", "value": "Gandhi mouse pad", "content": "Gandhi mouse pad", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 187.0, "y": 278.0}, {"x": 252.0, "y": 278.0}, {"x": 252.0, "y": 288.0}, {"x": 187.0, "y": 288.0}]}], "spans": [{"offset": 384, "length": 16}], "confidence": 0.97}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 278.0}, {"x": 170.0, "y": 278.0}, {"x": 170.0, "y": 287.0}, {"x": 165.0, "y": 287.0}]}], "spans": [{"offset": 382, "length": 1}], "confidence": 0.977}, "UnitPrice": {"value_type": "currency", "value": {"amount": 99.0, "symbol": null}, "content": "99.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 393.0, "y": 278.0}, {"x": 413.0, "y": 278.0}, {"x": 413.0, "y": 287.0}, {"x": 393.0, "y": 287.0}]}], "spans": [{"offset": 401, "length": 5}], "confidence": 0.978}}, "content": "3\nGandhi mouse pad\n99.00\n297.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 278.0}, {"x": 490.0, "y": 278.0}, {"x": 490.0, "y": 288.0}, {"x": 165.0, "y": 288.0}]}], "spans": [{"offset": 382, "length": 31}], "confidence": 0.969}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Payment", "content": "Payment", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 147.0, "y": 455.0}, {"x": 177.0, "y": 455.0}, {"x": 177.0, "y": 465.0}, {"x": 148.0, "y": 466.0}]}], "spans": [{"offset": 493, "length": 7}], "confidence": 0.271}, "PurchaseOrder": {"value_type": "string", "value": "2430/2019", "content": "2430/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 172.0}, {"x": 489.0, "y": 172.0}, {"x": 489.0, "y": 180.0}, {"x": 454.0, "y": 180.0}]}], "spans": [{"offset": 213, "length": 9}], "confidence": 0.936}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "284", "po_box": null, "road": "Abdul Rehman", "city": "Mumbai", "state": "Bihar", "postal_code": "40009", "country_region": null, "street_address": "284 Abdul Rehman"}, "content": "284, Abdul Rehman Mumbai, Bihar 40009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 237.0, "y": 164.0}, {"x": 311.0, "y": 164.0}, {"x": 311.0, "y": 186.0}, {"x": 237.0, "y": 186.0}]}], "spans": [{"offset": 169, "length": 37}], "confidence": 0.841}, "ShippingAddressRecipient": {"value_type": "string", "value": "Kavindra Mannan", "content": "Kavindra Mannan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 237.0, "y": 152.0}, {"x": 297.0, "y": 153.0}, {"x": 297.0, "y": 162.0}, {"x": 237.0, "y": 161.0}]}], "spans": [{"offset": 107, "length": 15}], "confidence": 0.889}, "SubTotal": {"value_type": "currency", "value": {"amount": 12246.0, "symbol": null}, "content": "12,246.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 456.0, "y": 296.0}, {"x": 489.0, "y": 296.0}, {"x": 489.0, "y": 305.0}, {"x": 456.0, "y": 304.0}]}], "spans": [{"offset": 423, "length": 9}], "confidence": 0.932}, "TotalTax": {"value_type": "currency", "value": {"amount": 734.76, "symbol": null}, "content": "734.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 466.0, "y": 313.0}, {"x": 490.0, "y": 313.0}, {"x": 490.0, "y": 322.0}, {"x": 466.0, "y": 322.0}]}], "spans": [{"offset": 442, "length": 6}], "confidence": 0.929}, "VendorAddress": {"value_type": "address", "value": {"house_number": "77", "po_box": null, "road": null, "city": "Delhi", "state": "Delhi", "postal_code": "400077", "country_region": null, "street_address": "77"}, "content": "77 Nemreta Bldg Delhi, Delhi 400077", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 147.0, "y": 90.0}, {"x": 215.0, "y": 90.0}, {"x": 215.0, "y": 111.0}, {"x": 147.0, "y": 111.0}]}], "spans": [{"offset": 15, "length": 35}], "confidence": 0.845}, "VendorAddressRecipient": {"value_type": "string", "value": "Saffron Design", "content": "Saffron Design", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 147.0, "y": 62.0}, {"x": 261.0, "y": 64.0}, {"x": 261.0, "y": 88.0}, {"x": 147.0, "y": 86.0}]}], "spans": [{"offset": 0, "length": 14}], "confidence": 0.234}, "VendorName": {"value_type": "string", "value": "LOGO", "content": "LOGO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 83.0}, {"x": 481.0, "y": 83.0}, {"x": 481.0, "y": 99.0}, {"x": 441.0, "y": 99.0}]}], "spans": [{"offset": 51, "length": 4}], "confidence": 0.266}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/114_jpg.rf.f72b73a45a0d403299eaedef3c3c98da.json b/Data/train/114_jpg.rf.f72b73a45a0d403299eaedef3c3c98da.json new file mode 100644 index 0000000000000000000000000000000000000000..4f19878e6a7d20eab3748be6d9a4148771f6f151 --- /dev/null +++ b/Data/train/114_jpg.rf.f72b73a45a0d403299eaedef3c3c98da.json @@ -0,0 +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": 953}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "NOIDA", "state": "UTTAR PRADESH", "postal_code": "201301", "country_region": "IN", "street_address": ""}, "content": "C-45, hotel hyphen NOIDA, UTTAR PRADESH, 201301 IN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 377.0, "y": 105.0}, {"x": 525.0, "y": 105.0}, {"x": 525.0, "y": 135.0}, {"x": 377.0, "y": 135.0}]}], "spans": [{"offset": 431, "length": 50}], "confidence": 0.884}, "BillingAddressRecipient": {"value_type": "string", "value": "deepak yadav", "content": "deepak yadav", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 94.0}, {"x": 525.0, "y": 95.0}, {"x": 525.0, "y": 106.0}, {"x": 467.0, "y": 105.0}]}], "spans": [{"offset": 418, "length": 12}], "confidence": 0.816}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "No.38 & 39", "po_box": null, "road": "Soukya Road, Kacherakanahalli", "city": "Hoskote Taluka", "state": "Karnataka", "postal_code": "560067", "country_region": "IN", "street_address": "No.38 & 39 Soukya Road, Kacherakanahalli"}, "content": "Anjaneya Infrastructure Project No.38 & 39.\nSoukya Road, Kacherakanahalli, Hoskote Taluka,\nBangalore Rural District\nBangalore, Karnataka, 560067\nIN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 113.0, "y": 93.0}, {"x": 314.0, "y": 93.0}, {"x": 314.0, "y": 146.0}, {"x": 113.0, "y": 146.0}]}], "spans": [{"offset": 51, "length": 147}], "confidence": 0.994}, "CustomerAddressRecipient": {"value_type": "string", "value": "Cloudtail India Private Limited", "content": "Cloudtail India Private Limited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 83.0}, {"x": 235.0, "y": 83.0}, {"x": 235.0, "y": 95.0}, {"x": 114.0, "y": 95.0}]}], "spans": [{"offset": 19, "length": 31}], "confidence": 0.891}, "CustomerName": {"value_type": "string", "value": "Private", "content": "Private", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 357.0}, {"x": 484.0, "y": 357.0}, {"x": 484.0, "y": 367.0}, {"x": 454.0, "y": 366.0}]}], "spans": [{"offset": 916, "length": 7}], "confidence": 0.343}, "InvoiceDate": {"value_type": "date", "value": "2017-06-21", "content": "21.06.2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 479.0, "y": 246.0}, {"x": 525.0, "y": 245.0}, {"x": 526.0, "y": 258.0}, {"x": 479.0, "y": 257.0}]}], "spans": [{"offset": 628, "length": 10}], "confidence": 0.937}, "InvoiceId": {"value_type": "string", "value": "KA-BLR6-1004-7596629", "content": "KA-BLR6-1004-7596629", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 424.0, "y": 234.0}, {"x": 525.0, "y": 234.0}, {"x": 525.0, "y": 245.0}, {"x": 424.0, "y": 245.0}]}], "spans": [{"offset": 593, "length": 20}], "confidence": 0.937}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1200.0, "symbol": "Rs"}, "content": "Rs.1,200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 307.0}, {"x": 524.0, "y": 307.0}, {"x": 524.0, "y": 317.0}, {"x": 484.0, "y": 317.0}]}], "spans": [{"offset": 837, "length": 11}], "confidence": 0.857}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 200.0, "symbol": "Rs"}, "content": "Rs.1.200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 485.0, "y": 293.0}, {"x": 524.0, "y": 293.0}, {"x": 524.0, "y": 302.0}, {"x": 485.0, "y": 302.0}]}], "spans": [{"offset": 816, "length": 11}], "confidence": 0.033}, "Description": {"value_type": "string", "value": "Samsung Guns GT-E1200 (Whin) | BOOBIEGRYS\nBOOBIEGRYS]", "content": "Samsung Guns GT-E1200 (Whin) | BOOBIEGRYS\nBOOBIEGRYS]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 132.0, "y": 288.0}, {"x": 293.0, "y": 288.0}, {"x": 293.0, "y": 306.0}, {"x": 132.0, "y": 306.0}]}], "spans": [{"offset": 663, "length": 41}, {"offset": 760, "length": 11}], "confidence": 0.027}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 293.0}, {"x": 356.0, "y": 293.0}, {"x": 355.0, "y": 302.0}, {"x": 350.0, "y": 302.0}]}], "spans": [{"offset": 784, "length": 1}], "confidence": 0.029}, "Tax": {"value_type": "currency", "value": {"amount": 62.56, "symbol": "Rs"}, "content": "Rs 62.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 293.0}, {"x": 483.0, "y": 293.0}, {"x": 483.0, "y": 302.0}, {"x": 452.0, "y": 302.0}]}], "spans": [{"offset": 807, "length": 8}], "confidence": 0.003}, "TaxRate": {"value_type": "string", "value": "5,5%", "content": "5,5%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 411.0, "y": 293.0}, {"x": 428.0, "y": 294.0}, {"x": 428.0, "y": 302.0}, {"x": 411.0, "y": 302.0}]}], "spans": [{"offset": 798, "length": 4}], "confidence": 0.034}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1137.44, "symbol": "Rs"}, "content": "Rs 1,137.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 295.0, "y": 291.0}, {"x": 336.0, "y": 293.0}, {"x": 336.0, "y": 303.0}, {"x": 295.0, "y": 301.0}]}], "spans": [{"offset": 772, "length": 11}], "confidence": 0.029}}, "content": "1\nDescription\nSamsung Guns GT-E1200 (Whin) | BOOBIEGRYS\nUnit Price\nQuantity\nAmount Rate\nTax Type\nAmount Amount\nBOOBIEGRYS]\nRs 1,137.44\n1\nRs 1,137.44 5,5%\nCST Rs 62.56 Rs.1.200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 121.0, "y": 270.0}, {"x": 524.0, "y": 270.0}, {"x": 524.0, "y": 306.0}, {"x": 121.0, "y": 306.0}]}], "spans": [{"offset": 642, "length": 1}, {"offset": 651, "length": 176}], "confidence": 0.032}], "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": "201301", "country_region": "IN", "street_address": ""}, "content": "c-45, hotel hyphen\nNOIDA, UTTAR PRADESH, 201301\nIN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 377.0, "y": 191.0}, {"x": 525.0, "y": 191.0}, {"x": 525.0, "y": 222.0}, {"x": 377.0, "y": 222.0}]}], "spans": [{"offset": 526, "length": 50}], "confidence": 0.889}, "ShippingAddressRecipient": {"value_type": "string", "value": "deepak yadav\ndeepak yadav", "content": "deepak yadav\ndeepak yadav", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 170.0}, {"x": 525.0, "y": 170.0}, {"x": 525.0, "y": 192.0}, {"x": 467.0, "y": 192.0}]}], "spans": [{"offset": 500, "length": 25}], "confidence": 0.799}, "TotalTax": {"value_type": "currency", "value": {"amount": 62.56, "symbol": "Rs"}, "content": "Rs.62.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 308.0}, {"x": 482.0, "y": 307.0}, {"x": 482.0, "y": 317.0}, {"x": 452.0, "y": 316.0}]}], "spans": [{"offset": 828, "length": 8}], "confidence": 0.741}, "VendorName": {"value_type": "string", "value": "amazon.in", "content": "amazon.in", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 4.0}, {"x": 250.0, "y": 3.0}, {"x": 251.0, "y": 30.0}, {"x": 123.0, "y": 31.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": 0.936}, "VendorTaxId": {"value_type": "string", "value": "29521216106", "content": "29521216106", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 208.0, "y": 170.0}, {"x": 264.0, "y": 170.0}, {"x": 264.0, "y": 182.0}, {"x": 208.0, "y": 181.0}]}], "spans": [{"offset": 239, "length": 11}], "confidence": 0.555}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/115_png.rf.1e1f17c55513cff43d09ee53e3279d09.json b/Data/train/115_png.rf.1e1f17c55513cff43d09ee53e3279d09.json new file mode 100644 index 0000000000000000000000000000000000000000..873cf705c9ef51e670e5eaa20e3ab383f6f8a489 --- /dev/null +++ b/Data/train/115_png.rf.1e1f17c55513cff43d09ee53e3279d09.json @@ -0,0 +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": 636}], "fields": {"CustomerName": {"value_type": "string", "value": "POOKIFC. CON", "content": "POOKIFC. CON", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 301.0, "y": 180.0}, {"x": 347.0, "y": 180.0}, {"x": 347.0, "y": 189.0}, {"x": 301.0, "y": 189.0}]}], "spans": [{"offset": 189, "length": 12}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 135.2, "symbol": null}, "content": "135.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 473.0}, {"x": 422.0, "y": 473.0}, {"x": 422.0, "y": 481.0}, {"x": 397.0, "y": 482.0}]}], "spans": [{"offset": 430, "length": 6}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 30.36, "symbol": "$"}, "content": "$30.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 387.0, "y": 257.0}, {"x": 412.0, "y": 256.0}, {"x": 413.0, "y": 264.0}, {"x": 388.0, "y": 264.0}]}], "spans": [{"offset": 277, "length": 6}], "confidence": null}}, "content": "$30.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 387.0, "y": 257.0}, {"x": 412.0, "y": 256.0}, {"x": 413.0, "y": 264.0}, {"x": 388.0, "y": 264.0}]}], "spans": [{"offset": 277, "length": 6}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 22.05, "symbol": null}, "content": "22.05", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 393.0, "y": 265.0}, {"x": 413.0, "y": 265.0}, {"x": 413.0, "y": 272.0}, {"x": 393.0, "y": 273.0}]}], "spans": [{"offset": 303, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "1 80X ER BE", "content": "1 80X ER BE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 169.0, "y": 269.0}, {"x": 220.0, "y": 269.0}, {"x": 220.0, "y": 276.0}, {"x": 169.0, "y": 276.0}]}], "spans": [{"offset": 291, "length": 11}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "020920", "content": "020920", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 270.0}, {"x": 165.0, "y": 270.0}, {"x": 165.0, "y": 276.0}, {"x": 140.0, "y": 276.0}]}], "spans": [{"offset": 284, "length": 6}], "confidence": null}}, "content": "020920 1 80X ER BE\n22.05", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 265.0}, {"x": 413.0, "y": 265.0}, {"x": 413.0, "y": 276.0}, {"x": 140.0, "y": 276.0}]}], "spans": [{"offset": 284, "length": 24}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 35.2, "symbol": null}, "content": "35.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 392.0, "y": 275.0}, {"x": 412.0, "y": 274.0}, {"x": 413.0, "y": 282.0}, {"x": 392.0, "y": 282.0}]}], "spans": [{"offset": 330, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "$30003. EN OU", "content": "$30003. EN OU", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 278.0}, {"x": 220.0, "y": 278.0}, {"x": 220.0, "y": 285.0}, {"x": 170.0, "y": 285.0}]}], "spans": [{"offset": 316, "length": 13}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "J20820", "content": "J20820", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 278.0}, {"x": 165.0, "y": 278.0}, {"x": 165.0, "y": 285.0}, {"x": 142.0, "y": 285.0}]}], "spans": [{"offset": 309, "length": 6}], "confidence": null}}, "content": "J20820 $30003. EN OU\n35.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 274.0}, {"x": 413.0, "y": 274.0}, {"x": 413.0, "y": 285.0}, {"x": 141.0, "y": 285.0}]}], "spans": [{"offset": 309, "length": 26}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 22.2, "symbol": null}, "content": "22.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 392.0, "y": 309.0}, {"x": 412.0, "y": 309.0}, {"x": 413.0, "y": 317.0}, {"x": 393.0, "y": 317.0}]}], "spans": [{"offset": 369, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "196920 SEJOUR EN", "content": "196920 SEJOUR EN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 302.0}, {"x": 207.0, "y": 304.0}, {"x": 207.0, "y": 312.0}, {"x": 142.0, "y": 311.0}]}], "spans": [{"offset": 352, "length": 16}], "confidence": null}}, "content": "196920 SEJOUR EN\n22.20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 302.0}, {"x": 413.0, "y": 308.0}, {"x": 413.0, "y": 317.0}, {"x": 142.0, "y": 312.0}]}], "spans": [{"offset": 352, "length": 22}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorName": {"value_type": "string", "value": "LABRANDA\nAMADIL BEACH", "content": "LABRANDA AMADIL BEACH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 274.0, "y": 84.0}, {"x": 366.0, "y": 83.0}, {"x": 366.0, "y": 105.0}, {"x": 274.0, "y": 106.0}]}], "spans": [{"offset": 99, "length": 21}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/117_jpg.rf.d1060ab50ade9874dc729991c275d9e6.json b/Data/train/117_jpg.rf.d1060ab50ade9874dc729991c275d9e6.json new file mode 100644 index 0000000000000000000000000000000000000000..3d3fbef0b9bb8e48303b3e9e310fe9c4f463a3c6 --- /dev/null +++ b/Data/train/117_jpg.rf.d1060ab50ade9874dc729991c275d9e6.json @@ -0,0 +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": 380}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "1432", "po_box": null, "road": "TOLLAAN LOIC", "city": "ST-STEVENS-WOLUWE", "state": null, "postal_code": null, "country_region": null, "street_address": "1432 TOLLAAN LOIC"}, "content": "TOLLAAN LOIC 1432 ST-STEVENS-WOLUWE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 301.0, "y": 137.0}, {"x": 424.0, "y": 139.0}, {"x": 423.0, "y": 169.0}, {"x": 301.0, "y": 166.0}]}], "spans": [{"offset": 134, "length": 35}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "C.R.C. B. V.B.A.", "content": "C.R.C. B. V.B.A.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 301.0, "y": 128.0}, {"x": 384.0, "y": 128.0}, {"x": 384.0, "y": 138.0}, {"x": 301.0, "y": 138.0}]}], "spans": [{"offset": 117, "length": 16}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "C.R.C. B. V.B.A.", "content": "C.R.C. B. V.B.A.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 301.0, "y": 128.0}, {"x": 384.0, "y": 128.0}, {"x": 384.0, "y": 138.0}, {"x": 301.0, "y": 138.0}]}], "spans": [{"offset": 117, "length": 16}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1992-09-24", "content": "24/09/92", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 402.0, "y": 61.0}, {"x": 447.0, "y": 63.0}, {"x": 447.0, "y": 72.0}, {"x": 402.0, "y": 71.0}]}], "spans": [{"offset": 101, "length": 8}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "491320", "content": "491320", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 63.0}, {"x": 485.0, "y": 64.0}, {"x": 484.0, "y": 73.0}, {"x": 452.0, "y": 72.0}]}], "spans": [{"offset": 110, "length": 6}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2.662, "symbol": null}, "content": "2.662 114.5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 252.0}, {"x": 511.0, "y": 252.0}, {"x": 511.0, "y": 262.0}, {"x": 455.0, "y": 262.0}]}], "spans": [{"offset": 182, "length": 11}], "confidence": null}, "Description": {"value_type": "string", "value": "TANK AF", "content": "TANK AF", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 267.0, "y": 249.0}, {"x": 298.0, "y": 251.0}, {"x": 298.0, "y": 260.0}, {"x": 267.0, "y": 258.0}]}], "spans": [{"offset": 174, "length": 7}], "confidence": 0.003}, "ProductCode": {"value_type": "string", "value": "20040", "content": "20040", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 102.0, "y": 249.0}, {"x": 127.0, "y": 249.0}, {"x": 126.0, "y": 257.0}, {"x": 101.0, "y": 256.0}]}], "spans": [{"offset": 51, "length": 5}], "confidence": 0.002}}, "content": "20040\nTANK AF\n2.662 114.5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 101.0, "y": 249.0}, {"x": 511.0, "y": 249.0}, {"x": 511.0, "y": 262.0}, {"x": 101.0, "y": 262.0}]}], "spans": [{"offset": 51, "length": 5}, {"offset": 174, "length": 19}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 2.662, "symbol": null}, "content": "2.662", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 570.0}, {"x": 479.0, "y": 569.0}, {"x": 480.0, "y": 578.0}, {"x": 453.0, "y": 578.0}]}], "spans": [{"offset": 255, "length": 5}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 519.0, "symbol": null}, "content": "519", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 301.0, "y": 605.0}, {"x": 318.0, "y": 605.0}, {"x": 317.0, "y": 613.0}, {"x": 301.0, "y": 612.0}]}], "spans": [{"offset": 266, "length": 3}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "536", "po_box": null, "road": null, "city": "Zaventem", "state": null, "postal_code": "1930", "country_region": null, "street_address": "536"}, "content": "536 1930 Zaventem", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 163.0, "y": 102.0}, {"x": 231.0, "y": 102.0}, {"x": 231.0, "y": 111.0}, {"x": 163.0, "y": 111.0}]}], "spans": [{"offset": 33, "length": 17}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/119_jpg.rf.4253ffd141de1cb29e995a5f3bdc2c91.json b/Data/train/119_jpg.rf.4253ffd141de1cb29e995a5f3bdc2c91.json new file mode 100644 index 0000000000000000000000000000000000000000..cea8a91f725117755e85cc7a5819b25f71569acb --- /dev/null +++ b/Data/train/119_jpg.rf.4253ffd141de1cb29e995a5f3bdc2c91.json @@ -0,0 +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": 552}], "fields": {"InvoiceDate": {"value_type": "date", "value": "1997-02-14", "content": "14.02.97", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 247.0, "y": 150.0}, {"x": 291.0, "y": 150.0}, {"x": 291.0, "y": 159.0}, {"x": 247.0, "y": 158.0}]}], "spans": [{"offset": 154, "length": 8}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 30.76, "symbol": null}, "content": "30.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 431.0, "y": 245.0}, {"x": 455.0, "y": 246.0}, {"x": 455.0, "y": 253.0}, {"x": 431.0, "y": 253.0}]}], "spans": [{"offset": 260, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Tut. 12 HOE TUASTAM PANOTE 653", "content": "Tut. 12 HOE TUASTAM PANOTE 653", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 231.0}, {"x": 357.0, "y": 231.0}, {"x": 357.0, "y": 242.0}, {"x": 191.0, "y": 242.0}]}], "spans": [{"offset": 229, "length": 30}], "confidence": null}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 380.0, "y": 244.0}, {"x": 389.0, "y": 244.0}, {"x": 389.0, "y": 251.0}, {"x": 380.0, "y": 251.0}]}], "spans": [{"offset": 266, "length": 2}], "confidence": null}}, "content": "Tut. 12 HOE TUASTAM PANOTE 653\n30.76\n10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 231.0}, {"x": 455.0, "y": 231.0}, {"x": 455.0, "y": 253.0}, {"x": 191.0, "y": 253.0}]}], "spans": [{"offset": 229, "length": 39}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 256.56, "symbol": null}, "content": "256.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 423.0, "y": 254.0}, {"x": 455.0, "y": 254.0}, {"x": 455.0, "y": 262.0}, {"x": 423.0, "y": 261.0}]}], "spans": [{"offset": 269, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "E1.1 @ SIABICU FRILE CTION/30-6", "content": "E1.1 @ SIABICU FRILE CTION/30-6", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 249.0}, {"x": 357.0, "y": 251.0}, {"x": 357.0, "y": 262.0}, {"x": 191.0, "y": 259.0}]}], "spans": [{"offset": 276, "length": 31}], "confidence": null}, "Quantity": {"value_type": "float", "value": 4.0, "content": "4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 386.0, "y": 254.0}, {"x": 389.0, "y": 254.0}, {"x": 389.0, "y": 260.0}, {"x": 386.0, "y": 260.0}]}], "spans": [{"offset": 308, "length": 1}], "confidence": null}}, "content": "256.56\nE1.1 @ SIABICU FRILE CTION/30-6\n4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 249.0}, {"x": 455.0, "y": 253.0}, {"x": 455.0, "y": 263.0}, {"x": 191.0, "y": 259.0}]}], "spans": [{"offset": 269, "length": 40}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 292.4, "symbol": null}, "content": "292.4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 423.0, "y": 263.0}, {"x": 449.0, "y": 264.0}, {"x": 449.0, "y": 271.0}, {"x": 423.0, "y": 270.0}]}], "spans": [{"offset": 310, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "B.M", "content": "B.M", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 261.0}, {"x": 355.0, "y": 261.0}, {"x": 355.0, "y": 269.0}, {"x": 341.0, "y": 269.0}]}], "spans": [{"offset": 321, "length": 3}], "confidence": null}}, "content": "292.4\nB.M", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 260.0}, {"x": 449.0, "y": 264.0}, {"x": 449.0, "y": 273.0}, {"x": 341.0, "y": 269.0}]}], "spans": [{"offset": 310, "length": 5}, {"offset": 321, "length": 3}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 440.08, "symbol": null}, "content": "440.08", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 423.0, "y": 273.0}, {"x": 455.0, "y": 273.0}, {"x": 455.0, "y": 281.0}, {"x": 423.0, "y": 280.0}]}], "spans": [{"offset": 328, "length": 6}], "confidence": null}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 346.0, "y": 270.0}, {"x": 356.0, "y": 270.0}, {"x": 356.0, "y": 279.0}, {"x": 346.0, "y": 279.0}]}], "spans": [{"offset": 325, "length": 2}], "confidence": null}}, "content": "10\n440.08", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 346.0, "y": 270.0}, {"x": 455.0, "y": 272.0}, {"x": 455.0, "y": 281.0}, {"x": 346.0, "y": 279.0}]}], "spans": [{"offset": 325, "length": 9}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 63.26, "symbol": null}, "content": "63.26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 428.0, "y": 282.0}, {"x": 455.0, "y": 282.0}, {"x": 455.0, "y": 290.0}, {"x": 428.0, "y": 290.0}]}], "spans": [{"offset": 370, "length": 5}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 385.0, "y": 280.0}, {"x": 389.0, "y": 280.0}, {"x": 389.0, "y": 287.0}, {"x": 385.0, "y": 287.0}]}], "spans": [{"offset": 368, "length": 1}], "confidence": null}}, "content": "1\n63.26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 385.0, "y": 280.0}, {"x": 455.0, "y": 280.0}, {"x": 455.0, "y": 290.0}, {"x": 385.0, "y": 290.0}]}], "spans": [{"offset": 368, "length": 7}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "101 L", "po_box": null, "road": "TOLLAAN", "city": null, "state": null, "postal_code": "1932", "country_region": null, "street_address": "101 L TOLLAAN"}, "content": "TOLLAAN, 101 L 1932 WOLUWE ST ETIENNE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 63.0}, {"x": 459.0, "y": 65.0}, {"x": 459.0, "y": 85.0}, {"x": 332.0, "y": 83.0}]}], "spans": [{"offset": 112, "length": 37}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "SPRL CONTRACT RESEARCH CENTER", "content": "SPRL CONTRACT RESEARCH CENTER", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 53.0}, {"x": 492.0, "y": 55.0}, {"x": 492.0, "y": 67.0}, {"x": 331.0, "y": 65.0}]}], "spans": [{"offset": 82, "length": 29}], "confidence": null}, "VendorName": {"value_type": "string", "value": "Guilbert\nDATE - IN Robal", "content": "Guilbert\nDATE - IN Robal", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 19.0}, {"x": 263.0, "y": 20.0}, {"x": 262.0, "y": 92.0}, {"x": 118.0, "y": 90.0}]}], "spans": [{"offset": 0, "length": 24}], "confidence": null}, "VendorTaxId": {"value_type": "string", "value": "400 440051 BTW", "content": "400 440051 BTW", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 21.0}, {"x": 538.0, "y": 21.0}, {"x": 538.0, "y": 30.0}, {"x": 484.0, "y": 30.0}]}], "spans": [{"offset": 67, "length": 14}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/123_jpg.rf.b47099043775968208693e3ddbe82d21.json b/Data/train/123_jpg.rf.b47099043775968208693e3ddbe82d21.json new file mode 100644 index 0000000000000000000000000000000000000000..bbd05d8bb7324312379242d7a8f1683af51a1ce4 --- /dev/null +++ b/Data/train/123_jpg.rf.b47099043775968208693e3ddbe82d21.json @@ -0,0 +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": 883}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 11287.0, "symbol": "\u20ac"}, "content": "\u20ac11,287", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 549.0, "y": 487.0}, {"x": 580.0, "y": 486.0}, {"x": 580.0, "y": 496.0}, {"x": 549.0, "y": 496.0}]}], "spans": [{"offset": 814, "length": 7}], "confidence": null}, "BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": ""}, "content": "Jalare, Rajasthan (RJ - (B) PIN Code 343001, India\nZES\n& Bhanwar Solanki", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 286.0, "y": 223.0}, {"x": 474.0, "y": 223.0}, {"x": 474.0, "y": 247.0}, {"x": 286.0, "y": 247.0}]}], "spans": [{"offset": 357, "length": 54}, {"offset": 423, "length": 17}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "A-One Computer\nJalpre", "content": "A-One Computer\nJalpre", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 300.0, "y": 200.0}, {"x": 359.0, "y": 200.0}, {"x": 359.0, "y": 222.0}, {"x": 300.0, "y": 222.0}]}], "spans": [{"offset": 335, "length": 21}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "A-One Computer\nJalpre", "content": "A-One Computer\nJalpre", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 300.0, "y": 200.0}, {"x": 359.0, "y": 200.0}, {"x": 359.0, "y": 222.0}, {"x": 300.0, "y": 222.0}]}], "spans": [{"offset": 335, "length": 21}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2018-07-05", "content": "July 05, 2018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 513.0, "y": 164.0}, {"x": 570.0, "y": 164.0}, {"x": 570.0, "y": 177.0}, {"x": 513.0, "y": 177.0}]}], "spans": [{"offset": 289, "length": 13}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "92", "content": "92", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 558.0, "y": 145.0}, {"x": 578.0, "y": 145.0}, {"x": 578.0, "y": 163.0}, {"x": 559.0, "y": 163.0}]}], "spans": [{"offset": 281, "length": 2}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 11287.0, "symbol": "\u20ac"}, "content": "\u20ac11,287", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 549.0, "y": 487.0}, {"x": 580.0, "y": 486.0}, {"x": 580.0, "y": 496.0}, {"x": 549.0, "y": 496.0}]}], "spans": [{"offset": 814, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 12118.6, "symbol": null}, "content": "12,118.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 545.0, "y": 330.0}, {"x": 579.0, "y": 330.0}, {"x": 580.0, "y": 339.0}, {"x": 545.0, "y": 339.0}]}], "spans": [{"offset": 563, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Backpack Bags", "content": "Backpack Bags", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 332.0}, {"x": 139.0, "y": 332.0}, {"x": 139.0, "y": 341.0}, {"x": 87.0, "y": 341.0}]}], "spans": [{"offset": 524, "length": 13}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "4200", "content": "4200", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 283.0, "y": 330.0}, {"x": 299.0, "y": 330.0}, {"x": 299.0, "y": 339.0}, {"x": 283.0, "y": 339.0}]}], "spans": [{"offset": 538, "length": 4}], "confidence": null}, "Quantity": {"value_type": "float", "value": 12.0, "content": "12.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 352.0, "y": 330.0}, {"x": 370.0, "y": 330.0}, {"x": 370.0, "y": 338.0}, {"x": 352.0, "y": 338.0}]}], "spans": [{"offset": 543, "length": 5}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 924.3, "symbol": null}, "content": "924.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 413.0, "y": 331.0}, {"x": 436.0, "y": 331.0}, {"x": 437.0, "y": 339.0}, {"x": 413.0, "y": 339.0}]}], "spans": [{"offset": 549, "length": 6}], "confidence": null}}, "content": "Backpack Bags\n4200\n12.00\n924.30\n924.30\n12,118.60\nn pink\n9.00%\n9.00%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 330.0}, {"x": 580.0, "y": 330.0}, {"x": 580.0, "y": 353.0}, {"x": 87.0, "y": 353.0}]}], "spans": [{"offset": 524, "length": 67}], "confidence": null}, {"value_type": "dictionary", "value": {"Description": {"value_type": "string", "value": "Shipping & Packaging", "content": "Shipping & Packaging", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 410.0}, {"x": 235.0, "y": 410.0}, {"x": 235.0, "y": 420.0}, {"x": 159.0, "y": 420.0}]}], "spans": [{"offset": 592, "length": 20}], "confidence": null}}, "content": "Shipping & Packaging\n7.63\n7.6", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 410.0}, {"x": 499.0, "y": 410.0}, {"x": 499.0, "y": 420.0}, {"x": 159.0, "y": 420.0}]}], "spans": [{"offset": 592, "length": 20}, {"offset": 640, "length": 4}, {"offset": 658, "length": 3}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 10354.75, "symbol": null}, "content": "10,354.75", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 545.0, "y": 438.0}, {"x": 579.0, "y": 439.0}, {"x": 579.0, "y": 448.0}, {"x": 545.0, "y": 447.0}]}], "spans": [{"offset": 702, "length": 9}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 1863.85, "symbol": null}, "content": "1,863.85", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 549.0, "y": 449.0}, {"x": 579.0, "y": 449.0}, {"x": 579.0, "y": 458.0}, {"x": 550.0, "y": 457.0}]}], "spans": [{"offset": 730, "length": 8}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "One way road, Manpura Colony, Near Dold", "city": "Code", "state": null, "postal_code": "343001", "country_region": "India", "street_address": "One way road, Manpura Colony, Near Dold"}, "content": "One way road, Manpura Colony, Near Dold Medal Showroom\nJalore, Rajasthan (RJ - 06), PIN Code 343001, India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 198.0}, {"x": 248.0, "y": 198.0}, {"x": 248.0, "y": 230.0}, {"x": 74.0, "y": 230.0}]}], "spans": [{"offset": 15, "length": 106}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "Alpha Computer", "content": "Alpha Computer", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 185.0}, {"x": 157.0, "y": 185.0}, {"x": 157.0, "y": 197.0}, {"x": 75.0, "y": 197.0}]}], "spans": [{"offset": 0, "length": 14}], "confidence": null}, "VendorName": {"value_type": "string", "value": "Alpha Computer", "content": "Alpha Computer", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 75.0, "y": 185.0}, {"x": 157.0, "y": 185.0}, {"x": 157.0, "y": 197.0}, {"x": 75.0, "y": 197.0}]}], "spans": [{"offset": 0, "length": 14}], "confidence": null}, "VendorTaxId": {"value_type": "string", "value": "CBCOOPB5049L120", "content": "CBCOOPB5049L120", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 291.0}, {"x": 168.0, "y": 292.0}, {"x": 168.0, "y": 302.0}, {"x": 100.0, "y": 301.0}]}], "spans": [{"offset": 257, "length": 15}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/125_jpg.rf.66f8684a6bd0e31388a293580084ee22.json b/Data/train/125_jpg.rf.66f8684a6bd0e31388a293580084ee22.json new file mode 100644 index 0000000000000000000000000000000000000000..bdafae2b43256257378a60a235e386955fafef04 --- /dev/null +++ b/Data/train/125_jpg.rf.66f8684a6bd0e31388a293580084ee22.json @@ -0,0 +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": 363}], "fields": {"InvoiceDate": {"value_type": "date", "value": "2019-01-21", "content": "January 21, 2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 249.0}, {"x": 586.0, "y": 249.0}, {"x": 586.0, "y": 260.0}, {"x": 517.0, "y": 260.0}]}], "spans": [{"offset": 139, "length": 16}], "confidence": 0.934}, "InvoiceId": {"value_type": "string", "value": "PPIW-100", "content": "PPIW-100", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 518.0, "y": 233.0}, {"x": 557.0, "y": 233.0}, {"x": 558.0, "y": 244.0}, {"x": 518.0, "y": 244.0}]}], "spans": [{"offset": 116, "length": 8}], "confidence": 0.981}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 107.0, "symbol": "USD"}, "content": "$107.00 USD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 553.0, "y": 417.0}, {"x": 606.0, "y": 417.0}, {"x": 606.0, "y": 427.0}, {"x": 553.0, "y": 427.0}]}], "spans": [{"offset": 320, "length": 11}], "confidence": 0.787}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100.00\n$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 576.0, "y": 364.0}, {"x": 607.0, "y": 363.0}, {"x": 607.0, "y": 373.0}, {"x": 576.0, "y": 374.0}]}], "spans": [{"offset": 242, "length": 7}, {"offset": 275, "length": 7}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "Widget", "content": "Widget", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 14.0, "y": 364.0}, {"x": 46.0, "y": 364.0}, {"x": 46.0, "y": 374.0}, {"x": 14.0, "y": 374.0}]}], "spans": [{"offset": 225, "length": 6}], "confidence": 0.052}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 422.0, "y": 364.0}, {"x": 425.0, "y": 364.0}, {"x": 425.0, "y": 372.0}, {"x": 422.0, "y": 372.0}]}], "spans": [{"offset": 232, "length": 1}], "confidence": 0.052}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100.00\n$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 485.0, "y": 363.0}, {"x": 517.0, "y": 363.0}, {"x": 517.0, "y": 374.0}, {"x": 485.0, "y": 374.0}]}], "spans": [{"offset": 234, "length": 7}, {"offset": 267, "length": 7}], "confidence": 0.02}}, "content": "Widget\n1\n$100.00\n$100.00\n$100.00\n$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 14.0, "y": 363.0}, {"x": 607.0, "y": 363.0}, {"x": 607.0, "y": 374.0}, {"x": 14.0, "y": 374.0}]}], "spans": [{"offset": 225, "length": 24}, {"offset": 267, "length": 15}], "confidence": 0.673}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100.00\n$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 576.0, "y": 381.0}, {"x": 608.0, "y": 382.0}, {"x": 608.0, "y": 392.0}, {"x": 576.0, "y": 392.0}]}], "spans": [{"offset": 259, "length": 7}, {"offset": 292, "length": 7}], "confidence": 0.725}, "TotalTax": {"value_type": "currency", "value": {"amount": 7.0, "symbol": "$"}, "content": "$7.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 587.0, "y": 399.0}, {"x": 608.0, "y": 399.0}, {"x": 608.0, "y": 409.0}, {"x": 586.0, "y": 409.0}]}], "spans": [{"offset": 308, "length": 5}], "confidence": 0.595}, "VendorAddress": {"value_type": "address", "value": {"house_number": "1", "po_box": null, "road": "Main St", "city": "San Jose", "state": "CA", "postal_code": "95131", "country_region": null, "street_address": "1 Main St"}, "content": "1 Main St San Jose CA 95131", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 8.0, "y": 218.0}, {"x": 85.0, "y": 218.0}, {"x": 85.0, "y": 241.0}, {"x": 8.0, "y": 241.0}]}], "spans": [{"offset": 32, "length": 27}], "confidence": 0.95}, "VendorName": {"value_type": "string", "value": "ANGELLEYE", "content": "ANGELLEYE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 51.0, "y": 161.0}, {"x": 143.0, "y": 160.0}, {"x": 143.0, "y": 176.0}, {"x": 51.0, "y": 175.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": 0.851}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/126_jpg.rf.2b6443bf44a259f9277214b25fb89d7e.json b/Data/train/126_jpg.rf.2b6443bf44a259f9277214b25fb89d7e.json new file mode 100644 index 0000000000000000000000000000000000000000..3e421bd31ad29e241b529768ae3e54d1dc10009b --- /dev/null +++ b/Data/train/126_jpg.rf.2b6443bf44a259f9277214b25fb89d7e.json @@ -0,0 +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": 1619}], "fields": {"CustomerName": {"value_type": "string", "value": "Bujtumar Kastu", "content": "Bujtumar Kastu", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 132.0, "y": 206.0}, {"x": 193.0, "y": 206.0}, {"x": 193.0, "y": 216.0}, {"x": 132.0, "y": 216.0}]}], "spans": [{"offset": 308, "length": 14}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2020-02-16", "content": "16 FEB 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 392.0, "y": 265.0}, {"x": 439.0, "y": 265.0}, {"x": 439.0, "y": 275.0}, {"x": 392.0, "y": 275.0}]}], "spans": [{"offset": 507, "length": 11}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "A02006/7430136", "content": "A02006/7430136", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 391.0, "y": 254.0}, {"x": 450.0, "y": 253.0}, {"x": 450.0, "y": 262.0}, {"x": 391.0, "y": 262.0}]}], "spans": [{"offset": 479, "length": 14}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2043.0, "symbol": null}, "content": "2043.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 466.0}, {"x": 467.0, "y": 466.0}, {"x": 467.0, "y": 476.0}, {"x": 438.0, "y": 476.0}]}], "spans": [{"offset": 906, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1653.0, "symbol": null}, "content": "1653.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 437.0, "y": 357.0}, {"x": 466.0, "y": 357.0}, {"x": 467.0, "y": 367.0}, {"x": 437.0, "y": 367.0}]}], "spans": [{"offset": 722, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2020-03-20", "content": "20 Mar 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 303.0, "y": 357.0}, {"x": 348.0, "y": 357.0}, {"x": 348.0, "y": 367.0}, {"x": 303.0, "y": 367.0}]}], "spans": [{"offset": 693, "length": 11}], "confidence": null}}, "content": "MY Sigtkumar Kastar BOM-BLR\n(ADT)\nS\nAL - 030 20 Mar 2020 3758827684 YLCKD 1653.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 84.0, "y": 354.0}, {"x": 467.0, "y": 354.0}, {"x": 467.0, "y": 376.0}, {"x": 84.0, "y": 376.0}]}], "spans": [{"offset": 648, "length": 81}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 30.51, "symbol": null}, "content": "30.51", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 442.0}, {"x": 468.0, "y": 442.0}, {"x": 468.0, "y": 452.0}, {"x": 448.0, "y": 452.0}]}], "spans": [{"offset": 870, "length": 5}], "confidence": null}}, "content": "30.51", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 442.0}, {"x": 468.0, "y": 442.0}, {"x": 468.0, "y": 452.0}, {"x": 448.0, "y": 452.0}]}], "spans": [{"offset": 870, "length": 5}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 61.02, "symbol": null}, "content": "61.02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 447.0, "y": 453.0}, {"x": 467.0, "y": 453.0}, {"x": 467.0, "y": 464.0}, {"x": 447.0, "y": 463.0}]}], "spans": [{"offset": 888, "length": 5}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Piet", "city": "Gurgaon", "state": null, "postal_code": "Gurgaon-122008", "country_region": "India", "street_address": "Piet No 272"}, "content": "Piet No 272, 4th Floor, Guf Adiba, Phase II,Udyng Viual, Gurgaon, Gurgaon-122008, India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 231.0, "y": 103.0}, {"x": 469.0, "y": 103.0}, {"x": 469.0, "y": 129.0}, {"x": 231.0, "y": 129.0}]}], "spans": [{"offset": 96, "length": 87}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "Yatra Online Private Limited", "content": "Yatra Online Private Limited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 368.0, "y": 92.0}, {"x": 469.0, "y": 94.0}, {"x": 469.0, "y": 107.0}, {"x": 368.0, "y": 105.0}]}], "spans": [{"offset": 67, "length": 28}], "confidence": null}, "VendorName": {"value_type": "string", "value": "yatra", "content": "yatra", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 62.0}, {"x": 173.0, "y": 60.0}, {"x": 174.0, "y": 92.0}, {"x": 104.0, "y": 94.0}]}], "spans": [{"offset": 61, "length": 5}], "confidence": null}, "VendorTaxId": {"value_type": "string", "value": "06AAACY2602DIZW", "content": "06AAACY2602DIZW", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 368.0, "y": 141.0}, {"x": 464.0, "y": 140.0}, {"x": 464.0, "y": 152.0}, {"x": 368.0, "y": 152.0}]}], "spans": [{"offset": 192, "length": 15}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/127_png.rf.cbb77f4fa49ea876c312cc37978b5b03.json b/Data/train/127_png.rf.cbb77f4fa49ea876c312cc37978b5b03.json new file mode 100644 index 0000000000000000000000000000000000000000..57c690c8dfc8047329de81203e4717b6a21ea9c6 --- /dev/null +++ b/Data/train/127_png.rf.cbb77f4fa49ea876c312cc37978b5b03.json @@ -0,0 +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": 654}], "fields": {"DueDate": {"value_type": "date", "value": "2020-07-25", "content": "25/07/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 431.0, "y": 130.0}, {"x": 472.0, "y": 130.0}, {"x": 472.0, "y": 139.0}, {"x": 431.0, "y": 138.0}]}], "spans": [{"offset": 160, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "0022020301108", "content": "0022020301108", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 431.0, "y": 66.0}, {"x": 486.0, "y": 66.0}, {"x": 485.0, "y": 74.0}, {"x": 431.0, "y": 74.0}]}], "spans": [{"offset": 80, "length": 13}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 620.0, "symbol": null}, "content": "620,00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 513.0, "y": 166.0}, {"x": 538.0, "y": 166.0}, {"x": 538.0, "y": 175.0}, {"x": 514.0, "y": 175.0}]}], "spans": [{"offset": 206, "length": 6}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 33.53, "symbol": null}, "content": "33,53", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 480.0, "y": 167.0}, {"x": 502.0, "y": 167.0}, {"x": 502.0, "y": 175.0}, {"x": 480.0, "y": 175.0}]}], "spans": [{"offset": 200, "length": 5}], "confidence": null}}, "content": "33,53\n620,00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 480.0, "y": 166.0}, {"x": 538.0, "y": 166.0}, {"x": 538.0, "y": 175.0}, {"x": 480.0, "y": 175.0}]}], "spans": [{"offset": 200, "length": 12}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3.9, "symbol": null}, "content": "03,90", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 516.0, "y": 176.0}, {"x": 537.0, "y": 175.0}, {"x": 537.0, "y": 184.0}, {"x": 517.0, "y": 183.0}]}], "spans": [{"offset": 240, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "LHE LED G9 2888 3000\nLPE LED GP 2X2K 3000", "content": "LHE LED G9 2888 3000\nLPE LED GP 2X2K 3000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 353.0, "y": 176.0}, {"x": 435.0, "y": 176.0}, {"x": 435.0, "y": 193.0}, {"x": 353.0, "y": 193.0}]}], "spans": [{"offset": 213, "length": 20}, {"offset": 246, "length": 20}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 53.9, "symbol": null}, "content": "53,90", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 480.0, "y": 176.0}, {"x": 500.0, "y": 176.0}, {"x": 500.0, "y": 183.0}, {"x": 480.0, "y": 183.0}]}], "spans": [{"offset": 234, "length": 5}], "confidence": null}}, "content": "LHE LED G9 2888 3000\n53,90\n03,90\nLPE LED GP 2X2K 3000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 353.0, "y": 175.0}, {"x": 537.0, "y": 175.0}, {"x": 537.0, "y": 193.0}, {"x": 353.0, "y": 193.0}]}], "spans": [{"offset": 213, "length": 53}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 33.9, "symbol": null}, "content": "33,90", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 516.0, "y": 194.0}, {"x": 537.0, "y": 194.0}, {"x": 537.0, "y": 202.0}, {"x": 516.0, "y": 202.0}]}], "spans": [{"offset": 290, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "LPF LED G9 2X3X SUUU\nFE LED G9 2X3X 3000\n34C DE CH3553 A FOIE", "content": "LPF LED G9 2X3X SUUU\nFE LED G9 2X3X 3000\n34C DE CH3553 A FOIE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 354.0, "y": 194.0}, {"x": 435.0, "y": 194.0}, {"x": 435.0, "y": 221.0}, {"x": 354.0, "y": 221.0}]}], "spans": [{"offset": 267, "length": 20}, {"offset": 296, "length": 40}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 468.0, "y": 194.0}, {"x": 473.0, "y": 194.0}, {"x": 473.0, "y": 202.0}, {"x": 468.0, "y": 202.0}]}], "spans": [{"offset": 288, "length": 1}], "confidence": null}}, "content": "LPF LED G9 2X3X SUUU\n1\n33,90\nFE LED G9 2X3X 3000\n34C DE CH3553 A FOIE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 354.0, "y": 194.0}, {"x": 537.0, "y": 194.0}, {"x": 537.0, "y": 221.0}, {"x": 354.0, "y": 221.0}]}], "spans": [{"offset": 267, "length": 69}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "N\u00ba 306", "po_box": null, "road": "BOULEVARD", "city": "ZERKTOUNI-CASABLANCA", "state": null, "postal_code": null, "country_region": "MAROC", "street_address": "N\u00ba 306 BOULEVARD"}, "content": "N\u00ba 306, BOULEVARD ZERKTOUNI-CASABLANCA -MAROC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 212.0, "y": 594.0}, {"x": 425.0, "y": 594.0}, {"x": 425.0, "y": 604.0}, {"x": 212.0, "y": 604.0}]}], "spans": [{"offset": 463, "length": 45}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "BRICO-INVEST 54", "content": "BRICO-INVEST 54", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 286.0, "y": 584.0}, {"x": 351.0, "y": 584.0}, {"x": 351.0, "y": 593.0}, {"x": 286.0, "y": 593.0}]}], "spans": [{"offset": 447, "length": 15}], "confidence": null}, "VendorName": {"value_type": "string", "value": "Mr.Bricolage\nFRITES IC JEJIR OU DIOIN", "content": "Mr.Bricolage FRITES IC JEJIR OU DIOIN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 173.0, "y": 75.0}, {"x": 290.0, "y": 75.0}, {"x": 290.0, "y": 104.0}, {"x": 173.0, "y": 104.0}]}], "spans": [{"offset": 0, "length": 37}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/12_jpg.rf.02154f1a9d55de651db532f8cf4b4e64.json b/Data/train/12_jpg.rf.02154f1a9d55de651db532f8cf4b4e64.json new file mode 100644 index 0000000000000000000000000000000000000000..6953f3700f09964994a0593e6ac55d592a67a429 --- /dev/null +++ b/Data/train/12_jpg.rf.02154f1a9d55de651db532f8cf4b4e64.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1583.0, "y": 0.0}, {"x": 1583.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 813}], "fields": {"CustomerId": {"value_type": "string", "value": "[123]", "content": "[123]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1324.0, "y": 298.0}, {"x": 1388.0, "y": 298.0}, {"x": 1388.0, "y": 328.0}, {"x": 1324.0, "y": 328.0}]}], "spans": [{"offset": 165, "length": 5}], "confidence": 0.955}, "DueDate": {"value_type": "date", "value": "2020-10-22", "content": "2020/10/22", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1288.0, "y": 334.0}, {"x": 1426.0, "y": 334.0}, {"x": 1426.0, "y": 359.0}, {"x": 1288.0, "y": 359.0}]}], "spans": [{"offset": 180, "length": 10}], "confidence": 0.972}, "InvoiceDate": {"value_type": "date", "value": "2020-09-22", "content": "2020/9/22", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1295.0, "y": 230.0}, {"x": 1418.0, "y": 230.0}, {"x": 1418.0, "y": 255.0}, {"x": 1295.0, "y": 254.0}]}], "spans": [{"offset": 124, "length": 9}], "confidence": 0.971}, "InvoiceId": {"value_type": "string", "value": "[123456]", "content": "[123456]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1305.0, "y": 264.0}, {"x": 1408.0, "y": 264.0}, {"x": 1407.0, "y": 293.0}, {"x": 1305.0, "y": 293.0}]}], "spans": [{"offset": 144, "length": 8}], "confidence": 0.972}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 971.56, "symbol": "$"}, "content": "$ 971.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1264.0, "y": 1218.0}, {"x": 1445.0, "y": 1218.0}, {"x": 1445.0, "y": 1247.0}, {"x": 1264.0, "y": 1247.0}]}], "spans": [{"offset": 529, "length": 8}], "confidence": 0.782}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 230.0, "symbol": null}, "content": "230.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1368.0, "y": 723.0}, {"x": 1444.0, "y": 722.0}, {"x": 1443.0, "y": 748.0}, {"x": 1368.0, "y": 746.0}]}], "spans": [{"offset": 300, "length": 6}], "confidence": 0.898}, "Description": {"value_type": "string", "value": "[Service Fee]", "content": "[Service Fee]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 721.0}, {"x": 313.0, "y": 722.0}, {"x": 313.0, "y": 753.0}, {"x": 159.0, "y": 752.0}]}], "spans": [{"offset": 286, "length": 13}], "confidence": 0.884}}, "content": "[Service Fee]\n230.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 713.0}, {"x": 1444.0, "y": 722.0}, {"x": 1444.0, "y": 761.0}, {"x": 159.0, "y": 752.0}]}], "spans": [{"offset": 286, "length": 20}], "confidence": 0.89}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 375.0, "symbol": null}, "content": "375.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1368.0, "y": 757.0}, {"x": 1444.0, "y": 757.0}, {"x": 1443.0, "y": 782.0}, {"x": 1368.0, "y": 781.0}]}], "spans": [{"offset": 334, "length": 6}], "confidence": 0.901}, "Description": {"value_type": "string", "value": "[Labor: 5 hours at $75/hr]", "content": "[Labor: 5 hours at $75/hr]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 755.0}, {"x": 464.0, "y": 755.0}, {"x": 464.0, "y": 786.0}, {"x": 160.0, "y": 786.0}]}], "spans": [{"offset": 307, "length": 26}], "confidence": 0.68}}, "content": "[Labor: 5 hours at $75/hr]\n375.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 755.0}, {"x": 1444.0, "y": 755.0}, {"x": 1444.0, "y": 786.0}, {"x": 160.0, "y": 786.0}]}], "spans": [{"offset": 307, "length": 33}], "confidence": 0.675}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 345.0, "symbol": null}, "content": "345.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1367.0, "y": 793.0}, {"x": 1443.0, "y": 792.0}, {"x": 1443.0, "y": 817.0}, {"x": 1368.0, "y": 816.0}]}], "spans": [{"offset": 351, "length": 6}], "confidence": 0.896}, "Description": {"value_type": "string", "value": "[Parts]", "content": "[Parts]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 791.0}, {"x": 236.0, "y": 791.0}, {"x": 236.0, "y": 820.0}, {"x": 159.0, "y": 820.0}]}], "spans": [{"offset": 341, "length": 7}], "confidence": 0.749}, "Tax": {"value_type": "currency", "value": null, "content": "X", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1176.0, "y": 795.0}, {"x": 1186.0, "y": 795.0}, {"x": 1186.0, "y": 813.0}, {"x": 1176.0, "y": 813.0}]}], "spans": [{"offset": 349, "length": 1}], "confidence": 0.644}}, "content": "[Parts]\nX\n345.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 791.0}, {"x": 1443.0, "y": 791.0}, {"x": 1443.0, "y": 820.0}, {"x": 159.0, "y": 820.0}]}], "spans": [{"offset": 341, "length": 16}], "confidence": 0.675}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 950.0, "symbol": null}, "content": "950.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1367.0, "y": 1037.0}, {"x": 1443.0, "y": 1037.0}, {"x": 1443.0, "y": 1063.0}, {"x": 1367.0, "y": 1062.0}]}], "spans": [{"offset": 465, "length": 6}], "confidence": 0.971}, "TotalTax": {"value_type": "currency", "value": {"amount": 21.56, "symbol": null}, "content": "21.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1383.0, "y": 1144.0}, {"x": 1444.0, "y": 1144.0}, {"x": 1444.0, "y": 1169.0}, {"x": 1382.0, "y": 1169.0}]}], "spans": [{"offset": 511, "length": 5}], "confidence": 0.959}, "VendorName": {"value_type": "string", "value": "Company Name", "content": "Company Name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 257.0, "y": 114.0}, {"x": 726.0, "y": 114.0}, {"x": 726.0, "y": 180.0}, {"x": 257.0, "y": 180.0}]}], "spans": [{"offset": 0, "length": 12}], "confidence": 0.593}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/12_jpg.rf.50fef8bcd2cc132cb861bac5c4711dc4.json b/Data/train/12_jpg.rf.50fef8bcd2cc132cb861bac5c4711dc4.json new file mode 100644 index 0000000000000000000000000000000000000000..9240a5405a3694a80eaaf892ba8ed5cadf066773 --- /dev/null +++ b/Data/train/12_jpg.rf.50fef8bcd2cc132cb861bac5c4711dc4.json @@ -0,0 +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": 579}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "545", "po_box": null, "road": "Robson St", "city": "Vancouver", "state": "BC", "postal_code": "V6B 2B7", "country_region": "Canada", "street_address": "545 Robson St"}, "content": "545 Robson St Vancouver BC, V6B 2B7 Canada", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 131.0, "y": 152.0}, {"x": 237.0, "y": 152.0}, {"x": 237.0, "y": 189.0}, {"x": 131.0, "y": 189.0}]}], "spans": [{"offset": 17, "length": 42}], "confidence": 0.594}, "CustomerAddressRecipient": {"value_type": "string", "value": "BENCH ACCOUNTING", "content": "BENCH ACCOUNTING", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 132.0, "y": 127.0}, {"x": 233.0, "y": 127.0}, {"x": 233.0, "y": 140.0}, {"x": 132.0, "y": 140.0}]}], "spans": [{"offset": 0, "length": 16}], "confidence": 0.526}, "CustomerName": {"value_type": "string", "value": "BENCH ACCOUNTING", "content": "BENCH ACCOUNTING", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 132.0, "y": 127.0}, {"x": 233.0, "y": 127.0}, {"x": 233.0, "y": 140.0}, {"x": 132.0, "y": 140.0}]}], "spans": [{"offset": 0, "length": 16}], "confidence": 0.526}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 5650.0, "symbol": "$"}, "content": "$5,650.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 457.0, "y": 540.0}, {"x": 502.0, "y": 540.0}, {"x": 503.0, "y": 551.0}, {"x": 458.0, "y": 551.0}]}], "spans": [{"offset": 570, "length": 9}], "confidence": 0.958}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5000.0, "symbol": "$"}, "content": "$5,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 443.0}, {"x": 506.0, "y": 443.0}, {"x": 506.0, "y": 452.0}, {"x": 462.0, "y": 453.0}]}], "spans": [{"offset": 513, "length": 9}], "confidence": 0.937}, "Description": {"value_type": "string", "value": "Comfortable but\noverpriced chairs", "content": "Comfortable but overpriced chairs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 242.0, "y": 437.0}, {"x": 319.0, "y": 437.0}, {"x": 319.0, "y": 459.0}, {"x": 242.0, "y": 459.0}]}], "spans": [{"offset": 468, "length": 33}], "confidence": 0.935}, "ProductCode": {"value_type": "string", "value": "10 Chairs", "content": "10 Chairs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 131.0, "y": 442.0}, {"x": 173.0, "y": 443.0}, {"x": 173.0, "y": 453.0}, {"x": 131.0, "y": 452.0}]}], "spans": [{"offset": 458, "length": 9}], "confidence": 0.667}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 371.0, "y": 443.0}, {"x": 379.0, "y": 443.0}, {"x": 379.0, "y": 452.0}, {"x": 371.0, "y": 452.0}]}], "spans": [{"offset": 502, "length": 2}], "confidence": 0.936}, "UnitPrice": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "$"}, "content": "$500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 443.0}, {"x": 440.0, "y": 443.0}, {"x": 440.0, "y": 452.0}, {"x": 404.0, "y": 452.0}]}], "spans": [{"offset": 505, "length": 7}], "confidence": 0.935}}, "content": "10 Chairs\nComfortable but overpriced chairs\n10\n$500.00\n$5,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 131.0, "y": 437.0}, {"x": 506.0, "y": 437.0}, {"x": 506.0, "y": 459.0}, {"x": 131.0, "y": 459.0}]}], "spans": [{"offset": 458, "length": 64}], "confidence": 0.883}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "To be delivered to cargo bay #2", "content": "To be delivered to cargo bay #2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 363.0, "y": 370.0}, {"x": 503.0, "y": 370.0}, {"x": 503.0, "y": 382.0}, {"x": 363.0, "y": 382.0}]}], "spans": [{"offset": 379, "length": 31}], "confidence": 0.624}, "PurchaseOrder": {"value_type": "string", "value": "123454", "content": "123454", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 128.0}, {"x": 504.0, "y": 128.0}, {"x": 504.0, "y": 139.0}, {"x": 473.0, "y": 139.0}]}], "spans": [{"offset": 190, "length": 6}], "confidence": 0.418}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "545", "po_box": null, "road": "Robson St", "city": "Vancouver", "state": "BC", "postal_code": "V6B 2B7", "country_region": "Canada", "street_address": "545 Robson St"}, "content": "545 Robson St\nVancouver, BC, V6B 2B7\nCanada", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 402.0, "y": 244.0}, {"x": 508.0, "y": 244.0}, {"x": 508.0, "y": 277.0}, {"x": 402.0, "y": 277.0}]}], "spans": [{"offset": 256, "length": 43}], "confidence": 0.877}, "ShippingAddressRecipient": {"value_type": "string", "value": "Bench Accounting", "content": "Bench Accounting", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 402.0, "y": 233.0}, {"x": 483.0, "y": 234.0}, {"x": 483.0, "y": 245.0}, {"x": 402.0, "y": 244.0}]}], "spans": [{"offset": 239, "length": 16}], "confidence": 0.936}, "SubTotal": {"value_type": "currency", "value": {"amount": 5000.0, "symbol": "$"}, "content": "$5,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 457.0, "y": 506.0}, {"x": 503.0, "y": 506.0}, {"x": 503.0, "y": 516.0}, {"x": 458.0, "y": 516.0}]}], "spans": [{"offset": 532, "length": 9}], "confidence": 0.974}, "TotalTax": {"value_type": "currency", "value": {"amount": 5650.0, "symbol": "$"}, "content": "$5,650.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 458.0, "y": 522.0}, {"x": 502.0, "y": 522.0}, {"x": 503.0, "y": 532.0}, {"x": 459.0, "y": 532.0}]}], "spans": [{"offset": 554, "length": 9}], "confidence": 0.849}, "VendorAddress": {"value_type": "address", "value": {"house_number": "123", "po_box": null, "road": "Acme Avenue", "city": "Smallville", "state": "AZ", "postal_code": "54354", "country_region": "United States", "street_address": "123 Acme Avenue"}, "content": "123 Acme Avenue\nSmallville, AZ, 54354\nUnited States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 185.0, "y": 244.0}, {"x": 279.0, "y": 244.0}, {"x": 279.0, "y": 277.0}, {"x": 185.0, "y": 277.0}]}], "spans": [{"offset": 98, "length": 51}], "confidence": 0.866}, "VendorAddressRecipient": {"value_type": "string", "value": "ACME Industries", "content": "ACME Industries", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 185.0, "y": 233.0}, {"x": 261.0, "y": 233.0}, {"x": 261.0, "y": 244.0}, {"x": 185.0, "y": 244.0}]}], "spans": [{"offset": 82, "length": 15}], "confidence": 0.846}, "VendorName": {"value_type": "string", "value": "Bench\u00ae", "content": "Bench\u00ae", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 65.0}, {"x": 504.0, "y": 64.0}, {"x": 505.0, "y": 82.0}, {"x": 438.0, "y": 84.0}]}], "spans": [{"offset": 168, "length": 6}], "confidence": 0.95}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/131_jpg.rf.780034cb0344c94595ffe8ed7724a4da.json b/Data/train/131_jpg.rf.780034cb0344c94595ffe8ed7724a4da.json new file mode 100644 index 0000000000000000000000000000000000000000..a897aa0ff24e8bdb4a8b6305dbd47e6a147d89a4 --- /dev/null +++ b/Data/train/131_jpg.rf.780034cb0344c94595ffe8ed7724a4da.json @@ -0,0 +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": 1188}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "120", "po_box": null, "road": "PARK AVENUE", "city": "NEW YORK", "state": "NY", "postal_code": "10017", "country_region": "US", "street_address": "120 PARK AVENUE"}, "content": "120 PARK AVENUE\nNEW YORK NY US 10017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 181.0}, {"x": 308.0, "y": 181.0}, {"x": 308.0, "y": 202.0}, {"x": 189.0, "y": 202.0}]}], "spans": [{"offset": 146, "length": 36}], "confidence": 0.829}, "BillingAddressRecipient": {"value_type": "string", "value": "PHILIP MORRIS USA\nATTN: MR. FRED DELLA CROSSE", "content": "PHILIP MORRIS USA\nATTN: MR. FRED DELLA CROSSE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 172.0}, {"x": 348.0, "y": 172.0}, {"x": 348.0, "y": 231.0}, {"x": 189.0, "y": 231.0}]}], "spans": [{"offset": 128, "length": 17}, {"offset": 183, "length": 27}], "confidence": 0.507}, "CustomerName": {"value_type": "string", "value": "PHILIP MORRIS USA\nATTN: MR. FRED DELLA CROSSE", "content": "PHILIP MORRIS USA\nATTN: MR. FRED DELLA CROSSE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 172.0}, {"x": 348.0, "y": 172.0}, {"x": 348.0, "y": 231.0}, {"x": 189.0, "y": 231.0}]}], "spans": [{"offset": 128, "length": 17}, {"offset": 183, "length": 27}], "confidence": 0.507}, "InvoiceDate": {"value_type": "date", "value": "1990-01-26", "content": "26 Jan 1990", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 190.0, "y": 133.0}, {"x": 254.0, "y": 133.0}, {"x": 254.0, "y": 144.0}, {"x": 190.0, "y": 144.0}]}], "spans": [{"offset": 89, "length": 11}], "confidence": 0.788}, "InvoiceId": {"value_type": "string", "value": "331213", "content": "331213", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 114.0}, {"x": 225.0, "y": 114.0}, {"x": 225.0, "y": 124.0}, {"x": 191.0, "y": 123.0}]}], "spans": [{"offset": 76, "length": 6}], "confidence": 0.829}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2683.0, "symbol": "$"}, "content": "$2,683.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 386.0, "y": 543.0}, {"x": 440.0, "y": 543.0}, {"x": 439.0, "y": 554.0}, {"x": 387.0, "y": 555.0}]}], "spans": [{"offset": 1000, "length": 9}], "confidence": 0.21}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {}, "content": "U.S.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 324.0, "y": 338.0}, {"x": 347.0, "y": 338.0}, {"x": 347.0, "y": 348.0}, {"x": 324.0, "y": 348.0}]}], "spans": [{"offset": 671, "length": 4}], "confidence": 0.006}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 36260.0, "symbol": "$"}, "content": "$36,260.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 382.0, "y": 367.0}, {"x": 441.0, "y": 367.0}, {"x": 441.0, "y": 377.0}, {"x": 382.0, "y": 377.0}]}], "spans": [{"offset": 798, "length": 10}], "confidence": 0.083}, "Description": {"value_type": "string", "value": "PROFESSIONAL FEE TO DATE", "content": "PROFESSIONAL FEE TO DATE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 130.0, "y": 366.0}, {"x": 271.0, "y": 366.0}, {"x": 271.0, "y": 377.0}, {"x": 130.0, "y": 377.0}]}], "spans": [{"offset": 743, "length": 24}], "confidence": 0.029}}, "content": "PROFESSIONAL FEE TO DATE\n$36,260.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 130.0, "y": 366.0}, {"x": 441.0, "y": 366.0}, {"x": 441.0, "y": 377.0}, {"x": 130.0, "y": 377.0}]}], "spans": [{"offset": 743, "length": 24}, {"offset": 798, "length": 10}], "confidence": 0.284}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 36260.0, "symbol": "$"}, "content": "$36,260.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 381.0, "y": 377.0}, {"x": 441.0, "y": 376.0}, {"x": 441.0, "y": 387.0}, {"x": 382.0, "y": 387.0}]}], "spans": [{"offset": 809, "length": 10}], "confidence": 0.155}, "Description": {"value_type": "string", "value": "LESS AMOUNT PREVIOUSLY BILLED", "content": "LESS AMOUNT PREVIOUSLY BILLED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 375.0}, {"x": 301.0, "y": 375.0}, {"x": 301.0, "y": 387.0}, {"x": 129.0, "y": 387.0}]}], "spans": [{"offset": 768, "length": 29}], "confidence": 0.199}}, "content": "LESS AMOUNT PREVIOUSLY BILLED\n$36,260.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 375.0}, {"x": 441.0, "y": 375.0}, {"x": 441.0, "y": 387.0}, {"x": 129.0, "y": 387.0}]}], "spans": [{"offset": 768, "length": 29}, {"offset": 809, "length": 10}], "confidence": 0.315}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3089.0, "symbol": "$"}, "content": "$3,089.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 387.0, "y": 415.0}, {"x": 440.0, "y": 415.0}, {"x": 440.0, "y": 426.0}, {"x": 387.0, "y": 426.0}]}], "spans": [{"offset": 913, "length": 9}], "confidence": 0.186}, "Description": {"value_type": "string", "value": "OUT-OF-POCKET EXPENSES TO DATE", "content": "OUT-OF-POCKET EXPENSES TO DATE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 415.0}, {"x": 305.0, "y": 415.0}, {"x": 305.0, "y": 426.0}, {"x": 129.0, "y": 426.0}]}], "spans": [{"offset": 852, "length": 30}], "confidence": 0.029}}, "content": "OUT-OF-POCKET EXPENSES TO DATE\n$3,089.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 415.0}, {"x": 440.0, "y": 415.0}, {"x": 440.0, "y": 426.0}, {"x": 129.0, "y": 426.0}]}], "spans": [{"offset": 852, "length": 30}, {"offset": 913, "length": 9}], "confidence": 0.132}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 406.0, "symbol": "$"}, "content": "$406.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 399.0, "y": 426.0}, {"x": 441.0, "y": 425.0}, {"x": 441.0, "y": 437.0}, {"x": 399.0, "y": 436.0}]}], "spans": [{"offset": 923, "length": 7}], "confidence": 0.024}, "Description": {"value_type": "string", "value": "LESS AMOUNT PREVIOUSLY BILLED", "content": "LESS AMOUNT PREVIOUSLY BILLED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 130.0, "y": 425.0}, {"x": 301.0, "y": 425.0}, {"x": 301.0, "y": 436.0}, {"x": 130.0, "y": 436.0}]}], "spans": [{"offset": 883, "length": 29}], "confidence": 0.003}}, "content": "LESS AMOUNT PREVIOUSLY BILLED\n$406.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 130.0, "y": 425.0}, {"x": 441.0, "y": 425.0}, {"x": 441.0, "y": 437.0}, {"x": 130.0, "y": 437.0}]}], "spans": [{"offset": 883, "length": 29}, {"offset": 923, "length": 7}], "confidence": 0.744}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Net 30 days; 1969% per month finance charge on past due amount", "content": "Net 30 days; 1969% per month finance charge on past due amount", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 146.0, "y": 245.0}, {"x": 338.0, "y": 245.0}, {"x": 338.0, "y": 254.0}, {"x": 146.0, "y": 254.0}]}], "spans": [{"offset": 284, "length": 62}], "confidence": 0.097}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": "One", "po_box": null, "road": "Embarcadero Center.", "city": "San Francisco", "state": "CA", "postal_code": "94111", "country_region": null, "street_address": "One Embarcadero Center."}, "content": "One Embarcadero Center. San Francisco, CA 94111", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 262.0}, {"x": 373.0, "y": 262.0}, {"x": 373.0, "y": 271.0}, {"x": 223.0, "y": 271.0}]}], "spans": [{"offset": 448, "length": 47}], "confidence": 0.28}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Security Pacific National Bank, San Francisen Main Office No. 0512", "content": "Security Pacific National Bank, San Francisen Main Office No. 0512", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 253.0}, {"x": 426.0, "y": 253.0}, {"x": 426.0, "y": 263.0}, {"x": 223.0, "y": 263.0}]}], "spans": [{"offset": 381, "length": 66}], "confidence": 0.398}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. Box 61000", "road": null, "city": "San Francisco", "state": "CA", "postal_code": "94168-1563", "country_region": null, "street_address": "P.O. Box 61000"}, "content": "P.O. Box 61000. San Francisco, CA 94168-1563", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 236.0, "y": 594.0}, {"x": 379.0, "y": 594.0}, {"x": 379.0, "y": 604.0}, {"x": 236.0, "y": 604.0}]}], "spans": [{"offset": 1144, "length": 44}], "confidence": 0.767}, "VendorAddressRecipient": {"value_type": "string", "value": "Landor Associates, Departinem 1563,", "content": "Landor Associates, Departinem 1563,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 594.0}, {"x": 234.0, "y": 594.0}, {"x": 234.0, "y": 605.0}, {"x": 123.0, "y": 605.0}]}], "spans": [{"offset": 1108, "length": 35}], "confidence": 0.829}, "VendorName": {"value_type": "string", "value": "LANDOR ASSOCIATES", "content": "LANDOR ASSOCIATES", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 324.0, "y": 57.0}, {"x": 509.0, "y": 58.0}, {"x": 509.0, "y": 70.0}, {"x": 324.0, "y": 69.0}]}], "spans": [{"offset": 7, "length": 17}], "confidence": 0.829}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/1330_jpg.rf.39211c8890c5def20623f770c9950458.json b/Data/train/1330_jpg.rf.39211c8890c5def20623f770c9950458.json new file mode 100644 index 0000000000000000000000000000000000000000..608a090f0fd501ba3bd0b78db77fce2710de797c --- /dev/null +++ b/Data/train/1330_jpg.rf.39211c8890c5def20623f770c9950458.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1448.0, "y": 0.0}, {"x": 1448.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 1058}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "hsr layout bangalore", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "hsr layout bangalore"}, "content": "hsr layout bangalore", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 290.0, "y": 1043.0}, {"x": 492.0, "y": 1043.0}, {"x": 492.0, "y": 1071.0}, {"x": 290.0, "y": 1071.0}]}], "spans": [{"offset": 316, "length": 20}], "confidence": 0.719}, "CustomerAddressRecipient": {"value_type": "string", "value": "firebrickmediacentrepvtltd", "content": "firebrickmediacentrepvtltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 261.0, "y": 842.0}, {"x": 515.0, "y": 843.0}, {"x": 515.0, "y": 870.0}, {"x": 261.0, "y": 870.0}]}], "spans": [{"offset": 237, "length": 26}], "confidence": 0.525}, "CustomerName": {"value_type": "string", "value": "firebrickmediacentrepvtltd", "content": "firebrickmediacentrepvtltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 261.0, "y": 842.0}, {"x": 515.0, "y": 843.0}, {"x": 515.0, "y": 870.0}, {"x": 261.0, "y": 870.0}]}], "spans": [{"offset": 237, "length": 26}], "confidence": 0.525}, "InvoiceDate": {"value_type": "date", "value": "2018-11-29", "content": "Nov. 29, 2018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 996.0, "y": 707.0}, {"x": 1147.0, "y": 706.0}, {"x": 1147.0, "y": 733.0}, {"x": 996.0, "y": 734.0}]}], "spans": [{"offset": 485, "length": 13}], "confidence": 0.915}, "InvoiceId": {"value_type": "string", "value": "HDTI000028038987", "content": "HDTI000028038987", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1125.0, "y": 210.0}, {"x": 1333.0, "y": 210.0}, {"x": 1333.0, "y": 236.0}, {"x": 1125.0, "y": 237.0}]}], "spans": [{"offset": 372, "length": 16}], "confidence": 0.974}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.19382, "symbol": "Rs"}, "content": "Rs. 19382", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1008.0, "y": 1593.0}, {"x": 1093.0, "y": 1593.0}, {"x": 1093.0, "y": 1614.0}, {"x": 1008.0, "y": 1614.0}]}], "spans": [{"offset": 850, "length": 9}], "confidence": 0.476}, "Description": {"value_type": "string", "value": "Room Charges Collected\n*(Including GST under section 9(5))", "content": "Room Charges Collected\n*(Including GST under section 9(5))", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 597.0, "y": 1553.0}, {"x": 954.0, "y": 1553.0}, {"x": 954.0, "y": 1620.0}, {"x": 597.0, "y": 1620.0}]}], "spans": [{"offset": 772, "length": 22}, {"offset": 814, "length": 35}], "confidence": 0.008}}, "content": "Room Charges Collected on Behalf of Hotel *(Including GST under section 9(5))\nRs. 19382", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 597.0, "y": 1553.0}, {"x": 1093.0, "y": 1553.0}, {"x": 1093.0, "y": 1620.0}, {"x": 597.0, "y": 1620.0}]}], "spans": [{"offset": 772, "length": 87}], "confidence": 0.056}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.1614, "symbol": "Rs"}, "content": "Rs. 1614", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1008.0, "y": 1778.0}, {"x": 1081.0, "y": 1780.0}, {"x": 1081.0, "y": 1799.0}, {"x": 1008.0, "y": 1797.0}]}], "spans": [{"offset": 983, "length": 8}], "confidence": 0.467}, "Description": {"value_type": "string", "value": "Other Discounts [Promo Code Discount Wallet (Earned part only)]", "content": "Other Discounts [Promo Code Discount\nWallet (Earned part only)]", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 410.0, "y": 1777.0}, {"x": 954.0, "y": 1777.0}, {"x": 954.0, "y": 1800.0}, {"x": 410.0, "y": 1800.0}]}], "spans": [{"offset": 917, "length": 36}, {"offset": 956, "length": 26}], "confidence": 0.098}}, "content": "Other Discounts [Promo Code Discount / Wallet (Earned part only)]\nRs. 1614", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 410.0, "y": 1777.0}, {"x": 1081.0, "y": 1777.0}, {"x": 1081.0, "y": 1800.0}, {"x": 410.0, "y": 1800.0}]}], "spans": [{"offset": 917, "length": 74}], "confidence": 0.079}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ServiceEndDate": {"value_type": "date", "value": "2018-12-02", "content": "Dec. 2, 2018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 434.0, "y": 1399.0}, {"x": 541.0, "y": 1399.0}, {"x": 541.0, "y": 1423.0}, {"x": 434.0, "y": 1423.0}]}], "spans": [{"offset": 689, "length": 12}], "confidence": 0.571}, "ServiceStartDate": {"value_type": "date", "value": "2018-11-30", "content": "Nov. 30, 2018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 193.0, "y": 1398.0}, {"x": 309.0, "y": 1398.0}, {"x": 309.0, "y": 1423.0}, {"x": 193.0, "y": 1423.0}]}], "spans": [{"offset": 664, "length": 13}], "confidence": 0.597}, "TotalTax": {"value_type": "currency", "value": null, "content": "Rs.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1007.0, "y": 1902.0}, {"x": 1036.0, "y": 1902.0}, {"x": 1037.0, "y": 1920.0}, {"x": 1008.0, "y": 1921.0}]}], "spans": [{"offset": 1051, "length": 3}], "confidence": 0.377}, "VendorName": {"value_type": "string", "value": "ibibo Group", "content": "ibibo Group", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 184.0}, {"x": 374.0, "y": 193.0}, {"x": 372.0, "y": 256.0}, {"x": 84.0, "y": 247.0}]}], "spans": [{"offset": 12, "length": 11}], "confidence": 0.93}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/133_jpg.rf.ddb6b68c4775ceb63b7998ad0e690728.json b/Data/train/133_jpg.rf.ddb6b68c4775ceb63b7998ad0e690728.json new file mode 100644 index 0000000000000000000000000000000000000000..0d78f61597176d01126266f23120d39803159dab --- /dev/null +++ b/Data/train/133_jpg.rf.ddb6b68c4775ceb63b7998ad0e690728.json @@ -0,0 +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": 769}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "123", "po_box": null, "road": "William Street", "city": "New York", "state": "N.Y.", "postal_code": "10038", "country_region": null, "street_address": "123 William Street"}, "content": "123 William Street, New York, N.Y. 10038", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 175.0, "y": 473.0}, {"x": 358.0, "y": 473.0}, {"x": 358.0, "y": 489.0}, {"x": 175.0, "y": 489.0}]}], "spans": [{"offset": 509, "length": 40}], "confidence": 0.258}, "BillingAddressRecipient": {"value_type": "string", "value": "Hartford Insurance Group\nAttn: Frank DeJesu, Supervisor, Premium Accounts Dept.", "content": "Hartford Insurance Group\nAttn: Frank DeJesu, Supervisor, Premium Accounts Dept.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 175.0, "y": 416.0}, {"x": 422.0, "y": 416.0}, {"x": 422.0, "y": 461.0}, {"x": 175.0, "y": 461.0}]}], "spans": [{"offset": 429, "length": 79}], "confidence": 0.199}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "120", "po_box": null, "road": "Park Avenue", "city": "New York", "state": "N.Y.", "postal_code": "10017", "country_region": null, "street_address": "120 Park Avenue"}, "content": "120 Park Avenue New York, N.Y. 10017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 545.0}, {"x": 214.0, "y": 545.0}, {"x": 214.0, "y": 573.0}, {"x": 120.0, "y": 573.0}]}], "spans": [{"offset": 585, "length": 36}], "confidence": 0.783}, "CustomerAddressRecipient": {"value_type": "string", "value": "Hr. Robert Hagendorf\nPhilip Morris", "content": "Hr. Robert Hagendorf Philip Morris", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 516.0}, {"x": 214.0, "y": 516.0}, {"x": 214.0, "y": 545.0}, {"x": 120.0, "y": 545.0}]}], "spans": [{"offset": 550, "length": 34}], "confidence": 0.753}, "CustomerName": {"value_type": "string", "value": "Hr. Robert Hagendorf\nPhilip Morris", "content": "Hr. Robert Hagendorf Philip Morris", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 516.0}, {"x": 214.0, "y": 516.0}, {"x": 214.0, "y": 545.0}, {"x": 120.0, "y": 545.0}]}], "spans": [{"offset": 550, "length": 34}], "confidence": 0.753}, "DueDate": {"value_type": "date", "value": "1986-07-01", "content": "7/1/86", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 273.0, "y": 202.0}, {"x": 303.0, "y": 202.0}, {"x": 303.0, "y": 217.0}, {"x": 274.0, "y": 218.0}]}], "spans": [{"offset": 180, "length": 6}], "confidence": 0.722}, "InvoiceDate": {"value_type": "date", "value": "1986-03-07", "content": "3/7/86", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 444.0, "y": 117.0}, {"x": 473.0, "y": 117.0}, {"x": 473.0, "y": 132.0}, {"x": 444.0, "y": 132.0}]}], "spans": [{"offset": 66, "length": 6}], "confidence": 0.837}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 188622.0, "symbol": null}, "content": "188,622.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 359.0}, {"x": 389.0, "y": 359.0}, {"x": 390.0, "y": 373.0}, {"x": 341.0, "y": 373.0}]}], "spans": [{"offset": 374, "length": 10}], "confidence": 0.699}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 139703.0, "symbol": null}, "content": "139,703.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 447.0, "y": 205.0}, {"x": 495.0, "y": 205.0}, {"x": 496.0, "y": 218.0}, {"x": 448.0, "y": 218.0}]}], "spans": [{"offset": 198, "length": 10}], "confidence": 0.004}, "Date": {"value_type": "date", "value": "1986-07-01", "content": "7/86\n7/1/86", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 201.0, "y": 202.0}, {"x": 303.0, "y": 200.0}, {"x": 303.0, "y": 218.0}, {"x": 201.0, "y": 219.0}]}], "spans": [{"offset": 175, "length": 11}], "confidence": 0.002}, "ProductCode": {"value_type": "string", "value": "P 28109", "content": "P 28109", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 200.0}, {"x": 169.0, "y": 203.0}, {"x": 168.0, "y": 219.0}, {"x": 135.0, "y": 216.0}]}], "spans": [{"offset": 167, "length": 7}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 139703.0, "symbol": null}, "content": "139,703.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 340.0, "y": 205.0}, {"x": 388.0, "y": 204.0}, {"x": 388.0, "y": 218.0}, {"x": 340.0, "y": 218.0}]}], "spans": [{"offset": 187, "length": 10}], "confidence": 0.001}}, "content": "P 28109\n7/86\n7/1/86\n139,703.00\n139,703.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 202.0}, {"x": 496.0, "y": 202.0}, {"x": 496.0, "y": 218.0}, {"x": 135.0, "y": 218.0}]}], "spans": [{"offset": 167, "length": 41}], "confidence": 0.013}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 26905.0, "symbol": null}, "content": "26,905.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 232.0}, {"x": 496.0, "y": 231.0}, {"x": 496.0, "y": 246.0}, {"x": 453.0, "y": 246.0}]}], "spans": [{"offset": 243, "length": 9}], "confidence": 0.004}, "Date": {"value_type": "date", "value": "1986-07-01", "content": "7/86\n7/1/86", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 201.0, "y": 230.0}, {"x": 304.0, "y": 228.0}, {"x": 304.0, "y": 245.0}, {"x": 201.0, "y": 247.0}]}], "spans": [{"offset": 221, "length": 11}], "confidence": 0.002}, "ProductCode": {"value_type": "string", "value": "C 30223", "content": "C 30223", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 231.0}, {"x": 169.0, "y": 231.0}, {"x": 169.0, "y": 245.0}, {"x": 135.0, "y": 245.0}]}], "spans": [{"offset": 213, "length": 7}], "confidence": 0.002}, "UnitPrice": {"value_type": "currency", "value": {"amount": 26905.0, "symbol": null}, "content": "26,905.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 346.0, "y": 232.0}, {"x": 388.0, "y": 232.0}, {"x": 388.0, "y": 246.0}, {"x": 346.0, "y": 245.0}]}], "spans": [{"offset": 233, "length": 9}], "confidence": 0.002}}, "content": "CSE\nC 30223\n7/86\n7/1/86\n26,905.00\n26,905.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 99.0, "y": 229.0}, {"x": 496.0, "y": 229.0}, {"x": 496.0, "y": 246.0}, {"x": 99.0, "y": 246.0}]}], "spans": [{"offset": 209, "length": 43}], "confidence": 0.033}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 11007.0, "symbol": null}, "content": "11,007.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 261.0}, {"x": 495.0, "y": 261.0}, {"x": 495.0, "y": 275.0}, {"x": 453.0, "y": 274.0}]}], "spans": [{"offset": 283, "length": 9}], "confidence": 0.004}, "Date": {"value_type": "date", "value": "1986-07-01", "content": "7/86\n7/1/86", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 200.0, "y": 258.0}, {"x": 303.0, "y": 254.0}, {"x": 304.0, "y": 274.0}, {"x": 201.0, "y": 277.0}]}], "spans": [{"offset": 261, "length": 11}], "confidence": 0.002}, "ProductCode": {"value_type": "string", "value": "C 30225", "content": "C 30225", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 260.0}, {"x": 169.0, "y": 260.0}, {"x": 169.0, "y": 273.0}, {"x": 135.0, "y": 273.0}]}], "spans": [{"offset": 253, "length": 7}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 11007.0, "symbol": null}, "content": "11,007.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 345.0, "y": 261.0}, {"x": 388.0, "y": 260.0}, {"x": 388.0, "y": 274.0}, {"x": 346.0, "y": 274.0}]}], "spans": [{"offset": 273, "length": 9}], "confidence": 0.001}}, "content": "C 30225\n7/86\n7/1/86\n11,007.00\n11,007.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 257.0}, {"x": 495.0, "y": 257.0}, {"x": 495.0, "y": 275.0}, {"x": 135.0, "y": 275.0}]}], "spans": [{"offset": 253, "length": 39}], "confidence": 0.007}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 11007.0, "symbol": null}, "content": "11,007.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 289.0}, {"x": 496.0, "y": 290.0}, {"x": 496.0, "y": 303.0}, {"x": 453.0, "y": 303.0}]}], "spans": [{"offset": 328, "length": 9}], "confidence": 0.004}, "Date": {"value_type": "date", "value": "1986-07-01", "content": "7/86\n.7/1/86", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 201.0, "y": 286.0}, {"x": 303.0, "y": 286.0}, {"x": 303.0, "y": 303.0}, {"x": 201.0, "y": 303.0}]}], "spans": [{"offset": 305, "length": 12}], "confidence": 0.002}, "ProductCode": {"value_type": "string", "value": "C 30224", "content": "C 30224", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 287.0}, {"x": 166.0, "y": 287.0}, {"x": 166.0, "y": 300.0}, {"x": 135.0, "y": 300.0}]}], "spans": [{"offset": 297, "length": 7}], "confidence": 0.002}, "UnitPrice": {"value_type": "currency", "value": {"amount": 11007.0, "symbol": null}, "content": "11,007.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 346.0, "y": 290.0}, {"x": 388.0, "y": 289.0}, {"x": 388.0, "y": 303.0}, {"x": 346.0, "y": 303.0}]}], "spans": [{"offset": 318, "length": 9}], "confidence": null}}, "content": "JSE\nC 30224\n7/86\n.7/1/86\n11,007.00\n11,007.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 286.0}, {"x": 496.0, "y": 286.0}, {"x": 496.0, "y": 303.0}, {"x": 100.0, "y": 303.0}]}], "spans": [{"offset": 293, "length": 44}], "confidence": 0.039}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddressRecipient": {"value_type": "string", "value": "The", "content": "The", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 489.0, "y": 542.0}, {"x": 504.0, "y": 542.0}, {"x": 505.0, "y": 557.0}, {"x": 489.0, "y": 557.0}]}], "spans": [{"offset": 709, "length": 3}], "confidence": 0.682}, "ServiceStartDate": {"value_type": "date", "value": "1986-07-01", "content": "7/86", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 200.0, "y": 259.0}, {"x": 221.0, "y": 257.0}, {"x": 223.0, "y": 272.0}, {"x": 201.0, "y": 274.0}]}], "spans": [{"offset": 261, "length": 4}], "confidence": 0.387}, "VendorName": {"value_type": "string", "value": "THE HARTFORD", "content": "THE HARTFORD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 312.0, "y": 106.0}, {"x": 373.0, "y": 108.0}, {"x": 373.0, "y": 123.0}, {"x": 311.0, "y": 121.0}]}], "spans": [{"offset": 36, "length": 12}], "confidence": 0.725}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/134_jpg.rf.e12944124ab5b0e38808a095f849ab8c.json b/Data/train/134_jpg.rf.e12944124ab5b0e38808a095f849ab8c.json new file mode 100644 index 0000000000000000000000000000000000000000..924f1a7067131c83e7fe3070a1903e3171d84b24 --- /dev/null +++ b/Data/train/134_jpg.rf.e12944124ab5b0e38808a095f849ab8c.json @@ -0,0 +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": 1269}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "quader", "city": "new", "state": "delhi", "postal_code": "110022", "country_region": null, "street_address": "quader no 100"}, "content": "quader no - 100 , rk puram sector-6\nnew delhi,\nNew Delhi 110022 Delhi", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 214.0, "y": 85.0}, {"x": 327.0, "y": 85.0}, {"x": 327.0, "y": 113.0}, {"x": 214.0, "y": 113.0}]}], "spans": [{"offset": 366, "length": 46}, {"offset": 415, "length": 22}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "Chetan Phartiyal", "content": "Chetan Phartiyal", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 214.0, "y": 76.0}, {"x": 269.0, "y": 76.0}, {"x": 269.0, "y": 85.0}, {"x": 214.0, "y": 85.0}]}], "spans": [{"offset": 349, "length": 16}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Chetan Phartiyal", "content": "Chetan Phartiyal", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 214.0, "y": 76.0}, {"x": 269.0, "y": 76.0}, {"x": 269.0, "y": 85.0}, {"x": 214.0, "y": 85.0}]}], "spans": [{"offset": 349, "length": 16}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2015-11-08", "content": "11-08-2015", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 94.0}, {"x": 171.0, "y": 94.0}, {"x": 171.0, "y": 102.0}, {"x": 134.0, "y": 103.0}]}], "spans": [{"offset": 301, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "CHN PUZHAL_0120150000100040", "content": "CHN PUZHAL_0120150000100040", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 434.0, "y": 32.0}, {"x": 539.0, "y": 32.0}, {"x": 539.0, "y": 41.0}, {"x": 434.0, "y": 41.0}]}], "spans": [{"offset": 36, "length": 27}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 9999.0, "symbol": "\u20b9"}, "content": "\u20b9 9999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 485.0, "y": 233.0}, {"x": 539.0, "y": 234.0}, {"x": 539.0, "y": 247.0}, {"x": 485.0, "y": 246.0}]}], "spans": [{"offset": 847, "length": 9}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9999.0, "symbol": null}, "content": "9999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 159.0}, {"x": 538.0, "y": 158.0}, {"x": 539.0, "y": 166.0}, {"x": 513.0, "y": 165.0}]}], "spans": [{"offset": 796, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "Lenovo K3 Note\nJIVEIGeri No: 867970025595956\n86/9200255999641", "content": "Lenovo K3 Note\nJIVEIGeri No: 867970025595956 86/9200255999641", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 159.0}, {"x": 299.0, "y": 159.0}, {"x": 299.0, "y": 186.0}, {"x": 170.0, "y": 186.0}]}], "spans": [{"offset": 704, "length": 14}, {"offset": 722, "length": 46}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "Handsets\nMOBERAHABTYG8221\nWID: VL37043", "content": "Handsets MOBERAHABTYG8221 WID: VL37043", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 85.0, "y": 159.0}, {"x": 156.0, "y": 159.0}, {"x": 156.0, "y": 194.0}, {"x": 85.0, "y": 194.0}]}], "spans": [{"offset": 665, "length": 38}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 364.0, "y": 158.0}, {"x": 368.0, "y": 158.0}, {"x": 368.0, "y": 166.0}, {"x": 364.0, "y": 166.0}]}], "spans": [{"offset": 769, "length": 1}], "confidence": null}, "Tax": {"value_type": "currency", "value": {"amount": 476.14, "symbol": null}, "content": "476.14", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 472.0, "y": 159.0}, {"x": 494.0, "y": 158.0}, {"x": 494.0, "y": 166.0}, {"x": 472.0, "y": 165.0}]}], "spans": [{"offset": 789, "length": 6}], "confidence": null}, "TaxRate": {"value_type": "string", "value": "5.00%", "content": "5.00%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 430.0, "y": 158.0}, {"x": 452.0, "y": 158.0}, {"x": 453.0, "y": 166.0}, {"x": 431.0, "y": 166.0}]}], "spans": [{"offset": 779, "length": 5}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 9522.86, "symbol": null}, "content": "9522.86", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 385.0, "y": 159.0}, {"x": 412.0, "y": 158.0}, {"x": 412.0, "y": 166.0}, {"x": 385.0, "y": 165.0}]}], "spans": [{"offset": 771, "length": 7}], "confidence": null}}, "content": "Handsets MOBERAHABTYG8221 WID: VL37043\nLenovo K3 Note 1. JIVEIGeri No: 867970025595956 86/9200255999641\n1\n9522.86\n5.00% CST\n476.14\n9999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 85.0, "y": 158.0}, {"x": 539.0, "y": 158.0}, {"x": 539.0, "y": 194.0}, {"x": 85.0, "y": 194.0}]}], "spans": [{"offset": 665, "length": 138}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "New Delhi", "state": "Delhi", "postal_code": "110022", "country_region": null, "street_address": ""}, "content": "quater no - 100 , rk puram sector-6\nnew deini, .\nNew Delhi 110022 Delhi", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 86.0}, {"x": 455.0, "y": 86.0}, {"x": 455.0, "y": 112.0}, {"x": 341.0, "y": 112.0}]}], "spans": [{"offset": 521, "length": 71}], "confidence": null}, "ShippingAddressRecipient": {"value_type": "string", "value": "Chetan Phartiyal", "content": "Chetan Phartiyal", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 343.0, "y": 76.0}, {"x": 402.0, "y": 77.0}, {"x": 402.0, "y": 86.0}, {"x": 343.0, "y": 84.0}]}], "spans": [{"offset": 504, "length": 16}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 9522.86, "symbol": null}, "content": "9522.86", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 377.0, "y": 203.0}, {"x": 411.0, "y": 203.0}, {"x": 411.0, "y": 214.0}, {"x": 377.0, "y": 213.0}]}], "spans": [{"offset": 812, "length": 7}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 476.14, "symbol": null}, "content": "476.14", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 203.0}, {"x": 494.0, "y": 202.0}, {"x": 494.0, "y": 213.0}, {"x": 464.0, "y": 213.0}]}], "spans": [{"offset": 820, "length": 6}], "confidence": null}, "VendorName": {"value_type": "string", "value": "WS Retail Services Pvt. Ltd.,", "content": "WS Retail Services Pvt. Ltd.,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 127.0, "y": 41.0}, {"x": 252.0, "y": 41.0}, {"x": 252.0, "y": 53.0}, {"x": 127.0, "y": 53.0}]}], "spans": [{"offset": 74, "length": 29}], "confidence": null}, "VendorTaxId": {"value_type": "string", "value": "33696318777", "content": "33696318777", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 107.0}, {"x": 165.0, "y": 107.0}, {"x": 164.0, "y": 117.0}, {"x": 119.0, "y": 116.0}]}], "spans": [{"offset": 321, "length": 11}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/136_jpg.rf.3cfa80f24fa4b398fd05a8f40ba48cd0.json b/Data/train/136_jpg.rf.3cfa80f24fa4b398fd05a8f40ba48cd0.json new file mode 100644 index 0000000000000000000000000000000000000000..3ab10fba3934e3ecd3f7460d955c144d3851ced0 --- /dev/null +++ b/Data/train/136_jpg.rf.3cfa80f24fa4b398fd05a8f40ba48cd0.json @@ -0,0 +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": 372}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "120", "po_box": null, "road": "Park Ave.", "city": "New York", "state": "New York", "postal_code": null, "country_region": null, "street_address": "120 Park Ave."}, "content": "120 Park Ave.\nNew York, New York", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 115.0}, {"x": 250.0, "y": 115.0}, {"x": 250.0, "y": 143.0}, {"x": 168.0, "y": 143.0}]}], "spans": [{"offset": 104, "length": 32}], "confidence": 0.002}, "CustomerAddressRecipient": {"value_type": "string", "value": "Philip Morris", "content": "Philip Morris", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 95.0}, {"x": 227.0, "y": 96.0}, {"x": 227.0, "y": 108.0}, {"x": 168.0, "y": 107.0}]}], "spans": [{"offset": 35, "length": 13}], "confidence": 0.305}, "CustomerId": {"value_type": "string", "value": "66736", "content": "66736", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 106.0}, {"x": 490.0, "y": 106.0}, {"x": 489.0, "y": 114.0}, {"x": 467.0, "y": 115.0}]}], "spans": [{"offset": 194, "length": 5}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Philip Morris", "content": "Philip Morris", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 95.0}, {"x": 227.0, "y": 96.0}, {"x": 227.0, "y": 108.0}, {"x": 168.0, "y": 107.0}]}], "spans": [{"offset": 35, "length": 13}], "confidence": 0.305}, "InvoiceDate": {"value_type": "date", "value": "1993-03-30", "content": "March 30, 1993", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 426.0, "y": 88.0}, {"x": 490.0, "y": 88.0}, {"x": 490.0, "y": 96.0}, {"x": 426.0, "y": 96.0}]}], "spans": [{"offset": 169, "length": 14}], "confidence": 0.222}, "InvoiceId": {"value_type": "string", "value": "598", "content": "598", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 477.0, "y": 59.0}, {"x": 498.0, "y": 59.0}, {"x": 498.0, "y": 72.0}, {"x": 477.0, "y": 72.0}]}], "spans": [{"offset": 160, "length": 3}], "confidence": 0.003}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1200.0, "symbol": "$"}, "content": "$1200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 472.0, "y": 222.0}, {"x": 507.0, "y": 223.0}, {"x": 507.0, "y": 231.0}, {"x": 472.0, "y": 231.0}]}], "spans": [{"offset": 267, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "Coaches for Pre-hace Pav on May 29,1993", "content": "Coaches for Pre-hace Pav on May 29,1993", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 222.0}, {"x": 330.0, "y": 222.0}, {"x": 330.0, "y": 233.0}, {"x": 154.0, "y": 233.0}]}], "spans": [{"offset": 218, "length": 39}], "confidence": 0.001}, "Quantity": {"value_type": "float", "value": null, "content": "-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 224.0}, {"x": 134.0, "y": 228.0}, {"x": 127.0, "y": 228.0}, {"x": 127.0, "y": 224.0}]}], "spans": [{"offset": 216, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1200.0, "symbol": "$"}, "content": "$1200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 419.0, "y": 222.0}, {"x": 454.0, "y": 223.0}, {"x": 453.0, "y": 232.0}, {"x": 419.0, "y": 231.0}]}], "spans": [{"offset": 258, "length": 8}], "confidence": null}}, "content": "-\nCoaches for Pre-hace Pav on May 29,1993\n$1200.00\n$1200.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 127.0, "y": 222.0}, {"x": 507.0, "y": 222.0}, {"x": 507.0, "y": 233.0}, {"x": 127.0, "y": 233.0}]}], "spans": [{"offset": 216, "length": 59}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddressRecipient": {"value_type": "string", "value": "AITN: Renee' Butler", "content": "AITN: Renee' Butler", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 155.0}, {"x": 254.0, "y": 155.0}, {"x": 254.0, "y": 165.0}, {"x": 168.0, "y": 165.0}]}], "spans": [{"offset": 61, "length": 19}], "confidence": 0.943}, "VendorName": {"value_type": "string", "value": "STILLINI\nSWALLOW LINES", "content": "STILLINI SWALLOW LINES", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 240.0, "y": 42.0}, {"x": 380.0, "y": 42.0}, {"x": 380.0, "y": 77.0}, {"x": 240.0, "y": 77.0}]}], "spans": [{"offset": 81, "length": 22}], "confidence": 0.03}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/137_jpg.rf.66aebfee91e0a0542f77e189482abf70.json b/Data/train/137_jpg.rf.66aebfee91e0a0542f77e189482abf70.json new file mode 100644 index 0000000000000000000000000000000000000000..1a1166a47cc7ffd529433a0a45f75c1b70d1f715 --- /dev/null +++ b/Data/train/137_jpg.rf.66aebfee91e0a0542f77e189482abf70.json @@ -0,0 +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": 566}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "420", "po_box": null, "road": "English Street", "city": "Greensboro", "state": "NC", "postal_code": "27405", "country_region": null, "street_address": "420 English Street"}, "content": "420 English Street Greensboro, NC 27405", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 149.0, "y": 210.0}, {"x": 240.0, "y": 210.0}, {"x": 240.0, "y": 229.0}, {"x": 149.0, "y": 229.0}]}], "spans": [{"offset": 182, "length": 39}], "confidence": 0.248}, "CustomerAddressRecipient": {"value_type": "string", "value": "LORILLARD INC.\nATTN: Dr. Comnte J. Stone", "content": "LORILLARD INC.\nATTN: Dr. Comnte J. Stone", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 148.0, "y": 201.0}, {"x": 261.0, "y": 201.0}, {"x": 261.0, "y": 246.0}, {"x": 148.0, "y": 246.0}]}], "spans": [{"offset": 167, "length": 14}, {"offset": 222, "length": 25}], "confidence": 0.001}, "CustomerId": {"value_type": "string", "value": "4111", "content": "4111", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 437.0, "y": 414.0}, {"x": 465.0, "y": 412.0}, {"x": 466.0, "y": 428.0}, {"x": 437.0, "y": 428.0}]}], "spans": [{"offset": 542, "length": 4}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "LORILLARD INC.\nATTN: Dr. Comnte J. Stone", "content": "LORILLARD INC.\nATTN: Dr. Comnte J. Stone", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 148.0, "y": 201.0}, {"x": 261.0, "y": 201.0}, {"x": 261.0, "y": 246.0}, {"x": 148.0, "y": 246.0}]}], "spans": [{"offset": 167, "length": 14}, {"offset": 222, "length": 25}], "confidence": 0.001}, "InvoiceDate": {"value_type": "date", "value": "1984-10-30", "content": "October 30, 1984", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 148.0, "y": 166.0}, {"x": 218.0, "y": 166.0}, {"x": 218.0, "y": 176.0}, {"x": 148.0, "y": 176.0}]}], "spans": [{"offset": 136, "length": 16}], "confidence": 0.018}, "InvoiceId": {"value_type": "string", "value": "7035-1", "content": "7035-1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 210.0, "y": 288.0}, {"x": 236.0, "y": 287.0}, {"x": 236.0, "y": 297.0}, {"x": 210.0, "y": 297.0}]}], "spans": [{"offset": 316, "length": 6}], "confidence": 0.004}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 5400.0, "symbol": "$"}, "content": "$5,400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 371.0, "y": 322.0}, {"x": 409.0, "y": 322.0}, {"x": 409.0, "y": 330.0}, {"x": 371.0, "y": 330.0}]}], "spans": [{"offset": 506, "length": 9}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5400.0, "symbol": "$"}, "content": "$5,400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 371.0, "y": 322.0}, {"x": 409.0, "y": 322.0}, {"x": 409.0, "y": 330.0}, {"x": 371.0, "y": 330.0}]}], "spans": [{"offset": 506, "length": 9}], "confidence": 0.982}, "Description": {"value_type": "string", "value": "Induction of Hepatic Microsoral\nEnzymes with A-154 and A-163", "content": "Induction of Hepatic Microsoral Enzymes with A-154 and A-163", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 149.0, "y": 321.0}, {"x": 281.0, "y": 321.0}, {"x": 281.0, "y": 340.0}, {"x": 149.0, "y": 340.0}]}], "spans": [{"offset": 335, "length": 60}], "confidence": 0.982}}, "content": "Induction of Hepatic Microsoral Enzymes with A-154 and A-163\n$5,400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 149.0, "y": 321.0}, {"x": 409.0, "y": 321.0}, {"x": 409.0, "y": 340.0}, {"x": 149.0, "y": 340.0}]}], "spans": [{"offset": 335, "length": 60}, {"offset": 506, "length": 9}], "confidence": 0.203}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "342-C", "content": "342-C", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 281.0, "y": 269.0}, {"x": 302.0, "y": 269.0}, {"x": 302.0, "y": 279.0}, {"x": 282.0, "y": 279.0}]}], "spans": [{"offset": 278, "length": 5}], "confidence": 0.002}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": "5050", "po_box": null, "road": "BEECH PLACE", "city": "TEMPLE HILLS", "state": "MD", "postal_code": "20748", "country_region": null, "street_address": "5050 BEECH PLACE"}, "content": "5050 BEECH PLACE TEMPLE HILLS, MD 20748", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 518.0}, {"x": 322.0, "y": 518.0}, {"x": 322.0, "y": 536.0}, {"x": 223.0, "y": 536.0}]}], "spans": [{"offset": 445, "length": 39}], "confidence": 0.467}, "RemittanceAddressRecipient": {"value_type": "string", "value": "BORRISTON LABORATORIES, INC.", "content": "BORRISTON LABORATORIES, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 223.0, "y": 510.0}, {"x": 343.0, "y": 508.0}, {"x": 343.0, "y": 519.0}, {"x": 223.0, "y": 521.0}]}], "spans": [{"offset": 416, "length": 28}], "confidence": 0.014}, "VendorAddress": {"value_type": "address", "value": {"house_number": "5050", "po_box": null, "road": "Beuch Place", "city": "Temple Hills", "state": "Maryland", "postal_code": "20948", "country_region": null, "street_address": "5050 Beuch Place"}, "content": "5050 Beuch Place Temple Hills, Maryland 20948", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 149.0, "y": 134.0}, {"x": 232.0, "y": 134.0}, {"x": 232.0, "y": 150.0}, {"x": 149.0, "y": 150.0}]}], "spans": [{"offset": 53, "length": 45}], "confidence": 0.514}, "VendorAddressRecipient": {"value_type": "string", "value": "Boston Laboratories Inc", "content": "Boston Laboratories Inc", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 149.0, "y": 127.0}, {"x": 221.0, "y": 127.0}, {"x": 221.0, "y": 136.0}, {"x": 149.0, "y": 136.0}]}], "spans": [{"offset": 29, "length": 23}], "confidence": 0.02}, "VendorName": {"value_type": "string", "value": "BORRISTON\nLABORATORIES, INC.", "content": "BORRISTON LABORATORIES, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 149.0, "y": 90.0}, {"x": 249.0, "y": 90.0}, {"x": 249.0, "y": 114.0}, {"x": 149.0, "y": 114.0}]}], "spans": [{"offset": 0, "length": 28}], "confidence": 0.015}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/138_jpg.rf.61e895a262732aee14a2c45f1811a94b.json b/Data/train/138_jpg.rf.61e895a262732aee14a2c45f1811a94b.json new file mode 100644 index 0000000000000000000000000000000000000000..a670d766ea79a7c10616d5ee25828514dba6cdc8 --- /dev/null +++ b/Data/train/138_jpg.rf.61e895a262732aee14a2c45f1811a94b.json @@ -0,0 +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": 1477}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "#15", "po_box": null, "road": "Norman Chambers.M G Road", "city": "Bengaluru", "state": "Karnataka", "postal_code": null, "country_region": null, "street_address": "#15 Norman Chambers.M G Road"}, "content": "#15. Norman Chambers.M G Road\nBengaluru,Karnataka", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 106.0}, {"x": 211.0, "y": 106.0}, {"x": 211.0, "y": 130.0}, {"x": 96.0, "y": 130.0}]}], "spans": [{"offset": 283, "length": 49}], "confidence": 0.829}, "CustomerAddressRecipient": {"value_type": "string", "value": "Goodread India Pvt. Ltd.", "content": "Goodread India Pvt. Ltd.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 96.0}, {"x": 176.0, "y": 96.0}, {"x": 176.0, "y": 106.0}, {"x": 96.0, "y": 106.0}]}], "spans": [{"offset": 258, "length": 24}], "confidence": 0.759}, "CustomerName": {"value_type": "string", "value": "Goodread India Pvt. Ltd.", "content": "Goodread India Pvt. Ltd.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 96.0}, {"x": 176.0, "y": 96.0}, {"x": 176.0, "y": 106.0}, {"x": 96.0, "y": 106.0}]}], "spans": [{"offset": 258, "length": 24}], "confidence": 0.759}, "InvoiceDate": {"value_type": "date", "value": "2016-04-19", "content": "19/04/2015\n19/04/2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 96.0}, {"x": 511.0, "y": 96.0}, {"x": 511.0, "y": 130.0}, {"x": 473.0, "y": 130.0}]}], "spans": [{"offset": 382, "length": 10}, {"offset": 428, "length": 10}], "confidence": 0.597}, "InvoiceId": {"value_type": "string", "value": "Hyp-PR00001", "content": "Hyp-PR00001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 471.0, "y": 2.0}, {"x": 518.0, "y": 2.0}, {"x": 518.0, "y": 12.0}, {"x": 471.0, "y": 12.0}]}], "spans": [{"offset": 108, "length": 11}], "confidence": 0.828}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 23059.93, "symbol": null}, "content": "23,059.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 528.0, "y": 577.0}, {"x": 567.0, "y": 577.0}, {"x": 567.0, "y": 587.0}, {"x": 529.0, "y": 587.0}]}], "spans": [{"offset": 1432, "length": 9}], "confidence": 0.846}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2045.9, "symbol": null}, "content": "2,045.90", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 537.0, "y": 196.0}, {"x": 565.0, "y": 196.0}, {"x": 565.0, "y": 205.0}, {"x": 537.0, "y": 205.0}]}], "spans": [{"offset": 616, "length": 8}], "confidence": 0.033}, "Description": {"value_type": "string", "value": "Game of Throne: A Storm of Swords", "content": "Game of Throne: A Storm of Swords", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 199.0, "y": 196.0}, {"x": 319.0, "y": 196.0}, {"x": 319.0, "y": 208.0}, {"x": 199.0, "y": 208.0}]}], "spans": [{"offset": 570, "length": 33}], "confidence": 0.11}, "ProductCode": {"value_type": "string", "value": "TO0008", "content": "TO0008", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 197.0}, {"x": 125.0, "y": 197.0}, {"x": 125.0, "y": 206.0}, {"x": 100.0, "y": 206.0}]}], "spans": [{"offset": 563, "length": 6}], "confidence": 0.02}, "Quantity": {"value_type": "float", "value": 4.0, "content": "4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 196.0}, {"x": 429.0, "y": 196.0}, {"x": 429.0, "y": 205.0}, {"x": 414.0, "y": 205.0}]}], "spans": [{"offset": 604, "length": 4}], "confidence": 0.029}, "UnitPrice": {"value_type": "currency", "value": {"amount": 511.48, "symbol": null}, "content": "511.48", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 477.0, "y": 196.0}, {"x": 501.0, "y": 196.0}, {"x": 501.0, "y": 205.0}, {"x": 477.0, "y": 205.0}]}], "spans": [{"offset": 609, "length": 6}], "confidence": 0.028}}, "content": "1\nTO0008\nGame of Throne: A Storm of Swords\n4.00\n511.48\n2,045.90", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 196.0}, {"x": 565.0, "y": 196.0}, {"x": 565.0, "y": 208.0}, {"x": 79.0, "y": 208.0}]}], "spans": [{"offset": 561, "length": 63}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1280.02, "symbol": null}, "content": "1,280.02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 537.0, "y": 207.0}, {"x": 567.0, "y": 207.0}, {"x": 567.0, "y": 217.0}, {"x": 537.0, "y": 216.0}]}], "spans": [{"offset": 696, "length": 8}], "confidence": 0.03}, "Description": {"value_type": "string", "value": "The Lord of the Rings - The Felowship of the Ring", "content": "The Lord of the Rings - The Felowship of the Ring", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 200.0, "y": 207.0}, {"x": 365.0, "y": 207.0}, {"x": 365.0, "y": 219.0}, {"x": 200.0, "y": 219.0}]}], "spans": [{"offset": 634, "length": 49}], "confidence": 0.07}, "ProductCode": {"value_type": "string", "value": "TO0009", "content": "TO0009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 209.0}, {"x": 125.0, "y": 208.0}, {"x": 126.0, "y": 217.0}, {"x": 100.0, "y": 217.0}]}], "spans": [{"offset": 627, "length": 6}], "confidence": 0.021}, "Quantity": {"value_type": "float", "value": 5.0, "content": "5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 207.0}, {"x": 429.0, "y": 207.0}, {"x": 429.0, "y": 217.0}, {"x": 413.0, "y": 216.0}]}], "spans": [{"offset": 684, "length": 4}], "confidence": 0.027}, "UnitPrice": {"value_type": "currency", "value": {"amount": 256.0, "symbol": null}, "content": "256.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 207.0}, {"x": 501.0, "y": 207.0}, {"x": 501.0, "y": 217.0}, {"x": 478.0, "y": 217.0}]}], "spans": [{"offset": 689, "length": 6}], "confidence": 0.032}}, "content": "2\nTO0009\nThe Lord of the Rings - The Felowship of the Ring\n5.00\n256.00\n1,280.02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 207.0}, {"x": 567.0, "y": 207.0}, {"x": 567.0, "y": 219.0}, {"x": 80.0, "y": 219.0}]}], "spans": [{"offset": 625, "length": 79}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4250.01, "symbol": null}, "content": "4,250.01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 536.0, "y": 219.0}, {"x": 566.0, "y": 218.0}, {"x": 567.0, "y": 228.0}, {"x": 537.0, "y": 227.0}]}], "spans": [{"offset": 737, "length": 8}], "confidence": 0.028}, "Description": {"value_type": "string", "value": "The Hobbit", "content": "The Hobbit", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 200.0, "y": 219.0}, {"x": 237.0, "y": 219.0}, {"x": 237.0, "y": 230.0}, {"x": 200.0, "y": 230.0}]}], "spans": [{"offset": 714, "length": 10}], "confidence": 0.145}, "ProductCode": {"value_type": "string", "value": "TO0010", "content": "TO0010", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 218.0}, {"x": 125.0, "y": 218.0}, {"x": 126.0, "y": 227.0}, {"x": 100.0, "y": 228.0}]}], "spans": [{"offset": 707, "length": 6}], "confidence": 0.021}, "Quantity": {"value_type": "float", "value": 5.0, "content": "5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 218.0}, {"x": 429.0, "y": 218.0}, {"x": 429.0, "y": 228.0}, {"x": 413.0, "y": 227.0}]}], "spans": [{"offset": 725, "length": 4}], "confidence": 0.029}, "UnitPrice": {"value_type": "currency", "value": {"amount": 850.0, "symbol": null}, "content": "850.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 219.0}, {"x": 500.0, "y": 219.0}, {"x": 500.0, "y": 228.0}, {"x": 478.0, "y": 228.0}]}], "spans": [{"offset": 730, "length": 6}], "confidence": 0.029}}, "content": "3\nTO0010\nThe Hobbit\n5.00\n850.00\n4,250.01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 218.0}, {"x": 567.0, "y": 218.0}, {"x": 567.0, "y": 230.0}, {"x": 80.0, "y": 230.0}]}], "spans": [{"offset": 705, "length": 40}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2000.0, "symbol": null}, "content": "2,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 536.0, "y": 230.0}, {"x": 566.0, "y": 229.0}, {"x": 566.0, "y": 239.0}, {"x": 537.0, "y": 240.0}]}], "spans": [{"offset": 797, "length": 8}], "confidence": 0.024}, "Description": {"value_type": "string", "value": "Narnia Hindi Chandi Kee Kursi", "content": "Narnia Hindi Chandi Kee Kursi", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 199.0, "y": 231.0}, {"x": 301.0, "y": 231.0}, {"x": 301.0, "y": 242.0}, {"x": 199.0, "y": 242.0}]}], "spans": [{"offset": 753, "length": 29}], "confidence": 0.124}, "ProductCode": {"value_type": "string", "value": "TO0018", "content": "TO0018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 230.0}, {"x": 126.0, "y": 230.0}, {"x": 126.0, "y": 239.0}, {"x": 100.0, "y": 240.0}]}], "spans": [{"offset": 746, "length": 6}], "confidence": 0.016}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2:00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 415.0, "y": 230.0}, {"x": 429.0, "y": 230.0}, {"x": 429.0, "y": 239.0}, {"x": 415.0, "y": 239.0}]}], "spans": [{"offset": 783, "length": 4}], "confidence": 0.024}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1000.0, "symbol": null}, "content": "1,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 471.0, "y": 231.0}, {"x": 501.0, "y": 230.0}, {"x": 501.0, "y": 240.0}, {"x": 471.0, "y": 240.0}]}], "spans": [{"offset": 788, "length": 8}], "confidence": 0.029}}, "content": "TO0018\nNarnia Hindi Chandi Kee Kursi\n2:00\n1,000.00\n2,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 229.0}, {"x": 566.0, "y": 229.0}, {"x": 566.0, "y": 242.0}, {"x": 100.0, "y": 242.0}]}], "spans": [{"offset": 746, "length": 59}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2250.0, "symbol": null}, "content": "2,250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 536.0, "y": 242.0}, {"x": 566.0, "y": 242.0}, {"x": 566.0, "y": 252.0}, {"x": 536.0, "y": 251.0}]}], "spans": [{"offset": 847, "length": 8}], "confidence": 0.03}, "Description": {"value_type": "string", "value": "The Secret of Nagas", "content": "The Secret of Nagas", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 199.0, "y": 242.0}, {"x": 268.0, "y": 242.0}, {"x": 268.0, "y": 254.0}, {"x": 199.0, "y": 254.0}]}], "spans": [{"offset": 815, "length": 19}], "confidence": 0.168}, "ProductCode": {"value_type": "string", "value": "T00019", "content": "T00019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 242.0}, {"x": 126.0, "y": 242.0}, {"x": 126.0, "y": 252.0}, {"x": 100.0, "y": 252.0}]}], "spans": [{"offset": 808, "length": 6}], "confidence": 0.021}, "Quantity": {"value_type": "float", "value": 5.0, "content": "5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 242.0}, {"x": 429.0, "y": 242.0}, {"x": 429.0, "y": 251.0}, {"x": 414.0, "y": 251.0}]}], "spans": [{"offset": 835, "length": 4}], "confidence": 0.023}, "UnitPrice": {"value_type": "currency", "value": {"amount": 450.0, "symbol": null}, "content": "450.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 477.0, "y": 242.0}, {"x": 501.0, "y": 242.0}, {"x": 501.0, "y": 252.0}, {"x": 477.0, "y": 252.0}]}], "spans": [{"offset": 840, "length": 6}], "confidence": 0.023}}, "content": "5\nT00019\nThe Secret of Nagas\n5.00\n450.00\n2,250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 242.0}, {"x": 566.0, "y": 242.0}, {"x": 566.0, "y": 254.0}, {"x": 79.0, "y": 254.0}]}], "spans": [{"offset": 806, "length": 49}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1425.0, "symbol": null}, "content": "1,425.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 537.0, "y": 254.0}, {"x": 566.0, "y": 253.0}, {"x": 566.0, "y": 263.0}, {"x": 537.0, "y": 262.0}]}], "spans": [{"offset": 923, "length": 8}], "confidence": 0.029}, "Description": {"value_type": "string", "value": "The Lord of the Rings: The Return of the King", "content": "The Lord of the Rings: The Return of the King", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 200.0, "y": 254.0}, {"x": 349.0, "y": 254.0}, {"x": 349.0, "y": 265.0}, {"x": 200.0, "y": 265.0}]}], "spans": [{"offset": 865, "length": 45}], "confidence": 0.085}, "ProductCode": {"value_type": "string", "value": "TO0030", "content": "TO0030", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 253.0}, {"x": 126.0, "y": 253.0}, {"x": 126.0, "y": 263.0}, {"x": 100.0, "y": 263.0}]}], "spans": [{"offset": 858, "length": 6}], "confidence": 0.021}, "Quantity": {"value_type": "float", "value": 5.0, "content": "5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 254.0}, {"x": 429.0, "y": 254.0}, {"x": 429.0, "y": 263.0}, {"x": 414.0, "y": 263.0}]}], "spans": [{"offset": 911, "length": 4}], "confidence": 0.024}, "UnitPrice": {"value_type": "currency", "value": {"amount": 285.0, "symbol": null}, "content": "285.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 253.0}, {"x": 501.0, "y": 253.0}, {"x": 501.0, "y": 263.0}, {"x": 478.0, "y": 263.0}]}], "spans": [{"offset": 916, "length": 6}], "confidence": 0.026}}, "content": "6\nTO0030\nThe Lord of the Rings: The Return of the King\n5.00\n285.00\n1,425.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 253.0}, {"x": 566.0, "y": 253.0}, {"x": 566.0, "y": 265.0}, {"x": 79.0, "y": 265.0}]}], "spans": [{"offset": 856, "length": 75}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1755.0, "symbol": null}, "content": "1,755.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 536.0, "y": 264.0}, {"x": 566.0, "y": 264.0}, {"x": 566.0, "y": 274.0}, {"x": 537.0, "y": 274.0}]}], "spans": [{"offset": 996, "length": 8}], "confidence": 0.028}, "Description": {"value_type": "string", "value": "A Game of Thrones (A Song of Ice and Fire)", "content": "A Game of Thrones (A Song of Ice and Fire)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 199.0, "y": 265.0}, {"x": 345.0, "y": 265.0}, {"x": 345.0, "y": 276.0}, {"x": 199.0, "y": 276.0}]}], "spans": [{"offset": 941, "length": 42}], "confidence": 0.084}, "ProductCode": {"value_type": "string", "value": "100031", "content": "100031", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 265.0}, {"x": 125.0, "y": 265.0}, {"x": 124.0, "y": 275.0}, {"x": 100.0, "y": 275.0}]}], "spans": [{"offset": 934, "length": 6}], "confidence": 0.021}, "Quantity": {"value_type": "float", "value": 5.0, "content": "5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 265.0}, {"x": 429.0, "y": 265.0}, {"x": 429.0, "y": 274.0}, {"x": 414.0, "y": 274.0}]}], "spans": [{"offset": 984, "length": 4}], "confidence": 0.029}, "UnitPrice": {"value_type": "currency", "value": {"amount": 351.0, "symbol": null}, "content": "351.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 264.0}, {"x": 501.0, "y": 264.0}, {"x": 500.0, "y": 275.0}, {"x": 478.0, "y": 275.0}]}], "spans": [{"offset": 989, "length": 6}], "confidence": 0.032}}, "content": "7\n100031\nA Game of Thrones (A Song of Ice and Fire)\n5.00\n351.00\n1,755.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 264.0}, {"x": 566.0, "y": 264.0}, {"x": 566.0, "y": 276.0}, {"x": 80.0, "y": 276.0}]}], "spans": [{"offset": 932, "length": 72}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1284.0, "symbol": null}, "content": "1,284.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 537.0, "y": 277.0}, {"x": 566.0, "y": 277.0}, {"x": 566.0, "y": 287.0}, {"x": 537.0, "y": 286.0}]}], "spans": [{"offset": 1059, "length": 8}], "confidence": 0.028}, "Description": {"value_type": "string", "value": "Game of Throne: A Clash of Kings", "content": "Game of Throne: A Clash of Kings", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 199.0, "y": 277.0}, {"x": 313.0, "y": 277.0}, {"x": 313.0, "y": 288.0}, {"x": 199.0, "y": 288.0}]}], "spans": [{"offset": 1014, "length": 32}], "confidence": 0.113}, "ProductCode": {"value_type": "string", "value": "100032", "content": "100032", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 276.0}, {"x": 126.0, "y": 276.0}, {"x": 125.0, "y": 286.0}, {"x": 100.0, "y": 285.0}]}], "spans": [{"offset": 1007, "length": 6}], "confidence": 0.02}, "Quantity": {"value_type": "float", "value": 4.0, "content": "4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 277.0}, {"x": 429.0, "y": 277.0}, {"x": 429.0, "y": 286.0}, {"x": 414.0, "y": 286.0}]}], "spans": [{"offset": 1047, "length": 4}], "confidence": 0.03}, "UnitPrice": {"value_type": "currency", "value": {"amount": 321.0, "symbol": null}, "content": "321.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 477.0, "y": 276.0}, {"x": 501.0, "y": 276.0}, {"x": 501.0, "y": 287.0}, {"x": 477.0, "y": 287.0}]}], "spans": [{"offset": 1052, "length": 6}], "confidence": 0.033}}, "content": "8\n100032\nGame of Throne: A Clash of Kings\n4.00\n321.00\n1,284.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 276.0}, {"x": 566.0, "y": 276.0}, {"x": 566.0, "y": 288.0}, {"x": 79.0, "y": 288.0}]}], "spans": [{"offset": 1005, "length": 62}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5120.0, "symbol": null}, "content": "5,120.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 536.0, "y": 288.0}, {"x": 566.0, "y": 288.0}, {"x": 566.0, "y": 298.0}, {"x": 536.0, "y": 297.0}]}], "spans": [{"offset": 1134, "length": 8}], "confidence": 0.03}, "Description": {"value_type": "string", "value": "Game of Throne: A Clash of Kings (Hardcover)", "content": "Game of Throne: A Clash of Kings (Hardcover)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 199.0, "y": 288.0}, {"x": 354.0, "y": 288.0}, {"x": 354.0, "y": 300.0}, {"x": 199.0, "y": 300.0}]}], "spans": [{"offset": 1075, "length": 44}], "confidence": 0.091}, "ProductCode": {"value_type": "string", "value": "100033", "content": "100033", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 99.0, "y": 289.0}, {"x": 126.0, "y": 289.0}, {"x": 126.0, "y": 299.0}, {"x": 99.0, "y": 298.0}]}], "spans": [{"offset": 1068, "length": 6}], "confidence": 0.013}, "Quantity": {"value_type": "float", "value": 4.0, "content": "4.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 288.0}, {"x": 430.0, "y": 288.0}, {"x": 430.0, "y": 298.0}, {"x": 414.0, "y": 298.0}]}], "spans": [{"offset": 1120, "length": 4}], "confidence": 0.032}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1280.0, "symbol": null}, "content": "1,280.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 471.0, "y": 288.0}, {"x": 500.0, "y": 288.0}, {"x": 500.0, "y": 299.0}, {"x": 471.0, "y": 298.0}]}], "spans": [{"offset": 1125, "length": 8}], "confidence": 0.031}}, "content": "100033\nGame of Throne: A Clash of Kings (Hardcover)\n4.00\n1,280.00\n5,120.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 99.0, "y": 288.0}, {"x": 566.0, "y": 288.0}, {"x": 566.0, "y": 300.0}, {"x": 99.0, "y": 300.0}]}], "spans": [{"offset": 1068, "length": 74}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 500.0, "symbol": null}, "content": "500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 543.0, "y": 299.0}, {"x": 566.0, "y": 299.0}, {"x": 566.0, "y": 309.0}, {"x": 542.0, "y": 308.0}]}], "spans": [{"offset": 1187, "length": 6}], "confidence": 0.031}, "Description": {"value_type": "string", "value": "Vayuputron K\u00ec Shapath", "content": "Vayuputron K\u00ec Shapath", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 199.0, "y": 301.0}, {"x": 276.0, "y": 301.0}, {"x": 276.0, "y": 311.0}, {"x": 199.0, "y": 311.0}]}], "spans": [{"offset": 1153, "length": 21}], "confidence": 0.175}, "ProductCode": {"value_type": "string", "value": "100042", "content": "100042", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 300.0}, {"x": 127.0, "y": 300.0}, {"x": 127.0, "y": 310.0}, {"x": 100.0, "y": 309.0}]}], "spans": [{"offset": 1146, "length": 6}], "confidence": 0.021}, "Quantity": {"value_type": "float", "value": 5.0, "content": "5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 299.0}, {"x": 429.0, "y": 299.0}, {"x": 429.0, "y": 308.0}, {"x": 414.0, "y": 309.0}]}], "spans": [{"offset": 1175, "length": 4}], "confidence": 0.034}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": null}, "content": "100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 300.0}, {"x": 501.0, "y": 300.0}, {"x": 501.0, "y": 309.0}, {"x": 478.0, "y": 309.0}]}], "spans": [{"offset": 1180, "length": 6}], "confidence": 0.031}}, "content": "10\n100042\nVayuputron K\u00ec Shapath\n5.00\n100.00\n500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 78.0, "y": 299.0}, {"x": 566.0, "y": 299.0}, {"x": 566.0, "y": 311.0}, {"x": 78.0, "y": 311.0}]}], "spans": [{"offset": 1143, "length": 50}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 250.0, "symbol": null}, "content": "250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 544.0, "y": 311.0}, {"x": 566.0, "y": 311.0}, {"x": 566.0, "y": 320.0}, {"x": 544.0, "y": 320.0}]}], "spans": [{"offset": 1241, "length": 6}], "confidence": 0.031}, "Description": {"value_type": "string", "value": "Namia Hindi Aktieri Yuddh", "content": "Namia Hindi Aktieri Yuddh", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 199.0, "y": 312.0}, {"x": 284.0, "y": 312.0}, {"x": 284.0, "y": 322.0}, {"x": 199.0, "y": 322.0}]}], "spans": [{"offset": 1204, "length": 25}], "confidence": 0.144}, "ProductCode": {"value_type": "string", "value": "T00043", "content": "T00043", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 311.0}, {"x": 126.0, "y": 311.0}, {"x": 126.0, "y": 321.0}, {"x": 100.0, "y": 321.0}]}], "spans": [{"offset": 1197, "length": 6}], "confidence": 0.026}, "Quantity": {"value_type": "float", "value": 5.0, "content": "5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 414.0, "y": 311.0}, {"x": 429.0, "y": 311.0}, {"x": 429.0, "y": 320.0}, {"x": 414.0, "y": 320.0}]}], "spans": [{"offset": 1230, "length": 4}], "confidence": 0.031}, "UnitPrice": {"value_type": "currency", "value": {"amount": 50.0, "symbol": null}, "content": "50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 481.0, "y": 311.0}, {"x": 500.0, "y": 311.0}, {"x": 500.0, "y": 320.0}, {"x": 481.0, "y": 320.0}]}], "spans": [{"offset": 1235, "length": 5}], "confidence": 0.033}}, "content": "11\nT00043\nNamia Hindi Aktieri Yuddh\n5.00\n50.00\n250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 78.0, "y": 311.0}, {"x": 566.0, "y": 311.0}, {"x": 566.0, "y": 322.0}, {"x": 78.0, "y": 322.0}]}], "spans": [{"offset": 1194, "length": 53}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 900.0, "symbol": null}, "content": "900.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 543.0, "y": 322.0}, {"x": 566.0, "y": 321.0}, {"x": 567.0, "y": 332.0}, {"x": 543.0, "y": 333.0}]}], "spans": [{"offset": 1279, "length": 6}], "confidence": 0.032}, "Description": {"value_type": "string", "value": "Azvarana", "content": "Azvarana", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 200.0, "y": 325.0}, {"x": 232.0, "y": 325.0}, {"x": 232.0, "y": 334.0}, {"x": 200.0, "y": 334.0}]}], "spans": [{"offset": 1258, "length": 8}], "confidence": 0.023}, "ProductCode": {"value_type": "string", "value": "T00044", "content": "T00044", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 323.0}, {"x": 126.0, "y": 323.0}, {"x": 126.0, "y": 333.0}, {"x": 100.0, "y": 333.0}]}], "spans": [{"offset": 1251, "length": 6}], "confidence": 0.02}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 415.0, "y": 323.0}, {"x": 429.0, "y": 323.0}, {"x": 429.0, "y": 332.0}, {"x": 415.0, "y": 332.0}]}], "spans": [{"offset": 1267, "length": 4}], "confidence": 0.024}, "UnitPrice": {"value_type": "currency", "value": {"amount": 900.0, "symbol": null}, "content": "900.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 477.0, "y": 323.0}, {"x": 501.0, "y": 323.0}, {"x": 501.0, "y": 333.0}, {"x": 477.0, "y": 333.0}]}], "spans": [{"offset": 1272, "length": 6}], "confidence": 0.034}}, "content": "12\nT00044\nAzvarana\n1.00\n900.00\n900.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 78.0, "y": 321.0}, {"x": 567.0, "y": 321.0}, {"x": 567.0, "y": 334.0}, {"x": 78.0, "y": 334.0}]}], "spans": [{"offset": 1248, "length": 37}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 184.78, "symbol": null}, "content": "184.78", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 540.0, "y": 563.0}, {"x": 565.0, "y": 563.0}, {"x": 565.0, "y": 572.0}, {"x": 541.0, "y": 572.0}]}], "spans": [{"offset": 1419, "length": 6}], "confidence": 0.846}, "VendorAddress": {"value_type": "address", "value": {"house_number": "KARNATAKA-572101", "po_box": null, "road": "Green Glen Layout,\nBellandur", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "KARNATAKA-572101 Green Glen Layout,\nBellandur"}, "content": "Green Glen Layout, Bellandur, KARNATAKA-572101", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 175.0, "y": 32.0}, {"x": 308.0, "y": 32.0}, {"x": 308.0, "y": 54.0}, {"x": 175.0, "y": 54.0}]}], "spans": [{"offset": 38, "length": 46}], "confidence": 0.763}, "VendorAddressRecipient": {"value_type": "string", "value": "The Book Store", "content": "The Book Store", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 177.0, "y": 18.0}, {"x": 263.0, "y": 18.0}, {"x": 263.0, "y": 30.0}, {"x": 177.0, "y": 30.0}]}], "spans": [{"offset": 23, "length": 14}], "confidence": 0.85}, "VendorName": {"value_type": "string", "value": "HYPER DRIVE", "content": "HYPER DRIVE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 69.0, "y": 56.0}, {"x": 126.0, "y": 49.0}, {"x": 128.0, "y": 64.0}, {"x": 71.0, "y": 71.0}]}], "spans": [{"offset": 0, "length": 11}], "confidence": 0.81}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/139_jpg.rf.7c8d8adcff0bea107d55f7f4de2f4798.json b/Data/train/139_jpg.rf.7c8d8adcff0bea107d55f7f4de2f4798.json new file mode 100644 index 0000000000000000000000000000000000000000..b140b6804e33c68d00eb899075544a2716bdd9d4 --- /dev/null +++ b/Data/train/139_jpg.rf.7c8d8adcff0bea107d55f7f4de2f4798.json @@ -0,0 +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": 808}], "fields": {"InvoiceDate": {"value_type": "date", "value": "1989-07-01", "content": "07/ 89", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 442.0, "y": 104.0}, {"x": 469.0, "y": 104.0}, {"x": 469.0, "y": 115.0}, {"x": 442.0, "y": 115.0}]}], "spans": [{"offset": 100, "length": 6}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "45627", "content": "45627", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 105.0}, {"x": 518.0, "y": 104.0}, {"x": 518.0, "y": 113.0}, {"x": 490.0, "y": 113.0}]}], "spans": [{"offset": 91, "length": 5}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 9371.25, "symbol": null}, "content": "9,371.25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 479.0, "y": 578.0}, {"x": 522.0, "y": 578.0}, {"x": 522.0, "y": 587.0}, {"x": 479.0, "y": 587.0}]}], "spans": [{"offset": 800, "length": 8}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {}, "content": "ORAJI", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 150.0, "y": 248.0}, {"x": 177.0, "y": 247.0}, {"x": 177.0, "y": 257.0}, {"x": 151.0, "y": 256.0}]}], "spans": [{"offset": 432, "length": 5}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4687.5, "symbol": null}, "content": "4,687.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 474.0, "y": 235.0}, {"x": 516.0, "y": 234.0}, {"x": 516.0, "y": 243.0}, {"x": 474.0, "y": 243.0}]}], "spans": [{"offset": 590, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "ORAFI ROYALE KS LIGHTS\nCUST. UPC I1141-9\nROYALE 1005 LIGHTS\nCUST. UPC 11141-98510", "content": "ORAFI ROYALE KS LIGHTS\nCUST. UPC I1141-9 ROYALE 1005 LIGHTS CUST. UPC 11141-98510", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 234.0}, {"x": 295.0, "y": 234.0}, {"x": 295.0, "y": 264.0}, {"x": 151.0, "y": 264.0}]}], "spans": [{"offset": 409, "length": 22}, {"offset": 457, "length": 58}], "confidence": null}}, "content": "ORAFI ROYALE KS LIGHTS\nCREDIT DO NOT SHIP CUST. UPC I1141-9 ROYALE 1005 LIGHTS CUST. UPC 11141-98510\n50% OFF INV. PER LETTER OF 6/29/69\nREF INV 43653 DTD 7/6/89\n12M 12M 20 20\n4,687.50 4,875.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 150.0, "y": 234.0}, {"x": 517.0, "y": 234.0}, {"x": 517.0, "y": 283.0}, {"x": 150.0, "y": 283.0}]}], "spans": [{"offset": 409, "length": 22}, {"offset": 438, "length": 169}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "2.00% DISC.", "content": "2.00% DISC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 150.0, "y": 576.0}, {"x": 209.0, "y": 577.0}, {"x": 209.0, "y": 588.0}, {"x": 150.0, "y": 587.0}]}], "spans": [{"offset": 747, "length": 11}], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "DEPARTMENT #60732", "road": null, "city": "EL MONTE", "state": "CA", "postal_code": "91735", "country_region": null, "street_address": "DEPARTMENT #60732"}, "content": "DEPARTMENT #60732 EL MONTE, CA 91735", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 393.0, "y": 152.0}, {"x": 490.0, "y": 152.0}, {"x": 490.0, "y": 168.0}, {"x": 393.0, "y": 168.0}]}], "spans": [{"offset": 145, "length": 36}], "confidence": null}, "RemittanceAddressRecipient": {"value_type": "string", "value": "FAMOUS VALUE BRANDS", "content": "FAMOUS VALUE BRANDS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 395.0, "y": 143.0}, {"x": 497.0, "y": 143.0}, {"x": 497.0, "y": 152.0}, {"x": 395.0, "y": 152.0}]}], "spans": [{"offset": 125, "length": 19}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "1-40", "po_box": "BOX 460", "road": "CEDAR PT EXIT\nP O", "city": "SANDERS", "state": "AZ", "postal_code": "86512", "country_region": null, "street_address": "1-40 CEDAR PT EXIT\nP O BOX 460"}, "content": "1-40 CEDAR PT EXIT\nP O BOX 460\nSANDERS AZ\n86512", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 110.0}, {"x": 275.0, "y": 110.0}, {"x": 275.0, "y": 134.0}, {"x": 135.0, "y": 134.0}]}], "spans": [{"offset": 43, "length": 47}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "INDIAN RUINS TOR CO", "content": "INDIAN RUINS TOR CO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 106.0}, {"x": 237.0, "y": 106.0}, {"x": 237.0, "y": 116.0}, {"x": 135.0, "y": 116.0}]}], "spans": [{"offset": 23, "length": 19}], "confidence": null}, "VendorName": {"value_type": "string", "value": "OUS VAL\nFB\nGRANDS", "content": "OUS VAL FB\nGRANDS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 146.0, "y": 53.0}, {"x": 203.0, "y": 53.0}, {"x": 203.0, "y": 105.0}, {"x": 146.0, "y": 105.0}]}], "spans": [{"offset": 0, "length": 10}, {"offset": 16, "length": 6}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/13_jpg.rf.36a91b2d249a149b09b87b6293f63593.json b/Data/train/13_jpg.rf.36a91b2d249a149b09b87b6293f63593.json new file mode 100644 index 0000000000000000000000000000000000000000..ebf533db90efd059259627b05aa40aad46990641 --- /dev/null +++ b/Data/train/13_jpg.rf.36a91b2d249a149b09b87b6293f63593.json @@ -0,0 +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": 822}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 4850.0, "symbol": null}, "content": "4850.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 471.0, "y": 444.0}, {"x": 510.0, "y": 444.0}, {"x": 511.0, "y": 453.0}, {"x": 472.0, "y": 454.0}]}], "spans": [{"offset": 737, "length": 7}], "confidence": null}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "420", "po_box": "P.O. BOX 21688", "road": "ENGLISH STREET", "city": "GREENSBORO", "state": "NC", "postal_code": "27420", "country_region": null, "street_address": "420 ENGLISH STREET P.O. BOX 21688"}, "content": "P.O. BOX 21688\n420 ENGLISH STREET\nGREENSBORO, NC\n27420", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 114.0}, {"x": 233.0, "y": 114.0}, {"x": 233.0, "y": 149.0}, {"x": 133.0, "y": 149.0}]}], "spans": [{"offset": 210, "length": 33}, {"offset": 263, "length": 20}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "LORILLARD RESEARCH CENTER\nATIN: DR. DAN HECK", "content": "LORILLARD RESEARCH CENTER\nATIN: DR. DAN HECK", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 107.0}, {"x": 271.0, "y": 107.0}, {"x": 271.0, "y": 138.0}, {"x": 133.0, "y": 138.0}]}], "spans": [{"offset": 184, "length": 25}, {"offset": 244, "length": 18}], "confidence": 0.249}, "CustomerId": {"value_type": "string", "value": "032 07 0003", "content": "032 07 0003", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 209.0}, {"x": 150.0, "y": 209.0}, {"x": 150.0, "y": 219.0}, {"x": 90.0, "y": 219.0}]}], "spans": [{"offset": 442, "length": 11}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "LORILLARD RESEARCH CENTER\nATIN: DR. DAN HECK", "content": "LORILLARD RESEARCH CENTER\nATIN: DR. DAN HECK", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 107.0}, {"x": 271.0, "y": 107.0}, {"x": 271.0, "y": 138.0}, {"x": 133.0, "y": 138.0}]}], "spans": [{"offset": 184, "length": 25}, {"offset": 244, "length": 18}], "confidence": 0.249}, "InvoiceId": {"value_type": "string", "value": "121887", "content": "121887", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 444.0, "y": 171.0}, {"x": 477.0, "y": 171.0}, {"x": 477.0, "y": 179.0}, {"x": 445.0, "y": 179.0}]}], "spans": [{"offset": 353, "length": 6}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 4850.0, "symbol": null}, "content": "4850.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 471.0, "y": 444.0}, {"x": 510.0, "y": 444.0}, {"x": 511.0, "y": 453.0}, {"x": 472.0, "y": 454.0}]}], "spans": [{"offset": 737, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4850.0, "symbol": null}, "content": "4850.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 510.0, "y": 253.0}, {"x": 543.0, "y": 254.0}, {"x": 544.0, "y": 262.0}, {"x": 511.0, "y": 262.0}]}], "spans": [{"offset": 593, "length": 6}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "UNSCHEDULED DNA SYNTHESIS", "content": "UNSCHEDULED DNA SYNTHESIS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 221.0, "y": 250.0}, {"x": 361.0, "y": 250.0}, {"x": 361.0, "y": 262.0}, {"x": 221.0, "y": 262.0}]}], "spans": [{"offset": 554, "length": 25}], "confidence": 0.002}, "ProductCode": {"value_type": "string", "value": "82-380", "content": "82-380", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 161.0, "y": 251.0}, {"x": 194.0, "y": 252.0}, {"x": 194.0, "y": 260.0}, {"x": 161.0, "y": 260.0}]}], "spans": [{"offset": 547, "length": 6}], "confidence": 0.002}, "Unit": {"value_type": "string", "value": "FA", "content": "FA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 251.0}, {"x": 144.0, "y": 251.0}, {"x": 144.0, "y": 259.0}, {"x": 134.0, "y": 259.0}]}], "spans": [{"offset": 544, "length": 2}], "confidence": 0.002}, "UnitPrice": {"value_type": "currency", "value": {"amount": 4850.0, "symbol": null}, "content": "4850.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 460.0, "y": 253.0}, {"x": 499.0, "y": 253.0}, {"x": 499.0, "y": 262.0}, {"x": 461.0, "y": 262.0}]}], "spans": [{"offset": 585, "length": 7}], "confidence": 0.002}}, "content": "FA\n82-380\nUNSCHEDULED DNA SYNTHESIS\n4850.00\n4850.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 250.0}, {"x": 544.0, "y": 250.0}, {"x": 544.0, "y": 262.0}, {"x": 134.0, "y": 262.0}]}], "spans": [{"offset": 544, "length": 35}, {"offset": 585, "length": 14}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "NET 30 DAYS", "content": "NET 30 DAYS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 168.0}, {"x": 234.0, "y": 168.0}, {"x": 234.0, "y": 179.0}, {"x": 172.0, "y": 179.0}]}], "spans": [{"offset": 317, "length": 11}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 4850.0, "symbol": null}, "content": "4850.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 106.0, "y": 442.0}, {"x": 144.0, "y": 443.0}, {"x": 144.0, "y": 451.0}, {"x": 106.0, "y": 451.0}]}], "spans": [{"offset": 627, "length": 7}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 383.0, "y": 443.0}, {"x": 393.0, "y": 443.0}, {"x": 393.0, "y": 452.0}, {"x": 383.0, "y": 452.0}]}], "spans": [{"offset": 717, "length": 2}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "9900", "po_box": null, "road": "BLACKWELL RD.", "city": "ROCKVILLE", "state": "MD", "postal_code": "20850", "country_region": null, "street_address": "9900 BLACKWELL RD."}, "content": "9900 BLACKWELL RD. ROCKVILLE, MD 20850", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 268.0, "y": 50.0}, {"x": 348.0, "y": 50.0}, {"x": 348.0, "y": 68.0}, {"x": 268.0, "y": 68.0}]}], "spans": [{"offset": 97, "length": 38}], "confidence": null}, "VendorName": {"value_type": "string", "value": "MICROBIOLOGICAL\nASSOCIATES", "content": "MICROBIOLOGICAL ASSOCIATES", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 47.0}, {"x": 249.0, "y": 48.0}, {"x": 249.0, "y": 74.0}, {"x": 129.0, "y": 73.0}]}], "spans": [{"offset": 0, "length": 26}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/1401919-1_jpg.rf.5953bbe752f961dec21909dd0cf99260.json b/Data/train/1401919-1_jpg.rf.5953bbe752f961dec21909dd0cf99260.json new file mode 100644 index 0000000000000000000000000000000000000000..819ae906cde142a324c4fa90387e3444247b0fb7 --- /dev/null +++ b/Data/train/1401919-1_jpg.rf.5953bbe752f961dec21909dd0cf99260.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1447.0, "y": 0.0}, {"x": 1447.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 1749}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "Plot No. 199", "po_box": null, "road": "12th Main Road", "city": "Ram Nagar South", "state": "Tamil Nadu", "postal_code": null, "country_region": null, "street_address": "Plot No. 199 12th Main Road"}, "content": "Plot No. 199, 12th Main Road, Ram Nagar South,\nMadipakkam, Chennai, Tamil Nadu", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 227.0, "y": 632.0}, {"x": 662.0, "y": 632.0}, {"x": 662.0, "y": 677.0}, {"x": 227.0, "y": 677.0}]}], "spans": [{"offset": 508, "length": 78}], "confidence": 0.85}, "BillingAddressRecipient": {"value_type": "string", "value": "RTX Innovations Pvt. Ltd.", "content": "RTX Innovations Pvt. Ltd.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 227.0, "y": 603.0}, {"x": 460.0, "y": 603.0}, {"x": 460.0, "y": 627.0}, {"x": 227.0, "y": 627.0}]}], "spans": [{"offset": 473, "length": 25}], "confidence": 0.9}, "CustomerName": {"value_type": "string", "value": "RTX Innovations Pvt. Ltd.", "content": "RTX Innovations Pvt. Ltd.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 227.0, "y": 603.0}, {"x": 460.0, "y": 603.0}, {"x": 460.0, "y": 627.0}, {"x": 227.0, "y": 627.0}]}], "spans": [{"offset": 473, "length": 25}], "confidence": 0.9}, "InvoiceDate": {"value_type": "date", "value": "2020-07-11", "content": "11 Jul 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 880.0, "y": 484.0}, {"x": 979.0, "y": 484.0}, {"x": 979.0, "y": 505.0}, {"x": 880.0, "y": 505.0}]}], "spans": [{"offset": 379, "length": 11}], "confidence": 0.917}, "InvoiceId": {"value_type": "string", "value": "20202133101189", "content": "20202133101189", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 277.0, "y": 484.0}, {"x": 424.0, "y": 483.0}, {"x": 424.0, "y": 506.0}, {"x": 278.0, "y": 505.0}]}], "spans": [{"offset": 303, "length": 14}], "confidence": 0.818}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 13638.91, "symbol": "Rs"}, "content": "Rs. 13638.91", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 938.0, "y": 1596.0}, {"x": 1048.0, "y": 1596.0}, {"x": 1048.0, "y": 1616.0}, {"x": 938.0, "y": 1616.0}]}], "spans": [{"offset": 1466, "length": 12}], "confidence": 0.699}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 12000.0, "symbol": null}, "content": "12000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 634.0, "y": 1023.0}, {"x": 710.0, "y": 1023.0}, {"x": 710.0, "y": 1043.0}, {"x": 634.0, "y": 1042.0}]}], "spans": [{"offset": 1091, "length": 8}], "confidence": 0.884}, "Description": {"value_type": "string", "value": "Sale of\nInternet\nAdvertising\nSpace", "content": "Sale of Internet Advertising Space", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 161.0, "y": 1023.0}, {"x": 253.0, "y": 1023.0}, {"x": 253.0, "y": 1106.0}, {"x": 161.0, "y": 1106.0}]}], "spans": [{"offset": 1036, "length": 34}], "confidence": 0.681}, "ProductCode": {"value_type": "string", "value": "998365", "content": "998365", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 295.0, "y": 1023.0}, {"x": 357.0, "y": 1024.0}, {"x": 357.0, "y": 1043.0}, {"x": 295.0, "y": 1042.0}]}], "spans": [{"offset": 1071, "length": 6}], "confidence": 0.659}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 388.0, "y": 1023.0}, {"x": 397.0, "y": 1023.0}, {"x": 396.0, "y": 1041.0}, {"x": 388.0, "y": 1041.0}]}], "spans": [{"offset": 1078, "length": 1}], "confidence": 0.898}, "Tax": {"value_type": "currency", "value": {"amount": 1080.0, "symbol": null}, "content": "1080.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1026.0, "y": 1024.0}, {"x": 1091.0, "y": 1024.0}, {"x": 1091.0, "y": 1043.0}, {"x": 1026.0, "y": 1042.0}]}], "spans": [{"offset": 1112, "length": 7}], "confidence": 0.879}, "TaxRate": {"value_type": "string", "value": "9%", "content": "9%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 966.0, "y": 1023.0}, {"x": 994.0, "y": 1023.0}, {"x": 994.0, "y": 1041.0}, {"x": 966.0, "y": 1041.0}]}], "spans": [{"offset": 1109, "length": 2}], "confidence": 0.899}, "Unit": {"value_type": "string", "value": "1", "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 448.0, "y": 1023.0}, {"x": 456.0, "y": 1023.0}, {"x": 457.0, "y": 1040.0}, {"x": 448.0, "y": 1040.0}]}], "spans": [{"offset": 1080, "length": 1}], "confidence": 0.671}, "UnitPrice": {"value_type": "currency", "value": {"amount": 12000.0, "symbol": null}, "content": "12000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 513.0, "y": 1023.0}, {"x": 589.0, "y": 1024.0}, {"x": 589.0, "y": 1043.0}, {"x": 513.0, "y": 1042.0}]}], "spans": [{"offset": 1082, "length": 8}], "confidence": 0.9}}, "content": "1.\nSale of Internet Advertising Space\n998365\n1\n1\n12000.00\n12000.00\n12000.00\n9%\n1080.00\n9%\n1080.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 1023.0}, {"x": 1245.0, "y": 1023.0}, {"x": 1245.0, "y": 1106.0}, {"x": 96.0, "y": 1106.0}]}], "spans": [{"offset": 1033, "length": 97}], "confidence": 0.833}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "Plot No. 199", "po_box": null, "road": "12th Main Road", "city": "Ram Nagar South", "state": "Tamil Nadu\nTamil Nadu", "postal_code": null, "country_region": null, "street_address": "Plot No. 199 12th Main Road"}, "content": "Plot No. 199, 12th Main Road, Ram Nagar South,\nMadipakkam, Chennai, Tamil Nadu\nTamil Nadu", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 854.0, "y": 631.0}, {"x": 1289.0, "y": 631.0}, {"x": 1289.0, "y": 704.0}, {"x": 854.0, "y": 704.0}]}], "spans": [{"offset": 741, "length": 78}, {"offset": 827, "length": 10}], "confidence": 0.711}, "ShippingAddressRecipient": {"value_type": "string", "value": "RTX Innovations Pvt. Ltd.", "content": "RTX Innovations Pvt. Ltd.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 855.0, "y": 602.0}, {"x": 1085.0, "y": 602.0}, {"x": 1085.0, "y": 627.0}, {"x": 855.0, "y": 627.0}]}], "spans": [{"offset": 707, "length": 25}], "confidence": 0.892}, "SubTotal": {"value_type": "currency", "value": null, "content": "Rs.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 510.0, "y": 1396.0}, {"x": 542.0, "y": 1395.0}, {"x": 543.0, "y": 1415.0}, {"x": 510.0, "y": 1416.0}]}], "spans": [{"offset": 1311, "length": 3}], "confidence": 0.295}, "VendorAddress": {"value_type": "address", "value": {"house_number": "484", "po_box": null, "road": "& 485, (1st, 4th & 5th Floor), Pantheon Road", "city": "Chennai", "state": "Tamil Nadu", "postal_code": null, "country_region": null, "street_address": "484 & 485, (1st, 4th & 5th Floor), Pantheon Road"}, "content": "484 & 485, (1st, 4th & 5th Floor), Pantheon Road, Egmore,,Chennai, Tamil Nadu", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 215.0, "y": 356.0}, {"x": 924.0, "y": 356.0}, {"x": 924.0, "y": 383.0}, {"x": 215.0, "y": 383.0}]}], "spans": [{"offset": 142, "length": 77}], "confidence": 0.829}, "VendorAddressRecipient": {"value_type": "string", "value": "Sulekha.com New Media Pvt. Ltd", "content": "Sulekha.com New Media Pvt. Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 216.0, "y": 328.0}, {"x": 512.0, "y": 328.0}, {"x": 512.0, "y": 352.0}, {"x": 216.0, "y": 352.0}]}], "spans": [{"offset": 102, "length": 30}], "confidence": 0.896}, "VendorName": {"value_type": "string", "value": "Sulekha", "content": "Sulekha", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 72.0}, {"x": 236.0, "y": 71.0}, {"x": 236.0, "y": 105.0}, {"x": 124.0, "y": 105.0}]}], "spans": [{"offset": 0, "length": 7}], "confidence": 0.941}, "VendorTaxId": {"value_type": "string", "value": "33AADCM6938R1ZS", "content": "33AADCM6938R1ZS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 215.0, "y": 270.0}, {"x": 392.0, "y": 271.0}, {"x": 392.0, "y": 293.0}, {"x": 215.0, "y": 294.0}]}], "spans": [{"offset": 63, "length": 15}], "confidence": 0.928}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/140_jpg.rf.59b841854af5646b630043fe3254e75d.json b/Data/train/140_jpg.rf.59b841854af5646b630043fe3254e75d.json new file mode 100644 index 0000000000000000000000000000000000000000..430e561304f82256c9d244954c5606f5afabf43e --- /dev/null +++ b/Data/train/140_jpg.rf.59b841854af5646b630043fe3254e75d.json @@ -0,0 +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": 1090}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 956.83, "symbol": "$"}, "content": "$956.83", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 305.0, "y": 421.0}, {"x": 343.0, "y": 421.0}, {"x": 343.0, "y": 431.0}, {"x": 305.0, "y": 430.0}]}], "spans": [{"offset": 725, "length": 7}], "confidence": null}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "120", "po_box": null, "road": "PARK AV. LOC", "city": "NEW YORK", "state": "NY", "postal_code": "10017-5523", "country_region": null, "street_address": "120 PARK AV. LOC"}, "content": "120 PARK AV. LOC FLR 7 NEW YORK NY 10017-5523", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 407.0, "y": 275.0}, {"x": 507.0, "y": 278.0}, {"x": 507.0, "y": 300.0}, {"x": 407.0, "y": 297.0}]}], "spans": [{"offset": 389, "length": 45}], "confidence": 0.932}, "CustomerAddressRecipient": {"value_type": "string", "value": "PHILIP MORRIS USA\nSALES HEADQUARTERS\nX ATTN STEVE SABELLA", "content": "PHILIP MORRIS USA SALES HEADQUARTERS X ATTN STEVE SABELLA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 408.0, "y": 256.0}, {"x": 499.0, "y": 259.0}, {"x": 498.0, "y": 280.0}, {"x": 407.0, "y": 277.0}]}], "spans": [{"offset": 331, "length": 57}], "confidence": 0.004}, "CustomerId": {"value_type": "string", "value": "212 296-9607 699 722", "content": "212 296-9607 699 722", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 411.0, "y": 165.0}, {"x": 509.0, "y": 168.0}, {"x": 509.0, "y": 179.0}, {"x": 411.0, "y": 176.0}]}], "spans": [{"offset": 293, "length": 20}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "PHILIP MORRIS USA\nSALES HEADQUARTERS\nX ATTN STEVE SABELLA", "content": "PHILIP MORRIS USA SALES HEADQUARTERS X ATTN STEVE SABELLA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 408.0, "y": 256.0}, {"x": 499.0, "y": 259.0}, {"x": 498.0, "y": 280.0}, {"x": 407.0, "y": 277.0}]}], "spans": [{"offset": 331, "length": 57}], "confidence": 0.004}, "DueDate": {"value_type": "date", "value": "1991-11-26", "content": "November 26, 1991", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 267.0, "y": 281.0}, {"x": 347.0, "y": 282.0}, {"x": 347.0, "y": 293.0}, {"x": 267.0, "y": 292.0}]}], "spans": [{"offset": 177, "length": 17}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1991-11-01", "content": "November 1, 1991", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 409.0, "y": 176.0}, {"x": 480.0, "y": 176.0}, {"x": 480.0, "y": 186.0}, {"x": 409.0, "y": 186.0}]}], "spans": [{"offset": 314, "length": 16}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 313.16, "symbol": "$"}, "content": "$313.16", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 315.0, "y": 311.0}, {"x": 346.0, "y": 311.0}, {"x": 346.0, "y": 318.0}, {"x": 314.0, "y": 318.0}]}], "spans": [{"offset": 247, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 638.67, "symbol": "$"}, "content": "$638.67", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 317.0, "y": 237.0}, {"x": 349.0, "y": 237.0}, {"x": 349.0, "y": 245.0}, {"x": 317.0, "y": 245.0}]}], "spans": [{"offset": 96, "length": 7}], "confidence": 0.001}, "Description": {"value_type": "string", "value": "Amount of last bit", "content": "Amount of last bit", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 233.0}, {"x": 252.0, "y": 235.0}, {"x": 252.0, "y": 244.0}, {"x": 194.0, "y": 242.0}]}], "spans": [{"offset": 77, "length": 18}], "confidence": null}}, "content": "Amount of last bit\n$638.67", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 234.0}, {"x": 349.0, "y": 234.0}, {"x": 349.0, "y": 245.0}, {"x": 194.0, "y": 245.0}]}], "spans": [{"offset": 77, "length": 26}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": ".00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 336.0, "y": 245.0}, {"x": 348.0, "y": 245.0}, {"x": 348.0, "y": 252.0}, {"x": 336.0, "y": 252.0}]}], "spans": [{"offset": 132, "length": 3}], "confidence": null}, "Description": {"value_type": "string", "value": "Payments through November 5", "content": "Payments through November 5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 193.0, "y": 240.0}, {"x": 290.0, "y": 244.0}, {"x": 290.0, "y": 253.0}, {"x": 193.0, "y": 249.0}]}], "spans": [{"offset": 104, "length": 27}], "confidence": null}}, "content": "Payments through November 5\n.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 193.0, "y": 240.0}, {"x": 348.0, "y": 245.0}, {"x": 348.0, "y": 255.0}, {"x": 193.0, "y": 250.0}]}], "spans": [{"offset": 104, "length": 31}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5.1, "symbol": "$"}, "content": "$5.10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 324.0, "y": 295.0}, {"x": 346.0, "y": 295.0}, {"x": 346.0, "y": 304.0}, {"x": 324.0, "y": 303.0}]}], "spans": [{"offset": 234, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Late payment charge", "content": "Late payment charge", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 193.0, "y": 291.0}, {"x": 258.0, "y": 294.0}, {"x": 258.0, "y": 302.0}, {"x": 193.0, "y": 299.0}]}], "spans": [{"offset": 195, "length": 19}], "confidence": 0.001}}, "content": "Late payment charge\n$5.10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 193.0, "y": 289.0}, {"x": 346.0, "y": 295.0}, {"x": 346.0, "y": 306.0}, {"x": 193.0, "y": 299.0}]}], "spans": [{"offset": 195, "length": 19}, {"offset": 234, "length": 5}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 315.06, "symbol": null}, "content": "315.06", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 319.0, "y": 303.0}, {"x": 346.0, "y": 303.0}, {"x": 346.0, "y": 311.0}, {"x": 319.0, "y": 311.0}]}], "spans": [{"offset": 240, "length": 6}], "confidence": 0.001}, "Description": {"value_type": "string", "value": "New York Telephone", "content": "New York Telephone", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 299.0}, {"x": 256.0, "y": 301.0}, {"x": 256.0, "y": 309.0}, {"x": 191.0, "y": 307.0}]}], "spans": [{"offset": 215, "length": 18}], "confidence": null}}, "content": "New York Telephone\n315.06", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 298.0}, {"x": 346.0, "y": 303.0}, {"x": 346.0, "y": 312.0}, {"x": 191.0, "y": 307.0}]}], "spans": [{"offset": 215, "length": 18}, {"offset": 240, "length": 6}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PreviousUnpaidBalance": {"value_type": "currency", "value": {"amount": 638.67, "symbol": "$"}, "content": "$638.67", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 316.0, "y": 252.0}, {"x": 348.0, "y": 253.0}, {"x": 348.0, "y": 261.0}, {"x": 316.0, "y": 260.0}]}], "spans": [{"offset": 144, "length": 7}], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "BOX 559001", "road": null, "city": null, "state": "NY", "postal_code": "11255-9001", "country_region": null, "street_address": "BOX 559001"}, "content": "BOX 559001 BROOKLYN NY 11255-9001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 374.0, "y": 488.0}, {"x": 479.0, "y": 490.0}, {"x": 479.0, "y": 508.0}, {"x": 374.0, "y": 506.0}]}], "spans": [{"offset": 899, "length": 33}], "confidence": 0.001}, "RemittanceAddressRecipient": {"value_type": "string", "value": "NEW YORK TELEPHONE", "content": "NEW YORK TELEPHONE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 374.0, "y": 480.0}, {"x": 457.0, "y": 482.0}, {"x": 457.0, "y": 493.0}, {"x": 374.0, "y": 490.0}]}], "spans": [{"offset": 880, "length": 18}], "confidence": null}, "VendorName": {"value_type": "string", "value": "New York Telephone\nNYNEX", "content": "New York Telephone\nNYNEX", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 234.0, "y": 159.0}, {"x": 347.0, "y": 161.0}, {"x": 347.0, "y": 191.0}, {"x": 233.0, "y": 188.0}]}], "spans": [{"offset": 0, "length": 18}, {"offset": 21, "length": 5}], "confidence": 0.001}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/142_jpg.rf.647e560983e7d1bba15d17a2083e56c9.json b/Data/train/142_jpg.rf.647e560983e7d1bba15d17a2083e56c9.json new file mode 100644 index 0000000000000000000000000000000000000000..ead19d398b784b7b65f53d156cffeb7250961e25 --- /dev/null +++ b/Data/train/142_jpg.rf.647e560983e7d1bba15d17a2083e56c9.json @@ -0,0 +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": 1496}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": ""}, "content": "Kharanja Road, Modi Building Materials\nDHOLPUR AJ 328001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 133.0}, {"x": 246.0, "y": 133.0}, {"x": 246.0, "y": 154.0}, {"x": 103.0, "y": 154.0}]}], "spans": [{"offset": 283, "length": 56}], "confidence": 0.898}, "CustomerAddressRecipient": {"value_type": "string", "value": "Dharmendra\nModi Building Materials", "content": "Dharmendra\nModi Building Materials", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 110.0}, {"x": 226.0, "y": 110.0}, {"x": 226.0, "y": 131.0}, {"x": 103.0, "y": 131.0}]}], "spans": [{"offset": 248, "length": 34}], "confidence": 0.932}, "CustomerName": {"value_type": "string", "value": "Dharmendra\nModi Building Materials", "content": "Dharmendra\nModi Building Materials", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 110.0}, {"x": 226.0, "y": 110.0}, {"x": 226.0, "y": 131.0}, {"x": 103.0, "y": 131.0}]}], "spans": [{"offset": 248, "length": 34}], "confidence": 0.932}, "InvoiceDate": {"value_type": "date", "value": "2019-08-25", "content": "25-08-2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 497.0, "y": 97.0}, {"x": 539.0, "y": 96.0}, {"x": 538.0, "y": 105.0}, {"x": 497.0, "y": 105.0}]}], "spans": [{"offset": 413, "length": 10}], "confidence": 0.957}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 734.62, "symbol": null}, "content": "734.62", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 504.0, "y": 208.0}, {"x": 530.0, "y": 208.0}, {"x": 530.0, "y": 216.0}, {"x": 504.0, "y": 216.0}]}], "spans": [{"offset": 715, "length": 6}], "confidence": 0.856}, "Description": {"value_type": "string", "value": "Printed Sim Fit Shirt with Patch\nPocket,Blue,M.460323493001", "content": "Printed Sim Fit Shirt with Patch Pocket,Blue,M.460323493001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 198.0}, {"x": 213.0, "y": 198.0}, {"x": 213.0, "y": 217.0}, {"x": 100.0, "y": 217.0}]}], "spans": [{"offset": 619, "length": 59}], "confidence": 0.473}, "ProductCode": {"value_type": "string", "value": "6205", "content": "6205", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 252.0, "y": 208.0}, {"x": 271.0, "y": 208.0}, {"x": 270.0, "y": 216.0}, {"x": 252.0, "y": 215.0}]}], "spans": [{"offset": 679, "length": 4}], "confidence": 0.835}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 300.0, "y": 208.0}, {"x": 310.0, "y": 208.0}, {"x": 310.0, "y": 215.0}, {"x": 300.0, "y": 215.0}]}], "spans": [{"offset": 684, "length": 3}], "confidence": 0.849}, "Tax": {"value_type": "currency", "value": {"amount": 34.98, "symbol": null}, "content": "34.98", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 208.0}, {"x": 475.0, "y": 208.0}, {"x": 476.0, "y": 216.0}, {"x": 455.0, "y": 216.0}]}], "spans": [{"offset": 709, "length": 5}], "confidence": 0.813}, "UnitPrice": {"value_type": "currency", "value": {"amount": 790.9, "symbol": null}, "content": "790.90", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 208.0}, {"x": 356.0, "y": 208.0}, {"x": 356.0, "y": 217.0}, {"x": 331.0, "y": 216.0}]}], "spans": [{"offset": 688, "length": 6}], "confidence": 0.825}}, "content": "Printed Sim Fit Shirt with Patch Pocket,Blue,M.460323493001\n6205\n1.0\n790.90\n100.35\n699.64\n34.98\n734.62", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 198.0}, {"x": 530.0, "y": 198.0}, {"x": 530.0, "y": 217.0}, {"x": 100.0, "y": 217.0}]}], "spans": [{"offset": 619, "length": 102}], "confidence": 0.8}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1574.72, "symbol": null}, "content": "1574.72", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 503.0, "y": 247.0}, {"x": 532.0, "y": 247.0}, {"x": 532.0, "y": 256.0}, {"x": 503.0, "y": 255.0}]}], "spans": [{"offset": 820, "length": 7}], "confidence": 0.841}, "Description": {"value_type": "string", "value": "Washed Skinny Fit\nJeans, Black, 30,460349500002", "content": "Washed Skinny Fit Jeans, Black, 30,460349500002", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 237.0}, {"x": 212.0, "y": 237.0}, {"x": 212.0, "y": 256.0}, {"x": 100.0, "y": 256.0}]}], "spans": [{"offset": 722, "length": 47}], "confidence": 0.479}, "ProductCode": {"value_type": "string", "value": "6203", "content": "6203", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 252.0, "y": 247.0}, {"x": 271.0, "y": 247.0}, {"x": 271.0, "y": 255.0}, {"x": 252.0, "y": 255.0}]}], "spans": [{"offset": 783, "length": 4}], "confidence": 0.833}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 300.0, "y": 246.0}, {"x": 310.0, "y": 246.0}, {"x": 311.0, "y": 254.0}, {"x": 300.0, "y": 254.0}]}], "spans": [{"offset": 788, "length": 3}], "confidence": 0.823}, "Tax": {"value_type": "currency", "value": {"amount": 168.72, "symbol": null}, "content": "168.72", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 247.0}, {"x": 477.0, "y": 247.0}, {"x": 477.0, "y": 255.0}, {"x": 453.0, "y": 255.0}]}], "spans": [{"offset": 813, "length": 6}], "confidence": 0.816}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1900.0, "symbol": null}, "content": "1900.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 247.0}, {"x": 356.0, "y": 247.0}, {"x": 356.0, "y": 256.0}, {"x": 332.0, "y": 255.0}]}], "spans": [{"offset": 792, "length": 6}], "confidence": 0.855}}, "content": "Washed Skinny Fit Jeans, Black, 30,460349500002\n6203\n1.0\n1900.0\n494.0\n1406.00\n168.72\n1574.72", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 237.0}, {"x": 532.0, "y": 237.0}, {"x": 532.0, "y": 256.0}, {"x": 100.0, "y": 256.0}]}], "spans": [{"offset": 722, "length": 47}, {"offset": 783, "length": 44}], "confidence": 0.802}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "NONCOD", "content": "NONCOD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 475.0, "y": 159.0}, {"x": 511.0, "y": 159.0}, {"x": 511.0, "y": 168.0}, {"x": 476.0, "y": 168.0}]}], "spans": [{"offset": 522, "length": 6}], "confidence": 0.95}, "VendorAddress": {"value_type": "address", "value": {"house_number": "54/1", "po_box": null, "road": "C/O Survey No", "city": "Tumkur,\nKAR", "state": null, "postal_code": "572101", "country_region": null, "street_address": "54/1 C/O Survey No"}, "content": "C/O Survey No, 54/1, Nandihalli village 55th Km stone NH-4 Tumkur road, Oordigree Hobll Taluka Tumkur, KAR 572101", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 102.0, "y": 48.0}, {"x": 301.0, "y": 48.0}, {"x": 301.0, "y": 75.0}, {"x": 102.0, "y": 75.0}]}], "spans": [{"offset": 62, "length": 113}], "confidence": 0.984}, "VendorAddressRecipient": {"value_type": "string", "value": "RELIANCE RETAIL LIMITED\nReliance Retall Lid.", "content": "RELIANCE RETAIL LIMITED\nReliance Retall Lid.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 102.0, "y": 19.0}, {"x": 209.0, "y": 19.0}, {"x": 209.0, "y": 48.0}, {"x": 102.0, "y": 48.0}]}], "spans": [{"offset": 0, "length": 23}, {"offset": 41, "length": 20}], "confidence": 0.351}, "VendorName": {"value_type": "string", "value": "AJIO", "content": "AJIO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 436.0, "y": 19.0}, {"x": 521.0, "y": 18.0}, {"x": 521.0, "y": 49.0}, {"x": 436.0, "y": 50.0}]}], "spans": [{"offset": 340, "length": 4}], "confidence": 0.728}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/145_jpg.rf.3379016c1b806b5b28d57cc5c42d5794.json b/Data/train/145_jpg.rf.3379016c1b806b5b28d57cc5c42d5794.json new file mode 100644 index 0000000000000000000000000000000000000000..524633cb39b11f0155afe4b3552caa95bc1fcaf1 --- /dev/null +++ b/Data/train/145_jpg.rf.3379016c1b806b5b28d57cc5c42d5794.json @@ -0,0 +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": 1420}], "fields": {"CustomerName": {"value_type": "string", "value": "David Jones", "content": "David Jones", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 418.0, "y": 114.0}, {"x": 463.0, "y": 115.0}, {"x": 463.0, "y": 125.0}, {"x": 418.0, "y": 123.0}]}], "spans": [{"offset": 170, "length": 11}], "confidence": 0.593}, "InvoiceDate": {"value_type": "date", "value": "2019-05-02", "content": "5/2/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 509.0, "y": 55.0}, {"x": 546.0, "y": 56.0}, {"x": 546.0, "y": 65.0}, {"x": 509.0, "y": 64.0}]}], "spans": [{"offset": 68, "length": 8}], "confidence": 0.941}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 8855.03, "symbol": "$"}, "content": "$8,855.03", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 504.0, "y": 549.0}, {"x": 545.0, "y": 550.0}, {"x": 545.0, "y": 560.0}, {"x": 505.0, "y": 559.0}]}], "spans": [{"offset": 1181, "length": 9}], "confidence": 0.941}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 151.6, "symbol": null}, "content": "151.6", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 525.0, "y": 255.0}, {"x": 547.0, "y": 255.0}, {"x": 547.0, "y": 263.0}, {"x": 525.0, "y": 263.0}]}], "spans": [{"offset": 584, "length": 5}], "confidence": 0.602}, "Description": {"value_type": "string", "value": "Extra Dark - Pack of 12", "content": "Extra Dark - Pack of 12", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 231.0, "y": 255.0}, {"x": 314.0, "y": 255.0}, {"x": 314.0, "y": 265.0}, {"x": 231.0, "y": 265.0}]}], "spans": [{"offset": 552, "length": 23}], "confidence": 0.648}, "ProductCode": {"value_type": "string", "value": "RDLP01", "content": "RDLP01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 255.0}, {"x": 124.0, "y": 256.0}, {"x": 124.0, "y": 265.0}, {"x": 93.0, "y": 264.0}]}], "spans": [{"offset": 537, "length": 6}], "confidence": 0.598}, "Quantity": {"value_type": "float", "value": 20.0, "content": "20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 256.0}, {"x": 412.0, "y": 256.0}, {"x": 412.0, "y": 263.0}, {"x": 404.0, "y": 263.0}]}], "spans": [{"offset": 576, "length": 2}], "confidence": 0.513}, "UnitPrice": {"value_type": "currency", "value": {"amount": 7.58, "symbol": null}, "content": "7.58", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 255.0}, {"x": 457.0, "y": 255.0}, {"x": 457.0, "y": 263.0}, {"x": 441.0, "y": 263.0}]}], "spans": [{"offset": 579, "length": 4}], "confidence": 0.661}}, "content": "RDLP01\nPencils\nExtra Dark - Pack of 12\n20\n7.58\n151.6", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 255.0}, {"x": 547.0, "y": 255.0}, {"x": 547.0, "y": 265.0}, {"x": 92.0, "y": 265.0}]}], "spans": [{"offset": 537, "length": 52}], "confidence": 0.831}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 250.0, "symbol": null}, "content": "250", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 532.0, "y": 267.0}, {"x": 547.0, "y": 267.0}, {"x": 547.0, "y": 276.0}, {"x": 532.0, "y": 276.0}]}], "spans": [{"offset": 628, "length": 3}], "confidence": 0.573}, "Description": {"value_type": "string", "value": "Pack of 12 colors", "content": "Pack of 12 colors", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 230.0, "y": 267.0}, {"x": 296.0, "y": 267.0}, {"x": 296.0, "y": 277.0}, {"x": 230.0, "y": 277.0}]}], "spans": [{"offset": 602, "length": 17}], "confidence": 0.639}, "ProductCode": {"value_type": "string", "value": "BP0316", "content": "BP0316", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 267.0}, {"x": 123.0, "y": 267.0}, {"x": 123.0, "y": 276.0}, {"x": 93.0, "y": 276.0}]}], "spans": [{"offset": 590, "length": 6}], "confidence": 0.543}, "Quantity": {"value_type": "float", "value": 20.0, "content": "20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 267.0}, {"x": 413.0, "y": 267.0}, {"x": 413.0, "y": 276.0}, {"x": 404.0, "y": 276.0}]}], "spans": [{"offset": 620, "length": 2}], "confidence": 0.517}, "UnitPrice": {"value_type": "currency", "value": {"amount": 12.5, "symbol": null}, "content": "12.5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 440.0, "y": 267.0}, {"x": 457.0, "y": 267.0}, {"x": 457.0, "y": 276.0}, {"x": 440.0, "y": 276.0}]}], "spans": [{"offset": 623, "length": 4}], "confidence": 0.585}}, "content": "BP0316\nPens\nPack of 12 colors\n20\n12.5\n250", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 267.0}, {"x": 547.0, "y": 267.0}, {"x": 547.0, "y": 277.0}, {"x": 93.0, "y": 277.0}]}], "spans": [{"offset": 590, "length": 41}], "confidence": 0.829}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 117.7, "symbol": null}, "content": "117.7", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 525.0, "y": 278.0}, {"x": 547.0, "y": 278.0}, {"x": 547.0, "y": 287.0}, {"x": 525.0, "y": 287.0}]}], "spans": [{"offset": 677, "length": 5}], "confidence": 0.615}, "Description": {"value_type": "string", "value": "Pack 100 of each", "content": "Pack 100 of each", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 231.0, "y": 278.0}, {"x": 295.0, "y": 278.0}, {"x": 295.0, "y": 289.0}, {"x": 231.0, "y": 289.0}]}], "spans": [{"offset": 651, "length": 16}], "confidence": 0.641}, "ProductCode": {"value_type": "string", "value": "CPC450", "content": "CPC450", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 279.0}, {"x": 123.0, "y": 279.0}, {"x": 123.0, "y": 288.0}, {"x": 93.0, "y": 288.0}]}], "spans": [{"offset": 632, "length": 6}], "confidence": 0.521}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 279.0}, {"x": 412.0, "y": 279.0}, {"x": 412.0, "y": 287.0}, {"x": 404.0, "y": 287.0}]}], "spans": [{"offset": 668, "length": 2}], "confidence": 0.566}, "UnitPrice": {"value_type": "currency", "value": {"amount": 11.77, "symbol": null}, "content": "11.77", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 436.0, "y": 279.0}, {"x": 457.0, "y": 279.0}, {"x": 457.0, "y": 288.0}, {"x": 435.0, "y": 288.0}]}], "spans": [{"offset": 671, "length": 5}], "confidence": 0.599}}, "content": "CPC450\nPaper Clips\nPack 100 of each\n10\n11.77\n117.7", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 278.0}, {"x": 547.0, "y": 278.0}, {"x": 547.0, "y": 289.0}, {"x": 93.0, "y": 289.0}]}], "spans": [{"offset": 632, "length": 50}], "confidence": 0.828}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1858.0, "symbol": null}, "content": "1858", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 528.0, "y": 291.0}, {"x": 546.0, "y": 291.0}, {"x": 546.0, "y": 299.0}, {"x": 528.0, "y": 299.0}]}], "spans": [{"offset": 742, "length": 4}], "confidence": 0.595}, "Description": {"value_type": "string", "value": "White 8.5 x 11, Letter size", "content": "White 8.5 x 11, Letter size", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 231.0, "y": 291.0}, {"x": 329.0, "y": 291.0}, {"x": 329.0, "y": 301.0}, {"x": 231.0, "y": 301.0}]}], "spans": [{"offset": 705, "length": 27}], "confidence": 0.293}, "ProductCode": {"value_type": "string", "value": "RC2000C", "content": "RC2000C", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 291.0}, {"x": 129.0, "y": 290.0}, {"x": 129.0, "y": 301.0}, {"x": 92.0, "y": 300.0}]}], "spans": [{"offset": 683, "length": 7}], "confidence": 0.575}, "Quantity": {"value_type": "float", "value": 40.0, "content": "40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 291.0}, {"x": 412.0, "y": 291.0}, {"x": 412.0, "y": 298.0}, {"x": 404.0, "y": 298.0}]}], "spans": [{"offset": 733, "length": 2}], "confidence": 0.637}, "UnitPrice": {"value_type": "currency", "value": {"amount": 46.45, "symbol": null}, "content": "46.45", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 435.0, "y": 291.0}, {"x": 457.0, "y": 292.0}, {"x": 457.0, "y": 300.0}, {"x": 435.0, "y": 299.0}]}], "spans": [{"offset": 736, "length": 5}], "confidence": 0.608}}, "content": "RC2000C\nPrinter Paper\nWhite 8.5 x 11, Letter size\n40\n46.45\n1858", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 92.0, "y": 290.0}, {"x": 546.0, "y": 290.0}, {"x": 546.0, "y": 301.0}, {"x": 92.0, "y": 301.0}]}], "spans": [{"offset": 683, "length": 63}], "confidence": 0.786}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4179.0, "symbol": null}, "content": "4179", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 526.0, "y": 301.0}, {"x": 547.0, "y": 301.0}, {"x": 547.0, "y": 310.0}, {"x": 526.0, "y": 310.0}]}], "spans": [{"offset": 793, "length": 4}], "confidence": 0.581}, "Description": {"value_type": "string", "value": "Powder 750g each", "content": "Powder 750g each", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 230.0, "y": 302.0}, {"x": 300.0, "y": 302.0}, {"x": 300.0, "y": 312.0}, {"x": 230.0, "y": 312.0}]}], "spans": [{"offset": 767, "length": 16}], "confidence": 0.648}, "ProductCode": {"value_type": "string", "value": "NCP7", "content": "NCP7", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 302.0}, {"x": 114.0, "y": 302.0}, {"x": 114.0, "y": 310.0}, {"x": 93.0, "y": 310.0}]}], "spans": [{"offset": 747, "length": 4}], "confidence": 0.573}, "Quantity": {"value_type": "float", "value": 60.0, "content": "60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 403.0, "y": 302.0}, {"x": 412.0, "y": 302.0}, {"x": 412.0, "y": 310.0}, {"x": 403.0, "y": 310.0}]}], "spans": [{"offset": 784, "length": 2}], "confidence": 0.515}, "UnitPrice": {"value_type": "currency", "value": {"amount": 69.65, "symbol": null}, "content": "69.65", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 435.0, "y": 302.0}, {"x": 457.0, "y": 302.0}, {"x": 457.0, "y": 310.0}, {"x": 435.0, "y": 310.0}]}], "spans": [{"offset": 787, "length": 5}], "confidence": 0.585}}, "content": "NCP7\nNescafe powder\nPowder 750g each\n60\n69.65\n4179", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 301.0}, {"x": 547.0, "y": 301.0}, {"x": 547.0, "y": 312.0}, {"x": 93.0, "y": 312.0}]}], "spans": [{"offset": 747, "length": 50}], "confidence": 0.834}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 999.5, "symbol": null}, "content": "999.5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 524.0, "y": 313.0}, {"x": 547.0, "y": 313.0}, {"x": 547.0, "y": 323.0}, {"x": 524.0, "y": 323.0}]}], "spans": [{"offset": 853, "length": 5}], "confidence": 0.58}, "Description": {"value_type": "string", "value": "With Lids, Pack of 12", "content": "With Lids, Pack of 12", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 230.0, "y": 314.0}, {"x": 310.0, "y": 314.0}, {"x": 310.0, "y": 324.0}, {"x": 230.0, "y": 324.0}]}], "spans": [{"offset": 822, "length": 21}], "confidence": 0.645}, "ProductCode": {"value_type": "string", "value": "CCLD002", "content": "CCLD002", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 314.0}, {"x": 129.0, "y": 314.0}, {"x": 129.0, "y": 323.0}, {"x": 93.0, "y": 323.0}]}], "spans": [{"offset": 798, "length": 7}], "confidence": 0.639}, "Quantity": {"value_type": "float", "value": 50.0, "content": "50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 314.0}, {"x": 413.0, "y": 314.0}, {"x": 412.0, "y": 323.0}, {"x": 403.0, "y": 322.0}]}], "spans": [{"offset": 844, "length": 2}], "confidence": 0.533}, "UnitPrice": {"value_type": "currency", "value": {"amount": 19.99, "symbol": null}, "content": "19.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 436.0, "y": 314.0}, {"x": 457.0, "y": 315.0}, {"x": 456.0, "y": 323.0}, {"x": 436.0, "y": 322.0}]}], "spans": [{"offset": 847, "length": 5}], "confidence": 0.627}}, "content": "CCLD002\nDisposable cups\nWith Lids, Pack of 12\n50\n19.99\n999.5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 313.0}, {"x": 547.0, "y": 313.0}, {"x": 547.0, "y": 324.0}, {"x": 93.0, "y": 324.0}]}], "spans": [{"offset": 798, "length": 60}], "confidence": 0.828}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 999.0, "symbol": null}, "content": "999", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 532.0, "y": 325.0}, {"x": 547.0, "y": 325.0}, {"x": 546.0, "y": 334.0}, {"x": 531.0, "y": 334.0}]}], "spans": [{"offset": 915, "length": 3}], "confidence": 0.587}, "Description": {"value_type": "string", "value": "Printer Lazerjet Toner", "content": "Printer Lazerjet Toner", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 230.0, "y": 325.0}, {"x": 313.0, "y": 326.0}, {"x": 313.0, "y": 336.0}, {"x": 230.0, "y": 335.0}]}], "spans": [{"offset": 886, "length": 22}], "confidence": 0.642}, "ProductCode": {"value_type": "string", "value": "C2612A", "content": "C2612A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 326.0}, {"x": 123.0, "y": 326.0}, {"x": 123.0, "y": 335.0}, {"x": 93.0, "y": 335.0}]}], "spans": [{"offset": 859, "length": 6}], "confidence": 0.505}, "Quantity": {"value_type": "float", "value": null, "content": "-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 413.0, "y": 327.0}, {"x": 413.0, "y": 331.0}, {"x": 407.0, "y": 331.0}, {"x": 407.0, "y": 328.0}]}], "spans": [{"offset": 909, "length": 1}], "confidence": 0.187}, "UnitPrice": {"value_type": "currency", "value": {"amount": 999.0, "symbol": null}, "content": "999", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 444.0, "y": 326.0}, {"x": 457.0, "y": 326.0}, {"x": 457.0, "y": 334.0}, {"x": 444.0, "y": 334.0}]}], "spans": [{"offset": 911, "length": 3}], "confidence": 0.597}}, "content": "C2612A\nBlack 12A cartridge\nPrinter Lazerjet Toner\n-\n999\n999", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 93.0, "y": 325.0}, {"x": 547.0, "y": 325.0}, {"x": 547.0, "y": 336.0}, {"x": 93.0, "y": 336.0}]}], "spans": [{"offset": 859, "length": 59}], "confidence": 0.803}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Net 30 Days", "content": "Net 30 Days", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 344.0, "y": 220.0}, {"x": 389.0, "y": 220.0}, {"x": 389.0, "y": 230.0}, {"x": 344.0, "y": 230.0}]}], "spans": [{"offset": 471, "length": 11}], "confidence": 0.933}, "PurchaseOrder": {"value_type": "string", "value": "634", "content": "634", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 256.0, "y": 55.0}, {"x": 271.0, "y": 55.0}, {"x": 271.0, "y": 63.0}, {"x": 256.0, "y": 63.0}]}], "spans": [{"offset": 59, "length": 3}], "confidence": 0.486}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "500", "po_box": null, "road": "East Main St.", "city": "Branford", "state": "CT", "postal_code": "6405", "country_region": null, "street_address": "500 East Main St."}, "content": "500, East Main St.\nBranford\nCT\n6405", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 417.0, "y": 126.0}, {"x": 484.0, "y": 126.0}, {"x": 484.0, "y": 169.0}, {"x": 417.0, "y": 169.0}]}], "spans": [{"offset": 228, "length": 18}, {"offset": 263, "length": 8}, {"offset": 287, "length": 2}, {"offset": 314, "length": 4}], "confidence": 0.703}, "ShippingAddressRecipient": {"value_type": "string", "value": "David Jones", "content": "David Jones", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 418.0, "y": 114.0}, {"x": 463.0, "y": 115.0}, {"x": 463.0, "y": 125.0}, {"x": 418.0, "y": 123.0}]}], "spans": [{"offset": 170, "length": 11}], "confidence": 0.593}, "SubTotal": {"value_type": "currency", "value": {"amount": 8554.8, "symbol": "$"}, "content": "$8,554.80\n$8,554.80", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 504.0, "y": 490.0}, {"x": 545.0, "y": 490.0}, {"x": 545.0, "y": 500.0}, {"x": 504.0, "y": 500.0}]}], "spans": [{"offset": 966, "length": 9}, {"offset": 1124, "length": 9}], "confidence": 0.728}, "TotalTax": {"value_type": "currency", "value": {"amount": 5.0, "symbol": null}, "content": "5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 528.0, "y": 513.0}, {"x": 547.0, "y": 513.0}, {"x": 547.0, "y": 523.0}, {"x": 528.0, "y": 523.0}]}], "spans": [{"offset": 1155, "length": 4}], "confidence": 0.836}, "VendorAddress": {"value_type": "address", "value": {"house_number": "596", "po_box": null, "road": "Grant Road", "city": "Boston", "state": "MA", "postal_code": "46225", "country_region": null, "street_address": "596 Grant Road"}, "content": "596, Grant Road\nBoston\nMA\n46225", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 184.0, "y": 126.0}, {"x": 247.0, "y": 126.0}, {"x": 247.0, "y": 170.0}, {"x": 184.0, "y": 170.0}]}], "spans": [{"offset": 197, "length": 15}, {"offset": 252, "length": 6}, {"offset": 278, "length": 2}, {"offset": 299, "length": 5}], "confidence": 0.781}, "VendorName": {"value_type": "string", "value": "Acme Supplies Inc.", "content": "Acme Supplies Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 184.0, "y": 79.0}, {"x": 254.0, "y": 79.0}, {"x": 254.0, "y": 89.0}, {"x": 184.0, "y": 89.0}]}], "spans": [{"offset": 89, "length": 18}], "confidence": 0.595}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/1466_jpg.rf.b4a909c6d2c79e5b740f0098adce262d.json b/Data/train/1466_jpg.rf.b4a909c6d2c79e5b740f0098adce262d.json new file mode 100644 index 0000000000000000000000000000000000000000..c2953af2b918f5246225c227004e27923e46a7a4 --- /dev/null +++ b/Data/train/1466_jpg.rf.b4a909c6d2c79e5b740f0098adce262d.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1447.0, "y": 0.0}, {"x": 1447.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 1595}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "825401", "po_box": null, "road": "gola road,\nchatra", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "825401 gola road,\nchatra"}, "content": "Diwankhana mohalla,khaini gola road,\nchatra- 825401 State : 20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 57.0, "y": 409.0}, {"x": 388.0, "y": 409.0}, {"x": 388.0, "y": 460.0}, {"x": 57.0, "y": 460.0}]}], "spans": [{"offset": 293, "length": 62}], "confidence": 0.585}, "BillingAddressRecipient": {"value_type": "string", "value": "M/s ARHASI WORKS PVT.LTD.", "content": "M/s ARHASI WORKS PVT.LTD.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 57.0, "y": 381.0}, {"x": 343.0, "y": 381.0}, {"x": 343.0, "y": 404.0}, {"x": 57.0, "y": 404.0}]}], "spans": [{"offset": 267, "length": 25}], "confidence": 0.894}, "CustomerName": {"value_type": "string", "value": "M/s ARHASI WORKS PVT.LTD.", "content": "M/s ARHASI WORKS PVT.LTD.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 57.0, "y": 381.0}, {"x": 343.0, "y": 381.0}, {"x": 343.0, "y": 404.0}, {"x": 57.0, "y": 404.0}]}], "spans": [{"offset": 267, "length": 25}], "confidence": 0.894}, "InvoiceDate": {"value_type": "date", "value": "2020-05-20", "content": "20-05-2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1283.0, "y": 382.0}, {"x": 1407.0, "y": 383.0}, {"x": 1407.0, "y": 409.0}, {"x": 1284.0, "y": 409.0}]}], "spans": [{"offset": 527, "length": 10}], "confidence": 0.954}, "InvoiceId": {"value_type": "string", "value": "0079", "content": "0079", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1143.0, "y": 382.0}, {"x": 1198.0, "y": 382.0}, {"x": 1198.0, "y": 410.0}, {"x": 1143.0, "y": 410.0}]}], "spans": [{"offset": 515, "length": 4}], "confidence": 0.954}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 13527.0, "symbol": null}, "content": "13527.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1288.0, "y": 1523.0}, {"x": 1387.0, "y": 1524.0}, {"x": 1388.0, "y": 1549.0}, {"x": 1288.0, "y": 1548.0}]}], "spans": [{"offset": 1387, "length": 8}], "confidence": 0.943}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3857.76, "symbol": null}, "content": "3857.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1285.0, "y": 606.0}, {"x": 1354.0, "y": 605.0}, {"x": 1354.0, "y": 623.0}, {"x": 1285.0, "y": 623.0}]}], "spans": [{"offset": 704, "length": 7}], "confidence": 0.881}, "Description": {"value_type": "string", "value": "HAND RUB 100ML", "content": "HAND RUB 100ML", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 604.0}, {"x": 253.0, "y": 604.0}, {"x": 253.0, "y": 623.0}, {"x": 98.0, "y": 623.0}]}], "spans": [{"offset": 653, "length": 14}], "confidence": 0.879}, "ProductCode": {"value_type": "string", "value": "3004", "content": "3004", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 653.0, "y": 605.0}, {"x": 689.0, "y": 605.0}, {"x": 689.0, "y": 620.0}, {"x": 653.0, "y": 620.0}]}], "spans": [{"offset": 676, "length": 4}], "confidence": 0.297}, "Quantity": {"value_type": "float", "value": 144.0, "content": "144", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 968.0, "y": 604.0}, {"x": 997.0, "y": 604.0}, {"x": 997.0, "y": 621.0}, {"x": 968.0, "y": 621.0}]}], "spans": [{"offset": 689, "length": 3}], "confidence": 0.881}, "UnitPrice": {"value_type": "currency", "value": {"amount": 26.79, "symbol": null}, "content": "26.79", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1093.0, "y": 606.0}, {"x": 1141.0, "y": 606.0}, {"x": 1141.0, "y": 623.0}, {"x": 1094.0, "y": 622.0}]}], "spans": [{"offset": 693, "length": 5}], "confidence": 0.881}}, "content": "1\nHAND RUB 100ML\nNGC017.\n3004\n100ML\n0\n144\n26.79\n0.00\n3857.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 65.0, "y": 603.0}, {"x": 1354.0, "y": 603.0}, {"x": 1354.0, "y": 623.0}, {"x": 65.0, "y": 623.0}]}], "spans": [{"offset": 651, "length": 60}], "confidence": 0.891}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3505.68, "symbol": null}, "content": "3505.68", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1285.0, "y": 631.0}, {"x": 1355.0, "y": 631.0}, {"x": 1355.0, "y": 649.0}, {"x": 1285.0, "y": 649.0}]}], "spans": [{"offset": 771, "length": 7}], "confidence": 0.881}, "Description": {"value_type": "string", "value": "HAND RUB ORANGE 60ML", "content": "HAND RUB ORANGE 60ML", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 630.0}, {"x": 322.0, "y": 630.0}, {"x": 322.0, "y": 650.0}, {"x": 97.0, "y": 650.0}]}], "spans": [{"offset": 714, "length": 20}], "confidence": 0.878}, "ProductCode": {"value_type": "string", "value": "3004", "content": "3004", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 653.0, "y": 630.0}, {"x": 689.0, "y": 631.0}, {"x": 688.0, "y": 646.0}, {"x": 652.0, "y": 645.0}]}], "spans": [{"offset": 743, "length": 4}], "confidence": 0.297}, "Quantity": {"value_type": "float", "value": 216.0, "content": "216", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 631.0}, {"x": 997.0, "y": 631.0}, {"x": 997.0, "y": 648.0}, {"x": 967.0, "y": 648.0}]}], "spans": [{"offset": 756, "length": 3}], "confidence": 0.881}, "UnitPrice": {"value_type": "currency", "value": {"amount": 16.23, "symbol": null}, "content": "16.23", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1094.0, "y": 632.0}, {"x": 1141.0, "y": 632.0}, {"x": 1142.0, "y": 650.0}, {"x": 1094.0, "y": 649.0}]}], "spans": [{"offset": 760, "length": 5}], "confidence": 0.881}}, "content": "2\nHAND RUB ORANGE 60ML\nNGC0022\n3004\n60ML\n30\n216\n16.23\n0.00\n3505.68", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 64.0, "y": 628.0}, {"x": 1355.0, "y": 628.0}, {"x": 1355.0, "y": 650.0}, {"x": 64.0, "y": 650.0}]}], "spans": [{"offset": 712, "length": 66}], "confidence": 0.892}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4714.56, "symbol": null}, "content": "4714.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1284.0, "y": 655.0}, {"x": 1355.0, "y": 656.0}, {"x": 1355.0, "y": 675.0}, {"x": 1284.0, "y": 675.0}]}], "spans": [{"offset": 843, "length": 7}], "confidence": 0.881}, "Description": {"value_type": "string", "value": "HAND RUB STRAWBERRY 200ML", "content": "HAND RUB STRAWBERRY 200ML", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 654.0}, {"x": 379.0, "y": 654.0}, {"x": 379.0, "y": 676.0}, {"x": 97.0, "y": 676.0}]}], "spans": [{"offset": 781, "length": 25}], "confidence": 0.879}, "Quantity": {"value_type": "float", "value": 96.0, "content": "96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 972.0, "y": 656.0}, {"x": 992.0, "y": 656.0}, {"x": 992.0, "y": 673.0}, {"x": 972.0, "y": 673.0}]}], "spans": [{"offset": 829, "length": 2}], "confidence": 0.881}, "UnitPrice": {"value_type": "currency", "value": {"amount": 49.11, "symbol": null}, "content": "49.11", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1092.0, "y": 657.0}, {"x": 1142.0, "y": 655.0}, {"x": 1142.0, "y": 675.0}, {"x": 1092.0, "y": 674.0}]}], "spans": [{"offset": 832, "length": 5}], "confidence": 0.881}}, "content": "3\nHAND RUB STRAWBERRY 200ML\nNGC419\n3004\n200ML\n100\n96\n49.11\n0.00\n4714.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 64.0, "y": 654.0}, {"x": 1355.0, "y": 654.0}, {"x": 1355.0, "y": 676.0}, {"x": 64.0, "y": 676.0}]}], "spans": [{"offset": 779, "length": 71}], "confidence": 0.892}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "gola road", "city": "chatra", "state": null, "postal_code": "825401", "country_region": null, "street_address": "gola road"}, "content": "Diwankhana mohalla,khaini gola road,\nchatra- 825401", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 578.0, "y": 409.0}, {"x": 868.0, "y": 409.0}, {"x": 868.0, "y": 457.0}, {"x": 578.0, "y": 457.0}]}], "spans": [{"offset": 417, "length": 51}], "confidence": 0.88}, "ShippingAddressRecipient": {"value_type": "string", "value": "M/s ARHASI WORKS PVT.LTD.", "content": "M/s ARHASI WORKS PVT.LTD.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 596.0, "y": 381.0}, {"x": 884.0, "y": 381.0}, {"x": 884.0, "y": 404.0}, {"x": 596.0, "y": 404.0}]}], "spans": [{"offset": 391, "length": 25}], "confidence": 0.899}, "SubTotal": {"value_type": "currency", "value": {"amount": 12078.0, "symbol": null}, "content": "12078.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1319.0, "y": 1355.0}, {"x": 1390.0, "y": 1355.0}, {"x": 1391.0, "y": 1374.0}, {"x": 1319.0, "y": 1373.0}]}], "spans": [{"offset": 1310, "length": 8}], "confidence": 0.95}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1449.36, "symbol": null}, "content": "1449.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 810.0, "y": 1409.0}, {"x": 885.0, "y": 1409.0}, {"x": 886.0, "y": 1431.0}, {"x": 810.0, "y": 1430.0}]}], "spans": [{"offset": 984, "length": 7}], "confidence": 0.647}}, "content": "IGST\n0.00\n1449.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 810.0, "y": 1349.0}, {"x": 894.0, "y": 1350.0}, {"x": 894.0, "y": 1431.0}, {"x": 810.0, "y": 1430.0}]}], "spans": [{"offset": 964, "length": 4}, {"offset": 974, "length": 4}, {"offset": 984, "length": 7}], "confidence": 0.395}, {"value_type": "dictionary", "value": {"Rate": {"value_type": "string", "value": "5 %", "content": "5 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 1383.0}, {"x": 139.0, "y": 1383.0}, {"x": 139.0, "y": 1404.0}, {"x": 104.0, "y": 1404.0}]}], "spans": [{"offset": 876, "length": 3}], "confidence": 0.701}}, "content": "GST 5 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 58.0, "y": 1383.0}, {"x": 139.0, "y": 1383.0}, {"x": 139.0, "y": 1404.0}, {"x": 58.0, "y": 1404.0}]}], "spans": [{"offset": 872, "length": 7}], "confidence": 0.53}, {"value_type": "dictionary", "value": {"Rate": {"value_type": "string", "value": "12 %", "content": "12 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 1408.0}, {"x": 149.0, "y": 1409.0}, {"x": 149.0, "y": 1430.0}, {"x": 105.0, "y": 1429.0}]}], "spans": [{"offset": 898, "length": 4}], "confidence": 0.754}}, "content": "GST 12 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 1408.0}, {"x": 149.0, "y": 1408.0}, {"x": 149.0, "y": 1430.0}, {"x": 59.0, "y": 1430.0}]}], "spans": [{"offset": 894, "length": 8}], "confidence": 0.53}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 372.0, "y": 1434.0}, {"x": 415.0, "y": 1434.0}, {"x": 415.0, "y": 1457.0}, {"x": 372.0, "y": 1457.0}]}], "spans": [{"offset": 912, "length": 4}], "confidence": 0.459}, "Rate": {"value_type": "string", "value": "28%", "content": "28%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 1459.0}, {"x": 146.0, "y": 1458.0}, {"x": 146.0, "y": 1480.0}, {"x": 106.0, "y": 1480.0}]}], "spans": [{"offset": 921, "length": 3}], "confidence": 0.66}}, "content": "0.00\n0.00\nGST 28%\n0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 58.0, "y": 1383.0}, {"x": 415.0, "y": 1383.0}, {"x": 415.0, "y": 1481.0}, {"x": 58.0, "y": 1481.0}]}], "spans": [{"offset": 880, "length": 4}, {"offset": 912, "length": 17}], "confidence": 0.39}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1449.36, "symbol": null}, "content": "1449.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1321.0, "y": 1435.0}, {"x": 1389.0, "y": 1434.0}, {"x": 1390.0, "y": 1456.0}, {"x": 1322.0, "y": 1454.0}]}], "spans": [{"offset": 1346, "length": 7}], "confidence": 0.664}}, "content": "IGST\n1449.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 960.0, "y": 1431.0}, {"x": 1390.0, "y": 1434.0}, {"x": 1390.0, "y": 1457.0}, {"x": 960.0, "y": 1454.0}]}], "spans": [{"offset": 1341, "length": 12}], "confidence": 0.264}, {"value_type": "dictionary", "value": {"Rate": {"value_type": "string", "value": "18 %", "content": "18 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 1432.0}, {"x": 151.0, "y": 1434.0}, {"x": 150.0, "y": 1457.0}, {"x": 104.0, "y": 1455.0}]}], "spans": [{"offset": 907, "length": 4}], "confidence": 0.748}}, "content": "GST 18 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 1432.0}, {"x": 151.0, "y": 1434.0}, {"x": 150.0, "y": 1456.0}, {"x": 58.0, "y": 1454.0}]}], "spans": [{"offset": 903, "length": 8}], "confidence": 0.524}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1357.0, "y": 1383.0}, {"x": 1392.0, "y": 1383.0}, {"x": 1392.0, "y": 1402.0}, {"x": 1357.0, "y": 1402.0}]}], "spans": [{"offset": 1336, "length": 4}], "confidence": 0.567}, "TotalTax": {"value_type": "currency", "value": {"amount": 1449.36, "symbol": null}, "content": "1449.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1321.0, "y": 1435.0}, {"x": 1389.0, "y": 1434.0}, {"x": 1390.0, "y": 1456.0}, {"x": 1322.0, "y": 1454.0}]}], "spans": [{"offset": 1346, "length": 7}], "confidence": 0.461}, "VendorAddress": {"value_type": "address", "value": {"house_number": "34/2", "po_box": null, "road": "S.A.S. NAGAR", "city": "MOHALI", "state": "PUNJAB", "postal_code": null, "country_region": null, "street_address": "34/2 S.A.S. NAGAR"}, "content": "34/2,GODOWN AREA, VILL-PABHAT, ZIRAKPUR MC, TEHSIL-DERABASSI DISTT- S.A.S. NAGAR(MOHALI), PUNJAB", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 176.0, "y": 158.0}, {"x": 1246.0, "y": 158.0}, {"x": 1246.0, "y": 227.0}, {"x": 176.0, "y": 227.0}]}], "spans": [{"offset": 45, "length": 96}], "confidence": 0.871}, "VendorAddressRecipient": {"value_type": "string", "value": "PARV MARKETING INNOVATION", "content": "PARV MARKETING INNOVATION", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 329.0, "y": 109.0}, {"x": 1078.0, "y": 109.0}, {"x": 1078.0, "y": 154.0}, {"x": 329.0, "y": 154.0}]}], "spans": [{"offset": 19, "length": 25}], "confidence": 0.716}, "VendorName": {"value_type": "string", "value": "PARV MARKETING INNOVATION", "content": "PARV MARKETING INNOVATION", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 949.0, "y": 1555.0}, {"x": 1386.0, "y": 1555.0}, {"x": 1386.0, "y": 1586.0}, {"x": 949.0, "y": 1586.0}]}], "spans": [{"offset": 1400, "length": 25}], "confidence": 0.651}, "VendorTaxId": {"value_type": "string", "value": "03AAWFP7814P1ZE", "content": "03AAWFP7814P1ZE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 633.0, "y": 225.0}, {"x": 882.0, "y": 225.0}, {"x": 882.0, "y": 251.0}, {"x": 633.0, "y": 252.0}]}], "spans": [{"offset": 148, "length": 15}], "confidence": 0.595}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/1466_jpg.rf.c960de91b248454cd8cb1c8f7662afbf.json b/Data/train/1466_jpg.rf.c960de91b248454cd8cb1c8f7662afbf.json new file mode 100644 index 0000000000000000000000000000000000000000..0069bec0e2174ec289f1a98f480a5be15b157019 --- /dev/null +++ b/Data/train/1466_jpg.rf.c960de91b248454cd8cb1c8f7662afbf.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1447.0, "y": 0.0}, {"x": 1447.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 1597}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "825401", "po_box": null, "road": "gola road,\nchatra", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "825401 gola road,\nchatra"}, "content": "Diwankhana mohalla, khaini gola road,\nchatra- 825401 State : 20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 57.0, "y": 409.0}, {"x": 388.0, "y": 409.0}, {"x": 388.0, "y": 460.0}, {"x": 57.0, "y": 460.0}]}], "spans": [{"offset": 293, "length": 63}], "confidence": 0.636}, "BillingAddressRecipient": {"value_type": "string", "value": "M/s ARHASI WORKS PVT.LTD.", "content": "M/s ARHASI WORKS PVT.LTD.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 57.0, "y": 381.0}, {"x": 343.0, "y": 381.0}, {"x": 343.0, "y": 404.0}, {"x": 57.0, "y": 404.0}]}], "spans": [{"offset": 267, "length": 25}], "confidence": 0.894}, "CustomerName": {"value_type": "string", "value": "M/s ARHASI WORKS PVT.LTD.", "content": "M/s ARHASI WORKS PVT.LTD.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 57.0, "y": 381.0}, {"x": 343.0, "y": 381.0}, {"x": 343.0, "y": 404.0}, {"x": 57.0, "y": 404.0}]}], "spans": [{"offset": 267, "length": 25}], "confidence": 0.894}, "InvoiceDate": {"value_type": "date", "value": "2020-05-20", "content": "20-05-2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1283.0, "y": 382.0}, {"x": 1406.0, "y": 383.0}, {"x": 1406.0, "y": 408.0}, {"x": 1283.0, "y": 409.0}]}], "spans": [{"offset": 529, "length": 10}], "confidence": 0.953}, "InvoiceId": {"value_type": "string", "value": "0079", "content": "0079", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1143.0, "y": 382.0}, {"x": 1198.0, "y": 382.0}, {"x": 1198.0, "y": 410.0}, {"x": 1143.0, "y": 410.0}]}], "spans": [{"offset": 517, "length": 4}], "confidence": 0.954}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 13527.0, "symbol": null}, "content": "13527.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1288.0, "y": 1523.0}, {"x": 1387.0, "y": 1524.0}, {"x": 1388.0, "y": 1549.0}, {"x": 1288.0, "y": 1548.0}]}], "spans": [{"offset": 1389, "length": 8}], "confidence": 0.943}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3857.76, "symbol": null}, "content": "3857.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1285.0, "y": 606.0}, {"x": 1355.0, "y": 605.0}, {"x": 1355.0, "y": 623.0}, {"x": 1285.0, "y": 622.0}]}], "spans": [{"offset": 706, "length": 7}], "confidence": 0.881}, "Description": {"value_type": "string", "value": "HAND RUB 100ML", "content": "HAND RUB 100ML", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 604.0}, {"x": 252.0, "y": 604.0}, {"x": 252.0, "y": 623.0}, {"x": 98.0, "y": 623.0}]}], "spans": [{"offset": 655, "length": 14}], "confidence": 0.879}, "ProductCode": {"value_type": "string", "value": "3004", "content": "3004", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 653.0, "y": 605.0}, {"x": 689.0, "y": 605.0}, {"x": 689.0, "y": 620.0}, {"x": 653.0, "y": 620.0}]}], "spans": [{"offset": 678, "length": 4}], "confidence": 0.306}, "Quantity": {"value_type": "float", "value": 144.0, "content": "144", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 968.0, "y": 604.0}, {"x": 997.0, "y": 604.0}, {"x": 997.0, "y": 621.0}, {"x": 968.0, "y": 621.0}]}], "spans": [{"offset": 691, "length": 3}], "confidence": 0.881}, "UnitPrice": {"value_type": "currency", "value": {"amount": 26.79, "symbol": null}, "content": "26.79", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1094.0, "y": 605.0}, {"x": 1141.0, "y": 605.0}, {"x": 1141.0, "y": 623.0}, {"x": 1094.0, "y": 622.0}]}], "spans": [{"offset": 695, "length": 5}], "confidence": 0.88}}, "content": "1\nHAND RUB 100ML\nNGC017.\n3004\n100ML\n0\n144\n26.79\n0.00\n3857.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 65.0, "y": 603.0}, {"x": 1355.0, "y": 603.0}, {"x": 1355.0, "y": 623.0}, {"x": 65.0, "y": 623.0}]}], "spans": [{"offset": 653, "length": 60}], "confidence": 0.891}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3505.68, "symbol": null}, "content": "3505.68", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1285.0, "y": 631.0}, {"x": 1355.0, "y": 631.0}, {"x": 1355.0, "y": 650.0}, {"x": 1285.0, "y": 649.0}]}], "spans": [{"offset": 773, "length": 7}], "confidence": 0.881}, "Description": {"value_type": "string", "value": "HAND RUB ORANGE 60ML", "content": "HAND RUB ORANGE 60ML", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 630.0}, {"x": 323.0, "y": 630.0}, {"x": 323.0, "y": 650.0}, {"x": 97.0, "y": 650.0}]}], "spans": [{"offset": 716, "length": 20}], "confidence": 0.878}, "ProductCode": {"value_type": "string", "value": "3004", "content": "3004", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 653.0, "y": 630.0}, {"x": 689.0, "y": 631.0}, {"x": 688.0, "y": 646.0}, {"x": 652.0, "y": 645.0}]}], "spans": [{"offset": 745, "length": 4}], "confidence": 0.305}, "Quantity": {"value_type": "float", "value": 216.0, "content": "216", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 631.0}, {"x": 997.0, "y": 631.0}, {"x": 997.0, "y": 648.0}, {"x": 967.0, "y": 648.0}]}], "spans": [{"offset": 758, "length": 3}], "confidence": 0.881}, "UnitPrice": {"value_type": "currency", "value": {"amount": 16.23, "symbol": null}, "content": "16.23", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1094.0, "y": 631.0}, {"x": 1140.0, "y": 631.0}, {"x": 1140.0, "y": 649.0}, {"x": 1094.0, "y": 649.0}]}], "spans": [{"offset": 762, "length": 5}], "confidence": 0.88}}, "content": "2\nHAND RUB ORANGE 60ML\nNGC0022\n3004\n60ML\n30\n216\n16.23\n0.00\n3505.68", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 63.0, "y": 628.0}, {"x": 1355.0, "y": 628.0}, {"x": 1355.0, "y": 650.0}, {"x": 63.0, "y": 650.0}]}], "spans": [{"offset": 714, "length": 66}], "confidence": 0.892}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4714.56, "symbol": null}, "content": "4714.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1284.0, "y": 655.0}, {"x": 1355.0, "y": 656.0}, {"x": 1355.0, "y": 675.0}, {"x": 1284.0, "y": 675.0}]}], "spans": [{"offset": 845, "length": 7}], "confidence": 0.881}, "Description": {"value_type": "string", "value": "HAND RUB STRAWBERRY 200ML", "content": "HAND RUB STRAWBERRY 200ML", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 655.0}, {"x": 379.0, "y": 655.0}, {"x": 379.0, "y": 676.0}, {"x": 97.0, "y": 676.0}]}], "spans": [{"offset": 783, "length": 25}], "confidence": 0.878}, "ProductCode": {"value_type": "string", "value": "3004", "content": "3004", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 653.0, "y": 655.0}, {"x": 689.0, "y": 656.0}, {"x": 688.0, "y": 671.0}, {"x": 652.0, "y": 670.0}]}], "spans": [{"offset": 816, "length": 4}], "confidence": 0.3}, "Quantity": {"value_type": "float", "value": 96.0, "content": "96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 972.0, "y": 656.0}, {"x": 992.0, "y": 656.0}, {"x": 992.0, "y": 673.0}, {"x": 972.0, "y": 673.0}]}], "spans": [{"offset": 831, "length": 2}], "confidence": 0.881}, "UnitPrice": {"value_type": "currency", "value": {"amount": 49.11, "symbol": null}, "content": "49.11", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1092.0, "y": 657.0}, {"x": 1142.0, "y": 656.0}, {"x": 1142.0, "y": 675.0}, {"x": 1092.0, "y": 674.0}]}], "spans": [{"offset": 834, "length": 5}], "confidence": 0.88}}, "content": "3\nHAND RUB STRAWBERRY 200ML\nNGC419\n3004\n200ML\n100\n96\n49.11\n0.00\n4714.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 63.0, "y": 654.0}, {"x": 1355.0, "y": 654.0}, {"x": 1355.0, "y": 676.0}, {"x": 63.0, "y": 676.0}]}], "spans": [{"offset": 781, "length": 71}], "confidence": 0.892}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "gola road", "city": "chatra", "state": null, "postal_code": "825401", "country_region": null, "street_address": "gola road"}, "content": "Diwankhana mohalla, khaini gola road,\nchatra- 825401", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 577.0, "y": 409.0}, {"x": 868.0, "y": 409.0}, {"x": 868.0, "y": 457.0}, {"x": 577.0, "y": 457.0}]}], "spans": [{"offset": 418, "length": 52}], "confidence": 0.869}, "ShippingAddressRecipient": {"value_type": "string", "value": "M/s ARHASI WORKS PVT.LTD.", "content": "M/s ARHASI WORKS PVT.LTD.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 596.0, "y": 381.0}, {"x": 883.0, "y": 381.0}, {"x": 883.0, "y": 404.0}, {"x": 596.0, "y": 404.0}]}], "spans": [{"offset": 392, "length": 25}], "confidence": 0.898}, "SubTotal": {"value_type": "currency", "value": {"amount": 12078.0, "symbol": null}, "content": "12078.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1319.0, "y": 1355.0}, {"x": 1390.0, "y": 1355.0}, {"x": 1391.0, "y": 1374.0}, {"x": 1319.0, "y": 1373.0}]}], "spans": [{"offset": 1312, "length": 8}], "confidence": 0.95}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1449.36, "symbol": null}, "content": "1449.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 810.0, "y": 1409.0}, {"x": 885.0, "y": 1409.0}, {"x": 886.0, "y": 1431.0}, {"x": 810.0, "y": 1430.0}]}], "spans": [{"offset": 986, "length": 7}], "confidence": 0.65}}, "content": "IGST\n0.00\n1449.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 810.0, "y": 1349.0}, {"x": 894.0, "y": 1350.0}, {"x": 894.0, "y": 1431.0}, {"x": 810.0, "y": 1430.0}]}], "spans": [{"offset": 966, "length": 4}, {"offset": 976, "length": 4}, {"offset": 986, "length": 7}], "confidence": 0.397}, {"value_type": "dictionary", "value": {"Rate": {"value_type": "string", "value": "5 %", "content": "5 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 1383.0}, {"x": 139.0, "y": 1383.0}, {"x": 139.0, "y": 1404.0}, {"x": 104.0, "y": 1404.0}]}], "spans": [{"offset": 878, "length": 3}], "confidence": 0.703}}, "content": "GST 5 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 58.0, "y": 1383.0}, {"x": 139.0, "y": 1383.0}, {"x": 139.0, "y": 1404.0}, {"x": 58.0, "y": 1404.0}]}], "spans": [{"offset": 874, "length": 7}], "confidence": 0.532}, {"value_type": "dictionary", "value": {"Rate": {"value_type": "string", "value": "12 %", "content": "12 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 1408.0}, {"x": 149.0, "y": 1409.0}, {"x": 149.0, "y": 1430.0}, {"x": 105.0, "y": 1429.0}]}], "spans": [{"offset": 900, "length": 4}], "confidence": 0.755}}, "content": "GST 12 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 1408.0}, {"x": 149.0, "y": 1408.0}, {"x": 149.0, "y": 1430.0}, {"x": 59.0, "y": 1430.0}]}], "spans": [{"offset": 896, "length": 8}], "confidence": 0.533}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 371.0, "y": 1383.0}, {"x": 414.0, "y": 1383.0}, {"x": 414.0, "y": 1405.0}, {"x": 371.0, "y": 1405.0}]}], "spans": [{"offset": 882, "length": 4}], "confidence": 0.456}, "Rate": {"value_type": "string", "value": "28%", "content": "28%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 1459.0}, {"x": 146.0, "y": 1458.0}, {"x": 146.0, "y": 1480.0}, {"x": 106.0, "y": 1480.0}]}], "spans": [{"offset": 923, "length": 3}], "confidence": 0.661}}, "content": "0.00\n0.00\nGST 28%\n0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 58.0, "y": 1383.0}, {"x": 415.0, "y": 1383.0}, {"x": 415.0, "y": 1481.0}, {"x": 58.0, "y": 1481.0}]}], "spans": [{"offset": 882, "length": 4}, {"offset": 914, "length": 17}], "confidence": 0.391}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1449.36, "symbol": null}, "content": "1449.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1321.0, "y": 1435.0}, {"x": 1389.0, "y": 1434.0}, {"x": 1390.0, "y": 1456.0}, {"x": 1322.0, "y": 1454.0}]}], "spans": [{"offset": 1348, "length": 7}], "confidence": 0.751}}, "content": "IGST\n1449.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 960.0, "y": 1431.0}, {"x": 1390.0, "y": 1434.0}, {"x": 1390.0, "y": 1457.0}, {"x": 960.0, "y": 1454.0}]}], "spans": [{"offset": 1343, "length": 12}], "confidence": 0.265}, {"value_type": "dictionary", "value": {"Rate": {"value_type": "string", "value": "18 %", "content": "18 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 1432.0}, {"x": 151.0, "y": 1434.0}, {"x": 150.0, "y": 1457.0}, {"x": 104.0, "y": 1455.0}]}], "spans": [{"offset": 909, "length": 4}], "confidence": 0.749}}, "content": "GST 18 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 1432.0}, {"x": 151.0, "y": 1434.0}, {"x": 150.0, "y": 1456.0}, {"x": 58.0, "y": 1454.0}]}], "spans": [{"offset": 905, "length": 8}], "confidence": 0.525}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1357.0, "y": 1383.0}, {"x": 1392.0, "y": 1383.0}, {"x": 1392.0, "y": 1402.0}, {"x": 1357.0, "y": 1402.0}]}], "spans": [{"offset": 1338, "length": 4}], "confidence": 0.594}, "TotalTax": {"value_type": "currency", "value": {"amount": 1449.36, "symbol": null}, "content": "1449.36", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1321.0, "y": 1435.0}, {"x": 1389.0, "y": 1434.0}, {"x": 1390.0, "y": 1456.0}, {"x": 1322.0, "y": 1454.0}]}], "spans": [{"offset": 1348, "length": 7}], "confidence": 0.48}, "VendorAddress": {"value_type": "address", "value": {"house_number": "34/2", "po_box": null, "road": "S.A.S. NAGAR", "city": "MOHALI", "state": "PUNJAB", "postal_code": null, "country_region": null, "street_address": "34/2 S.A.S. NAGAR"}, "content": "34/2,GODOWN AREA, VILL-PABHAT, ZIRAKPUR MC, TEHSIL-DERABASSI DISTT- S.A.S. NAGAR(MOHALI), PUNJAB", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 175.0, "y": 158.0}, {"x": 1246.0, "y": 158.0}, {"x": 1246.0, "y": 227.0}, {"x": 175.0, "y": 227.0}]}], "spans": [{"offset": 45, "length": 96}], "confidence": 0.865}, "VendorAddressRecipient": {"value_type": "string", "value": "PARV MARKETING INNOVATION", "content": "PARV MARKETING INNOVATION", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 327.0, "y": 109.0}, {"x": 1079.0, "y": 109.0}, {"x": 1079.0, "y": 154.0}, {"x": 327.0, "y": 154.0}]}], "spans": [{"offset": 19, "length": 25}], "confidence": 0.713}, "VendorName": {"value_type": "string", "value": "PARV MARKETING INNOVATION", "content": "PARV MARKETING INNOVATION", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 949.0, "y": 1555.0}, {"x": 1386.0, "y": 1555.0}, {"x": 1386.0, "y": 1586.0}, {"x": 949.0, "y": 1586.0}]}], "spans": [{"offset": 1402, "length": 25}], "confidence": 0.651}, "VendorTaxId": {"value_type": "string", "value": "03AAWFP7814P1ZE", "content": "03AAWFP7814P1ZE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 633.0, "y": 225.0}, {"x": 882.0, "y": 225.0}, {"x": 882.0, "y": 251.0}, {"x": 633.0, "y": 252.0}]}], "spans": [{"offset": 148, "length": 15}], "confidence": 0.652}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/146_jpg.rf.a750beeb41ab6c2ee29a0220093f5122.json b/Data/train/146_jpg.rf.a750beeb41ab6c2ee29a0220093f5122.json new file mode 100644 index 0000000000000000000000000000000000000000..3d31735b8ea66271227194ffb5ff410714573784 --- /dev/null +++ b/Data/train/146_jpg.rf.a750beeb41ab6c2ee29a0220093f5122.json @@ -0,0 +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": 595}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Delhi", "state": "Delhi", "postal_code": "40003", "country_region": null, "street_address": ""}, "content": "27, Dif Cly, Central Delhi, Delhi 40003", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 127.0, "y": 167.0}, {"x": 194.0, "y": 167.0}, {"x": 194.0, "y": 187.0}, {"x": 127.0, "y": 187.0}]}], "spans": [{"offset": 85, "length": 39}], "confidence": 0.988}, "BillingAddressRecipient": {"value_type": "string", "value": "Panchika Randhawa", "content": "Panchika Randhawa", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 128.0, "y": 157.0}, {"x": 198.0, "y": 157.0}, {"x": 198.0, "y": 165.0}, {"x": 128.0, "y": 165.0}]}], "spans": [{"offset": 67, "length": 17}], "confidence": 0.5}, "CustomerName": {"value_type": "string", "value": "Panchika Randhawa", "content": "Panchika Randhawa", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 128.0, "y": 157.0}, {"x": 198.0, "y": 157.0}, {"x": 198.0, "y": 165.0}, {"x": 128.0, "y": 165.0}]}], "spans": [{"offset": 67, "length": 17}], "confidence": 0.5}, "DueDate": {"value_type": "date", "value": "2019-04-26", "content": "26/04/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 190.0}, {"x": 512.0, "y": 189.0}, {"x": 512.0, "y": 198.0}, {"x": 474.0, "y": 198.0}]}], "spans": [{"offset": 251, "length": 10}], "confidence": 0.303}, "InvoiceDate": {"value_type": "date", "value": "2019-01-29", "content": "29/01/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 474.0, "y": 157.0}, {"x": 511.0, "y": 157.0}, {"x": 511.0, "y": 165.0}, {"x": 474.0, "y": 164.0}]}], "spans": [{"offset": 215, "length": 10}], "confidence": 0.428}, "InvoiceId": {"value_type": "string", "value": "IN-001", "content": "IN-001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 487.0, "y": 140.0}, {"x": 510.0, "y": 140.0}, {"x": 510.0, "y": 148.0}, {"x": 488.0, "y": 148.0}]}], "spans": [{"offset": 195, "length": 6}], "confidence": 0.3}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 12980.76, "symbol": "\u20b9"}, "content": "\u20b912,980.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 447.0, "y": 340.0}, {"x": 507.0, "y": 340.0}, {"x": 507.0, "y": 354.0}, {"x": 447.0, "y": 354.0}]}], "spans": [{"offset": 453, "length": 10}], "confidence": 0.281}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9999.0, "symbol": null}, "content": "9,999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 477.0, "y": 246.0}, {"x": 506.0, "y": 246.0}, {"x": 506.0, "y": 253.0}, {"x": 477.0, "y": 253.0}]}], "spans": [{"offset": 333, "length": 8}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "Frontend design restnachure", "content": "Frontend design restnachure", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 167.0, "y": 245.0}, {"x": 262.0, "y": 245.0}, {"x": 262.0, "y": 254.0}, {"x": 167.0, "y": 254.0}]}], "spans": [{"offset": 296, "length": 27}], "confidence": 0.002}, "UnitPrice": {"value_type": "currency", "value": {"amount": 9599.0, "symbol": null}, "content": "9,599.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 378.0, "y": 246.0}, {"x": 408.0, "y": 246.0}, {"x": 408.0, "y": 253.0}, {"x": 378.0, "y": 253.0}]}], "spans": [{"offset": 324, "length": 8}], "confidence": 0.002}}, "content": "Frontend design restnachure\n9,599.00\n9,999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 167.0, "y": 245.0}, {"x": 506.0, "y": 245.0}, {"x": 506.0, "y": 254.0}, {"x": 167.0, "y": 254.0}]}], "spans": [{"offset": 296, "length": 45}], "confidence": 0.04}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1950.0, "symbol": null}, "content": "1,950.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 263.0}, {"x": 507.0, "y": 263.0}, {"x": 507.0, "y": 271.0}, {"x": 478.0, "y": 271.0}]}], "spans": [{"offset": 371, "length": 8}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "Custom icon package", "content": "Custom icon package", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 263.0}, {"x": 242.0, "y": 263.0}, {"x": 242.0, "y": 272.0}, {"x": 168.0, "y": 272.0}]}], "spans": [{"offset": 344, "length": 19}], "confidence": 0.002}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 262.0}, {"x": 138.0, "y": 262.0}, {"x": 138.0, "y": 271.0}, {"x": 133.0, "y": 271.0}]}], "spans": [{"offset": 342, "length": 1}], "confidence": 0.002}, "UnitPrice": {"value_type": "currency", "value": {"amount": 975.0, "symbol": null}, "content": "975.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 385.0, "y": 263.0}, {"x": 408.0, "y": 263.0}, {"x": 408.0, "y": 271.0}, {"x": 385.0, "y": 271.0}]}], "spans": [{"offset": 364, "length": 6}], "confidence": 0.002}}, "content": "2\nCustom icon package\n975.00\n1,950.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 262.0}, {"x": 507.0, "y": 262.0}, {"x": 507.0, "y": 272.0}, {"x": 133.0, "y": 272.0}]}], "spans": [{"offset": 342, "length": 37}], "confidence": 0.05}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 297.0, "symbol": null}, "content": "297.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 281.0}, {"x": 507.0, "y": 280.0}, {"x": 507.0, "y": 288.0}, {"x": 484.0, "y": 288.0}]}], "spans": [{"offset": 405, "length": 6}], "confidence": 0.002}, "Description": {"value_type": "string", "value": "Gandhi mouse pad", "content": "Gandhi mouse pad", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 279.0}, {"x": 232.0, "y": 280.0}, {"x": 232.0, "y": 289.0}, {"x": 168.0, "y": 288.0}]}], "spans": [{"offset": 382, "length": 16}], "confidence": 0.002}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 280.0}, {"x": 137.0, "y": 280.0}, {"x": 137.0, "y": 287.0}, {"x": 133.0, "y": 287.0}]}], "spans": [{"offset": 380, "length": 1}], "confidence": 0.002}, "UnitPrice": {"value_type": "currency", "value": {"amount": 99.0, "symbol": null}, "content": "99.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 389.0, "y": 281.0}, {"x": 407.0, "y": 281.0}, {"x": 408.0, "y": 288.0}, {"x": 389.0, "y": 287.0}]}], "spans": [{"offset": 399, "length": 5}], "confidence": 0.002}}, "content": "3\nGandhi mouse pad\n99.00\n297.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 272.0}, {"x": 507.0, "y": 280.0}, {"x": 507.0, "y": 295.0}, {"x": 133.0, "y": 287.0}]}], "spans": [{"offset": 380, "length": 31}], "confidence": 0.065}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Payment is due within 15 days", "content": "Payment is due within 15 days", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 128.0, "y": 551.0}, {"x": 232.0, "y": 551.0}, {"x": 232.0, "y": 560.0}, {"x": 128.0, "y": 560.0}]}], "spans": [{"offset": 483, "length": 29}], "confidence": 0.031}, "PurchaseOrder": {"value_type": "string", "value": "2430/2019", "content": "2430/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 475.0, "y": 173.0}, {"x": 511.0, "y": 173.0}, {"x": 511.0, "y": 181.0}, {"x": 476.0, "y": 181.0}]}], "spans": [{"offset": 232, "length": 9}], "confidence": 0.284}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "254", "po_box": null, "road": "Abdul Rahman\nMumbai Bhar", "city": null, "state": null, "postal_code": "40009", "country_region": null, "street_address": "254 Abdul Rahman\nMumbai Bhar"}, "content": "254, Abdul Rahman\nMumbai Bhar 40009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 256.0, "y": 168.0}, {"x": 329.0, "y": 168.0}, {"x": 329.0, "y": 187.0}, {"x": 256.0, "y": 187.0}]}], "spans": [{"offset": 149, "length": 35}], "confidence": 0.973}, "ShippingAddressRecipient": {"value_type": "string", "value": "Kavindra Mannen", "content": "Kavindra Mannen", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 258.0, "y": 157.0}, {"x": 317.0, "y": 157.0}, {"x": 317.0, "y": 165.0}, {"x": 258.0, "y": 165.0}]}], "spans": [{"offset": 133, "length": 15}], "confidence": 0.521}, "SubTotal": {"value_type": "currency", "value": {"amount": 12246.0, "symbol": null}, "content": "12,246.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 303.0}, {"x": 506.0, "y": 303.0}, {"x": 506.0, "y": 311.0}, {"x": 473.0, "y": 311.0}]}], "spans": [{"offset": 421, "length": 9}], "confidence": 0.279}, "TotalTax": {"value_type": "currency", "value": {"amount": 734.76, "symbol": null}, "content": "734,76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 318.0}, {"x": 507.0, "y": 319.0}, {"x": 507.0, "y": 327.0}, {"x": 484.0, "y": 327.0}]}], "spans": [{"offset": 440, "length": 6}], "confidence": 0.311}, "VendorAddress": {"value_type": "address", "value": {"house_number": "77", "po_box": null, "road": null, "city": "DELHI", "state": "DELHI", "postal_code": "400077", "country_region": null, "street_address": "77"}, "content": "77 NAMRATA BLOG DELHI, DELHI 400077", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 281.0, "y": 90.0}, {"x": 358.0, "y": 90.0}, {"x": 358.0, "y": 116.0}, {"x": 281.0, "y": 116.0}]}], "spans": [{"offset": 23, "length": 35}], "confidence": 0.978}, "VendorAddressRecipient": {"value_type": "string", "value": "SAFFRON DESIGN", "content": "SAFFRON DESIGN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 276.0, "y": 71.0}, {"x": 359.0, "y": 71.0}, {"x": 359.0, "y": 86.0}, {"x": 276.0, "y": 86.0}]}], "spans": [{"offset": 8, "length": 14}], "confidence": 0.177}, "VendorName": {"value_type": "string", "value": "SAFFRON DESIGN", "content": "SAFFRON DESIGN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 276.0, "y": 71.0}, {"x": 359.0, "y": 71.0}, {"x": 359.0, "y": 86.0}, {"x": 276.0, "y": 86.0}]}], "spans": [{"offset": 8, "length": 14}], "confidence": 0.177}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/149_jpg.rf.3bbb561a570ed689a103f964e7b87148.json b/Data/train/149_jpg.rf.3bbb561a570ed689a103f964e7b87148.json new file mode 100644 index 0000000000000000000000000000000000000000..115ce0d59923cb6bf3f4ae48b5362d338152770d --- /dev/null +++ b/Data/train/149_jpg.rf.3bbb561a570ed689a103f964e7b87148.json @@ -0,0 +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": 50}], "fields": {"VendorName": {"value_type": "string", "value": "SHOPCLUES!", "content": "SHOPCLUES!", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 408.0, "y": 64.0}, {"x": 519.0, "y": 63.0}, {"x": 519.0, "y": 95.0}, {"x": 408.0, "y": 96.0}]}], "spans": [{"offset": 18, "length": 10}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/14_jpg.rf.0d6d8ed19ec5f292fed8baf5f1eadfb6.json b/Data/train/14_jpg.rf.0d6d8ed19ec5f292fed8baf5f1eadfb6.json new file mode 100644 index 0000000000000000000000000000000000000000..c09fba3e422c2565a02551218c14524d4a7b557d --- /dev/null +++ b/Data/train/14_jpg.rf.0d6d8ed19ec5f292fed8baf5f1eadfb6.json @@ -0,0 +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": 587}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "jacksonville", "state": "Florida", "postal_code": "32099", "country_region": "United States", "street_address": ""}, "content": "jacksonville jacksonville,\nFlorida, 32099\nUnited States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 33.0, "y": 363.0}, {"x": 147.0, "y": 363.0}, {"x": 147.0, "y": 410.0}, {"x": 33.0, "y": 410.0}]}], "spans": [{"offset": 206, "length": 26}, {"offset": 260, "length": 14}, {"offset": 290, "length": 13}], "confidence": 0.768}, "CustomerAddressRecipient": {"value_type": "string", "value": "John Doe", "content": "John Doe", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 34.0, "y": 346.0}, {"x": 76.0, "y": 347.0}, {"x": 76.0, "y": 360.0}, {"x": 34.0, "y": 359.0}]}], "spans": [{"offset": 188, "length": 8}], "confidence": 0.733}, "CustomerName": {"value_type": "string", "value": "John Doe", "content": "John Doe", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 34.0, "y": 346.0}, {"x": 76.0, "y": 347.0}, {"x": 76.0, "y": 360.0}, {"x": 34.0, "y": 359.0}]}], "spans": [{"offset": 188, "length": 8}], "confidence": 0.733}, "InvoiceId": {"value_type": "string", "value": "100000091", "content": "100000091", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 78.0, "y": 256.0}, {"x": 124.0, "y": 255.0}, {"x": 124.0, "y": 268.0}, {"x": 78.0, "y": 268.0}]}], "spans": [{"offset": 117, "length": 9}], "confidence": 0.862}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 530.0, "symbol": null}, "content": "530.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 604.0, "y": 591.0}, {"x": 632.0, "y": 592.0}, {"x": 633.0, "y": 601.0}, {"x": 604.0, "y": 601.0}]}], "spans": [{"offset": 517, "length": 6}], "confidence": 0.983}, "Description": {"value_type": "string", "value": "Blue Coat", "content": "Blue Coat", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 33.0, "y": 590.0}, {"x": 79.0, "y": 590.0}, {"x": 79.0, "y": 602.0}, {"x": 33.0, "y": 602.0}]}], "spans": [{"offset": 482, "length": 9}], "confidence": 0.963}, "ProductCode": {"value_type": "string", "value": "Blue Coat", "content": "Blue Coat", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 278.0, "y": 590.0}, {"x": 324.0, "y": 591.0}, {"x": 324.0, "y": 603.0}, {"x": 278.0, "y": 602.0}]}], "spans": [{"offset": 492, "length": 9}], "confidence": 0.966}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 481.0, "y": 591.0}, {"x": 486.0, "y": 591.0}, {"x": 487.0, "y": 600.0}, {"x": 482.0, "y": 601.0}]}], "spans": [{"offset": 509, "length": 1}], "confidence": 0.984}, "Tax": {"value_type": "currency", "value": {"amount": 50.0, "symbol": null}, "content": "50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 530.0, "y": 591.0}, {"x": 554.0, "y": 591.0}, {"x": 554.0, "y": 601.0}, {"x": 530.0, "y": 600.0}]}], "spans": [{"offset": 511, "length": 5}], "confidence": 0.983}, "UnitPrice": {"value_type": "currency", "value": {"amount": 590.0, "symbol": null}, "content": "590.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 412.0, "y": 592.0}, {"x": 440.0, "y": 592.0}, {"x": 440.0, "y": 602.0}, {"x": 412.0, "y": 601.0}]}], "spans": [{"offset": 502, "length": 6}], "confidence": 0.983}}, "content": "Blue Coat\nBlue Coat\n590.00\n1\n50.00\n530.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 33.0, "y": 581.0}, {"x": 633.0, "y": 592.0}, {"x": 633.0, "y": 613.0}, {"x": 33.0, "y": 602.0}]}], "spans": [{"offset": 482, "length": 41}], "confidence": 0.987}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1400.0, "symbol": "$"}, "content": "$1,400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 590.0, "y": 613.0}, {"x": 633.0, "y": 613.0}, {"x": 632.0, "y": 624.0}, {"x": 591.0, "y": 624.0}]}], "spans": [{"offset": 578, "length": 9}], "confidence": 0.984}, "Description": {"value_type": "string", "value": "Ladies jeans blue", "content": "Ladies jeans blue", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 33.0, "y": 612.0}, {"x": 112.0, "y": 612.0}, {"x": 112.0, "y": 625.0}, {"x": 33.0, "y": 625.0}]}], "spans": [{"offset": 524, "length": 17}], "confidence": 0.461}, "ProductCode": {"value_type": "string", "value": "ladies jeans blue", "content": "ladies jeans blue", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 248.0, "y": 612.0}, {"x": 323.0, "y": 612.0}, {"x": 323.0, "y": 625.0}, {"x": 248.0, "y": 625.0}]}], "spans": [{"offset": 542, "length": 17}], "confidence": 0.936}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 476.0, "y": 613.0}, {"x": 486.0, "y": 613.0}, {"x": 486.0, "y": 622.0}, {"x": 476.0, "y": 622.0}]}], "spans": [{"offset": 568, "length": 2}], "confidence": 0.984}, "Tax": {"value_type": "currency", "value": {"amount": 5.0, "symbol": null}, "content": "5 ....", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 531.0, "y": 613.0}, {"x": 553.0, "y": 614.0}, {"x": 553.0, "y": 623.0}, {"x": 530.0, "y": 622.0}]}], "spans": [{"offset": 571, "length": 6}], "confidence": 0.877}, "UnitPrice": {"value_type": "currency", "value": {"amount": 140.0, "symbol": "$"}, "content": "$140.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 407.0, "y": 613.0}, {"x": 441.0, "y": 613.0}, {"x": 441.0, "y": 624.0}, {"x": 407.0, "y": 624.0}]}], "spans": [{"offset": 560, "length": 7}], "confidence": 0.984}}, "content": "Ladies jeans blue\nladies jeans blue\n$140.00\n10\n5 ....\n$1,400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 33.0, "y": 612.0}, {"x": 633.0, "y": 612.0}, {"x": 633.0, "y": 625.0}, {"x": 33.0, "y": 625.0}]}], "spans": [{"offset": 524, "length": 63}], "confidence": 0.992}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": "Florida", "postal_code": "32099", "country_region": "United States", "street_address": ""}, "content": "Florida, 32099\nUnited States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 316.0, "y": 380.0}, {"x": 379.0, "y": 380.0}, {"x": 379.0, "y": 410.0}, {"x": 316.0, "y": 410.0}]}], "spans": [{"offset": 275, "length": 14}, {"offset": 304, "length": 13}], "confidence": 0.739}, "ShippingAddressRecipient": {"value_type": "string", "value": "John Doe\njacksonville jacksonville,", "content": "John Doe\njacksonville jacksonville,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 315.0, "y": 347.0}, {"x": 429.0, "y": 347.0}, {"x": 429.0, "y": 377.0}, {"x": 315.0, "y": 377.0}]}], "spans": [{"offset": 197, "length": 8}, {"offset": 233, "length": 26}], "confidence": 0.713}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": ""}, "content": "A-67, Noida, Indta Vat-xyz & Tax-xyz", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 547.0, "y": 31.0}, {"x": 634.0, "y": 31.0}, {"x": 634.0, "y": 55.0}, {"x": 547.0, "y": 55.0}]}], "spans": [{"offset": 32, "length": 36}], "confidence": 0.416}, "VendorAddressRecipient": {"value_type": "string", "value": "Webkul Software Private Limited", "content": "Webkul Software Private Limited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 17.0}, {"x": 633.0, "y": 17.0}, {"x": 633.0, "y": 31.0}, {"x": 482.0, "y": 31.0}]}], "spans": [{"offset": 0, "length": 31}], "confidence": 0.744}, "VendorName": {"value_type": "string", "value": "WEBKUL", "content": "WEBKUL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 54.0, "y": 171.0}, {"x": 217.0, "y": 171.0}, {"x": 217.0, "y": 207.0}, {"x": 54.0, "y": 208.0}]}], "spans": [{"offset": 100, "length": 6}], "confidence": 0.87}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/151_jpg.rf.5f29d49c42fdcd2c1a794ee931af3f98.json b/Data/train/151_jpg.rf.5f29d49c42fdcd2c1a794ee931af3f98.json new file mode 100644 index 0000000000000000000000000000000000000000..50603806fb30b78488b24a7df67abcb1e69ae1b9 --- /dev/null +++ b/Data/train/151_jpg.rf.5f29d49c42fdcd2c1a794ee931af3f98.json @@ -0,0 +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": 1106}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 91343.0, "symbol": "Rs"}, "content": "Rs. 91,343.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 500.0, "y": 478.0}, {"x": 556.0, "y": 480.0}, {"x": 556.0, "y": 492.0}, {"x": 500.0, "y": 489.0}]}], "spans": [{"offset": 790, "length": 13}], "confidence": 0.709}, "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": 88.0, "y": 200.0}, {"x": 183.0, "y": 200.0}, {"x": 183.0, "y": 225.0}, {"x": 88.0, "y": 225.0}]}], "spans": [{"offset": 92, "length": 37}], "confidence": 0.907}, "BillingAddressRecipient": {"value_type": "string", "value": "TechGuruPlus", "content": "TechGuruPlus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 89.0, "y": 188.0}, {"x": 150.0, "y": 189.0}, {"x": 150.0, "y": 199.0}, {"x": 89.0, "y": 198.0}]}], "spans": [{"offset": 79, "length": 12}], "confidence": 0.952}, "CustomerName": {"value_type": "string", "value": "TechGuruPlus", "content": "TechGuruPlus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 89.0, "y": 188.0}, {"x": 150.0, "y": 189.0}, {"x": 150.0, "y": 199.0}, {"x": 89.0, "y": 198.0}]}], "spans": [{"offset": 79, "length": 12}], "confidence": 0.952}, "CustomerTaxId": {"value_type": "string", "value": "6969696969696969", "content": "6969696969696969", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 357.0, "y": 240.0}, {"x": 436.0, "y": 240.0}, {"x": 436.0, "y": 249.0}, {"x": 357.0, "y": 249.0}]}], "spans": [{"offset": 321, "length": 16}], "confidence": 0.651}, "DueDate": {"value_type": "date", "value": "2021-03-20", "content": "20-03-2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 350.0, "y": 120.0}, {"x": 396.0, "y": 120.0}, {"x": 396.0, "y": 131.0}, {"x": 350.0, "y": 131.0}]}], "spans": [{"offset": 224, "length": 10}], "confidence": 0.951}, "InvoiceDate": {"value_type": "date", "value": "2021-03-13", "content": "13-03-2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 349.0, "y": 107.0}, {"x": 397.0, "y": 107.0}, {"x": 397.0, "y": 118.0}, {"x": 350.0, "y": 118.0}]}], "spans": [{"offset": 204, "length": 10}], "confidence": 0.952}, "InvoiceId": {"value_type": "string", "value": "2154", "content": "2154", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 377.0, "y": 94.0}, {"x": 395.0, "y": 94.0}, {"x": 395.0, "y": 105.0}, {"x": 377.0, "y": 105.0}]}], "spans": [{"offset": 186, "length": 4}], "confidence": 0.953}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 91343.0, "symbol": "Rs"}, "content": "Rs. 91,343.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 500.0, "y": 478.0}, {"x": 556.0, "y": 480.0}, {"x": 556.0, "y": 492.0}, {"x": 500.0, "y": 489.0}]}], "spans": [{"offset": 790, "length": 13}], "confidence": 0.709}, "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": 505.0, "y": 277.0}, {"x": 556.0, "y": 279.0}, {"x": 556.0, "y": 290.0}, {"x": 505.0, "y": 288.0}]}], "spans": [{"offset": 414, "length": 12}], "confidence": 0.93}, "Description": {"value_type": "string", "value": "ITEM NAME 1", "content": "ITEM NAME 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 279.0}, {"x": 248.0, "y": 279.0}, {"x": 248.0, "y": 289.0}, {"x": 191.0, "y": 289.0}]}], "spans": [{"offset": 383, "length": 11}], "confidence": 0.928}, "ProductCode": {"value_type": "string", "value": "2516", "content": "2516", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 333.0, "y": 280.0}, {"x": 352.0, "y": 280.0}, {"x": 352.0, "y": 289.0}, {"x": 333.0, "y": 289.0}]}], "spans": [{"offset": 395, "length": 4}], "confidence": 0.711}, "Quantity": {"value_type": "float", "value": 15.0, "content": "15", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 377.0, "y": 279.0}, {"x": 387.0, "y": 279.0}, {"x": 387.0, "y": 288.0}, {"x": 377.0, "y": 288.0}]}], "spans": [{"offset": 400, "length": 2}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 125.0, "symbol": "Rs"}, "content": "Rs. 125.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 409.0, "y": 279.0}, {"x": 452.0, "y": 279.0}, {"x": 452.0, "y": 289.0}, {"x": 409.0, "y": 289.0}]}], "spans": [{"offset": 403, "length": 10}], "confidence": 0.929}}, "content": "1\nITEM NAME 1\n2516\n15\nRs. 125.00\nRs. 1,875.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 101.0, "y": 279.0}, {"x": 556.0, "y": 279.0}, {"x": 556.0, "y": 289.0}, {"x": 101.0, "y": 289.0}]}], "spans": [{"offset": 381, "length": 45}], "confidence": 0.884}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 6123.52, "symbol": "Rs"}, "content": "Rs. 6,123.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 506.0, "y": 291.0}, {"x": 557.0, "y": 293.0}, {"x": 557.0, "y": 305.0}, {"x": 506.0, "y": 302.0}]}], "spans": [{"offset": 460, "length": 12}], "confidence": 0.929}, "Description": {"value_type": "string", "value": "ITEM NAME 2", "content": "ITEM NAME 2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 292.0}, {"x": 249.0, "y": 292.0}, {"x": 249.0, "y": 303.0}, {"x": 191.0, "y": 303.0}]}], "spans": [{"offset": 429, "length": 11}], "confidence": 0.928}, "ProductCode": {"value_type": "string", "value": "2541", "content": "2541", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 333.0, "y": 293.0}, {"x": 353.0, "y": 293.0}, {"x": 353.0, "y": 302.0}, {"x": 333.0, "y": 302.0}]}], "spans": [{"offset": 441, "length": 4}], "confidence": 0.719}, "Quantity": {"value_type": "float", "value": 26.0, "content": "26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 377.0, "y": 293.0}, {"x": 387.0, "y": 293.0}, {"x": 387.0, "y": 302.0}, {"x": 377.0, "y": 302.0}]}], "spans": [{"offset": 446, "length": 2}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 235.52, "symbol": "Rs"}, "content": "Rs. 235.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 409.0, "y": 293.0}, {"x": 452.0, "y": 293.0}, {"x": 452.0, "y": 302.0}, {"x": 409.0, "y": 302.0}]}], "spans": [{"offset": 449, "length": 10}], "confidence": 0.929}}, "content": "2\nITEM NAME 2\n2541\n26\nRs. 235.52\nRs. 6,123.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 101.0, "y": 292.0}, {"x": 557.0, "y": 292.0}, {"x": 557.0, "y": 303.0}, {"x": 101.0, "y": 303.0}]}], "spans": [{"offset": 427, "length": 45}], "confidence": 0.884}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 35532.0, "symbol": "Rs"}, "content": "Rs. 35,532.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 500.0, "y": 306.0}, {"x": 556.0, "y": 306.0}, {"x": 556.0, "y": 316.0}, {"x": 500.0, "y": 316.0}]}], "spans": [{"offset": 506, "length": 13}], "confidence": 0.932}, "Description": {"value_type": "string", "value": "ITEM NAME 3", "content": "ITEM NAME 3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 306.0}, {"x": 248.0, "y": 306.0}, {"x": 248.0, "y": 317.0}, {"x": 191.0, "y": 317.0}]}], "spans": [{"offset": 475, "length": 11}], "confidence": 0.929}, "ProductCode": {"value_type": "string", "value": "4944", "content": "4944", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 333.0, "y": 307.0}, {"x": 353.0, "y": 307.0}, {"x": 352.0, "y": 316.0}, {"x": 332.0, "y": 316.0}]}], "spans": [{"offset": 487, "length": 4}], "confidence": 0.638}, "Quantity": {"value_type": "float", "value": 54.0, "content": "54", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 376.0, "y": 306.0}, {"x": 386.0, "y": 306.0}, {"x": 386.0, "y": 315.0}, {"x": 376.0, "y": 315.0}]}], "spans": [{"offset": 492, "length": 2}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 658.0, "symbol": "Rs"}, "content": "Rs. 658.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 409.0, "y": 306.0}, {"x": 452.0, "y": 307.0}, {"x": 452.0, "y": 317.0}, {"x": 409.0, "y": 316.0}]}], "spans": [{"offset": 495, "length": 10}], "confidence": 0.929}}, "content": "3\nITEM NAME 3\n4944\n54\nRs. 658.00\nRs. 35,532.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 306.0}, {"x": 556.0, "y": 306.0}, {"x": 556.0, "y": 317.0}, {"x": 100.0, "y": 317.0}]}], "spans": [{"offset": 473, "length": 46}], "confidence": 0.88}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 28130.0, "symbol": "Rs"}, "content": "Rs. 28,130.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 320.0}, {"x": 556.0, "y": 320.0}, {"x": 556.0, "y": 330.0}, {"x": 501.0, "y": 330.0}]}], "spans": [{"offset": 553, "length": 13}], "confidence": 0.929}, "Description": {"value_type": "string", "value": "ITEM NAME 4", "content": "ITEM NAME 4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 320.0}, {"x": 248.0, "y": 320.0}, {"x": 248.0, "y": 331.0}, {"x": 191.0, "y": 331.0}]}], "spans": [{"offset": 522, "length": 11}], "confidence": 0.928}, "ProductCode": {"value_type": "string", "value": "2546", "content": "2546", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 333.0, "y": 320.0}, {"x": 353.0, "y": 320.0}, {"x": 353.0, "y": 330.0}, {"x": 333.0, "y": 330.0}]}], "spans": [{"offset": 534, "length": 4}], "confidence": 0.638}, "Quantity": {"value_type": "float", "value": 58.0, "content": "58", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 376.0, "y": 321.0}, {"x": 387.0, "y": 321.0}, {"x": 387.0, "y": 329.0}, {"x": 376.0, "y": 329.0}]}], "spans": [{"offset": 539, "length": 2}], "confidence": 0.93}, "UnitPrice": {"value_type": "currency", "value": {"amount": 485.0, "symbol": "Rs"}, "content": "Rs. 485.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 409.0, "y": 320.0}, {"x": 451.0, "y": 321.0}, {"x": 451.0, "y": 330.0}, {"x": 409.0, "y": 329.0}]}], "spans": [{"offset": 542, "length": 10}], "confidence": 0.929}}, "content": "4\nITEM NAME 4\n2546\n58\nRs. 485.00\nRs. 28,130.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 101.0, "y": 320.0}, {"x": 556.0, "y": 320.0}, {"x": 556.0, "y": 331.0}, {"x": 101.0, "y": 331.0}]}], "spans": [{"offset": 520, "length": 46}], "confidence": 0.884}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5375.0, "symbol": "Rs"}, "content": "Rs. 5,375.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 506.0, "y": 334.0}, {"x": 556.0, "y": 334.0}, {"x": 556.0, "y": 343.0}, {"x": 506.0, "y": 343.0}]}], "spans": [{"offset": 600, "length": 12}], "confidence": 0.932}, "Description": {"value_type": "string", "value": "ITEM NAME 5", "content": "ITEM NAME 5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 190.0, "y": 333.0}, {"x": 248.0, "y": 333.0}, {"x": 248.0, "y": 344.0}, {"x": 190.0, "y": 344.0}]}], "spans": [{"offset": 569, "length": 11}], "confidence": 0.928}, "ProductCode": {"value_type": "string", "value": "8151", "content": "8151", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 334.0}, {"x": 351.0, "y": 334.0}, {"x": 351.0, "y": 344.0}, {"x": 332.0, "y": 343.0}]}], "spans": [{"offset": 581, "length": 4}], "confidence": 0.71}, "Quantity": {"value_type": "float", "value": 25.0, "content": "25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 377.0, "y": 334.0}, {"x": 387.0, "y": 334.0}, {"x": 387.0, "y": 343.0}, {"x": 377.0, "y": 343.0}]}], "spans": [{"offset": 586, "length": 2}], "confidence": 0.929}, "UnitPrice": {"value_type": "currency", "value": {"amount": 215.0, "symbol": "Rs"}, "content": "Rs. 215.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 409.0, "y": 334.0}, {"x": 452.0, "y": 334.0}, {"x": 452.0, "y": 343.0}, {"x": 409.0, "y": 343.0}]}], "spans": [{"offset": 589, "length": 10}], "confidence": 0.929}}, "content": "5\nITEM NAME 5\n8151\n25\nRs. 215.00\nRs. 5,375.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 333.0}, {"x": 556.0, "y": 333.0}, {"x": 556.0, "y": 344.0}, {"x": 100.0, "y": 344.0}]}], "spans": [{"offset": 567, "length": 45}], "confidence": 0.881}], "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.\nUttar Pradesh", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 321.0, "y": 200.0}, {"x": 417.0, "y": 200.0}, {"x": 417.0, "y": 225.0}, {"x": 321.0, "y": 225.0}]}], "spans": [{"offset": 256, "length": 37}], "confidence": 0.909}, "ShippingAddressRecipient": {"value_type": "string", "value": "TechGuruPlus", "content": "TechGuruPlus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 322.0, "y": 188.0}, {"x": 383.0, "y": 188.0}, {"x": 383.0, "y": 199.0}, {"x": 322.0, "y": 198.0}]}], "spans": [{"offset": 243, "length": 12}], "confidence": 0.951}, "SubTotal": {"value_type": "currency", "value": {"amount": 77035.52, "symbol": "Rs"}, "content": "Rs. 77,035.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 500.0, "y": 402.0}, {"x": 557.0, "y": 402.0}, {"x": 557.0, "y": 412.0}, {"x": 500.0, "y": 412.0}]}], "spans": [{"offset": 627, "length": 13}], "confidence": 0.393}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 1078.5, "symbol": "Rs"}, "content": "Rs. 1,078.50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 506.0, "y": 414.0}, {"x": 556.0, "y": 415.0}, {"x": 556.0, "y": 425.0}, {"x": 506.0, "y": 424.0}]}], "spans": [{"offset": 655, "length": 12}], "confidence": 0.822}, "TotalTax": {"value_type": "currency", "value": {"amount": 13866.39, "symbol": "Rs"}, "content": "Rs. 13,866.39", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 500.0, "y": 454.0}, {"x": 557.0, "y": 454.0}, {"x": 557.0, "y": 464.0}, {"x": 500.0, "y": 464.0}]}], "spans": [{"offset": 744, "length": 13}], "confidence": 0.931}, "VendorName": {"value_type": "string", "value": "Evol\nTech", "content": "Evol Tech", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 405.0, "y": 24.0}, {"x": 459.0, "y": 25.0}, {"x": 458.0, "y": 84.0}, {"x": 404.0, "y": 83.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": 0.726}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/1531_jpg.rf.118d9366068eb40b75843a721cd995ab.json b/Data/train/1531_jpg.rf.118d9366068eb40b75843a721cd995ab.json new file mode 100644 index 0000000000000000000000000000000000000000..7aadfe78fd58456d49d32418feb4204c3a3ce2dd --- /dev/null +++ b/Data/train/1531_jpg.rf.118d9366068eb40b75843a721cd995ab.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1447.0, "y": 0.0}, {"x": 1447.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 901}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Bijapur", "state": "Karnataka", "postal_code": null, "country_region": null, "street_address": ""}, "content": "Bijapur\nBijapur, Karnataka", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 933.0, "y": 459.0}, {"x": 1131.0, "y": 459.0}, {"x": 1131.0, "y": 513.0}, {"x": 933.0, "y": 513.0}]}], "spans": [{"offset": 506, "length": 7}, {"offset": 523, "length": 18}], "confidence": 0.53}, "CustomerAddressRecipient": {"value_type": "string", "value": "Vinod", "content": "Vinod", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 949.0, "y": 372.0}, {"x": 997.0, "y": 371.0}, {"x": 997.0, "y": 393.0}, {"x": 949.0, "y": 393.0}]}], "spans": [{"offset": 446, "length": 5}], "confidence": 0.296}, "CustomerName": {"value_type": "string", "value": "Vinod", "content": "Vinod", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 949.0, "y": 372.0}, {"x": 997.0, "y": 371.0}, {"x": 997.0, "y": 393.0}, {"x": 949.0, "y": 393.0}]}], "spans": [{"offset": 446, "length": 5}], "confidence": 0.296}, "CustomerTaxId": {"value_type": "string", "value": "29AAECH7977E1Z3", "content": "29AAECH7977E1Z3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 972.0, "y": 517.0}, {"x": 1148.0, "y": 516.0}, {"x": 1148.0, "y": 540.0}, {"x": 973.0, "y": 540.0}]}], "spans": [{"offset": 551, "length": 15}], "confidence": 0.829}, "InvoiceDate": {"value_type": "date", "value": "2019-09-16", "content": "16, September 2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1143.0, "y": 186.0}, {"x": 1355.0, "y": 186.0}, {"x": 1355.0, "y": 217.0}, {"x": 1143.0, "y": 217.0}]}], "spans": [{"offset": 386, "length": 18}], "confidence": 0.909}, "InvoiceId": {"value_type": "string", "value": "957669", "content": "957669", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1290.0, "y": 222.0}, {"x": 1354.0, "y": 222.0}, {"x": 1354.0, "y": 244.0}, {"x": 1290.0, "y": 243.0}]}], "spans": [{"offset": 415, "length": 6}], "confidence": 0.435}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 3068.0, "symbol": "Rs"}, "content": "Rs. 3068.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1226.0, "y": 1058.0}, {"x": 1331.0, "y": 1058.0}, {"x": 1331.0, "y": 1077.0}, {"x": 1226.0, "y": 1077.0}]}], "spans": [{"offset": 798, "length": 11}], "confidence": 0.894}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3000.0, "symbol": null}, "content": "3000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1257.0, "y": 824.0}, {"x": 1326.0, "y": 825.0}, {"x": 1326.0, "y": 845.0}, {"x": 1257.0, "y": 844.0}]}], "spans": [{"offset": 668, "length": 7}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "Professional Fees", "content": "Professional Fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 822.0}, {"x": 325.0, "y": 824.0}, {"x": 325.0, "y": 847.0}, {"x": 170.0, "y": 845.0}]}], "spans": [{"offset": 640, "length": 17}], "confidence": 0.765}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 900.0, "y": 824.0}, {"x": 910.0, "y": 824.0}, {"x": 910.0, "y": 844.0}, {"x": 900.0, "y": 844.0}]}], "spans": [{"offset": 658, "length": 1}], "confidence": 0.903}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1500.0, "symbol": null}, "content": "1500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1049.0, "y": 825.0}, {"x": 1118.0, "y": 824.0}, {"x": 1118.0, "y": 846.0}, {"x": 1050.0, "y": 845.0}]}], "spans": [{"offset": 660, "length": 7}], "confidence": 0.905}}, "content": "Professional Fees\n2\n1500.00\n3000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 819.0}, {"x": 1326.0, "y": 824.0}, {"x": 1326.0, "y": 851.0}, {"x": 170.0, "y": 845.0}]}], "spans": [{"offset": 640, "length": 35}], "confidence": 0.827}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 400.0, "symbol": null}, "content": "400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1272.0, "y": 854.0}, {"x": 1330.0, "y": 854.0}, {"x": 1330.0, "y": 873.0}, {"x": 1272.0, "y": 873.0}]}], "spans": [{"offset": 706, "length": 6}], "confidence": 0.894}, "Description": {"value_type": "string", "value": "Discount on Professional Fees", "content": "Discount on Professional Fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 169.0, "y": 852.0}, {"x": 430.0, "y": 852.0}, {"x": 430.0, "y": 875.0}, {"x": 169.0, "y": 875.0}]}], "spans": [{"offset": 676, "length": 29}], "confidence": 0.741}}, "content": "Discount on Professional Fees\n400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 169.0, "y": 852.0}, {"x": 1330.0, "y": 852.0}, {"x": 1330.0, "y": 875.0}, {"x": 169.0, "y": 875.0}]}], "spans": [{"offset": 676, "length": 36}], "confidence": 0.835}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 3068.0, "symbol": null}, "content": "3068.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1262.0, "y": 915.0}, {"x": 1331.0, "y": 915.0}, {"x": 1331.0, "y": 935.0}, {"x": 1262.0, "y": 934.0}]}], "spans": [{"offset": 739, "length": 7}], "confidence": 0.378}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 400.0, "symbol": null}, "content": "400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1272.0, "y": 854.0}, {"x": 1330.0, "y": 854.0}, {"x": 1330.0, "y": 873.0}, {"x": 1272.0, "y": 873.0}]}], "spans": [{"offset": 706, "length": 6}], "confidence": 0.375}, "TotalTax": {"value_type": "currency", "value": {"amount": 468.0, "symbol": null}, "content": "468.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1246.0, "y": 883.0}, {"x": 1304.0, "y": 882.0}, {"x": 1304.0, "y": 903.0}, {"x": 1246.0, "y": 901.0}]}], "spans": [{"offset": 726, "length": 6}], "confidence": 0.778}, "VendorAddress": {"value_type": "address", "value": {"house_number": "102", "po_box": null, "road": "anna nagar east chennai 600", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "102 anna nagar east chennai 600"}, "content": "F-97, NEWRY SHREYA APARTMENTS, ANNA NAGAR EAST, CHENNAI - 600 102", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 91.0, "y": 1198.0}, {"x": 805.0, "y": 1198.0}, {"x": 805.0, "y": 1225.0}, {"x": 91.0, "y": 1225.0}]}], "spans": [{"offset": 836, "length": 65}], "confidence": 0.845}, "VendorAddressRecipient": {"value_type": "string", "value": "UBER9 BUSINESS PROCESS SERVICES PRIVATE LIMITED", "content": "UBER9 BUSINESS PROCESS SERVICES PRIVATE LIMITED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 121.0, "y": 329.0}, {"x": 610.0, "y": 329.0}, {"x": 610.0, "y": 352.0}, {"x": 121.0, "y": 352.0}]}], "spans": [{"offset": 61, "length": 47}], "confidence": 0.444}, "VendorName": {"value_type": "string", "value": "VAKIL SEARCH", "content": "VAKIL SEARCH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 102.0, "y": 189.0}, {"x": 405.0, "y": 189.0}, {"x": 405.0, "y": 232.0}, {"x": 102.0, "y": 232.0}]}], "spans": [{"offset": 28, "length": 12}], "confidence": 0.932}, "VendorTaxId": {"value_type": "string", "value": "33AABCU7650C1ZM", "content": "33AABCU7650C1ZM", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 213.0, "y": 580.0}, {"x": 387.0, "y": 581.0}, {"x": 387.0, "y": 603.0}, {"x": 213.0, "y": 603.0}]}], "spans": [{"offset": 333, "length": 15}], "confidence": 0.569}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/1531_jpg.rf.d5c8e6f9d17be9a480bc6d316d05b477.json b/Data/train/1531_jpg.rf.d5c8e6f9d17be9a480bc6d316d05b477.json new file mode 100644 index 0000000000000000000000000000000000000000..67f8d8cfb100daba557661e38bdc92d8085925fc --- /dev/null +++ b/Data/train/1531_jpg.rf.d5c8e6f9d17be9a480bc6d316d05b477.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1447.0, "y": 0.0}, {"x": 1447.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 901}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Bijapur", "state": "Karnataka", "postal_code": null, "country_region": null, "street_address": ""}, "content": "Bijapur\nBijapur, Karnataka", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 932.0, "y": 456.0}, {"x": 1132.0, "y": 456.0}, {"x": 1132.0, "y": 513.0}, {"x": 932.0, "y": 513.0}]}], "spans": [{"offset": 506, "length": 7}, {"offset": 523, "length": 18}], "confidence": 0.542}, "CustomerAddressRecipient": {"value_type": "string", "value": "Vinod", "content": "Vinod", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 949.0, "y": 372.0}, {"x": 999.0, "y": 371.0}, {"x": 998.0, "y": 393.0}, {"x": 949.0, "y": 393.0}]}], "spans": [{"offset": 446, "length": 5}], "confidence": 0.299}, "CustomerName": {"value_type": "string", "value": "Vinod", "content": "Vinod", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 949.0, "y": 372.0}, {"x": 999.0, "y": 371.0}, {"x": 998.0, "y": 393.0}, {"x": 949.0, "y": 393.0}]}], "spans": [{"offset": 446, "length": 5}], "confidence": 0.299}, "CustomerTaxId": {"value_type": "string", "value": "29AAECH7977E1Z3", "content": "29AAECH7977E1Z3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 973.0, "y": 517.0}, {"x": 1147.0, "y": 516.0}, {"x": 1147.0, "y": 540.0}, {"x": 973.0, "y": 540.0}]}], "spans": [{"offset": 551, "length": 15}], "confidence": 0.829}, "InvoiceDate": {"value_type": "date", "value": "2019-09-16", "content": "16, September 2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1143.0, "y": 186.0}, {"x": 1356.0, "y": 186.0}, {"x": 1356.0, "y": 217.0}, {"x": 1143.0, "y": 217.0}]}], "spans": [{"offset": 386, "length": 18}], "confidence": 0.909}, "InvoiceId": {"value_type": "string", "value": "957669", "content": "957669", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1291.0, "y": 222.0}, {"x": 1355.0, "y": 222.0}, {"x": 1355.0, "y": 244.0}, {"x": 1291.0, "y": 243.0}]}], "spans": [{"offset": 415, "length": 6}], "confidence": 0.432}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 3068.0, "symbol": "Rs"}, "content": "Rs. 3068.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1226.0, "y": 1058.0}, {"x": 1331.0, "y": 1058.0}, {"x": 1331.0, "y": 1077.0}, {"x": 1226.0, "y": 1077.0}]}], "spans": [{"offset": 798, "length": 11}], "confidence": 0.893}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3000.0, "symbol": null}, "content": "3000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1257.0, "y": 824.0}, {"x": 1326.0, "y": 825.0}, {"x": 1326.0, "y": 845.0}, {"x": 1258.0, "y": 844.0}]}], "spans": [{"offset": 668, "length": 7}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "Professional Fees", "content": "Professional Fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 169.0, "y": 823.0}, {"x": 323.0, "y": 824.0}, {"x": 323.0, "y": 846.0}, {"x": 169.0, "y": 845.0}]}], "spans": [{"offset": 640, "length": 17}], "confidence": 0.765}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 899.0, "y": 823.0}, {"x": 910.0, "y": 823.0}, {"x": 911.0, "y": 843.0}, {"x": 900.0, "y": 844.0}]}], "spans": [{"offset": 658, "length": 1}], "confidence": 0.902}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1500.0, "symbol": null}, "content": "1500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1050.0, "y": 824.0}, {"x": 1118.0, "y": 824.0}, {"x": 1118.0, "y": 846.0}, {"x": 1051.0, "y": 845.0}]}], "spans": [{"offset": 660, "length": 7}], "confidence": 0.905}}, "content": "Professional Fees\n2\n1500.00\n3000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 169.0, "y": 816.0}, {"x": 1326.0, "y": 825.0}, {"x": 1326.0, "y": 854.0}, {"x": 169.0, "y": 845.0}]}], "spans": [{"offset": 640, "length": 35}], "confidence": 0.825}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 400.0, "symbol": null}, "content": "400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1272.0, "y": 855.0}, {"x": 1330.0, "y": 854.0}, {"x": 1330.0, "y": 874.0}, {"x": 1273.0, "y": 873.0}]}], "spans": [{"offset": 706, "length": 6}], "confidence": 0.892}, "Description": {"value_type": "string", "value": "Discount on Professional Fees", "content": "Discount on Professional Fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 169.0, "y": 852.0}, {"x": 430.0, "y": 852.0}, {"x": 430.0, "y": 875.0}, {"x": 169.0, "y": 875.0}]}], "spans": [{"offset": 676, "length": 29}], "confidence": 0.741}}, "content": "Discount on Professional Fees\n400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 169.0, "y": 852.0}, {"x": 1330.0, "y": 852.0}, {"x": 1330.0, "y": 875.0}, {"x": 169.0, "y": 875.0}]}], "spans": [{"offset": 676, "length": 36}], "confidence": 0.833}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 3068.0, "symbol": null}, "content": "3068.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1262.0, "y": 915.0}, {"x": 1330.0, "y": 915.0}, {"x": 1330.0, "y": 935.0}, {"x": 1262.0, "y": 934.0}]}], "spans": [{"offset": 739, "length": 7}], "confidence": 0.37}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 400.0, "symbol": null}, "content": "400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1272.0, "y": 855.0}, {"x": 1330.0, "y": 854.0}, {"x": 1330.0, "y": 874.0}, {"x": 1273.0, "y": 873.0}]}], "spans": [{"offset": 706, "length": 6}], "confidence": 0.375}, "TotalTax": {"value_type": "currency", "value": {"amount": 468.0, "symbol": null}, "content": "468.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1246.0, "y": 884.0}, {"x": 1303.0, "y": 882.0}, {"x": 1303.0, "y": 902.0}, {"x": 1246.0, "y": 901.0}]}], "spans": [{"offset": 726, "length": 6}], "confidence": 0.775}, "VendorAddress": {"value_type": "address", "value": {"house_number": "102", "po_box": null, "road": "anna nagar east chennai 600", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "102 anna nagar east chennai 600"}, "content": "F-97, NEWRY SHREYA APARTMENTS, ANNA NAGAR EAST, CHENNAI - 600 102", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 1198.0}, {"x": 803.0, "y": 1198.0}, {"x": 803.0, "y": 1225.0}, {"x": 90.0, "y": 1225.0}]}], "spans": [{"offset": 836, "length": 65}], "confidence": 0.845}, "VendorAddressRecipient": {"value_type": "string", "value": "UBER9 BUSINESS PROCESS SERVICES PRIVATE LIMITED", "content": "UBER9 BUSINESS PROCESS SERVICES PRIVATE LIMITED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 121.0, "y": 329.0}, {"x": 610.0, "y": 329.0}, {"x": 610.0, "y": 352.0}, {"x": 121.0, "y": 352.0}]}], "spans": [{"offset": 61, "length": 47}], "confidence": 0.426}, "VendorName": {"value_type": "string", "value": "VAKIL SEARCH", "content": "VAKIL SEARCH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 102.0, "y": 187.0}, {"x": 405.0, "y": 189.0}, {"x": 405.0, "y": 233.0}, {"x": 102.0, "y": 231.0}]}], "spans": [{"offset": 28, "length": 12}], "confidence": 0.932}, "VendorTaxId": {"value_type": "string", "value": "33AABCU7650C1ZM", "content": "33AABCU7650C1ZM", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 213.0, "y": 581.0}, {"x": 387.0, "y": 581.0}, {"x": 386.0, "y": 603.0}, {"x": 213.0, "y": 603.0}]}], "spans": [{"offset": 333, "length": 15}], "confidence": 0.561}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/153_jpg.rf.532099a869c3278a913982d6cdd45b83.json b/Data/train/153_jpg.rf.532099a869c3278a913982d6cdd45b83.json new file mode 100644 index 0000000000000000000000000000000000000000..0f2ba1e837b1145b0ae5eab5b430ac4634d2d485 --- /dev/null +++ b/Data/train/153_jpg.rf.532099a869c3278a913982d6cdd45b83.json @@ -0,0 +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": 1047}], "fields": {"DueDate": {"value_type": "date", "value": "2002-08-20", "content": "20/08/02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 418.0, "y": 326.0}, {"x": 454.0, "y": 327.0}, {"x": 453.0, "y": 335.0}, {"x": 418.0, "y": 335.0}]}], "spans": [{"offset": 256, "length": 8}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2016-04-07", "content": "04/07/2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 187.0}, {"x": 537.0, "y": 187.0}, {"x": 537.0, "y": 196.0}, {"x": 493.0, "y": 195.0}]}], "spans": [{"offset": 222, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "149896", "content": "149896", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 150.0, "y": 154.0}, {"x": 177.0, "y": 153.0}, {"x": 177.0, "y": 164.0}, {"x": 150.0, "y": 163.0}]}], "spans": [{"offset": 169, "length": 6}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 90.0, "symbol": null}, "content": "90.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 527.0, "y": 627.0}, {"x": 550.0, "y": 627.0}, {"x": 550.0, "y": 634.0}, {"x": 527.0, "y": 633.0}]}], "spans": [{"offset": 1042, "length": 5}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 75.0, "symbol": null}, "content": "75.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 533.0, "y": 516.0}, {"x": 554.0, "y": 516.0}, {"x": 555.0, "y": 523.0}, {"x": 533.0, "y": 523.0}]}], "spans": [{"offset": 871, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "LAHCHIK", "content": "LAHCHIK", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 516.0}, {"x": 191.0, "y": 516.0}, {"x": 191.0, "y": 524.0}, {"x": 165.0, "y": 524.0}]}], "spans": [{"offset": 863, "length": 7}], "confidence": null}}, "content": "LAHCHIK\n75.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 516.0}, {"x": 555.0, "y": 516.0}, {"x": 555.0, "y": 524.0}, {"x": 165.0, "y": 524.0}]}], "spans": [{"offset": 863, "length": 13}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 75.0, "symbol": null}, "content": "75.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 527.0, "y": 594.0}, {"x": 551.0, "y": 594.0}, {"x": 551.0, "y": 603.0}, {"x": 527.0, "y": 602.0}]}], "spans": [{"offset": 1030, "length": 5}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 15.0, "symbol": null}, "content": "15.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 527.0, "y": 611.0}, {"x": 550.0, "y": 611.0}, {"x": 550.0, "y": 619.0}, {"x": 528.0, "y": 619.0}]}], "spans": [{"offset": 1036, "length": 5}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Hammonds Drive", "city": "Eastbourne", "state": null, "postal_code": "BN23 6PW", "country_region": null, "street_address": "Hammonds Drive"}, "content": "Hammonds Drive, Eastbourne, East Sussex BN23 6PW", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 52.0}, {"x": 263.0, "y": 52.0}, {"x": 263.0, "y": 65.0}, {"x": 79.0, "y": 65.0}]}], "spans": [{"offset": 67, "length": 48}], "confidence": null}, "VendorName": {"value_type": "string", "value": "Caffyns Volkswagen (Eastbourne)", "content": "Caffyns Volkswagen (Eastbourne)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 5.0}, {"x": 332.0, "y": 5.0}, {"x": 332.0, "y": 25.0}, {"x": 80.0, "y": 25.0}]}], "spans": [{"offset": 0, "length": 31}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/154_jpg.rf.0dede24b2131c56227785a5fa924c411.json b/Data/train/154_jpg.rf.0dede24b2131c56227785a5fa924c411.json new file mode 100644 index 0000000000000000000000000000000000000000..04d622a06ff35b15b6cd18812b6b15c69f8e1256 --- /dev/null +++ b/Data/train/154_jpg.rf.0dede24b2131c56227785a5fa924c411.json @@ -0,0 +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": 418}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 5500.0, "symbol": "$"}, "content": "$5,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 445.0}, {"x": 535.0, "y": 444.0}, {"x": 535.0, "y": 455.0}, {"x": 495.0, "y": 455.0}]}], "spans": [{"offset": 409, "length": 9}], "confidence": 0.976}, "BillingAddress": {"value_type": "address", "value": {"house_number": "123", "po_box": null, "road": "Main Street", "city": "Townsville", "state": "Ontario", "postal_code": "M4L2DY", "country_region": null, "street_address": "123 Main Street"}, "content": "123 Main Street\nTownsville, Ontario\nM4L2DY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 195.0}, {"x": 179.0, "y": 195.0}, {"x": 179.0, "y": 228.0}, {"x": 103.0, "y": 228.0}]}], "spans": [{"offset": 181, "length": 15}, {"offset": 206, "length": 19}, {"offset": 237, "length": 6}], "confidence": 0.896}, "BillingAddressRecipient": {"value_type": "string", "value": "Aden Matchett\nVandelay Group", "content": "Aden Matchett\nVandelay Group", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 173.0}, {"x": 168.0, "y": 173.0}, {"x": 168.0, "y": 195.0}, {"x": 104.0, "y": 195.0}]}], "spans": [{"offset": 152, "length": 28}], "confidence": 0.931}, "CustomerName": {"value_type": "string", "value": "Aden Matchett\nVandelay Group", "content": "Aden Matchett\nVandelay Group", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 173.0}, {"x": 168.0, "y": 173.0}, {"x": 168.0, "y": 195.0}, {"x": 104.0, "y": 195.0}]}], "spans": [{"offset": 152, "length": 28}], "confidence": 0.931}, "DueDate": {"value_type": "date", "value": "2019-07-03", "content": "07/03/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 228.0, "y": 211.0}, {"x": 274.0, "y": 211.0}, {"x": 274.0, "y": 222.0}, {"x": 228.0, "y": 222.0}]}], "spans": [{"offset": 226, "length": 10}], "confidence": 0.984}, "InvoiceDate": {"value_type": "date", "value": "2019-06-03", "content": "06/03/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 228.0, "y": 173.0}, {"x": 273.0, "y": 173.0}, {"x": 273.0, "y": 183.0}, {"x": 228.0, "y": 182.0}]}], "spans": [{"offset": 91, "length": 10}], "confidence": 0.984}, "InvoiceId": {"value_type": "string", "value": "0000005", "content": "0000005", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 322.0, "y": 173.0}, {"x": 357.0, "y": 172.0}, {"x": 358.0, "y": 183.0}, {"x": 323.0, "y": 182.0}]}], "spans": [{"offset": 117, "length": 7}], "confidence": 0.984}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 5500.0, "symbol": null}, "content": "5,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 499.0, "y": 409.0}, {"x": 535.0, "y": 409.0}, {"x": 535.0, "y": 419.0}, {"x": 499.0, "y": 419.0}]}], "spans": [{"offset": 366, "length": 8}], "confidence": 0.979}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5000.0, "symbol": "$"}, "content": "$5,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 306.0}, {"x": 535.0, "y": 305.0}, {"x": 535.0, "y": 315.0}, {"x": 495.0, "y": 315.0}]}], "spans": [{"offset": 296, "length": 9}], "confidence": 0.887}, "Description": {"value_type": "string", "value": "Project", "content": "Project", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 306.0}, {"x": 133.0, "y": 306.0}, {"x": 133.0, "y": 316.0}, {"x": 104.0, "y": 316.0}]}], "spans": [{"offset": 276, "length": 7}], "confidence": 0.843}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 466.0, "y": 305.0}, {"x": 472.0, "y": 305.0}, {"x": 472.0, "y": 314.0}, {"x": 467.0, "y": 315.0}]}], "spans": [{"offset": 294, "length": 1}], "confidence": 0.892}, "UnitPrice": {"value_type": "currency", "value": {"amount": 5000.0, "symbol": "$"}, "content": "$5,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 368.0, "y": 305.0}, {"x": 408.0, "y": 305.0}, {"x": 409.0, "y": 315.0}, {"x": 368.0, "y": 315.0}]}], "spans": [{"offset": 284, "length": 9}], "confidence": 0.663}}, "content": "Project\n$5,000.00\n1\n$5,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 305.0}, {"x": 535.0, "y": 305.0}, {"x": 535.0, "y": 316.0}, {"x": 104.0, "y": 316.0}]}], "spans": [{"offset": 276, "length": 29}], "confidence": 0.824}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "$"}, "content": "$500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 502.0, "y": 330.0}, {"x": 534.0, "y": 330.0}, {"x": 534.0, "y": 340.0}, {"x": 502.0, "y": 339.0}]}], "spans": [{"offset": 325, "length": 7}], "confidence": 0.886}, "Description": {"value_type": "string", "value": "Expenses", "content": "Expenses", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 331.0}, {"x": 144.0, "y": 330.0}, {"x": 144.0, "y": 340.0}, {"x": 104.0, "y": 340.0}]}], "spans": [{"offset": 306, "length": 8}], "confidence": 0.893}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 330.0}, {"x": 472.0, "y": 330.0}, {"x": 471.0, "y": 339.0}, {"x": 467.0, "y": 338.0}]}], "spans": [{"offset": 323, "length": 1}], "confidence": 0.891}, "UnitPrice": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "$"}, "content": "$500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 376.0, "y": 331.0}, {"x": 408.0, "y": 330.0}, {"x": 408.0, "y": 339.0}, {"x": 376.0, "y": 339.0}]}], "spans": [{"offset": 315, "length": 7}], "confidence": 0.734}}, "content": "Expenses\n$500.00\n1\n$500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 323.0}, {"x": 534.0, "y": 330.0}, {"x": 534.0, "y": 347.0}, {"x": 104.0, "y": 340.0}]}], "spans": [{"offset": 306, "length": 26}], "confidence": 0.821}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 5500.0, "symbol": null}, "content": "5,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 499.0, "y": 370.0}, {"x": 534.0, "y": 370.0}, {"x": 534.0, "y": 380.0}, {"x": 499.0, "y": 379.0}]}], "spans": [{"offset": 342, "length": 8}], "confidence": 0.983}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 516.0, "y": 385.0}, {"x": 534.0, "y": 384.0}, {"x": 534.0, "y": 393.0}, {"x": 517.0, "y": 394.0}]}], "spans": [{"offset": 355, "length": 4}], "confidence": 0.982}, "VendorAddress": {"value_type": "address", "value": {"house_number": "87", "po_box": null, "road": "Queen Street", "city": "Hamlet", "state": "Ontario", "postal_code": "N2R2R2", "country_region": "Canada", "street_address": "87 Queen Street"}, "content": "87 Queen Street Hamlet, Ontario N2R2R2 Canada", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 31.0}, {"x": 536.0, "y": 31.0}, {"x": 536.0, "y": 77.0}, {"x": 469.0, "y": 77.0}]}], "spans": [{"offset": 21, "length": 45}], "confidence": 0.855}, "VendorAddressRecipient": {"value_type": "string", "value": "Acme", "content": "Acme", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 432.0, "y": 31.0}, {"x": 455.0, "y": 32.0}, {"x": 454.0, "y": 42.0}, {"x": 431.0, "y": 41.0}]}], "spans": [{"offset": 5, "length": 4}], "confidence": 0.974}, "VendorName": {"value_type": "string", "value": "acme", "content": "acme", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 60.0}, {"x": 257.0, "y": 58.0}, {"x": 257.0, "y": 87.0}, {"x": 156.0, "y": 86.0}]}], "spans": [{"offset": 0, "length": 4}], "confidence": 0.983}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/155_jpg.rf.c4cb3a2feb61040cca5dc154d2722b51.json b/Data/train/155_jpg.rf.c4cb3a2feb61040cca5dc154d2722b51.json new file mode 100644 index 0000000000000000000000000000000000000000..aa5b06306059ad167386252732f8d3db3bc7b4fb --- /dev/null +++ b/Data/train/155_jpg.rf.c4cb3a2feb61040cca5dc154d2722b51.json @@ -0,0 +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": 903}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "3", "po_box": null, "road": "Furggerstrasse", "city": "Koln/", "state": null, "postal_code": "D-51149", "country_region": "Germany", "street_address": "3 Furggerstrasse"}, "content": "Furggerstrasse 3 D-51149 Koln/Germany", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 252.0}, {"x": 254.0, "y": 253.0}, {"x": 254.0, "y": 272.0}, {"x": 142.0, "y": 271.0}]}], "spans": [{"offset": 319, "length": 37}], "confidence": 0.529}, "CustomerAddressRecipient": {"value_type": "string", "value": "INBIFO, Institut Fur Biologische\nForschung Gmbh", "content": "INBIFO, Institut Fur Biologische Forschung Gmbh", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 235.0}, {"x": 319.0, "y": 235.0}, {"x": 319.0, "y": 254.0}, {"x": 142.0, "y": 254.0}]}], "spans": [{"offset": 271, "length": 47}], "confidence": 0.538}, "CustomerName": {"value_type": "string", "value": "INBIFO, Institut Fur Biologische\nForschung Gmbh", "content": "INBIFO, Institut Fur Biologische Forschung Gmbh", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 235.0}, {"x": 319.0, "y": 235.0}, {"x": 319.0, "y": 254.0}, {"x": 142.0, "y": 254.0}]}], "spans": [{"offset": 271, "length": 47}], "confidence": 0.538}, "InvoiceDate": {"value_type": "date", "value": "1998-03-26", "content": "March 26, 1998", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 177.0, "y": 370.0}, {"x": 255.0, "y": 370.0}, {"x": 255.0, "y": 380.0}, {"x": 177.0, "y": 380.0}]}], "spans": [{"offset": 513, "length": 14}], "confidence": 0.936}, "InvoiceId": {"value_type": "string", "value": "2508", "content": "2508", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 201.0, "y": 387.0}, {"x": 223.0, "y": 388.0}, {"x": 223.0, "y": 397.0}, {"x": 201.0, "y": 397.0}]}], "spans": [{"offset": 559, "length": 4}], "confidence": 0.954}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 45743.66, "symbol": "$"}, "content": "$45,743.66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 420.0, "y": 532.0}, {"x": 475.0, "y": 532.0}, {"x": 475.0, "y": 542.0}, {"x": 420.0, "y": 542.0}]}], "spans": [{"offset": 827, "length": 10}], "confidence": 0.856}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 20000.0, "symbol": "$"}, "content": "$20,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 420.0, "y": 447.0}, {"x": 474.0, "y": 447.0}, {"x": 475.0, "y": 457.0}, {"x": 420.0, "y": 456.0}]}], "spans": [{"offset": 699, "length": 10}], "confidence": 0.145}, "Description": {"value_type": "string", "value": "Code 1R4F Research\nCigarettes", "content": "Code 1R4F Research Cigarettes", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 217.0, "y": 446.0}, {"x": 314.0, "y": 447.0}, {"x": 314.0, "y": 466.0}, {"x": 217.0, "y": 465.0}]}], "spans": [{"offset": 660, "length": 29}], "confidence": 0.134}, "Quantity": {"value_type": "float", "value": 500000.0, "content": "500,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 150.0, "y": 446.0}, {"x": 189.0, "y": 447.0}, {"x": 189.0, "y": 456.0}, {"x": 150.0, "y": 455.0}]}], "spans": [{"offset": 652, "length": 7}], "confidence": 0.147}, "UnitPrice": {"value_type": "currency", "value": {"amount": 40.0, "symbol": "$"}, "content": "$40.00/M", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 446.0}, {"x": 375.0, "y": 447.0}, {"x": 375.0, "y": 457.0}, {"x": 332.0, "y": 456.0}]}], "spans": [{"offset": 690, "length": 8}], "confidence": 0.142}}, "content": "500,000\nCode 1R4F Research Cigarettes\n$40.00/M\n$20,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 150.0, "y": 444.0}, {"x": 475.0, "y": 447.0}, {"x": 475.0, "y": 467.0}, {"x": 150.0, "y": 464.0}]}], "spans": [{"offset": 652, "length": 57}], "confidence": 0.785}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 22000.0, "symbol": "$"}, "content": "$22,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 420.0, "y": 473.0}, {"x": 474.0, "y": 473.0}, {"x": 474.0, "y": 482.0}, {"x": 420.0, "y": 482.0}]}], "spans": [{"offset": 757, "length": 10}], "confidence": 0.136}, "Description": {"value_type": "string", "value": "Code 1RSF Research\nCigarettes", "content": "Cigarettes Code 1RSF Research", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 217.0, "y": 473.0}, {"x": 314.0, "y": 473.0}, {"x": 314.0, "y": 491.0}, {"x": 217.0, "y": 491.0}]}], "spans": [{"offset": 718, "length": 29}], "confidence": 0.103}, "Quantity": {"value_type": "float", "value": 550000.0, "content": "550,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 150.0, "y": 472.0}, {"x": 189.0, "y": 472.0}, {"x": 189.0, "y": 482.0}, {"x": 150.0, "y": 481.0}]}], "spans": [{"offset": 710, "length": 7}], "confidence": 0.143}, "UnitPrice": {"value_type": "currency", "value": {"amount": 40.0, "symbol": "$"}, "content": "$40.00/M", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 473.0}, {"x": 375.0, "y": 473.0}, {"x": 375.0, "y": 483.0}, {"x": 332.0, "y": 482.0}]}], "spans": [{"offset": 748, "length": 8}], "confidence": 0.133}}, "content": "550,000\nCigarettes Code 1RSF Research\n$40.00/M\n$22,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 150.0, "y": 472.0}, {"x": 474.0, "y": 472.0}, {"x": 474.0, "y": 491.0}, {"x": 150.0, "y": 491.0}]}], "spans": [{"offset": 710, "length": 57}], "confidence": 0.79}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "34007 PSN/IH", "content": "34007 PSN/IH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 173.0, "y": 320.0}, {"x": 238.0, "y": 320.0}, {"x": 238.0, "y": 329.0}, {"x": 173.0, "y": 329.0}]}], "spans": [{"offset": 460, "length": 12}], "confidence": 0.595}, "SubTotal": {"value_type": "currency", "value": {"amount": 42000.0, "symbol": "$"}, "content": "$42,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 420.0, "y": 499.0}, {"x": 475.0, "y": 498.0}, {"x": 475.0, "y": 508.0}, {"x": 420.0, "y": 508.0}]}], "spans": [{"offset": 777, "length": 10}], "confidence": 0.855}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "LEXINGTON", "state": "KENTUCKY", "postal_code": "40546-0236", "country_region": null, "street_address": ""}, "content": "UNIVERSITY DRIVES UNIVERSITY OF\nLEXINGTON, KENTUCKY 40546-0236", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 231.0, "y": 185.0}, {"x": 402.0, "y": 185.0}, {"x": 402.0, "y": 212.0}, {"x": 231.0, "y": 212.0}]}], "spans": [{"offset": 199, "length": 31}, {"offset": 240, "length": 30}], "confidence": 0.502}, "VendorAddressRecipient": {"value_type": "string", "value": "TOBACCO AND HEALTH RESEARCH INSTITUTE\nCOOPER &\nKENTUCKY", "content": "TOBACCO AND HEALTH RESEARCH INSTITUTE COOPER &\nKENTUCKY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 232.0, "y": 176.0}, {"x": 434.0, "y": 176.0}, {"x": 434.0, "y": 204.0}, {"x": 232.0, "y": 204.0}]}], "spans": [{"offset": 152, "length": 46}, {"offset": 231, "length": 8}], "confidence": 0.433}, "VendorName": {"value_type": "string", "value": "UK\n\" UNIVERSITY\nOF KENTUCKY", "content": "UK\n\" UNIVERSITY OF KENTUCKY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 101.0, "y": 97.0}, {"x": 259.0, "y": 96.0}, {"x": 259.0, "y": 135.0}, {"x": 101.0, "y": 136.0}]}], "spans": [{"offset": 0, "length": 27}], "confidence": 0.464}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/157_jpg.rf.1ce5b44ec32e1b1219ad034ece78f2f8.json b/Data/train/157_jpg.rf.1ce5b44ec32e1b1219ad034ece78f2f8.json new file mode 100644 index 0000000000000000000000000000000000000000..ef6a58eba8569ce8d77db15e1af57086902181cc --- /dev/null +++ b/Data/train/157_jpg.rf.1ce5b44ec32e1b1219ad034ece78f2f8.json @@ -0,0 +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": 605}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Delhi", "state": "Delhi", "postal_code": "40003", "country_region": null, "street_address": ""}, "content": "27, Dif City, Central\nDelhi, Delhi 40003", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 151.0}, {"x": 194.0, "y": 151.0}, {"x": 194.0, "y": 172.0}, {"x": 125.0, "y": 172.0}]}], "spans": [{"offset": 85, "length": 40}], "confidence": 0.937}, "BillingAddressRecipient": {"value_type": "string", "value": "Panchika Randhawa", "content": "Panchika Randhawa", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 140.0}, {"x": 197.0, "y": 141.0}, {"x": 197.0, "y": 151.0}, {"x": 125.0, "y": 150.0}]}], "spans": [{"offset": 67, "length": 17}], "confidence": 0.934}, "CustomerName": {"value_type": "string", "value": "Panchika Randhawa", "content": "Panchika Randhawa", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 140.0}, {"x": 197.0, "y": 141.0}, {"x": 197.0, "y": 151.0}, {"x": 125.0, "y": 150.0}]}], "spans": [{"offset": 67, "length": 17}], "confidence": 0.934}, "DueDate": {"value_type": "date", "value": "2019-04-26", "content": "26/04/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 475.0, "y": 175.0}, {"x": 513.0, "y": 174.0}, {"x": 513.0, "y": 184.0}, {"x": 475.0, "y": 183.0}]}], "spans": [{"offset": 254, "length": 10}], "confidence": 0.949}, "InvoiceDate": {"value_type": "date", "value": "2019-01-29", "content": "29/01/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 475.0, "y": 143.0}, {"x": 514.0, "y": 143.0}, {"x": 514.0, "y": 152.0}, {"x": 475.0, "y": 152.0}]}], "spans": [{"offset": 218, "length": 10}], "confidence": 0.948}, "InvoiceId": {"value_type": "string", "value": "IN:001", "content": "IN:001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 128.0}, {"x": 513.0, "y": 127.0}, {"x": 514.0, "y": 136.0}, {"x": 490.0, "y": 136.0}]}], "spans": [{"offset": 198, "length": 6}], "confidence": 0.955}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 12980.76, "symbol": "\u20b9"}, "content": "\u20b912,980.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 457.0, "y": 334.0}, {"x": 507.0, "y": 335.0}, {"x": 507.0, "y": 347.0}, {"x": 458.0, "y": 347.0}]}], "spans": [{"offset": 463, "length": 10}], "confidence": 0.944}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9999.0, "symbol": null}, "content": "9,999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 476.0, "y": 232.0}, {"x": 507.0, "y": 231.0}, {"x": 507.0, "y": 240.0}, {"x": 476.0, "y": 240.0}]}], "spans": [{"offset": 343, "length": 8}], "confidence": 0.962}, "Description": {"value_type": "string", "value": "Frontend design restructure", "content": "Frontend design restructure", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 231.0}, {"x": 265.0, "y": 231.0}, {"x": 265.0, "y": 241.0}, {"x": 170.0, "y": 241.0}]}], "spans": [{"offset": 306, "length": 27}], "confidence": 0.95}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 143.0, "y": 231.0}, {"x": 148.0, "y": 231.0}, {"x": 148.0, "y": 239.0}, {"x": 143.0, "y": 239.0}]}], "spans": [{"offset": 304, "length": 1}], "confidence": 0.958}, "UnitPrice": {"value_type": "currency", "value": {"amount": 9999.0, "symbol": null}, "content": "9,999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 378.0, "y": 231.0}, {"x": 408.0, "y": 231.0}, {"x": 408.0, "y": 240.0}, {"x": 378.0, "y": 240.0}]}], "spans": [{"offset": 334, "length": 8}], "confidence": 0.962}}, "content": "1\nFrontend design restructure\n9,999.00\n9,999.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 143.0, "y": 231.0}, {"x": 507.0, "y": 231.0}, {"x": 507.0, "y": 241.0}, {"x": 143.0, "y": 241.0}]}], "spans": [{"offset": 304, "length": 47}], "confidence": 0.89}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1950.0, "symbol": null}, "content": "1,950.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 251.0}, {"x": 506.0, "y": 251.0}, {"x": 507.0, "y": 260.0}, {"x": 478.0, "y": 259.0}]}], "spans": [{"offset": 381, "length": 8}], "confidence": 0.963}, "Description": {"value_type": "string", "value": "Custom icon package", "content": "Custom icon package", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 251.0}, {"x": 244.0, "y": 251.0}, {"x": 244.0, "y": 261.0}, {"x": 170.0, "y": 261.0}]}], "spans": [{"offset": 354, "length": 19}], "confidence": 0.933}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 144.0, "y": 251.0}, {"x": 148.0, "y": 251.0}, {"x": 148.0, "y": 259.0}, {"x": 144.0, "y": 259.0}]}], "spans": [{"offset": 352, "length": 1}], "confidence": 0.959}, "UnitPrice": {"value_type": "currency", "value": {"amount": 975.0, "symbol": null}, "content": "975.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 384.0, "y": 252.0}, {"x": 408.0, "y": 251.0}, {"x": 408.0, "y": 259.0}, {"x": 384.0, "y": 259.0}]}], "spans": [{"offset": 374, "length": 6}], "confidence": 0.963}}, "content": "2\nCustom icon package\n975.00\n1,950.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 144.0, "y": 251.0}, {"x": 507.0, "y": 251.0}, {"x": 507.0, "y": 261.0}, {"x": 144.0, "y": 261.0}]}], "spans": [{"offset": 352, "length": 37}], "confidence": 0.83}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 297.0, "symbol": null}, "content": "297.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 270.0}, {"x": 507.0, "y": 270.0}, {"x": 507.0, "y": 280.0}, {"x": 484.0, "y": 280.0}]}], "spans": [{"offset": 415, "length": 6}], "confidence": 0.963}, "Description": {"value_type": "string", "value": "Gandhi mouse pad", "content": "Gandhi mouse pad", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 270.0}, {"x": 235.0, "y": 270.0}, {"x": 235.0, "y": 280.0}, {"x": 170.0, "y": 280.0}]}], "spans": [{"offset": 392, "length": 16}], "confidence": 0.947}, "Quantity": {"value_type": "float", "value": 3.0, "content": "3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 144.0, "y": 270.0}, {"x": 148.0, "y": 270.0}, {"x": 148.0, "y": 279.0}, {"x": 144.0, "y": 279.0}]}], "spans": [{"offset": 390, "length": 1}], "confidence": 0.96}, "UnitPrice": {"value_type": "currency", "value": {"amount": 99.0, "symbol": null}, "content": "99.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 389.0, "y": 270.0}, {"x": 409.0, "y": 270.0}, {"x": 409.0, "y": 278.0}, {"x": 389.0, "y": 278.0}]}], "spans": [{"offset": 409, "length": 5}], "confidence": 0.943}}, "content": "3\nGandhi mouse pad\n99.00\n297.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 144.0, "y": 270.0}, {"x": 507.0, "y": 270.0}, {"x": 507.0, "y": 280.0}, {"x": 144.0, "y": 280.0}]}], "spans": [{"offset": 390, "length": 31}], "confidence": 0.865}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PurchaseOrder": {"value_type": "string", "value": "2430/2019", "content": "2430/2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 477.0, "y": 159.0}, {"x": 514.0, "y": 159.0}, {"x": 514.0, "y": 168.0}, {"x": 477.0, "y": 168.0}]}], "spans": [{"offset": 235, "length": 9}], "confidence": 0.949}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "264", "po_box": null, "road": "Abdul Rahman", "city": "Mumbai", "state": "Bihar", "postal_code": "40009", "country_region": null, "street_address": "264 Abdul Rahman"}, "content": "264, Abdul Rahman\nMumbai, Bihar 40009", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 251.0, "y": 152.0}, {"x": 324.0, "y": 152.0}, {"x": 324.0, "y": 172.0}, {"x": 251.0, "y": 172.0}]}], "spans": [{"offset": 150, "length": 37}], "confidence": 0.911}, "ShippingAddressRecipient": {"value_type": "string", "value": "Kavindra Mannan", "content": "Kavindra Mannan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 251.0, "y": 141.0}, {"x": 311.0, "y": 141.0}, {"x": 311.0, "y": 150.0}, {"x": 251.0, "y": 150.0}]}], "spans": [{"offset": 134, "length": 15}], "confidence": 0.936}, "SubTotal": {"value_type": "currency", "value": {"amount": 12246.0, "symbol": null}, "content": "12,246.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 296.0}, {"x": 507.0, "y": 297.0}, {"x": 507.0, "y": 306.0}, {"x": 473.0, "y": 306.0}]}], "spans": [{"offset": 431, "length": 9}], "confidence": 0.952}, "TotalTax": {"value_type": "currency", "value": {"amount": 734.76, "symbol": null}, "content": "734.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 484.0, "y": 316.0}, {"x": 507.0, "y": 316.0}, {"x": 507.0, "y": 325.0}, {"x": 484.0, "y": 325.0}]}], "spans": [{"offset": 450, "length": 6}], "confidence": 0.945}, "VendorAddress": {"value_type": "address", "value": {"house_number": "77", "po_box": null, "road": null, "city": "Delhi", "state": "Delhi", "postal_code": "400077", "country_region": null, "street_address": "77"}, "content": "77 Namrata Bldg Delhi, Delhi 400077", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 90.0}, {"x": 193.0, "y": 90.0}, {"x": 193.0, "y": 110.0}, {"x": 125.0, "y": 110.0}]}], "spans": [{"offset": 23, "length": 35}], "confidence": 0.924}, "VendorAddressRecipient": {"value_type": "string", "value": "Saffron Design", "content": "Saffron Design", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 126.0, "y": 75.0}, {"x": 181.0, "y": 77.0}, {"x": 181.0, "y": 88.0}, {"x": 126.0, "y": 86.0}]}], "spans": [{"offset": 8, "length": 14}], "confidence": 0.929}, "VendorName": {"value_type": "string", "value": "LOGO", "content": "LOGO", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 44.0}, {"x": 507.0, "y": 44.0}, {"x": 507.0, "y": 66.0}, {"x": 467.0, "y": 66.0}]}], "spans": [{"offset": 265, "length": 4}], "confidence": 0.84}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/15_jpg.rf.8f14b95f91a386bd67060bb5b7c1ffae.json b/Data/train/15_jpg.rf.8f14b95f91a386bd67060bb5b7c1ffae.json new file mode 100644 index 0000000000000000000000000000000000000000..af3b1ef73960d072b3241a0f7a649dcd1fe55f65 --- /dev/null +++ b/Data/train/15_jpg.rf.8f14b95f91a386bd67060bb5b7c1ffae.json @@ -0,0 +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": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "666", "po_box": null, "road": "FIFTH AVE", "city": "NEW YORK", "state": "NY", "postal_code": "10103", "country_region": null, "street_address": "666 FIFTH AVE"}, "content": "666 FIFTH AVE\nNEW YORK\nNY 10103", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 188.0, "y": 126.0}, {"x": 343.0, "y": 121.0}, {"x": 343.0, "y": 142.0}, {"x": 189.0, "y": 147.0}]}], "spans": [{"offset": 177, "length": 31}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "LORILLARD MEDIA SERVICES\nC/O BETTY EPPERSON", "content": "LORILLARD MEDIA SERVICES\nC/O BETTY EPPERSON", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 105.0}, {"x": 321.0, "y": 105.0}, {"x": 321.0, "y": 125.0}, {"x": 189.0, "y": 125.0}]}], "spans": [{"offset": 133, "length": 43}], "confidence": null}, "CustomerId": {"value_type": "string", "value": "3012306", "content": "3012306", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 171.0}, {"x": 227.0, "y": 171.0}, {"x": 227.0, "y": 179.0}, {"x": 192.0, "y": 179.0}]}], "spans": [{"offset": 331, "length": 7}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "LORILLARD CORP DIV", "content": "LORILLARD CORP DIV", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 161.0}, {"x": 288.0, "y": 160.0}, {"x": 288.0, "y": 170.0}, {"x": 189.0, "y": 171.0}]}], "spans": [{"offset": 312, "length": 18}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1987-06-11", "content": "06/11/87", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 400.0, "y": 194.0}, {"x": 443.0, "y": 194.0}, {"x": 443.0, "y": 203.0}, {"x": 400.0, "y": 203.0}]}], "spans": [{"offset": 432, "length": 8}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "170286", "content": "170286", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 449.0, "y": 193.0}, {"x": 481.0, "y": 193.0}, {"x": 481.0, "y": 203.0}, {"x": 449.0, "y": 203.0}]}], "spans": [{"offset": 441, "length": 6}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 9837.29, "symbol": null}, "content": "9,837.29", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 487.0, "y": 489.0}, {"x": 530.0, "y": 489.0}, {"x": 530.0, "y": 498.0}, {"x": 487.0, "y": 498.0}]}], "spans": [{"offset": 754, "length": 8}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 12312.0, "symbol": null}, "content": "12312.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 477.0, "y": 247.0}, {"x": 526.0, "y": 246.0}, {"x": 526.0, "y": 256.0}, {"x": 477.0, "y": 256.0}]}], "spans": [{"offset": 570, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "AGENCY COMMISSION", "content": "AGENCY COMMISSION", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 262.0, "y": 277.0}, {"x": 355.0, "y": 276.0}, {"x": 355.0, "y": 286.0}, {"x": 262.0, "y": 288.0}]}], "spans": [{"offset": 531, "length": 17}], "confidence": null}}, "content": "AGENCY COMMISSION NET SPACE\n1 P6 6.0 %\n12312.00\n738.72 1,735.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 262.0, "y": 249.0}, {"x": 526.0, "y": 246.0}, {"x": 527.0, "y": 303.0}, {"x": 262.0, "y": 305.0}]}], "spans": [{"offset": 531, "length": 63}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "NET.3.2\nON NET", "content": "NET.3.2 ON NET", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 399.0, "y": 158.0}, {"x": 446.0, "y": 158.0}, {"x": 446.0, "y": 173.0}, {"x": 399.0, "y": 173.0}]}], "spans": [{"offset": 251, "length": 14}], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.o. Box 2319", "road": null, "city": "NEW YORK.", "state": "NY", "postal_code": "10257-2319", "country_region": null, "street_address": "P.o. Box 2319"}, "content": "P.o. Box 2319 NEW YORK. NY 10257-2319", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 386.0, "y": 104.0}, {"x": 531.0, "y": 104.0}, {"x": 531.0, "y": 123.0}, {"x": 386.0, "y": 123.0}]}], "spans": [{"offset": 77, "length": 37}], "confidence": null}, "RemittanceAddressRecipient": {"value_type": "string", "value": "PETERSEN PUBLISHING CO.", "content": "PETERSEN PUBLISHING CO.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 386.0, "y": 94.0}, {"x": 513.0, "y": 93.0}, {"x": 513.0, "y": 103.0}, {"x": 386.0, "y": 104.0}]}], "spans": [{"offset": 53, "length": 23}], "confidence": null}, "ServiceEndDate": {"value_type": "date", "value": "1987-12-01", "content": "12/87", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 268.0, "y": 530.0}, {"x": 296.0, "y": 530.0}, {"x": 296.0, "y": 539.0}, {"x": 268.0, "y": 540.0}]}], "spans": [{"offset": 816, "length": 5}], "confidence": null}, "ServiceStartDate": {"value_type": "date", "value": "1987-01-01", "content": "01/87", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 213.0, "y": 532.0}, {"x": 241.0, "y": 531.0}, {"x": 242.0, "y": 540.0}, {"x": 213.0, "y": 541.0}]}], "spans": [{"offset": 807, "length": 5}], "confidence": null}, "VendorName": {"value_type": "string", "value": "PETERSEN PUBLISHING COMPANY", "content": "PETERSEN PUBLISHING COMPANY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 179.0, "y": 62.0}, {"x": 394.0, "y": 60.0}, {"x": 394.0, "y": 75.0}, {"x": 179.0, "y": 77.0}]}], "spans": [{"offset": 8, "length": 27}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/160_jpg.rf.d0c14ae45b952862677a28927812f3eb.json b/Data/train/160_jpg.rf.d0c14ae45b952862677a28927812f3eb.json new file mode 100644 index 0000000000000000000000000000000000000000..bd18476fac05602f9c09ea306678bfb6b2fabbdd --- /dev/null +++ b/Data/train/160_jpg.rf.d0c14ae45b952862677a28927812f3eb.json @@ -0,0 +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": 569}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 646.92, "symbol": "Rs"}, "content": "Rs.646.92", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 557.0, "y": 583.0}, {"x": 627.0, "y": 583.0}, {"x": 627.0, "y": 599.0}, {"x": 558.0, "y": 600.0}]}], "spans": [{"offset": 560, "length": 9}], "confidence": 0.978}, "BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": "Karnataka 567821", "postal_code": null, "country_region": "India", "street_address": ""}, "content": "Karnataka 567821\nIndia", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 23.0, "y": 305.0}, {"x": 107.0, "y": 305.0}, {"x": 107.0, "y": 329.0}, {"x": 23.0, "y": 329.0}]}], "spans": [{"offset": 118, "length": 22}], "confidence": 0.936}, "BillingAddressRecipient": {"value_type": "string", "value": "Adithya", "content": "Adithya", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 23.0, "y": 293.0}, {"x": 57.0, "y": 293.0}, {"x": 57.0, "y": 304.0}, {"x": 23.0, "y": 303.0}]}], "spans": [{"offset": 110, "length": 7}], "confidence": 0.978}, "CustomerId": {"value_type": "string", "value": "RGe15", "content": "RGe15", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 402.0, "y": 138.0}, {"x": 435.0, "y": 138.0}, {"x": 435.0, "y": 150.0}, {"x": 403.0, "y": 150.0}]}], "spans": [{"offset": 266, "length": 5}], "confidence": 0.761}, "CustomerName": {"value_type": "string", "value": "Adithya", "content": "Adithya", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 23.0, "y": 293.0}, {"x": 57.0, "y": 293.0}, {"x": 57.0, "y": 304.0}, {"x": 23.0, "y": 303.0}]}], "spans": [{"offset": 110, "length": 7}], "confidence": 0.978}, "CustomerTaxId": {"value_type": "string", "value": "2912345123451Z1", "content": "2912345123451Z1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 332.0}, {"x": 151.0, "y": 332.0}, {"x": 151.0, "y": 344.0}, {"x": 60.0, "y": 343.0}]}], "spans": [{"offset": 149, "length": 15}], "confidence": 0.817}, "InvoiceDate": {"value_type": "date", "value": "2017-07-03", "content": "Jul 03, 2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 464.0, "y": 90.0}, {"x": 521.0, "y": 90.0}, {"x": 521.0, "y": 104.0}, {"x": 464.0, "y": 104.0}]}], "spans": [{"offset": 199, "length": 12}], "confidence": 0.936}, "InvoiceId": {"value_type": "string", "value": "19", "content": "19", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 449.0, "y": 73.0}, {"x": 461.0, "y": 73.0}, {"x": 461.0, "y": 86.0}, {"x": 449.0, "y": 86.0}]}], "spans": [{"offset": 183, "length": 2}], "confidence": 0.984}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 646.92, "symbol": "Rs"}, "content": "Rs.646.92", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 571.0, "y": 546.0}, {"x": 626.0, "y": 546.0}, {"x": 626.0, "y": 559.0}, {"x": 571.0, "y": 559.0}]}], "spans": [{"offset": 533, "length": 9}], "confidence": 0.983}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 599.0, "symbol": "Rs"}, "content": "Rs.599.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 571.0, "y": 416.0}, {"x": 624.0, "y": 416.0}, {"x": 624.0, "y": 429.0}, {"x": 571.0, "y": 428.0}]}], "spans": [{"offset": 461, "length": 9}], "confidence": 0.908}, "Description": {"value_type": "string", "value": "Enterprise-plan", "content": "Enterprise-plan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 23.0, "y": 416.0}, {"x": 105.0, "y": 416.0}, {"x": 105.0, "y": 430.0}, {"x": 23.0, "y": 429.0}]}], "spans": [{"offset": 433, "length": 15}], "confidence": 0.908}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 474.0, "y": 416.0}, {"x": 481.0, "y": 416.0}, {"x": 481.0, "y": 428.0}, {"x": 474.0, "y": 428.0}]}], "spans": [{"offset": 449, "length": 1}], "confidence": 0.313}, "UnitPrice": {"value_type": "currency", "value": {"amount": 599.0, "symbol": "Rs"}, "content": "Rs.599.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 497.0, "y": 416.0}, {"x": 549.0, "y": 416.0}, {"x": 549.0, "y": 429.0}, {"x": 497.0, "y": 428.0}]}], "spans": [{"offset": 451, "length": 9}], "confidence": 0.913}}, "content": "Enterprise-plan\n1\nRs.599.00\nRs.599.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 23.0, "y": 410.0}, {"x": 624.0, "y": 416.0}, {"x": 624.0, "y": 435.0}, {"x": 23.0, "y": 429.0}]}], "spans": [{"offset": 433, "length": 37}], "confidence": 0.89}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ServiceEndDate": {"value_type": "date", "value": "2017-08-03", "content": "Aug 03, 2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 507.0, "y": 306.0}, {"x": 570.0, "y": 306.0}, {"x": 570.0, "y": 321.0}, {"x": 507.0, "y": 321.0}]}], "spans": [{"offset": 347, "length": 12}], "confidence": 0.927}, "ServiceStartDate": {"value_type": "date", "value": "2017-07-03", "content": "Jul 03", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 466.0, "y": 306.0}, {"x": 492.0, "y": 306.0}, {"x": 492.0, "y": 320.0}, {"x": 466.0, "y": 320.0}]}], "spans": [{"offset": 337, "length": 6}], "confidence": 0.936}, "SubTotal": {"value_type": "currency", "value": {"amount": 599.0, "symbol": "Rs"}, "content": "Rs.599.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 573.0, "y": 457.0}, {"x": 625.0, "y": 458.0}, {"x": 625.0, "y": 471.0}, {"x": 573.0, "y": 471.0}]}], "spans": [{"offset": 481, "length": 9}], "confidence": 0.984}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 41.93, "symbol": "Rs"}, "content": "Rs.41.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 579.0, "y": 484.0}, {"x": 626.0, "y": 484.0}, {"x": 625.0, "y": 496.0}, {"x": 580.0, "y": 495.0}]}], "spans": [{"offset": 501, "length": 8}], "confidence": 0.651}, "Rate": {"value_type": "string", "value": "7%", "content": "7%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 533.0, "y": 484.0}, {"x": 550.0, "y": 484.0}, {"x": 550.0, "y": 496.0}, {"x": 533.0, "y": 496.0}]}], "spans": [{"offset": 498, "length": 2}], "confidence": 0.54}}, "content": "IGST @ 7%\nRs.41.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 491.0, "y": 483.0}, {"x": 626.0, "y": 484.0}, {"x": 626.0, "y": 497.0}, {"x": 491.0, "y": 496.0}]}], "spans": [{"offset": 491, "length": 18}], "confidence": 0.441}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5.99, "symbol": "Rs"}, "content": "Rs.5.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 586.0, "y": 509.0}, {"x": 625.0, "y": 509.0}, {"x": 625.0, "y": 521.0}, {"x": 587.0, "y": 521.0}]}], "spans": [{"offset": 519, "length": 7}], "confidence": 0.558}, "Rate": {"value_type": "string", "value": "1%", "content": "1%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 534.0, "y": 509.0}, {"x": 551.0, "y": 509.0}, {"x": 551.0, "y": 522.0}, {"x": 534.0, "y": 522.0}]}], "spans": [{"offset": 516, "length": 2}], "confidence": 0.232}}, "content": "Cess@ 1%\nRs.5.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 494.0, "y": 509.0}, {"x": 625.0, "y": 509.0}, {"x": 625.0, "y": 522.0}, {"x": 494.0, "y": 522.0}]}], "spans": [{"offset": 510, "length": 16}], "confidence": 0.245}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 41.93, "symbol": "Rs"}, "content": "Rs.41.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 579.0, "y": 484.0}, {"x": 626.0, "y": 484.0}, {"x": 625.0, "y": 496.0}, {"x": 580.0, "y": 495.0}]}], "spans": [{"offset": 501, "length": 8}], "confidence": 0.686}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "1st street, Thoraipakkam", "city": "Chennai", "state": "Tamil Nadu", "postal_code": "600001", "country_region": "India", "street_address": "1st street, Thoraipakkam"}, "content": "1st street, Thoraipakkam Chennai, Tamil Nadu 600001 India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 22.0, "y": 195.0}, {"x": 152.0, "y": 195.0}, {"x": 152.0, "y": 234.0}, {"x": 22.0, "y": 234.0}]}], "spans": [{"offset": 20, "length": 57}], "confidence": 0.894}, "VendorAddressRecipient": {"value_type": "string", "value": "Chargebee", "content": "Chargebee", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 23.0, "y": 182.0}, {"x": 72.0, "y": 183.0}, {"x": 72.0, "y": 195.0}, {"x": 23.0, "y": 194.0}]}], "spans": [{"offset": 10, "length": 9}], "confidence": 0.984}, "VendorName": {"value_type": "string", "value": "Chargebee", "content": "Chargebee", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 28.0, "y": 69.0}, {"x": 202.0, "y": 70.0}, {"x": 204.0, "y": 120.0}, {"x": 28.0, "y": 119.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": 0.982}, "VendorTaxId": {"value_type": "string", "value": "3312345678910Z1", "content": "3312345678910Z1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 236.0}, {"x": 151.0, "y": 236.0}, {"x": 151.0, "y": 249.0}, {"x": 60.0, "y": 248.0}]}], "spans": [{"offset": 85, "length": 15}], "confidence": 0.957}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/161_jpg.rf.9aa72f6041d7bd93f974f8491b56fbc7.json b/Data/train/161_jpg.rf.9aa72f6041d7bd93f974f8491b56fbc7.json new file mode 100644 index 0000000000000000000000000000000000000000..8e99ce217a3f77b26a61c5501630e852b48f4761 --- /dev/null +++ b/Data/train/161_jpg.rf.9aa72f6041d7bd93f974f8491b56fbc7.json @@ -0,0 +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": 380}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "212", "po_box": null, "road": "Aston Road", "city": "Surrey", "state": null, "postal_code": "V3R 0A1", "country_region": null, "street_address": "212 Aston Road"}, "content": "212 Aston Road\nSurrey V3R 0A1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 251.0}, {"x": 196.0, "y": 251.0}, {"x": 196.0, "y": 269.0}, {"x": 135.0, "y": 269.0}]}], "spans": [{"offset": 148, "length": 29}], "confidence": 0.909}, "CustomerAddressRecipient": {"value_type": "string", "value": "John Smith\njohnsmith@johnsmith.com", "content": "John Smith\njohnsmith@johnsmith.com", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 231.0}, {"x": 234.0, "y": 230.0}, {"x": 234.0, "y": 250.0}, {"x": 135.0, "y": 250.0}]}], "spans": [{"offset": 113, "length": 34}], "confidence": 0.573}, "CustomerName": {"value_type": "string", "value": "John Smith\njohnsmith@johnsmith.com", "content": "John Smith\njohnsmith@johnsmith.com", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 231.0}, {"x": 234.0, "y": 230.0}, {"x": 234.0, "y": 250.0}, {"x": 135.0, "y": 250.0}]}], "spans": [{"offset": 113, "length": 34}], "confidence": 0.573}, "DueDate": {"value_type": "date", "value": "2017-05-30", "content": "May 30th, 2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 300.0}, {"x": 489.0, "y": 300.0}, {"x": 489.0, "y": 309.0}, {"x": 433.0, "y": 309.0}]}], "spans": [{"offset": 229, "length": 14}], "confidence": 0.83}, "InvoiceDate": {"value_type": "date", "value": "2017-04-19", "content": "Apr 19th, 2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 195.0, "y": 304.0}, {"x": 247.0, "y": 304.0}, {"x": 247.0, "y": 312.0}, {"x": 195.0, "y": 312.0}]}], "spans": [{"offset": 209, "length": 14}], "confidence": 0.829}, "InvoiceId": {"value_type": "string", "value": "4568", "content": "4568", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 184.0, "y": 291.0}, {"x": 201.0, "y": 291.0}, {"x": 201.0, "y": 299.0}, {"x": 184.0, "y": 298.0}]}], "spans": [{"offset": 190, "length": 4}], "confidence": 0.91}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 642.6, "symbol": "$"}, "content": "$642.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 474.0, "y": 517.0}, {"x": 501.0, "y": 517.0}, {"x": 501.0, "y": 524.0}, {"x": 474.0, "y": 525.0}]}], "spans": [{"offset": 366, "length": 7}], "confidence": 0.893}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 595.0, "symbol": "$"}, "content": "$595.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 458.0, "y": 377.0}, {"x": 487.0, "y": 377.0}, {"x": 487.0, "y": 384.0}, {"x": 459.0, "y": 384.0}]}], "spans": [{"offset": 304, "length": 7}], "confidence": 0.981}, "Description": {"value_type": "string", "value": "Developer hours", "content": "Developer hours", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 376.0}, {"x": 195.0, "y": 377.0}, {"x": 195.0, "y": 385.0}, {"x": 137.0, "y": 384.0}]}], "spans": [{"offset": 275, "length": 15}], "confidence": 0.948}, "Quantity": {"value_type": "float", "value": 17.0, "content": "17", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 308.0, "y": 376.0}, {"x": 316.0, "y": 376.0}, {"x": 316.0, "y": 383.0}, {"x": 308.0, "y": 383.0}]}], "spans": [{"offset": 291, "length": 2}], "confidence": 0.982}, "Tax": {"value_type": "currency", "value": null, "content": "GST", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 391.0, "y": 376.0}, {"x": 405.0, "y": 376.0}, {"x": 405.0, "y": 383.0}, {"x": 391.0, "y": 383.0}]}], "spans": [{"offset": 300, "length": 3}], "confidence": 0.963}, "UnitPrice": {"value_type": "currency", "value": {"amount": 35.0, "symbol": null}, "content": "35.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 353.0, "y": 377.0}, {"x": 372.0, "y": 377.0}, {"x": 372.0, "y": 384.0}, {"x": 353.0, "y": 384.0}]}], "spans": [{"offset": 294, "length": 5}], "confidence": 0.982}}, "content": "Developer hours\n17\n35.00\nGST\n$595.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 376.0}, {"x": 487.0, "y": 376.0}, {"x": 487.0, "y": 385.0}, {"x": 137.0, "y": 385.0}]}], "spans": [{"offset": 275, "length": 36}], "confidence": 0.942}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 595.0, "symbol": "$"}, "content": "$595.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 474.0, "y": 449.0}, {"x": 502.0, "y": 448.0}, {"x": 501.0, "y": 456.0}, {"x": 474.0, "y": 456.0}]}], "spans": [{"offset": 337, "length": 7}], "confidence": 0.9}, "TotalTax": {"value_type": "currency", "value": {"amount": 47.6, "symbol": "$"}, "content": "$47.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 483.0}, {"x": 501.0, "y": 482.0}, {"x": 502.0, "y": 490.0}, {"x": 478.0, "y": 490.0}]}], "spans": [{"offset": 353, "length": 6}], "confidence": 0.896}, "VendorAddress": {"value_type": "address", "value": {"house_number": "1231", "po_box": null, "road": "Ontario Drive", "city": "Toronto", "state": "Ontario", "postal_code": null, "country_region": null, "street_address": "1231 Ontario Drive"}, "content": "1231 Ontario Drive\nToronto, Ontario", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 152.0}, {"x": 208.0, "y": 152.0}, {"x": 208.0, "y": 171.0}, {"x": 136.0, "y": 171.0}]}], "spans": [{"offset": 29, "length": 35}], "confidence": 0.863}, "VendorAddressRecipient": {"value_type": "string", "value": "ACME Intemational", "content": "ACME Intemational", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 142.0}, {"x": 208.0, "y": 142.0}, {"x": 208.0, "y": 150.0}, {"x": 135.0, "y": 150.0}]}], "spans": [{"offset": 11, "length": 17}], "confidence": 0.845}, "VendorName": {"value_type": "string", "value": "ACME", "content": "ACME", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 174.0, "y": 60.0}, {"x": 244.0, "y": 60.0}, {"x": 244.0, "y": 91.0}, {"x": 174.0, "y": 91.0}]}], "spans": [{"offset": 0, "length": 4}], "confidence": 0.896}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/162_jpg.rf.8034886cbe619b1423400b501b6c1c57.json b/Data/train/162_jpg.rf.8034886cbe619b1423400b501b6c1c57.json new file mode 100644 index 0000000000000000000000000000000000000000..f629309cb9c656319e07e8c642466942d398fadc --- /dev/null +++ b/Data/train/162_jpg.rf.8034886cbe619b1423400b501b6c1c57.json @@ -0,0 +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": 1535}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 142485.0, "symbol": null}, "content": "142,485", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 316.0}, {"x": 498.0, "y": 316.0}, {"x": 498.0, "y": 324.0}, {"x": 470.0, "y": 324.0}]}], "spans": [{"offset": 1337, "length": 7}], "confidence": null}, "BillingAddress": {"value_type": "address", "value": {"house_number": "305, 3rd Floor", "po_box": null, "road": "Orion mall", "city": "Bengaluru", "state": "Karnataka", "postal_code": "560055", "country_region": "India", "street_address": "305, 3rd Floor Orion mall"}, "content": "305, 3rd Floor Orion mall, Bengaluru,\nKarnataka, India - 560055", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 214.0, "y": 82.0}, {"x": 337.0, "y": 82.0}, {"x": 337.0, "y": 102.0}, {"x": 214.0, "y": 102.0}]}], "spans": [{"offset": 115, "length": 63}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "Studio Den", "content": "Studio Den", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 214.0, "y": 67.0}, {"x": 252.0, "y": 68.0}, {"x": 252.0, "y": 77.0}, {"x": 214.0, "y": 76.0}]}], "spans": [{"offset": 104, "length": 10}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Studio Den", "content": "Studio Den", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 214.0, "y": 67.0}, {"x": 252.0, "y": 68.0}, {"x": 252.0, "y": 77.0}, {"x": 214.0, "y": 76.0}]}], "spans": [{"offset": 104, "length": 10}], "confidence": null}, "DueDate": {"value_type": "date", "value": "2020-02-19", "content": "FEB 19. 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 82.0}, {"x": 504.0, "y": 82.0}, {"x": 504.0, "y": 92.0}, {"x": 459.0, "y": 92.0}]}], "spans": [{"offset": 287, "length": 12}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2020-02-19", "content": "FEB 19, 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 69.0}, {"x": 503.0, "y": 69.0}, {"x": 503.0, "y": 78.0}, {"x": 459.0, "y": 78.0}]}], "spans": [{"offset": 264, "length": 12}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "003", "content": "003", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 56.0}, {"x": 504.0, "y": 56.0}, {"x": 504.0, "y": 64.0}, {"x": 490.0, "y": 64.0}]}], "spans": [{"offset": 246, "length": 3}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 142485.0, "symbol": null}, "content": "142,485", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 316.0}, {"x": 498.0, "y": 316.0}, {"x": 498.0, "y": 324.0}, {"x": 470.0, "y": 324.0}]}], "spans": [{"offset": 1337, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.0, "symbol": null}, "content": "E 10.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 430.0, "y": 175.0}, {"x": 455.0, "y": 176.0}, {"x": 455.0, "y": 184.0}, {"x": 430.0, "y": 183.0}]}], "spans": [{"offset": 443, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "Basic web Deveicgehenit", "content": "Basic web Deveicgehenit", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 82.0, "y": 174.0}, {"x": 155.0, "y": 174.0}, {"x": 155.0, "y": 184.0}, {"x": 82.0, "y": 184.0}]}], "spans": [{"offset": 410, "length": 23}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 90.0, "symbol": "\u20b9"}, "content": "\u20b9 90.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 351.0, "y": 176.0}, {"x": 376.0, "y": 176.0}, {"x": 376.0, "y": 183.0}, {"x": 351.0, "y": 183.0}]}], "spans": [{"offset": 434, "length": 8}], "confidence": null}}, "content": "Basic web Deveicgehenit\n\u20b9 90.000\nE 10.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 82.0, "y": 174.0}, {"x": 455.0, "y": 174.0}, {"x": 455.0, "y": 184.0}, {"x": 82.0, "y": 184.0}]}], "spans": [{"offset": 410, "length": 41}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 19.0, "symbol": "\u20b9"}, "content": "\u20b9 19.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 430.0, "y": 199.0}, {"x": 454.0, "y": 199.0}, {"x": 454.0, "y": 206.0}, {"x": 430.0, "y": 206.0}]}], "spans": [{"offset": 489, "length": 8}], "confidence": null}, "Description": {"value_type": "string", "value": "Basic web Development", "content": "Basic web Development", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 82.0, "y": 198.0}, {"x": 154.0, "y": 198.0}, {"x": 154.0, "y": 207.0}, {"x": 82.0, "y": 207.0}]}], "spans": [{"offset": 452, "length": 21}], "confidence": null}}, "content": "Basic web Development\n12%\n\u20b9 19.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 82.0, "y": 198.0}, {"x": 454.0, "y": 198.0}, {"x": 454.0, "y": 207.0}, {"x": 82.0, "y": 207.0}]}], "spans": [{"offset": 452, "length": 21}, {"offset": 485, "length": 12}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 40.0, "symbol": "\u20b9"}, "content": "\u20b940.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 257.0}, {"x": 498.0, "y": 256.0}, {"x": 498.0, "y": 267.0}, {"x": 469.0, "y": 266.0}]}], "spans": [{"offset": 1267, "length": 7}], "confidence": null}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 40.0, "symbol": "\u20b9"}, "content": "\u20b940.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 470.0, "y": 277.0}, {"x": 498.0, "y": 277.0}, {"x": 498.0, "y": 286.0}, {"x": 470.0, "y": 286.0}]}], "spans": [{"offset": 1289, "length": 7}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "46", "po_box": null, "road": null, "city": "Surat", "state": "Gujarat", "postal_code": "394210", "country_region": "India", "street_address": "46"}, "content": "46: Raghuveer Dham Society\nSurat, Gujarat, India - 394210", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 82.0}, {"x": 174.0, "y": 82.0}, {"x": 174.0, "y": 105.0}, {"x": 74.0, "y": 105.0}]}], "spans": [{"offset": 36, "length": 57}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "Foobar Labs", "content": "Foobar Labs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 68.0}, {"x": 117.0, "y": 70.0}, {"x": 117.0, "y": 80.0}, {"x": 74.0, "y": 78.0}]}], "spans": [{"offset": 24, "length": 11}], "confidence": null}, "VendorName": {"value_type": "string", "value": "F\nFOOBAR\nLABS", "content": "F FOOBAR LABS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 84.0, "y": 12.0}, {"x": 170.0, "y": 12.0}, {"x": 170.0, "y": 41.0}, {"x": 84.0, "y": 41.0}]}], "spans": [{"offset": 0, "length": 13}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/165_jpg.rf.dca8fe897ed37a79182398a658813aef.json b/Data/train/165_jpg.rf.dca8fe897ed37a79182398a658813aef.json new file mode 100644 index 0000000000000000000000000000000000000000..552d7886fa44c471da5db707082d723cb5fe8e91 --- /dev/null +++ b/Data/train/165_jpg.rf.dca8fe897ed37a79182398a658813aef.json @@ -0,0 +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": 1402}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 2727.08, "symbol": "\u20ac"}, "content": "\u20ac 2,727.08", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 517.0}, {"x": 551.0, "y": 518.0}, {"x": 551.0, "y": 529.0}, {"x": 512.0, "y": 528.0}]}], "spans": [{"offset": 850, "length": 10}], "confidence": null}, "BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Broadway", "city": "Cambridge", "state": "MA", "postal_code": "02142", "country_region": null, "street_address": "Broadway"}, "content": "One Broadway, 13th Floor\nCambridge, MA 02142.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 124.0}, {"x": 175.0, "y": 124.0}, {"x": 175.0, "y": 144.0}, {"x": 90.0, "y": 144.0}]}], "spans": [{"offset": 75, "length": 45}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "RK Solutions", "content": "RK Solutions", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 114.0}, {"x": 135.0, "y": 114.0}, {"x": 135.0, "y": 123.0}, {"x": 90.0, "y": 123.0}]}], "spans": [{"offset": 62, "length": 12}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "RK Solutions", "content": "RK Solutions", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 114.0}, {"x": 135.0, "y": 114.0}, {"x": 135.0, "y": 123.0}, {"x": 90.0, "y": 123.0}]}], "spans": [{"offset": 62, "length": 12}], "confidence": null}, "DueDate": {"value_type": "date", "value": "2013-10-11", "content": "10/11/2013", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 456.0, "y": 136.0}, {"x": 492.0, "y": 135.0}, {"x": 492.0, "y": 144.0}, {"x": 456.0, "y": 144.0}]}], "spans": [{"offset": 424, "length": 10}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2013-10-11", "content": "10/11/2013", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 114.0}, {"x": 491.0, "y": 114.0}, {"x": 491.0, "y": 123.0}, {"x": 456.0, "y": 123.0}]}], "spans": [{"offset": 379, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "5", "content": "5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 457.0, "y": 103.0}, {"x": 462.0, "y": 103.0}, {"x": 462.0, "y": 111.0}, {"x": 457.0, "y": 111.0}]}], "spans": [{"offset": 362, "length": 1}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2727.08, "symbol": null}, "content": "2,727.08", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 502.0}, {"x": 552.0, "y": 502.0}, {"x": 552.0, "y": 513.0}, {"x": 519.0, "y": 512.0}]}], "spans": [{"offset": 829, "length": 8}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 400.0, "symbol": null}, "content": "400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 532.0, "y": 225.0}, {"x": 550.0, "y": 225.0}, {"x": 550.0, "y": 231.0}, {"x": 532.0, "y": 231.0}]}], "spans": [{"offset": 567, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "\u0110\u01b0\u1eddng for Mahesh Nummer for 08/36/2013", "content": "\u0110\u01b0\u1eddng for Mahesh Nummer for 08/36/2013", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 226.0}, {"x": 278.0, "y": 226.0}, {"x": 278.0, "y": 235.0}, {"x": 165.0, "y": 235.0}]}], "spans": [{"offset": 521, "length": 38}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": null}, "content": "100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 225.0}, {"x": 486.0, "y": 224.0}, {"x": 486.0, "y": 232.0}, {"x": 468.0, "y": 231.0}]}], "spans": [{"offset": 560, "length": 6}], "confidence": null}}, "content": "\u0110\u01b0\u1eddng for Mahesh Nummer for 08/36/2013\n100.00\n400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 165.0, "y": 224.0}, {"x": 550.0, "y": 224.0}, {"x": 550.0, "y": 235.0}, {"x": 165.0, "y": 235.0}]}], "spans": [{"offset": 521, "length": 52}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 400.0, "symbol": null}, "content": "400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 531.0, "y": 250.0}, {"x": 550.0, "y": 250.0}, {"x": 550.0, "y": 256.0}, {"x": 532.0, "y": 256.0}]}], "spans": [{"offset": 581, "length": 6}], "confidence": null}}, "content": "100.00\n400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 250.0}, {"x": 550.0, "y": 250.0}, {"x": 550.0, "y": 256.0}, {"x": 467.0, "y": 256.0}]}], "spans": [{"offset": 574, "length": 13}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 400.0, "symbol": null}, "content": "400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 532.0, "y": 275.0}, {"x": 550.0, "y": 274.0}, {"x": 550.0, "y": 281.0}, {"x": 532.0, "y": 281.0}]}], "spans": [{"offset": 599, "length": 6}], "confidence": null}, "Quantity": {"value_type": "float", "value": 400.0, "content": "400", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 273.0}, {"x": 417.0, "y": 273.0}, {"x": 417.0, "y": 280.0}, {"x": 404.0, "y": 280.0}]}], "spans": [{"offset": 588, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": null}, "content": "100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 274.0}, {"x": 486.0, "y": 274.0}, {"x": 486.0, "y": 281.0}, {"x": 468.0, "y": 280.0}]}], "spans": [{"offset": 592, "length": 6}], "confidence": null}}, "content": "400\n100.00\n400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 273.0}, {"x": 550.0, "y": 273.0}, {"x": 550.0, "y": 281.0}, {"x": 404.0, "y": 281.0}]}], "spans": [{"offset": 588, "length": 17}], "confidence": null}, {"value_type": "dictionary", "value": {"UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": null}, "content": "100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 300.0}, {"x": 486.0, "y": 300.0}, {"x": 486.0, "y": 306.0}, {"x": 468.0, "y": 306.0}]}], "spans": [{"offset": 606, "length": 6}], "confidence": null}}, "content": "100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 300.0}, {"x": 486.0, "y": 300.0}, {"x": 486.0, "y": 306.0}, {"x": 468.0, "y": 306.0}]}], "spans": [{"offset": 606, "length": 6}], "confidence": null}, {"value_type": "dictionary", "value": {"Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 398.0}, {"x": 417.0, "y": 398.0}, {"x": 417.0, "y": 405.0}, {"x": 404.0, "y": 405.0}]}], "spans": [{"offset": 657, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 58.0, "symbol": null}, "content": "58.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 470.0, "y": 399.0}, {"x": 486.0, "y": 399.0}, {"x": 486.0, "y": 406.0}, {"x": 470.0, "y": 405.0}]}], "spans": [{"offset": 662, "length": 5}], "confidence": null}}, "content": "1.00\n58.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 396.0}, {"x": 486.0, "y": 399.0}, {"x": 486.0, "y": 408.0}, {"x": 404.0, "y": 405.0}]}], "spans": [{"offset": 657, "length": 10}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 245.35, "symbol": null}, "content": "245.35", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 531.0, "y": 423.0}, {"x": 550.0, "y": 423.0}, {"x": 550.0, "y": 430.0}, {"x": 532.0, "y": 430.0}]}], "spans": [{"offset": 711, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Alsowsh Kumar for 08/1502013", "content": "Alsowsh Kumar for 08/1502013", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 204.0, "y": 423.0}, {"x": 289.0, "y": 425.0}, {"x": 289.0, "y": 435.0}, {"x": 204.0, "y": 432.0}]}], "spans": [{"offset": 670, "length": 28}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 423.0}, {"x": 417.0, "y": 423.0}, {"x": 417.0, "y": 430.0}, {"x": 404.0, "y": 430.0}]}], "spans": [{"offset": 699, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 246.28, "symbol": null}, "content": "246.28", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 422.0}, {"x": 487.0, "y": 422.0}, {"x": 487.0, "y": 430.0}, {"x": 467.0, "y": 430.0}]}], "spans": [{"offset": 704, "length": 6}], "confidence": null}}, "content": "Alsowsh Kumar for 08/1502013\n1.00\n246.28\n245.35", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 204.0, "y": 422.0}, {"x": 550.0, "y": 422.0}, {"x": 550.0, "y": 433.0}, {"x": 204.0, "y": 433.0}]}], "spans": [{"offset": 670, "length": 47}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Custom", "content": "Custom", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 456.0, "y": 125.0}, {"x": 478.0, "y": 125.0}, {"x": 478.0, "y": 133.0}, {"x": 456.0, "y": 133.0}]}], "spans": [{"offset": 406, "length": 6}], "confidence": null}, "ServiceEndDate": {"value_type": "date", "value": "2013-08-18", "content": "08/18/2013", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 500.0, "y": 147.0}, {"x": 537.0, "y": 146.0}, {"x": 538.0, "y": 156.0}, {"x": 501.0, "y": 155.0}]}], "spans": [{"offset": 466, "length": 10}], "confidence": null}, "ServiceStartDate": {"value_type": "date", "value": "2013-08-05", "content": "08/05/2013", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 147.0}, {"x": 491.0, "y": 147.0}, {"x": 491.0, "y": 155.0}, {"x": 455.0, "y": 156.0}]}], "spans": [{"offset": 452, "length": 10}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 2600.7, "symbol": null}, "content": "2,600.70\n2,600.70", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 442.0}, {"x": 551.0, "y": 442.0}, {"x": 551.0, "y": 451.0}, {"x": 519.0, "y": 451.0}]}], "spans": [{"offset": 727, "length": 8}, {"offset": 765, "length": 8}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 76.46, "symbol": null}, "content": "76.46", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 530.0, "y": 472.0}, {"x": 551.0, "y": 472.0}, {"x": 551.0, "y": 482.0}, {"x": 530.0, "y": 482.0}]}], "spans": [{"offset": 801, "length": 5}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "11260", "po_box": null, "road": "Chester Road, Butte", "city": "Cincinnat", "state": "OH", "postal_code": "45246", "country_region": null, "street_address": "11260 Chester Road, Butte"}, "content": "11260 Chester Road, Butte # 600 Spectrum Ofcn Tower Cincinnat, OH 45246.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 386.0, "y": 17.0}, {"x": 493.0, "y": 17.0}, {"x": 493.0, "y": 48.0}, {"x": 386.0, "y": 48.0}]}], "spans": [{"offset": 238, "length": 72}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "MEM Consulting Company", "content": "MEM Consulting Company", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 385.0, "y": 6.0}, {"x": 478.0, "y": 6.0}, {"x": 478.0, "y": 17.0}, {"x": 385.0, "y": 17.0}]}], "spans": [{"offset": 215, "length": 22}], "confidence": null}, "VendorName": {"value_type": "string", "value": "M&M Consulting", "content": "M&M Consulting", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 67.0, "y": 2.0}, {"x": 250.0, "y": 5.0}, {"x": 250.0, "y": 27.0}, {"x": 67.0, "y": 24.0}]}], "spans": [{"offset": 0, "length": 14}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/167_jpg.rf.f123f77bcf7ab76db2acfad23ebd1919.json b/Data/train/167_jpg.rf.f123f77bcf7ab76db2acfad23ebd1919.json new file mode 100644 index 0000000000000000000000000000000000000000..ad6d3dafc24ddb05c52ebabb2e3f6307f2fc7cbf --- /dev/null +++ b/Data/train/167_jpg.rf.f123f77bcf7ab76db2acfad23ebd1919.json @@ -0,0 +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": 392}], "fields": {"InvoiceDate": {"value_type": "date", "value": null, "content": "25-Au-2008", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 88.0}, {"x": 541.0, "y": 88.0}, {"x": 541.0, "y": 95.0}, {"x": 512.0, "y": 95.0}]}], "spans": [{"offset": 53, "length": 10}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Mumbai", "state": null, "postal_code": "380015", "country_region": null, "street_address": ""}, "content": "Boa uklics 206, Kal\u0131nimam, India, Mumbai, 380015", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 247.0, "y": 544.0}, {"x": 401.0, "y": 544.0}, {"x": 401.0, "y": 552.0}, {"x": 247.0, "y": 552.0}]}], "spans": [{"offset": 298, "length": 48}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "Accounting India Pvt Ltd", "content": "Accounting India Pvt Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 283.0, "y": 536.0}, {"x": 362.0, "y": 536.0}, {"x": 362.0, "y": 544.0}, {"x": 283.0, "y": 544.0}]}], "spans": [{"offset": 273, "length": 24}], "confidence": null}, "VendorName": {"value_type": "string", "value": "ACCOUNTING INDIA PVT LTD\neasy", "content": "ACCOUNTING INDIA PVT LTD\neasy", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 24.0}, {"x": 243.0, "y": 24.0}, {"x": 243.0, "y": 55.0}, {"x": 100.0, "y": 55.0}]}], "spans": [{"offset": 8, "length": 29}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/1696_jpg.rf.c3c74442e5a2868c26856763b320df0c.json b/Data/train/1696_jpg.rf.c3c74442e5a2868c26856763b320df0c.json new file mode 100644 index 0000000000000000000000000000000000000000..1db250c214de15b9a59a1f75725989e66887fa08 --- /dev/null +++ b/Data/train/1696_jpg.rf.c3c74442e5a2868c26856763b320df0c.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1448.0, "y": 0.0}, {"x": 1448.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 1009}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "403-A", "po_box": null, "road": "4th Floor, Trade Square Building, Off\nAndheri Kurla Road, Sakinaka", "city": "Mumbai", "state": "MH", "postal_code": "400072", "country_region": "India", "street_address": "403-A 4th Floor, Trade Square Building, Off\nAndheri Kurla Road, Sakinaka"}, "content": "403-A, 4th Floor, Trade Square Building, Off\nAndheri Kurla Road, Sakinaka\nMumbai\nMH - 400072\nIndia", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 66.0, "y": 382.0}, {"x": 722.0, "y": 382.0}, {"x": 722.0, "y": 481.0}, {"x": 66.0, "y": 481.0}]}], "spans": [{"offset": 126, "length": 98}], "confidence": 0.803}, "CustomerAddressRecipient": {"value_type": "string", "value": "Dipti Singla\nRETNEXT TECHNOLOGIES PRIVATE LIMITED\nRetnext Technologies Pvt. Ltd.,", "content": "Dipti Singla\nRETNEXT TECHNOLOGIES PRIVATE LIMITED\nRetnext Technologies Pvt. Ltd.,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 66.0, "y": 345.0}, {"x": 482.0, "y": 345.0}, {"x": 482.0, "y": 406.0}, {"x": 66.0, "y": 406.0}]}], "spans": [{"offset": 44, "length": 81}], "confidence": 0.846}, "CustomerName": {"value_type": "string", "value": "Dipti Singla\nRETNEXT TECHNOLOGIES PRIVATE LIMITED\nRetnext Technologies Pvt. Ltd.,", "content": "Dipti Singla\nRETNEXT TECHNOLOGIES PRIVATE LIMITED\nRetnext Technologies Pvt. Ltd.,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 66.0, "y": 345.0}, {"x": 482.0, "y": 345.0}, {"x": 482.0, "y": 406.0}, {"x": 66.0, "y": 406.0}]}], "spans": [{"offset": 44, "length": 81}], "confidence": 0.846}, "InvoiceDate": {"value_type": "date", "value": "2020-06-08", "content": "06/08/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 940.0, "y": 585.0}, {"x": 1038.0, "y": 584.0}, {"x": 1037.0, "y": 606.0}, {"x": 940.0, "y": 605.0}]}], "spans": [{"offset": 494, "length": 10}], "confidence": 0.963}, "InvoiceId": {"value_type": "string", "value": "IBOM-92573", "content": "IBOM-92573", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 940.0, "y": 622.0}, {"x": 1051.0, "y": 623.0}, {"x": 1051.0, "y": 642.0}, {"x": 940.0, "y": 642.0}]}], "spans": [{"offset": 507, "length": 10}], "confidence": 0.95}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 35282.0, "symbol": null}, "content": "35282.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1257.0, "y": 975.0}, {"x": 1339.0, "y": 975.0}, {"x": 1339.0, "y": 996.0}, {"x": 1257.0, "y": 996.0}]}], "spans": [{"offset": 798, "length": 8}], "confidence": 0.958}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4100.0, "symbol": null}, "content": "4100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1268.0, "y": 738.0}, {"x": 1338.0, "y": 738.0}, {"x": 1338.0, "y": 760.0}, {"x": 1268.0, "y": 758.0}]}], "spans": [{"offset": 615, "length": 7}], "confidence": 0.907}, "Description": {"value_type": "string", "value": "1-Year Registration Fee", "content": "1-Year Registration Fee", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 143.0, "y": 737.0}, {"x": 346.0, "y": 738.0}, {"x": 346.0, "y": 761.0}, {"x": 143.0, "y": 760.0}]}], "spans": [{"offset": 578, "length": 23}], "confidence": 0.905}, "ProductCode": {"value_type": "string", "value": "01", "content": "01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 765.0, "y": 738.0}, {"x": 789.0, "y": 738.0}, {"x": 789.0, "y": 758.0}, {"x": 765.0, "y": 758.0}]}], "spans": [{"offset": 602, "length": 2}], "confidence": 0.432}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 883.0, "y": 740.0}, {"x": 888.0, "y": 740.0}, {"x": 888.0, "y": 756.0}, {"x": 883.0, "y": 756.0}]}], "spans": [{"offset": 605, "length": 1}], "confidence": 0.91}, "UnitPrice": {"value_type": "currency", "value": {"amount": 4100.0, "symbol": null}, "content": "4100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1044.0, "y": 738.0}, {"x": 1114.0, "y": 738.0}, {"x": 1114.0, "y": 760.0}, {"x": 1045.0, "y": 757.0}]}], "spans": [{"offset": 607, "length": 7}], "confidence": 0.906}}, "content": "1\n1-Year Registration Fee\n01\n1\n4100.00\n4100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 76.0, "y": 732.0}, {"x": 1338.0, "y": 738.0}, {"x": 1338.0, "y": 766.0}, {"x": 76.0, "y": 760.0}]}], "spans": [{"offset": 576, "length": 46}], "confidence": 0.91}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 25800.0, "symbol": null}, "content": "25800.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1258.0, "y": 771.0}, {"x": 1338.0, "y": 771.0}, {"x": 1338.0, "y": 791.0}, {"x": 1259.0, "y": 791.0}]}], "spans": [{"offset": 661, "length": 8}], "confidence": 0.907}, "Description": {"value_type": "string", "value": "1-Year Membership Fee", "content": "1-Year Membership Fee", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 144.0, "y": 769.0}, {"x": 350.0, "y": 771.0}, {"x": 350.0, "y": 795.0}, {"x": 144.0, "y": 793.0}]}], "spans": [{"offset": 625, "length": 21}], "confidence": 0.905}, "ProductCode": {"value_type": "string", "value": "01", "content": "01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 765.0, "y": 771.0}, {"x": 787.0, "y": 771.0}, {"x": 786.0, "y": 790.0}, {"x": 765.0, "y": 789.0}]}], "spans": [{"offset": 647, "length": 2}], "confidence": 0.433}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 883.0, "y": 772.0}, {"x": 890.0, "y": 772.0}, {"x": 890.0, "y": 789.0}, {"x": 883.0, "y": 789.0}]}], "spans": [{"offset": 650, "length": 1}], "confidence": 0.906}, "UnitPrice": {"value_type": "currency", "value": {"amount": 25800.0, "symbol": null}, "content": "25800.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1034.0, "y": 772.0}, {"x": 1113.0, "y": 771.0}, {"x": 1114.0, "y": 791.0}, {"x": 1035.0, "y": 790.0}]}], "spans": [{"offset": 652, "length": 8}], "confidence": 0.906}}, "content": "2\n1-Year Membership Fee\n01\n1\n25800.00\n25800.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 74.0, "y": 770.0}, {"x": 1338.0, "y": 770.0}, {"x": 1338.0, "y": 794.0}, {"x": 74.0, "y": 794.0}]}], "spans": [{"offset": 623, "length": 46}], "confidence": 0.91}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddressRecipient": {"value_type": "string", "value": "BNI India Enterprises Private Limited.", "content": "BNI India Enterprises Private Limited.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 388.0, "y": 1089.0}, {"x": 716.0, "y": 1089.0}, {"x": 716.0, "y": 1115.0}, {"x": 388.0, "y": 1115.0}]}], "spans": [{"offset": 843, "length": 38}], "confidence": 0.422}, "SubTotal": {"value_type": "currency", "value": {"amount": 29900.0, "symbol": null}, "content": "29900.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1258.0, "y": 805.0}, {"x": 1339.0, "y": 804.0}, {"x": 1339.0, "y": 824.0}, {"x": 1258.0, "y": 824.0}]}], "spans": [{"offset": 680, "length": 8}], "confidence": 0.839}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Rate": {"value_type": "string", "value": "9.000", "content": "9.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 636.0, "y": 911.0}, {"x": 684.0, "y": 911.0}, {"x": 683.0, "y": 931.0}, {"x": 635.0, "y": 930.0}]}], "spans": [{"offset": 728, "length": 5}], "confidence": 0.285}}, "content": "9.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 636.0, "y": 911.0}, {"x": 684.0, "y": 911.0}, {"x": 683.0, "y": 931.0}, {"x": 635.0, "y": 930.0}]}], "spans": [{"offset": 728, "length": 5}], "confidence": 0.077}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2691.0, "symbol": null}, "content": "2691.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1269.0, "y": 911.0}, {"x": 1338.0, "y": 911.0}, {"x": 1338.0, "y": 931.0}, {"x": 1269.0, "y": 931.0}]}], "spans": [{"offset": 739, "length": 7}], "confidence": 0.905}, "Rate": {"value_type": "string", "value": "9.000", "content": "9.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 636.0, "y": 942.0}, {"x": 684.0, "y": 943.0}, {"x": 683.0, "y": 963.0}, {"x": 635.0, "y": 962.0}]}], "spans": [{"offset": 752, "length": 5}], "confidence": 0.291}}, "content": "SGST\n2691.00\n01\n0\n9.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 71.0, "y": 910.0}, {"x": 1338.0, "y": 910.0}, {"x": 1338.0, "y": 963.0}, {"x": 71.0, "y": 963.0}]}], "spans": [{"offset": 734, "length": 23}], "confidence": 0.579}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2691.0, "symbol": null}, "content": "2691.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1269.0, "y": 943.0}, {"x": 1338.0, "y": 942.0}, {"x": 1338.0, "y": 964.0}, {"x": 1269.0, "y": 963.0}]}], "spans": [{"offset": 763, "length": 7}], "confidence": 0.904}}, "content": "CGST\n2691.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1147.0, "y": 942.0}, {"x": 1338.0, "y": 942.0}, {"x": 1338.0, "y": 964.0}, {"x": 1147.0, "y": 964.0}]}], "spans": [{"offset": 758, "length": 12}], "confidence": 0.749}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "1202", "po_box": null, "road": "12th Floor, DLH Park\nNear MTNL", "city": "Mumbai", "state": "Maharashtra", "postal_code": "400062", "country_region": "India", "street_address": "1202 12th Floor, DLH Park\nNear MTNL"}, "content": "1202, 12th Floor, DLH Park Near MTNL, Goregaon West Mumbai Maharashtra - 400062 India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1094.0, "y": 208.0}, {"x": 1346.0, "y": 208.0}, {"x": 1346.0, "y": 306.0}, {"x": 1094.0, "y": 306.0}]}], "spans": [{"offset": 339, "length": 85}], "confidence": 0.845}, "VendorAddressRecipient": {"value_type": "string", "value": "BNI India Enterprises Private Limited", "content": "BNI India Enterprises Private Limited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1024.0, "y": 188.0}, {"x": 1345.0, "y": 188.0}, {"x": 1345.0, "y": 211.0}, {"x": 1024.0, "y": 211.0}]}], "spans": [{"offset": 301, "length": 37}], "confidence": 0.907}, "VendorName": {"value_type": "string", "value": "BNI\nBNI India Enterprises Private Limited\n\u00ae", "content": "BNI\nBNI India Enterprises Private Limited\n\u00ae", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 63.0, "y": 68.0}, {"x": 899.0, "y": 68.0}, {"x": 899.0, "y": 181.0}, {"x": 63.0, "y": 181.0}]}], "spans": [{"offset": 0, "length": 43}], "confidence": 0.404}, "VendorTaxId": {"value_type": "string", "value": "27AAGCB7746M1Z3", "content": "27AAGCB7746M1Z3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 139.0, "y": 1242.0}, {"x": 323.0, "y": 1242.0}, {"x": 323.0, "y": 1265.0}, {"x": 139.0, "y": 1265.0}]}], "spans": [{"offset": 977, "length": 15}], "confidence": 0.524}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/16_jpg.rf.f06d0e730e335b5926501b939122fa8e.json b/Data/train/16_jpg.rf.f06d0e730e335b5926501b939122fa8e.json new file mode 100644 index 0000000000000000000000000000000000000000..44aae48e70fad408c04376255683a325d32820ed --- /dev/null +++ b/Data/train/16_jpg.rf.f06d0e730e335b5926501b939122fa8e.json @@ -0,0 +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": 798}], "fields": {"DueDate": {"value_type": "date", "value": "2018-07-11", "content": "0771 1/2018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 208.0, "y": 132.0}, {"x": 244.0, "y": 132.0}, {"x": 244.0, "y": 140.0}, {"x": 208.0, "y": 140.0}]}], "spans": [{"offset": 67, "length": 11}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2016-06-11", "content": "06/1 1/2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 209.0, "y": 123.0}, {"x": 244.0, "y": 123.0}, {"x": 244.0, "y": 131.0}, {"x": 209.0, "y": 131.0}]}], "spans": [{"offset": 46, "length": 11}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "2016-0007", "content": "2016-0007", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 209.0, "y": 115.0}, {"x": 243.0, "y": 114.0}, {"x": 243.0, "y": 123.0}, {"x": 209.0, "y": 122.0}]}], "spans": [{"offset": 36, "length": 9}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 75246.0, "symbol": null}, "content": "75,246.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 470.0, "y": 360.0}, {"x": 501.0, "y": 360.0}, {"x": 501.0, "y": 368.0}, {"x": 470.0, "y": 367.0}]}], "spans": [{"offset": 501, "length": 9}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 100.0, "symbol": null}, "content": "100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 479.0, "y": 212.0}, {"x": 500.0, "y": 211.0}, {"x": 501.0, "y": 219.0}, {"x": 480.0, "y": 218.0}]}], "spans": [{"offset": 247, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Tools of the Trade\nThis is the description of the first tom.\nit can spam multiple lines", "content": "Tools of the Trade This is the description of the first tom. it can spam multiple lines", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 211.0}, {"x": 253.0, "y": 211.0}, {"x": 253.0, "y": 236.0}, {"x": 135.0, "y": 236.0}]}], "spans": [{"offset": 153, "length": 87}], "confidence": 0.994}, "UnitPrice": {"value_type": "currency", "value": {"amount": 75.0, "symbol": null}, "content": "75.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 211.0}, {"x": 454.0, "y": 211.0}, {"x": 454.0, "y": 219.0}, {"x": 438.0, "y": 218.0}]}], "spans": [{"offset": 241, "length": 5}], "confidence": null}}, "content": "Tools of the Trade This is the description of the first tom. it can spam multiple lines\n75.00\n100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 211.0}, {"x": 501.0, "y": 211.0}, {"x": 501.0, "y": 236.0}, {"x": 135.0, "y": 236.0}]}], "spans": [{"offset": 153, "length": 100}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 73800.0, "symbol": null}, "content": "73,800.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 470.0, "y": 247.0}, {"x": 501.0, "y": 247.0}, {"x": 501.0, "y": 255.0}, {"x": 470.0, "y": 255.0}]}], "spans": [{"offset": 346, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Labour\nThis is the description of the first hem.\ni can span multiple lines", "content": "Labour This is the description of the first hem. i can span multiple lines", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 248.0}, {"x": 254.0, "y": 248.0}, {"x": 254.0, "y": 272.0}, {"x": 135.0, "y": 272.0}]}], "spans": [{"offset": 254, "length": 74}], "confidence": 0.983}, "Quantity": {"value_type": "float", "value": 123.0, "content": "123 hours", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 378.0, "y": 247.0}, {"x": 408.0, "y": 247.0}, {"x": 408.0, "y": 255.0}, {"x": 378.0, "y": 255.0}]}], "spans": [{"offset": 329, "length": 9}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 500.0, "symbol": null}, "content": "500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 246.0}, {"x": 454.0, "y": 246.0}, {"x": 454.0, "y": 254.0}, {"x": 433.0, "y": 254.0}]}], "spans": [{"offset": 339, "length": 6}], "confidence": null}}, "content": "Labour This is the description of the first hem. i can span multiple lines\n123 hours\n500.00\n73,800.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 246.0}, {"x": 501.0, "y": 246.0}, {"x": 501.0, "y": 272.0}, {"x": 135.0, "y": 272.0}]}], "spans": [{"offset": 254, "length": 101}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 90.0, "symbol": null}, "content": "90.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 483.0, "y": 283.0}, {"x": 498.0, "y": 283.0}, {"x": 498.0, "y": 291.0}, {"x": 483.0, "y": 291.0}]}], "spans": [{"offset": 374, "length": 4}], "confidence": null}, "Description": {"value_type": "string", "value": "Spare Parts", "content": "Spare Parts", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 283.0}, {"x": 175.0, "y": 284.0}, {"x": 175.0, "y": 293.0}, {"x": 136.0, "y": 292.0}]}], "spans": [{"offset": 356, "length": 11}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 45.0, "symbol": null}, "content": "45.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 437.0, "y": 284.0}, {"x": 453.0, "y": 284.0}, {"x": 453.0, "y": 291.0}, {"x": 437.0, "y": 290.0}]}], "spans": [{"offset": 368, "length": 5}], "confidence": null}}, "content": "Spare Parts\n45.00\n90.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 273.0}, {"x": 498.0, "y": 283.0}, {"x": 498.0, "y": 302.0}, {"x": 136.0, "y": 292.0}]}], "spans": [{"offset": 356, "length": 22}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 456.0, "symbol": null}, "content": "456.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 479.0, "y": 304.0}, {"x": 500.0, "y": 304.0}, {"x": 501.0, "y": 311.0}, {"x": 480.0, "y": 312.0}]}], "spans": [{"offset": 465, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "Travel\nThis is the description of the first tem.\nI com span multiple anos", "content": "Travel This is the description of the first tem. I com span multiple anos", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 303.0}, {"x": 254.0, "y": 303.0}, {"x": 254.0, "y": 329.0}, {"x": 135.0, "y": 329.0}]}], "spans": [{"offset": 379, "length": 73}], "confidence": 0.983}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1 km", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 393.0, "y": 304.0}, {"x": 406.0, "y": 304.0}, {"x": 406.0, "y": 311.0}, {"x": 393.0, "y": 311.0}]}], "spans": [{"offset": 453, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 450.0, "symbol": null}, "content": "450.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 304.0}, {"x": 454.0, "y": 304.0}, {"x": 454.0, "y": 311.0}, {"x": 433.0, "y": 311.0}]}], "spans": [{"offset": 458, "length": 6}], "confidence": null}}, "content": "Travel This is the description of the first tem. I com span multiple anos\n1 km\n450.00\n456.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 303.0}, {"x": 501.0, "y": 303.0}, {"x": 501.0, "y": 329.0}, {"x": 135.0, "y": 329.0}]}], "spans": [{"offset": 379, "length": 92}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "30 days\nBy wire transfer.", "content": "30 days By wire transfer.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 128.0, "y": 387.0}, {"x": 214.0, "y": 387.0}, {"x": 214.0, "y": 405.0}, {"x": 128.0, "y": 405.0}]}], "spans": [{"offset": 543, "length": 25}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 75248.0, "symbol": null}, "content": "75,248.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 470.0, "y": 340.0}, {"x": 500.0, "y": 339.0}, {"x": 500.0, "y": 347.0}, {"x": 470.0, "y": 347.0}]}], "spans": [{"offset": 481, "length": 9}], "confidence": null}, "VendorName": {"value_type": "string", "value": "Greenair", "content": "Greenair", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 397.0, "y": 59.0}, {"x": 501.0, "y": 58.0}, {"x": 502.0, "y": 86.0}, {"x": 397.0, "y": 87.0}]}], "spans": [{"offset": 111, "length": 8}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/16_png.rf.8b8a265c32af06c5a1ac9db71bd9328f.json b/Data/train/16_png.rf.8b8a265c32af06c5a1ac9db71bd9328f.json new file mode 100644 index 0000000000000000000000000000000000000000..9279b80f9e331f6bb17348835c0c333fad8ffdfb --- /dev/null +++ b/Data/train/16_png.rf.8b8a265c32af06c5a1ac9db71bd9328f.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 875.0, "y": 0.0}, {"x": 875.0, "y": 745.0}, {"x": 0.0, "y": 745.0}]}], "spans": [{"offset": 0, "length": 697}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "151", "po_box": null, "road": "Narrows Parkway", "city": "Birmingham", "state": null, "postal_code": null, "country_region": "United Kingdom", "street_address": "151 Narrows Parkway"}, "content": "151 Narrows Parkway\nBirmingham West Midlands B11\nUnited Kingdom", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 289.0}, {"x": 336.0, "y": 291.0}, {"x": 336.0, "y": 352.0}, {"x": 125.0, "y": 350.0}]}], "spans": [{"offset": 165, "length": 63}], "confidence": 0.892}, "CustomerAddressRecipient": {"value_type": "string", "value": "Simon Wiseman", "content": "Simon Wiseman", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 269.0}, {"x": 240.0, "y": 270.0}, {"x": 240.0, "y": 287.0}, {"x": 125.0, "y": 286.0}]}], "spans": [{"offset": 151, "length": 13}], "confidence": 0.936}, "CustomerName": {"value_type": "string", "value": "Simon Wiseman", "content": "Simon Wiseman", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 269.0}, {"x": 240.0, "y": 270.0}, {"x": 240.0, "y": 287.0}, {"x": 125.0, "y": 286.0}]}], "spans": [{"offset": 151, "length": 13}], "confidence": 0.936}, "InvoiceDate": {"value_type": "date", "value": "2017-01-31", "content": "31/01/2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 733.0, "y": 117.0}, {"x": 806.0, "y": 117.0}, {"x": 806.0, "y": 134.0}, {"x": 733.0, "y": 134.0}]}], "spans": [{"offset": 269, "length": 10}], "confidence": 0.977}, "InvoiceId": {"value_type": "string", "value": "PDF46-WEB", "content": "PDF46-WEB", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 720.0, "y": 138.0}, {"x": 804.0, "y": 138.0}, {"x": 804.0, "y": 154.0}, {"x": 721.0, "y": 154.0}]}], "spans": [{"offset": 296, "length": 9}], "confidence": 0.977}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1455.0, "symbol": "$"}, "content": "$ 1,455.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 729.0, "y": 616.0}, {"x": 800.0, "y": 616.0}, {"x": 800.0, "y": 633.0}, {"x": 729.0, "y": 633.0}]}], "spans": [{"offset": 620, "length": 10}], "confidence": 0.936}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1380.0, "symbol": "$"}, "content": "$ 1,380.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 733.0, "y": 439.0}, {"x": 801.0, "y": 440.0}, {"x": 801.0, "y": 458.0}, {"x": 733.0, "y": 457.0}]}], "spans": [{"offset": 488, "length": 10}], "confidence": 0.932}, "Description": {"value_type": "string", "value": "Laptop\n\u00b7 Laptop Upgrades: 2GB Extra Ram\n. Laptop Upgrades: Second 512GB Hard Drive", "content": "Laptop \u00b7 Laptop Upgrades: 2GB Extra Ram . Laptop Upgrades: Second 512GB Hard Drive", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 126.0, "y": 441.0}, {"x": 432.0, "y": 441.0}, {"x": 432.0, "y": 493.0}, {"x": 126.0, "y": 493.0}]}], "spans": [{"offset": 394, "length": 82}], "confidence": 0.685}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 441.0}, {"x": 114.0, "y": 441.0}, {"x": 114.0, "y": 454.0}, {"x": 108.0, "y": 454.0}]}], "spans": [{"offset": 392, "length": 1}], "confidence": 0.931}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1380.0, "symbol": "$"}, "content": "$ 1,380.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 607.0, "y": 440.0}, {"x": 674.0, "y": 440.0}, {"x": 674.0, "y": 457.0}, {"x": 607.0, "y": 457.0}]}], "spans": [{"offset": 477, "length": 10}], "confidence": 0.931}}, "content": "1\nLaptop \u00b7 Laptop Upgrades: 2GB Extra Ram . Laptop Upgrades: Second 512GB Hard Drive\n$ 1,380.00\n$ 1,380.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 440.0}, {"x": 801.0, "y": 440.0}, {"x": 801.0, "y": 493.0}, {"x": 108.0, "y": 493.0}]}], "spans": [{"offset": 392, "length": 106}], "confidence": 0.801}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 35.0, "symbol": "$"}, "content": "$ 35.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 753.0, "y": 506.0}, {"x": 801.0, "y": 506.0}, {"x": 801.0, "y": 522.0}, {"x": 753.0, "y": 522.0}]}], "spans": [{"offset": 565, "length": 7}], "confidence": 0.932}, "Description": {"value_type": "string", "value": "Accessories\n. Accessories: Laser Mouse / Keyboard Combo", "content": "Accessories . Accessories: Laser Mouse / Keyboard Combo", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 127.0, "y": 507.0}, {"x": 435.0, "y": 507.0}, {"x": 435.0, "y": 541.0}, {"x": 127.0, "y": 541.0}]}], "spans": [{"offset": 501, "length": 55}], "confidence": 0.745}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 507.0}, {"x": 114.0, "y": 507.0}, {"x": 114.0, "y": 521.0}, {"x": 107.0, "y": 520.0}]}], "spans": [{"offset": 499, "length": 1}], "confidence": 0.931}, "UnitPrice": {"value_type": "currency", "value": {"amount": 35.0, "symbol": "$"}, "content": "$ 35.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 626.0, "y": 506.0}, {"x": 674.0, "y": 506.0}, {"x": 674.0, "y": 522.0}, {"x": 626.0, "y": 522.0}]}], "spans": [{"offset": 557, "length": 7}], "confidence": 0.931}}, "content": "1\nAccessories . Accessories: Laser Mouse / Keyboard Combo\n$ 35.00\n$ 35.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 107.0, "y": 506.0}, {"x": 801.0, "y": 506.0}, {"x": 801.0, "y": 541.0}, {"x": 107.0, "y": 541.0}]}], "spans": [{"offset": 499, "length": 73}], "confidence": 0.832}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 1415.0, "symbol": "$"}, "content": "$ 1,415.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 733.0, "y": 554.0}, {"x": 801.0, "y": 554.0}, {"x": 801.0, "y": 571.0}, {"x": 733.0, "y": 571.0}]}], "spans": [{"offset": 582, "length": 10}], "confidence": 0.938}, "VendorAddress": {"value_type": "address", "value": {"house_number": "48", "po_box": null, "road": "Federation Way", "city": "Telegraph Point", "state": "NSW", "postal_code": "2441", "country_region": "Australia", "street_address": "48 Federation Way"}, "content": "48 Federation Way Telegraph Point NSW 2441, Australia", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 151.0}, {"x": 306.0, "y": 151.0}, {"x": 306.0, "y": 186.0}, {"x": 60.0, "y": 186.0}]}], "spans": [{"offset": 44, "length": 53}], "confidence": 0.9}, "VendorAddressRecipient": {"value_type": "string", "value": "Gravity PDF", "content": "Gravity PDF", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 61.0, "y": 116.0}, {"x": 145.0, "y": 116.0}, {"x": 145.0, "y": 133.0}, {"x": 61.0, "y": 133.0}]}], "spans": [{"offset": 12, "length": 11}], "confidence": 0.932}, "VendorName": {"value_type": "string", "value": "GRAVITY PDF", "content": "GRAVITY PDF", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 147.0, "y": 35.0}, {"x": 289.0, "y": 35.0}, {"x": 289.0, "y": 65.0}, {"x": 147.0, "y": 65.0}]}], "spans": [{"offset": 0, "length": 11}], "confidence": 0.936}, "VendorTaxId": {"value_type": "string", "value": "74 212 487 581", "content": "74 212 487 581", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 100.0, "y": 133.0}, {"x": 195.0, "y": 133.0}, {"x": 195.0, "y": 149.0}, {"x": 100.0, "y": 149.0}]}], "spans": [{"offset": 29, "length": 14}], "confidence": 0.541}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/1703_jpg.rf.28678bb338cde3c4d29378e0bfe20217.json b/Data/train/1703_jpg.rf.28678bb338cde3c4d29378e0bfe20217.json new file mode 100644 index 0000000000000000000000000000000000000000..2c3765ec65893b5dec21bbb0b835a33401210dbf --- /dev/null +++ b/Data/train/1703_jpg.rf.28678bb338cde3c4d29378e0bfe20217.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1447.0, "y": 0.0}, {"x": 1447.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 850}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "\u20b9"}, "content": "\u20b90.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1307.0, "y": 1048.0}, {"x": 1361.0, "y": 1048.0}, {"x": 1361.0, "y": 1069.0}, {"x": 1307.0, "y": 1069.0}]}], "spans": [{"offset": 785, "length": 5}], "confidence": 0.942}, "BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": "Tamil Nadu", "postal_code": "621730", "country_region": "India", "street_address": ""}, "content": "Ni. E9 MCL colony\nCement Bagsr post\nAlathiyur\n621730 Tamil Nadu\nIndia", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 473.0}, {"x": 278.0, "y": 473.0}, {"x": 278.0, "y": 603.0}, {"x": 105.0, "y": 603.0}]}], "spans": [{"offset": 240, "length": 69}], "confidence": 0.848}, "BillingAddressRecipient": {"value_type": "string", "value": "Rajasekaran B", "content": "Rajasekaran B", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 106.0, "y": 443.0}, {"x": 252.0, "y": 443.0}, {"x": 252.0, "y": 468.0}, {"x": 106.0, "y": 468.0}]}], "spans": [{"offset": 226, "length": 13}], "confidence": 0.932}, "CustomerName": {"value_type": "string", "value": "Rajasekaran B", "content": "Rajasekaran B", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 106.0, "y": 443.0}, {"x": 252.0, "y": 443.0}, {"x": 252.0, "y": 468.0}, {"x": 106.0, "y": 468.0}]}], "spans": [{"offset": 226, "length": 13}], "confidence": 0.932}, "DueDate": {"value_type": "date", "value": "2020-06-14", "content": "14/06/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 426.0, "y": 334.0}, {"x": 531.0, "y": 334.0}, {"x": 532.0, "y": 357.0}, {"x": 427.0, "y": 357.0}]}], "spans": [{"offset": 194, "length": 10}], "confidence": 0.97}, "InvoiceDate": {"value_type": "date", "value": "2020-06-14", "content": "14/06/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 427.0, "y": 281.0}, {"x": 531.0, "y": 281.0}, {"x": 532.0, "y": 304.0}, {"x": 428.0, "y": 304.0}]}], "spans": [{"offset": 149, "length": 10}], "confidence": 0.972}, "InvoiceId": {"value_type": "string", "value": "TLC-000818", "content": "TLC-000818", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 427.0, "y": 254.0}, {"x": 534.0, "y": 254.0}, {"x": 534.0, "y": 276.0}, {"x": 427.0, "y": 277.0}]}], "spans": [{"offset": 89, "length": 10}], "confidence": 0.968}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 4758.3, "symbol": "\u20b9"}, "content": "\u20b94,758.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1274.0, "y": 986.0}, {"x": 1362.0, "y": 986.0}, {"x": 1362.0, "y": 1008.0}, {"x": 1275.0, "y": 1006.0}]}], "spans": [{"offset": 737, "length": 9}], "confidence": 0.958}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1699.0, "symbol": null}, "content": "1,699.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1292.0, "y": 696.0}, {"x": 1366.0, "y": 696.0}, {"x": 1366.0, "y": 717.0}, {"x": 1292.0, "y": 717.0}]}], "spans": [{"offset": 412, "length": 8}], "confidence": 0.904}, "Description": {"value_type": "string", "value": "Everyday Mens BifoldWallet", "content": "Everyday Mens BifoldWallet", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 694.0}, {"x": 420.0, "y": 694.0}, {"x": 420.0, "y": 718.0}, {"x": 168.0, "y": 718.0}]}], "spans": [{"offset": 360, "length": 26}], "confidence": 0.901}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 741.0, "y": 697.0}, {"x": 776.0, "y": 697.0}, {"x": 776.0, "y": 715.0}, {"x": 741.0, "y": 715.0}]}], "spans": [{"offset": 387, "length": 4}], "confidence": 0.904}, "Tax": {"value_type": "currency", "value": {"amount": 163.83, "symbol": null}, "content": "163.83", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1141.0, "y": 696.0}, {"x": 1198.0, "y": 696.0}, {"x": 1199.0, "y": 716.0}, {"x": 1141.0, "y": 715.0}]}], "spans": [{"offset": 405, "length": 6}], "confidence": 0.894}, "TaxRate": {"value_type": "string", "value": "12%", "content": "12%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1021.0, "y": 696.0}, {"x": 1058.0, "y": 696.0}, {"x": 1058.0, "y": 715.0}, {"x": 1021.0, "y": 715.0}]}], "spans": [{"offset": 401, "length": 3}], "confidence": 0.903}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1699.0, "symbol": null}, "content": "1,699.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 843.0, "y": 697.0}, {"x": 916.0, "y": 696.0}, {"x": 917.0, "y": 716.0}, {"x": 844.0, "y": 716.0}]}], "spans": [{"offset": 392, "length": 8}], "confidence": 0.904}}, "content": "1\nEveryday Mens BifoldWallet\n1.00\n1,699.00\n12%\n163.83\n1,699.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 126.0, "y": 694.0}, {"x": 1366.0, "y": 694.0}, {"x": 1366.0, "y": 718.0}, {"x": 126.0, "y": 718.0}]}], "spans": [{"offset": 358, "length": 62}], "confidence": 0.909}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1689.0, "symbol": null}, "content": "1,689.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1292.0, "y": 747.0}, {"x": 1366.0, "y": 746.0}, {"x": 1367.0, "y": 768.0}, {"x": 1292.0, "y": 768.0}]}], "spans": [{"offset": 470, "length": 8}], "confidence": 0.904}, "Description": {"value_type": "string", "value": "compact Zipper Wallet", "content": "compact Zipper Wallet", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 744.0}, {"x": 373.0, "y": 744.0}, {"x": 373.0, "y": 770.0}, {"x": 168.0, "y": 770.0}]}], "spans": [{"offset": 423, "length": 21}], "confidence": 0.9}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 741.0, "y": 748.0}, {"x": 776.0, "y": 748.0}, {"x": 776.0, "y": 766.0}, {"x": 741.0, "y": 766.0}]}], "spans": [{"offset": 445, "length": 4}], "confidence": 0.904}, "Tax": {"value_type": "currency", "value": {"amount": 162.87, "symbol": null}, "content": "162.87", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1140.0, "y": 748.0}, {"x": 1199.0, "y": 747.0}, {"x": 1199.0, "y": 767.0}, {"x": 1140.0, "y": 766.0}]}], "spans": [{"offset": 463, "length": 6}], "confidence": 0.894}, "TaxRate": {"value_type": "string", "value": "12%", "content": "12%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1021.0, "y": 747.0}, {"x": 1058.0, "y": 747.0}, {"x": 1058.0, "y": 766.0}, {"x": 1021.0, "y": 765.0}]}], "spans": [{"offset": 459, "length": 3}], "confidence": 0.903}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1689.0, "symbol": null}, "content": "1,689.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 843.0, "y": 748.0}, {"x": 917.0, "y": 746.0}, {"x": 918.0, "y": 767.0}, {"x": 844.0, "y": 767.0}]}], "spans": [{"offset": 450, "length": 8}], "confidence": 0.904}}, "content": "2\ncompact Zipper Wallet\n1.00\n1,689.00\n12%\n162.87\n1,689.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 744.0}, {"x": 1367.0, "y": 744.0}, {"x": 1367.0, "y": 770.0}, {"x": 124.0, "y": 770.0}]}], "spans": [{"offset": 421, "length": 57}], "confidence": 0.909}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1899.0, "symbol": null}, "content": "1,899.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1292.0, "y": 797.0}, {"x": 1365.0, "y": 796.0}, {"x": 1366.0, "y": 817.0}, {"x": 1293.0, "y": 817.0}]}], "spans": [{"offset": 529, "length": 8}], "confidence": 0.904}, "Description": {"value_type": "string", "value": "MOD Phone Wallet - Tan", "content": "MOD Phone Wallet - Tan", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 795.0}, {"x": 385.0, "y": 795.0}, {"x": 385.0, "y": 818.0}, {"x": 168.0, "y": 818.0}]}], "spans": [{"offset": 481, "length": 22}], "confidence": 0.901}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 741.0, "y": 797.0}, {"x": 776.0, "y": 797.0}, {"x": 776.0, "y": 815.0}, {"x": 741.0, "y": 815.0}]}], "spans": [{"offset": 504, "length": 4}], "confidence": 0.904}, "Tax": {"value_type": "currency", "value": {"amount": 183.12, "symbol": null}, "content": "183.12", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1140.0, "y": 797.0}, {"x": 1198.0, "y": 796.0}, {"x": 1199.0, "y": 817.0}, {"x": 1141.0, "y": 816.0}]}], "spans": [{"offset": 522, "length": 6}], "confidence": 0.895}, "TaxRate": {"value_type": "string", "value": "12%", "content": "12%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1021.0, "y": 797.0}, {"x": 1058.0, "y": 797.0}, {"x": 1058.0, "y": 815.0}, {"x": 1021.0, "y": 814.0}]}], "spans": [{"offset": 518, "length": 3}], "confidence": 0.903}, "UnitPrice": {"value_type": "currency", "value": {"amount": 1899.0, "symbol": null}, "content": "1,899.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 843.0, "y": 798.0}, {"x": 917.0, "y": 796.0}, {"x": 917.0, "y": 817.0}, {"x": 844.0, "y": 817.0}]}], "spans": [{"offset": 509, "length": 8}], "confidence": 0.904}}, "content": "3\nMOD Phone Wallet - Tan\n1.00\n1,899.00\n12%\n183.12\n1,899.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 795.0}, {"x": 1366.0, "y": 795.0}, {"x": 1366.0, "y": 818.0}, {"x": 124.0, "y": 818.0}]}], "spans": [{"offset": 479, "length": 58}], "confidence": 0.908}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Due on Receipt", "content": "Due on Receipt", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 425.0, "y": 305.0}, {"x": 568.0, "y": 306.0}, {"x": 568.0, "y": 332.0}, {"x": 425.0, "y": 331.0}]}], "spans": [{"offset": 168, "length": 14}], "confidence": 0.922}, "PurchaseOrder": {"value_type": "string", "value": "2609", "content": "2609", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 427.0, "y": 361.0}, {"x": 470.0, "y": 361.0}, {"x": 470.0, "y": 380.0}, {"x": 427.0, "y": 380.0}]}], "spans": [{"offset": 213, "length": 4}], "confidence": 0.971}, "SubTotal": {"value_type": "currency", "value": {"amount": 5287.0, "symbol": null}, "content": "5,287.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1287.0, "y": 865.0}, {"x": 1361.0, "y": 864.0}, {"x": 1362.0, "y": 885.0}, {"x": 1287.0, "y": 885.0}]}], "spans": [{"offset": 658, "length": 8}], "confidence": 0.966}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 509.82, "symbol": null}, "content": "509.82", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1303.0, "y": 957.0}, {"x": 1362.0, "y": 957.0}, {"x": 1363.0, "y": 977.0}, {"x": 1304.0, "y": 977.0}]}], "spans": [{"offset": 724, "length": 6}], "confidence": 0.327}}, "content": "509.82", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1303.0, "y": 957.0}, {"x": 1362.0, "y": 957.0}, {"x": 1363.0, "y": 977.0}, {"x": 1304.0, "y": 977.0}]}], "spans": [{"offset": 724, "length": 6}], "confidence": 0.078}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 472.05, "symbol": null}, "content": "(-) 472.05", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1278.0, "y": 914.0}, {"x": 1363.0, "y": 914.0}, {"x": 1363.0, "y": 939.0}, {"x": 1278.0, "y": 939.0}]}], "spans": [{"offset": 700, "length": 10}], "confidence": 0.541}, "TotalTax": {"value_type": "currency", "value": {"amount": 509.82, "symbol": null}, "content": "509.82", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1303.0, "y": 957.0}, {"x": 1362.0, "y": 957.0}, {"x": 1363.0, "y": 977.0}, {"x": 1304.0, "y": 977.0}]}], "spans": [{"offset": 724, "length": 6}], "confidence": 0.938}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": "Bihar", "postal_code": null, "country_region": "India", "street_address": ""}, "content": "Bihar India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 173.0}, {"x": 162.0, "y": 173.0}, {"x": 162.0, "y": 219.0}, {"x": 114.0, "y": 219.0}]}], "spans": [{"offset": 39, "length": 11}], "confidence": 0.765}, "VendorName": {"value_type": "string", "value": "HONEYCOMB DESIGN (OPC) PRIVATE LIMITED", "content": "HONEYCOMB DESIGN (OPC) PRIVATE LIMITED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 113.0, "y": 129.0}, {"x": 764.0, "y": 129.0}, {"x": 764.0, "y": 165.0}, {"x": 113.0, "y": 165.0}]}], "spans": [{"offset": 0, "length": 38}], "confidence": 0.576}, "VendorTaxId": {"value_type": "string", "value": "10AAECH6994H1ZH", "content": "10AAECH6994H1ZH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 175.0, "y": 221.0}, {"x": 348.0, "y": 220.0}, {"x": 348.0, "y": 243.0}, {"x": 176.0, "y": 243.0}]}], "spans": [{"offset": 57, "length": 15}], "confidence": 0.627}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/171_jpg.rf.efd81008cdf3e8fc4dff8917a649b820.json b/Data/train/171_jpg.rf.efd81008cdf3e8fc4dff8917a649b820.json new file mode 100644 index 0000000000000000000000000000000000000000..e8efc08cbf762189262aa20c8760ac7aaffba994 --- /dev/null +++ b/Data/train/171_jpg.rf.efd81008cdf3e8fc4dff8917a649b820.json @@ -0,0 +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": 1092}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": ""}, "content": "New Atish\nMarket, Mansarovar, Raj\nasthan-302020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 209.0, "y": 143.0}, {"x": 296.0, "y": 143.0}, {"x": 296.0, "y": 174.0}, {"x": 209.0, "y": 174.0}]}], "spans": [{"offset": 316, "length": 47}], "confidence": 0.88}, "CustomerName": {"value_type": "string", "value": "Agrawal Plywood And\nHardware", "content": "Agrawal Plywood And\nHardware", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 115.0, "y": 143.0}, {"x": 195.0, "y": 143.0}, {"x": 195.0, "y": 163.0}, {"x": 115.0, "y": 163.0}]}], "spans": [{"offset": 194, "length": 19}, {"offset": 294, "length": 8}], "confidence": 0.889}, "CustomerTaxId": {"value_type": "string", "value": "OBADIPAS715B1Z3", "content": "OBADIPAS715B1Z3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 115.0, "y": 190.0}, {"x": 186.0, "y": 191.0}, {"x": 186.0, "y": 200.0}, {"x": 116.0, "y": 201.0}]}], "spans": [{"offset": 419, "length": 15}], "confidence": 0.936}, "InvoiceDate": {"value_type": "date", "value": "2021-09-17", "content": "17-09-2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 456.0, "y": 129.0}, {"x": 501.0, "y": 128.0}, {"x": 501.0, "y": 139.0}, {"x": 456.0, "y": 139.0}]}], "spans": [{"offset": 377, "length": 10}], "confidence": 0.936}, "InvoiceId": {"value_type": "string", "value": "247", "content": "247", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 458.0, "y": 142.0}, {"x": 470.0, "y": 142.0}, {"x": 470.0, "y": 151.0}, {"x": 458.0, "y": 151.0}]}], "spans": [{"offset": 400, "length": 3}], "confidence": 0.937}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 16520.0, "symbol": null}, "content": "16,520.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 413.0}, {"x": 517.0, "y": 413.0}, {"x": 517.0, "y": 421.0}, {"x": 483.0, "y": 421.0}]}], "spans": [{"offset": 856, "length": 9}], "confidence": 0.936}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10000.0, "symbol": null}, "content": "10,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 486.0, "y": 312.0}, {"x": 518.0, "y": 312.0}, {"x": 518.0, "y": 320.0}, {"x": 486.0, "y": 320.0}]}], "spans": [{"offset": 618, "length": 9}], "confidence": 0.734}, "Description": {"value_type": "string", "value": "GST Retum Service\nApril 2020 to March 2021", "content": "GST Retum Service April 2020 to March 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 307.0}, {"x": 194.0, "y": 307.0}, {"x": 194.0, "y": 325.0}, {"x": 119.0, "y": 325.0}]}], "spans": [{"offset": 550, "length": 42}], "confidence": 0.868}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 305.0, "y": 312.0}, {"x": 317.0, "y": 312.0}, {"x": 316.0, "y": 319.0}, {"x": 305.0, "y": 318.0}]}], "spans": [{"offset": 593, "length": 4}], "confidence": 0.812}, "TaxRate": {"value_type": "string", "value": "GST - 18%", "content": "GST - 18%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 394.0, "y": 312.0}, {"x": 428.0, "y": 312.0}, {"x": 428.0, "y": 320.0}, {"x": 394.0, "y": 320.0}]}], "spans": [{"offset": 608, "length": 9}], "confidence": 0.425}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10000.0, "symbol": null}, "content": "10,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 354.0, "y": 312.0}, {"x": 386.0, "y": 312.0}, {"x": 386.0, "y": 320.0}, {"x": 354.0, "y": 320.0}]}], "spans": [{"offset": 598, "length": 9}], "confidence": 0.74}}, "content": "GST Retum Service April 2020 to March 2021\n1.00\n10,000.00\nGST - 18%\n10,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 307.0}, {"x": 518.0, "y": 307.0}, {"x": 518.0, "y": 325.0}, {"x": 119.0, "y": 325.0}]}], "spans": [{"offset": 550, "length": 77}], "confidence": 0.19}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 4000.0, "symbol": null}, "content": "4,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 489.0, "y": 335.0}, {"x": 517.0, "y": 335.0}, {"x": 517.0, "y": 343.0}, {"x": 489.0, "y": 343.0}]}], "spans": [{"offset": 685, "length": 8}], "confidence": 0.766}, "Description": {"value_type": "string", "value": "Income Tax Return\nFor AY 2021-22", "content": "Income Tax Return For AY 2021-22", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 331.0}, {"x": 179.0, "y": 331.0}, {"x": 179.0, "y": 347.0}, {"x": 119.0, "y": 347.0}]}], "spans": [{"offset": 628, "length": 32}], "confidence": 0.851}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 303.0, "y": 335.0}, {"x": 315.0, "y": 335.0}, {"x": 314.0, "y": 343.0}, {"x": 303.0, "y": 342.0}]}], "spans": [{"offset": 661, "length": 4}], "confidence": 0.702}, "TaxRate": {"value_type": "string", "value": "GST - 18%", "content": "GST - 18%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 394.0, "y": 335.0}, {"x": 427.0, "y": 335.0}, {"x": 427.0, "y": 343.0}, {"x": 394.0, "y": 343.0}]}], "spans": [{"offset": 675, "length": 9}], "confidence": 0.426}, "UnitPrice": {"value_type": "currency", "value": {"amount": 4000.0, "symbol": null}, "content": "4,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 336.0}, {"x": 385.0, "y": 335.0}, {"x": 386.0, "y": 342.0}, {"x": 358.0, "y": 342.0}]}], "spans": [{"offset": 666, "length": 8}], "confidence": 0.82}}, "content": "Income Tax Return For AY 2021-22\n1.00\n4,000.00\nGST - 18%\n4,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 331.0}, {"x": 517.0, "y": 331.0}, {"x": 517.0, "y": 347.0}, {"x": 119.0, "y": 347.0}]}], "spans": [{"offset": 628, "length": 65}], "confidence": 0.194}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ServiceEndDate": {"value_type": "date", "value": "2021-03-01", "content": "March 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 158.0, "y": 316.0}, {"x": 194.0, "y": 316.0}, {"x": 194.0, "y": 325.0}, {"x": 158.0, "y": 325.0}]}], "spans": [{"offset": 582, "length": 10}], "confidence": 0.829}, "ServiceStartDate": {"value_type": "date", "value": "2020-04-01", "content": "April 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 316.0}, {"x": 149.0, "y": 316.0}, {"x": 149.0, "y": 325.0}, {"x": 119.0, "y": 325.0}]}], "spans": [{"offset": 568, "length": 10}], "confidence": 0.767}, "ShippingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": ""}, "content": "New Atish\nMarket, Mansarovar,Raj\nasthan-302020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 303.0, "y": 144.0}, {"x": 388.0, "y": 144.0}, {"x": 388.0, "y": 175.0}, {"x": 303.0, "y": 174.0}]}], "spans": [{"offset": 247, "length": 46}], "confidence": 0.888}, "SubTotal": {"value_type": "currency", "value": {"amount": 14000.0, "symbol": null}, "content": "14,000.00\n14,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 368.0}, {"x": 517.0, "y": 369.0}, {"x": 517.0, "y": 377.0}, {"x": 482.0, "y": 376.0}]}], "spans": [{"offset": 785, "length": 9}, {"offset": 805, "length": 9}], "confidence": 0.722}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 260.0, "symbol": null}, "content": "1.260.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 383.0}, {"x": 517.0, "y": 383.0}, {"x": 517.0, "y": 392.0}, {"x": 490.0, "y": 391.0}]}], "spans": [{"offset": 820, "length": 8}], "confidence": 0.779}}, "content": "5GST\n1.260.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 394.0, "y": 381.0}, {"x": 517.0, "y": 383.0}, {"x": 517.0, "y": 393.0}, {"x": 394.0, "y": 391.0}]}], "spans": [{"offset": 815, "length": 13}], "confidence": 0.46}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1260.0, "symbol": null}, "content": "1,260.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 399.0}, {"x": 518.0, "y": 398.0}, {"x": 518.0, "y": 406.0}, {"x": 490.0, "y": 406.0}]}], "spans": [{"offset": 834, "length": 8}], "confidence": 0.695}}, "content": "CGST\n1,260.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 394.0, "y": 397.0}, {"x": 518.0, "y": 397.0}, {"x": 518.0, "y": 406.0}, {"x": 394.0, "y": 406.0}]}], "spans": [{"offset": 829, "length": 13}], "confidence": 0.39}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "A-182", "po_box": null, "road": "Panipech, Shastri NagarJaipur,Rajasthan-302016,\nPanipech", "city": "Shastri Nagar", "state": "Rajasthan", "postal_code": "302016", "country_region": null, "street_address": "A-182 Panipech, Shastri NagarJaipur,Rajasthan-302016,\nPanipech"}, "content": "A-182,Panipech, Shastri NagarJaipur,Rajasthan-302016, Panipech, Shastri Nagar, Rajasthan - 302016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 58.0}, {"x": 325.0, "y": 58.0}, {"x": 325.0, "y": 92.0}, {"x": 118.0, "y": 92.0}]}], "spans": [{"offset": 82, "length": 97}], "confidence": 0.851}, "VendorAddressRecipient": {"value_type": "string", "value": "Taxadda Private Limited", "content": "Taxadda Private Limited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 39.0}, {"x": 261.0, "y": 39.0}, {"x": 261.0, "y": 54.0}, {"x": 119.0, "y": 54.0}]}], "spans": [{"offset": 36, "length": 23}], "confidence": 0.739}, "VendorName": {"value_type": "string", "value": "\u201e TaxAdda", "content": "\u201e TaxAdda", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 447.0, "y": 602.0}, {"x": 512.0, "y": 602.0}, {"x": 512.0, "y": 616.0}, {"x": 447.0, "y": 616.0}]}], "spans": [{"offset": 1059, "length": 9}], "confidence": 0.564}, "VendorTaxId": {"value_type": "string", "value": "OBAAHCT6764E1Z1", "content": "OBAAHCT6764E1Z1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 434.0, "y": 40.0}, {"x": 508.0, "y": 40.0}, {"x": 508.0, "y": 51.0}, {"x": 434.0, "y": 51.0}]}], "spans": [{"offset": 66, "length": 15}], "confidence": 0.783}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/172_jpg.rf.8d54363755d58c298630891274571378.json b/Data/train/172_jpg.rf.8d54363755d58c298630891274571378.json new file mode 100644 index 0000000000000000000000000000000000000000..7cb0d6558c4153a3d982dd5d347b6cb7f4e2546e --- /dev/null +++ b/Data/train/172_jpg.rf.8d54363755d58c298630891274571378.json @@ -0,0 +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": 1007}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "STAMFORD", "state": "CT", "postal_code": "06904", "country_region": null, "street_address": ""}, "content": "STAMFORD, CT 06904", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 207.0}, {"x": 207.0, "y": 207.0}, {"x": 207.0, "y": 217.0}, {"x": 109.0, "y": 217.0}]}], "spans": [{"offset": 236, "length": 18}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "AMERICAN TOBACCO COMPANY\nAR CHRIS BURT\nBIX STANFORD FORUM\nPALL MALL GOLD", "content": "AMERICAN TOBACCO COMPANY AR CHRIS BURT BIX STANFORD FORUM\nPALL MALL GOLD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 180.0}, {"x": 240.0, "y": 180.0}, {"x": 240.0, "y": 244.0}, {"x": 108.0, "y": 244.0}]}], "spans": [{"offset": 178, "length": 57}, {"offset": 947, "length": 14}], "confidence": 0.647}, "CustomerId": {"value_type": "string", "value": "[111111", "content": "[111111", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 374.0, "y": 137.0}, {"x": 412.0, "y": 137.0}, {"x": 412.0, "y": 146.0}, {"x": 374.0, "y": 146.0}]}], "spans": [{"offset": 170, "length": 7}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "AMERICAN TOBACCO COMPANY\nAR CHRIS BURT\nBIX STANFORD FORUM\nPALL MALL GOLD", "content": "AMERICAN TOBACCO COMPANY AR CHRIS BURT BIX STANFORD FORUM\nPALL MALL GOLD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 108.0, "y": 180.0}, {"x": 240.0, "y": 180.0}, {"x": 240.0, "y": 244.0}, {"x": 108.0, "y": 244.0}]}], "spans": [{"offset": 178, "length": 57}, {"offset": 947, "length": 14}], "confidence": 0.647}, "InvoiceDate": {"value_type": "date", "value": "1994-01-25", "content": "JANUARY 25, 1994", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 374.0, "y": 128.0}, {"x": 462.0, "y": 128.0}, {"x": 462.0, "y": 137.0}, {"x": 374.0, "y": 137.0}]}], "spans": [{"offset": 140, "length": 16}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "2582", "content": "2582", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 375.0, "y": 120.0}, {"x": 396.0, "y": 120.0}, {"x": 396.0, "y": 128.0}, {"x": 375.0, "y": 128.0}]}], "spans": [{"offset": 129, "length": 4}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2736.62, "symbol": "$"}, "content": "$2,736.62", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 424.0, "y": 514.0}, {"x": 475.0, "y": 514.0}, {"x": 475.0, "y": 524.0}, {"x": 425.0, "y": 523.0}]}], "spans": [{"offset": 933, "length": 9}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 323.4, "symbol": "$"}, "content": "$323.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 436.0, "y": 365.0}, {"x": 473.0, "y": 365.0}, {"x": 473.0, "y": 374.0}, {"x": 436.0, "y": 373.0}]}], "spans": [{"offset": 513, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "SERVICE: MEMBERSHIP KITS", "content": "SERVICE: MEMBERSHIP KITS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 364.0}, {"x": 239.0, "y": 364.0}, {"x": 239.0, "y": 374.0}, {"x": 110.0, "y": 374.0}]}], "spans": [{"offset": 461, "length": 24}], "confidence": null}, "Quantity": {"value_type": "float", "value": 539.0, "content": "539", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 284.0, "y": 366.0}, {"x": 299.0, "y": 366.0}, {"x": 299.0, "y": 373.0}, {"x": 284.0, "y": 373.0}]}], "spans": [{"offset": 501, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.6, "symbol": "$"}, "content": "$0.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 365.0}, {"x": 358.0, "y": 365.0}, {"x": 358.0, "y": 374.0}, {"x": 332.0, "y": 373.0}]}], "spans": [{"offset": 507, "length": 5}], "confidence": null}}, "content": "SERVICE: MEMBERSHIP KITS\n539 @\n$0.60\n$323.40", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 364.0}, {"x": 473.0, "y": 364.0}, {"x": 473.0, "y": 374.0}, {"x": 110.0, "y": 374.0}]}], "spans": [{"offset": 461, "length": 24}, {"offset": 501, "length": 19}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 35.1, "symbol": "$"}, "content": "$35.10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 374.0}, {"x": 472.0, "y": 374.0}, {"x": 472.0, "y": 383.0}, {"x": 441.0, "y": 382.0}]}], "spans": [{"offset": 547, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "UPDATE RECORDS", "content": "UPDATE RECORDS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 158.0, "y": 374.0}, {"x": 234.0, "y": 374.0}, {"x": 234.0, "y": 382.0}, {"x": 158.0, "y": 382.0}]}], "spans": [{"offset": 486, "length": 14}], "confidence": null}, "Quantity": {"value_type": "float", "value": 117.0, "content": "117", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 284.0, "y": 374.0}, {"x": 299.0, "y": 374.0}, {"x": 299.0, "y": 382.0}, {"x": 284.0, "y": 381.0}]}], "spans": [{"offset": 529, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.3, "symbol": "$"}, "content": "$0.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 374.0}, {"x": 359.0, "y": 374.0}, {"x": 359.0, "y": 382.0}, {"x": 332.0, "y": 382.0}]}], "spans": [{"offset": 541, "length": 5}], "confidence": null}}, "content": "UPDATE RECORDS\n117 @\n$0.30\n$35.10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 158.0, "y": 374.0}, {"x": 472.0, "y": 374.0}, {"x": 472.0, "y": 383.0}, {"x": 158.0, "y": 383.0}]}], "spans": [{"offset": 486, "length": 14}, {"offset": 529, "length": 5}, {"offset": 541, "length": 12}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 44.7, "symbol": "$"}, "content": "$44.70", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 382.0}, {"x": 473.0, "y": 381.0}, {"x": 473.0, "y": 392.0}, {"x": 441.0, "y": 391.0}]}], "spans": [{"offset": 554, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "COUPONS", "content": "COUPONS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 158.0, "y": 382.0}, {"x": 196.0, "y": 382.0}, {"x": 196.0, "y": 391.0}, {"x": 158.0, "y": 391.0}]}], "spans": [{"offset": 521, "length": 7}], "confidence": null}, "Quantity": {"value_type": "float", "value": 149.0, "content": "149", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 284.0, "y": 383.0}, {"x": 299.0, "y": 383.0}, {"x": 298.0, "y": 391.0}, {"x": 284.0, "y": 391.0}]}], "spans": [{"offset": 535, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.3, "symbol": "$"}, "content": "$0.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 383.0}, {"x": 358.0, "y": 383.0}, {"x": 358.0, "y": 391.0}, {"x": 332.0, "y": 391.0}]}], "spans": [{"offset": 561, "length": 5}], "confidence": null}}, "content": "COUPONS\n149 0\n$44.70\n$0.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 158.0, "y": 381.0}, {"x": 473.0, "y": 381.0}, {"x": 473.0, "y": 392.0}, {"x": 158.0, "y": 392.0}]}], "spans": [{"offset": 521, "length": 7}, {"offset": 535, "length": 5}, {"offset": 554, "length": 12}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 18.3, "symbol": "$"}, "content": "$18.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 392.0}, {"x": 473.0, "y": 391.0}, {"x": 473.0, "y": 401.0}, {"x": 441.0, "y": 400.0}]}], "spans": [{"offset": 587, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "LIGHTERS", "content": "LIGHTERS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 391.0}, {"x": 201.0, "y": 392.0}, {"x": 201.0, "y": 400.0}, {"x": 159.0, "y": 400.0}]}], "spans": [{"offset": 567, "length": 8}], "confidence": null}, "Quantity": {"value_type": "float", "value": 61.0, "content": "61", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 290.0, "y": 392.0}, {"x": 299.0, "y": 392.0}, {"x": 299.0, "y": 400.0}, {"x": 290.0, "y": 400.0}]}], "spans": [{"offset": 576, "length": 2}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.3, "symbol": "$"}, "content": "$0.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 392.0}, {"x": 358.0, "y": 392.0}, {"x": 358.0, "y": 400.0}, {"x": 332.0, "y": 400.0}]}], "spans": [{"offset": 581, "length": 5}], "confidence": null}}, "content": "LIGHTERS\n61 @\n$0.30\n$18.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 391.0}, {"x": 473.0, "y": 391.0}, {"x": 473.0, "y": 401.0}, {"x": 159.0, "y": 401.0}]}], "spans": [{"offset": 567, "length": 26}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 981.0, "symbol": "$"}, "content": "$981.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 436.0, "y": 401.0}, {"x": 473.0, "y": 400.0}, {"x": 473.0, "y": 410.0}, {"x": 436.0, "y": 409.0}]}], "spans": [{"offset": 629, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "BONDS", "content": "BONDS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 158.0, "y": 401.0}, {"x": 185.0, "y": 400.0}, {"x": 185.0, "y": 408.0}, {"x": 158.0, "y": 408.0}]}], "spans": [{"offset": 611, "length": 5}], "confidence": null}, "Quantity": {"value_type": "float", "value": 436.0, "content": "436", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 285.0, "y": 401.0}, {"x": 299.0, "y": 401.0}, {"x": 299.0, "y": 409.0}, {"x": 285.0, "y": 408.0}]}], "spans": [{"offset": 617, "length": 3}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 2.25, "symbol": "$"}, "content": "$2.25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 401.0}, {"x": 359.0, "y": 401.0}, {"x": 359.0, "y": 409.0}, {"x": 332.0, "y": 408.0}]}], "spans": [{"offset": 623, "length": 5}], "confidence": null}}, "content": "BONDS\n436 @\n$2.25\n$981.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 158.0, "y": 400.0}, {"x": 473.0, "y": 400.0}, {"x": 473.0, "y": 410.0}, {"x": 158.0, "y": 410.0}]}], "spans": [{"offset": 611, "length": 25}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 418.0}, {"x": 474.0, "y": 417.0}, {"x": 474.0, "y": 427.0}, {"x": 441.0, "y": 427.0}]}], "spans": [{"offset": 662, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "DUPE ELINIMATION", "content": "DUPE ELINIMATION", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 408.0}, {"x": 196.0, "y": 408.0}, {"x": 196.0, "y": 418.0}, {"x": 109.0, "y": 418.0}]}], "spans": [{"offset": 594, "length": 16}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 35.0, "symbol": "\u20a1"}, "content": "\u20a1 35.00/M", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 305.0, "y": 409.0}, {"x": 353.0, "y": 409.0}, {"x": 353.0, "y": 418.0}, {"x": 305.0, "y": 418.0}]}], "spans": [{"offset": 637, "length": 9}], "confidence": null}}, "content": "DUPE ELINIMATION\n\u20a1 35.00/M OR\n$50 MINIMUM\n$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 408.0}, {"x": 474.0, "y": 408.0}, {"x": 474.0, "y": 427.0}, {"x": 109.0, "y": 427.0}]}], "spans": [{"offset": 594, "length": 16}, {"offset": 637, "length": 31}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1056.75, "symbol": "$"}, "content": "$1,056.75", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 425.0, "y": 435.0}, {"x": 474.0, "y": 435.0}, {"x": 474.0, "y": 445.0}, {"x": 425.0, "y": 445.0}]}], "spans": [{"offset": 721, "length": 9}], "confidence": 0.001}, "Description": {"value_type": "string", "value": "SERVICE TO SEND QUARTERLY\nSTATEMENT #2", "content": "SERVICE TO SEND QUARTERLY\nSTATEMENT #2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 426.0}, {"x": 246.0, "y": 426.0}, {"x": 246.0, "y": 444.0}, {"x": 110.0, "y": 444.0}]}], "spans": [{"offset": 669, "length": 38}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1227.0, "content": "1227", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 280.0, "y": 436.0}, {"x": 300.0, "y": 436.0}, {"x": 300.0, "y": 444.0}, {"x": 280.0, "y": 444.0}]}], "spans": [{"offset": 708, "length": 4}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.25, "symbol": "$"}, "content": "$0.25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 435.0}, {"x": 359.0, "y": 436.0}, {"x": 359.0, "y": 444.0}, {"x": 332.0, "y": 444.0}]}], "spans": [{"offset": 715, "length": 5}], "confidence": null}}, "content": "SERVICE TO SEND QUARTERLY\nSTATEMENT #2\n1227 @\n$0.25\n$1,056.75", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 426.0}, {"x": 474.0, "y": 426.0}, {"x": 474.0, "y": 445.0}, {"x": 110.0, "y": 445.0}]}], "spans": [{"offset": 669, "length": 61}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.07, "symbol": "$"}, "content": "$10.07", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 444.0}, {"x": 474.0, "y": 444.0}, {"x": 474.0, "y": 454.0}, {"x": 441.0, "y": 453.0}]}], "spans": [{"offset": 755, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "MAILERS: LICHTERS", "content": "MAILERS: LICHTERS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 442.0}, {"x": 202.0, "y": 444.0}, {"x": 202.0, "y": 454.0}, {"x": 109.0, "y": 452.0}]}], "spans": [{"offset": 731, "length": 17}], "confidence": null}, "Quantity": {"value_type": "float", "value": 61.0, "content": "61", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 290.0, "y": 445.0}, {"x": 299.0, "y": 445.0}, {"x": 299.0, "y": 452.0}, {"x": 290.0, "y": 452.0}]}], "spans": [{"offset": 798, "length": 2}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.17, "symbol": "$"}, "content": "$0.17", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 333.0, "y": 445.0}, {"x": 359.0, "y": 444.0}, {"x": 359.0, "y": 453.0}, {"x": 333.0, "y": 453.0}]}], "spans": [{"offset": 749, "length": 5}], "confidence": null}}, "content": "MAILERS: LICHTERS\n$0.17\n$10.07\n61 @", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 443.0}, {"x": 474.0, "y": 443.0}, {"x": 474.0, "y": 454.0}, {"x": 109.0, "y": 454.0}]}], "spans": [{"offset": 731, "length": 30}, {"offset": 798, "length": 4}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 130.0, "symbol": "$"}, "content": "$130.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 436.0, "y": 461.0}, {"x": 473.0, "y": 461.0}, {"x": 473.0, "y": 471.0}, {"x": 436.0, "y": 470.0}]}], "spans": [{"offset": 803, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "MESSENGER SERVICE TO SEND SOND TAPE\nTO FEDERAL RESERVE", "content": "MESSENGER SERVICE TO SEND SOND TAPE\nTO FEDERAL RESERVE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 452.0}, {"x": 300.0, "y": 452.0}, {"x": 300.0, "y": 471.0}, {"x": 109.0, "y": 471.0}]}], "spans": [{"offset": 762, "length": 35}, {"offset": 820, "length": 18}], "confidence": null}}, "content": "MESSENGER SERVICE TO SEND SOND TAPE\n$130.00\nTO FEDERAL RESERVE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 452.0}, {"x": 473.0, "y": 452.0}, {"x": 473.0, "y": 471.0}, {"x": 109.0, "y": 471.0}]}], "spans": [{"offset": 762, "length": 35}, {"offset": 803, "length": 7}, {"offset": 820, "length": 18}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 477.0}, {"x": 473.0, "y": 478.0}, {"x": 473.0, "y": 487.0}, {"x": 441.0, "y": 488.0}]}], "spans": [{"offset": 877, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "HAG TAPE", "content": "HAG TAPE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 469.0}, {"x": 152.0, "y": 469.0}, {"x": 152.0, "y": 477.0}, {"x": 109.0, "y": 477.0}]}], "spans": [{"offset": 811, "length": 8}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1418.0, "content": "1418 RECORDS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 235.0, "y": 469.0}, {"x": 299.0, "y": 469.0}, {"x": 299.0, "y": 478.0}, {"x": 235.0, "y": 478.0}]}], "spans": [{"offset": 839, "length": 12}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 17.5, "symbol": null}, "content": "17.50/M", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 316.0, "y": 469.0}, {"x": 353.0, "y": 469.0}, {"x": 353.0, "y": 479.0}, {"x": 316.0, "y": 478.0}]}], "spans": [{"offset": 854, "length": 7}], "confidence": null}}, "content": "HAG TAPE\n1418 RECORDS @ 17.50/M OR\n$50 MINIMUM\n$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 469.0}, {"x": 473.0, "y": 469.0}, {"x": 473.0, "y": 488.0}, {"x": 109.0, "y": 488.0}]}], "spans": [{"offset": 811, "length": 8}, {"offset": 839, "length": 44}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 35.0, "symbol": "$"}, "content": "$35.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 487.0}, {"x": 473.0, "y": 487.0}, {"x": 473.0, "y": 497.0}, {"x": 441.0, "y": 496.0}]}], "spans": [{"offset": 894, "length": 6}], "confidence": null}, "Description": {"value_type": "string", "value": "TAPE REEL", "content": "TAPE REEL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 486.0}, {"x": 158.0, "y": 487.0}, {"x": 158.0, "y": 496.0}, {"x": 111.0, "y": 494.0}]}], "spans": [{"offset": 884, "length": 9}], "confidence": null}}, "content": "TAPE REEL\n$35.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 481.0}, {"x": 473.0, "y": 487.0}, {"x": 473.0, "y": 500.0}, {"x": 111.0, "y": 495.0}]}], "spans": [{"offset": 884, "length": 16}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2.3, "symbol": "$"}, "content": "$2.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 446.0, "y": 496.0}, {"x": 473.0, "y": 496.0}, {"x": 473.0, "y": 506.0}, {"x": 446.0, "y": 505.0}]}], "spans": [{"offset": 917, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "POSTAGE VIA UPS", "content": "POSTAGE VIA UPS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 494.0}, {"x": 191.0, "y": 494.0}, {"x": 191.0, "y": 504.0}, {"x": 110.0, "y": 504.0}]}], "spans": [{"offset": 901, "length": 15}], "confidence": null}}, "content": "POSTAGE VIA UPS\n$2.30", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 489.0}, {"x": 473.0, "y": 496.0}, {"x": 473.0, "y": 511.0}, {"x": 110.0, "y": 504.0}]}], "spans": [{"offset": 901, "length": 21}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "NET 30 DAYS", "content": "NET 30 DAYS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 373.0, "y": 111.0}, {"x": 434.0, "y": 111.0}, {"x": 434.0, "y": 121.0}, {"x": 373.0, "y": 121.0}]}], "spans": [{"offset": 108, "length": 11}], "confidence": null}, "ServiceEndDate": {"value_type": "date", "value": "1993-12-31", "content": "12/31/93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 163.0, "y": 260.0}, {"x": 207.0, "y": 260.0}, {"x": 208.0, "y": 270.0}, {"x": 163.0, "y": 270.0}]}], "spans": [{"offset": 316, "length": 8}], "confidence": null}, "ServiceStartDate": {"value_type": "date", "value": "1993-12-01", "content": "12/1/93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 260.0}, {"x": 148.0, "y": 260.0}, {"x": 148.0, "y": 270.0}, {"x": 109.0, "y": 270.0}]}], "spans": [{"offset": 306, "length": 7}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "3530", "po_box": null, "road": "Queumside Road", "city": "Doelmusikdie", "state": "N.Y.", "postal_code": "11592", "country_region": null, "street_address": "3530 Queumside Road"}, "content": "3530 Queumside Road Doelmusikdie, N.Y. 11592", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 345.0, "y": 63.0}, {"x": 408.0, "y": 63.0}, {"x": 408.0, "y": 79.0}, {"x": 345.0, "y": 79.0}]}], "spans": [{"offset": 56, "length": 44}], "confidence": null}, "VendorName": {"value_type": "string", "value": "LAZARUS\nPILFILLMENT HOUSE", "content": "LAZARUS PILFILLMENT HOUSE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 345.0, "y": 35.0}, {"x": 434.0, "y": 35.0}, {"x": 434.0, "y": 60.0}, {"x": 345.0, "y": 60.0}]}], "spans": [{"offset": 30, "length": 25}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/175_jpg.rf.f90df056e87988c161a66236e1032473.json b/Data/train/175_jpg.rf.f90df056e87988c161a66236e1032473.json new file mode 100644 index 0000000000000000000000000000000000000000..b0f4a5d3a729b3cf1d4966a327c057c24d2f29d6 --- /dev/null +++ b/Data/train/175_jpg.rf.f90df056e87988c161a66236e1032473.json @@ -0,0 +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": 890}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "(0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 476.0, "y": 188.0}, {"x": 500.0, "y": 189.0}, {"x": 500.0, "y": 197.0}, {"x": 476.0, "y": 197.0}]}], "spans": [{"offset": 440, "length": 5}], "confidence": 0.329}, "BillingAddress": {"value_type": "address", "value": {"house_number": "Plot no.", "po_box": null, "road": "10, Road no.", "city": "Navi Mumbai", "state": "Maharashtra", "postal_code": "410206", "country_region": "India", "street_address": "Plot no. 10, Road no."}, "content": "Bungalow-A, Plot no. 10, Road no. 14.\nSector -11 New Panvel (East) 410206 Opposite miraj cinema,\nNavi Mumbai, Maharashtra 410206, India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 119.0}, {"x": 263.0, "y": 119.0}, {"x": 263.0, "y": 177.0}, {"x": 118.0, "y": 177.0}]}], "spans": [{"offset": 172, "length": 96}, {"offset": 296, "length": 38}], "confidence": 0.995}, "BillingAddressRecipient": {"value_type": "string", "value": "Deepak Kanodia", "content": "Deepak Kanodia", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 106.0}, {"x": 182.0, "y": 106.0}, {"x": 182.0, "y": 117.0}, {"x": 118.0, "y": 117.0}]}], "spans": [{"offset": 118, "length": 14}], "confidence": 0.866}, "CustomerId": {"value_type": "string", "value": "270906560", "content": "270906560", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 313.0, "y": 74.0}, {"x": 354.0, "y": 74.0}, {"x": 355.0, "y": 83.0}, {"x": 313.0, "y": 83.0}]}], "spans": [{"offset": 99, "length": 9}], "confidence": 0.911}, "CustomerName": {"value_type": "string", "value": "Deepak Kanodia", "content": "Deepak Kanodia", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 106.0}, {"x": 182.0, "y": 106.0}, {"x": 182.0, "y": 117.0}, {"x": 118.0, "y": 117.0}]}], "spans": [{"offset": 118, "length": 14}], "confidence": 0.866}, "CustomerTaxId": {"value_type": "string", "value": "27AAKFC3345C1ZQ", "content": "27AAKFC3345C1ZQ", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 147.0, "y": 203.0}, {"x": 225.0, "y": 203.0}, {"x": 225.0, "y": 215.0}, {"x": 147.0, "y": 215.0}]}], "spans": [{"offset": 406, "length": 15}], "confidence": 0.294}, "InvoiceDate": {"value_type": "date", "value": "2020-04-16", "content": "16-Apr-2020,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 116.0, "y": 74.0}, {"x": 164.0, "y": 72.0}, {"x": 165.0, "y": 84.0}, {"x": 116.0, "y": 83.0}]}], "spans": [{"offset": 77, "length": 12}], "confidence": 0.911}, "InvoiceId": {"value_type": "string", "value": "1667659124", "content": "1667659124", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 127.0, "y": 20.0}, {"x": 178.0, "y": 21.0}, {"x": 178.0, "y": 31.0}, {"x": 127.0, "y": 31.0}]}], "spans": [{"offset": 11, "length": 10}], "confidence": 0.676}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2609.6, "symbol": "\u20ac"}, "content": "\u20ac2,609.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 415.0, "y": 482.0}, {"x": 460.0, "y": 483.0}, {"x": 460.0, "y": 493.0}, {"x": 415.0, "y": 494.0}]}], "spans": [{"offset": 747, "length": 9}], "confidence": 0.914}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 748.0, "symbol": "\u20ac"}, "content": "\u20ac748.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 425.0, "y": 266.0}, {"x": 460.0, "y": 266.0}, {"x": 460.0, "y": 275.0}, {"x": 425.0, "y": 274.0}]}], "spans": [{"offset": 495, "length": 7}], "confidence": 0.003}, "Description": {"value_type": "string", "value": "IN Domain Registration", "content": "IN Domain Registration", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 185.0, "y": 265.0}, {"x": 274.0, "y": 265.0}, {"x": 274.0, "y": 276.0}, {"x": 185.0, "y": 276.0}]}], "spans": [{"offset": 472, "length": 22}], "confidence": 0.002}}, "content": "2 yra\nIN Domain Registration\n\u20ac748.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 265.0}, {"x": 460.0, "y": 265.0}, {"x": 460.0, "y": 276.0}, {"x": 120.0, "y": 276.0}]}], "spans": [{"offset": 466, "length": 36}], "confidence": 0.005}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1238.0, "symbol": "\u20b9"}, "content": "\u20b91,238.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 415.0, "y": 322.0}, {"x": 460.0, "y": 322.0}, {"x": 460.0, "y": 332.0}, {"x": 415.0, "y": 332.0}]}], "spans": [{"offset": 576, "length": 9}], "confidence": 0.003}, "Description": {"value_type": "string", "value": "COM Domain Registration", "content": "COM Domain Registration", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 186.0, "y": 320.0}, {"x": 284.0, "y": 322.0}, {"x": 284.0, "y": 333.0}, {"x": 186.0, "y": 332.0}]}], "spans": [{"offset": 552, "length": 23}], "confidence": 0.002}}, "content": "2 yrs\nCOM Domain Registration\n\u20b91,238.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 321.0}, {"x": 460.0, "y": 321.0}, {"x": 460.0, "y": 332.0}, {"x": 119.0, "y": 332.0}]}], "spans": [{"offset": 546, "length": 39}], "confidence": 0.005}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2598.0, "symbol": null}, "content": "2598.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 425.0, "y": 380.0}, {"x": 460.0, "y": 381.0}, {"x": 460.0, "y": 389.0}, {"x": 425.0, "y": 389.0}]}], "spans": [{"offset": 666, "length": 7}], "confidence": 0.003}, "Description": {"value_type": "string", "value": "Private Domain Registration", "content": "Private Domain Registration", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 183.0, "y": 379.0}, {"x": 289.0, "y": 379.0}, {"x": 289.0, "y": 390.0}, {"x": 183.0, "y": 390.0}]}], "spans": [{"offset": 638, "length": 27}], "confidence": 0.002}}, "content": "2 yrs\nPrivate Domain Registration\n2598.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 377.0}, {"x": 460.0, "y": 380.0}, {"x": 460.0, "y": 394.0}, {"x": 119.0, "y": 390.0}]}], "spans": [{"offset": 632, "length": 41}], "confidence": 0.004}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "yrs", "content": "yrs", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 126.0, "y": 322.0}, {"x": 138.0, "y": 322.0}, {"x": 138.0, "y": 332.0}, {"x": 126.0, "y": 332.0}]}], "spans": [{"offset": 548, "length": 3}], "confidence": 0.282}, "SubTotal": {"value_type": "currency", "value": {"amount": 2584.0, "symbol": null}, "content": "<2,584.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 415.0, "y": 429.0}, {"x": 460.0, "y": 429.0}, {"x": 460.0, "y": 438.0}, {"x": 415.0, "y": 438.0}]}], "spans": [{"offset": 701, "length": 9}], "confidence": 0.911}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": null}, "content": "to.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 436.0, "y": 441.0}, {"x": 460.0, "y": 441.0}, {"x": 460.0, "y": 450.0}, {"x": 436.0, "y": 450.0}]}], "spans": [{"offset": 717, "length": 5}], "confidence": 0.386}, "VendorAddress": {"value_type": "address", "value": {"house_number": "14455", "po_box": null, "road": "N. Hayden Rd", "city": "Scottsdale", "state": "Arizona", "postal_code": "85260", "country_region": "United States", "street_address": "14455 N. Hayden Rd Suite 219"}, "content": "14455 N. Hayden Rd ..\nSuite 219,\nScottsdale, Arizona 85260\nUnited States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 582.0}, {"x": 214.0, "y": 582.0}, {"x": 214.0, "y": 628.0}, {"x": 114.0, "y": 628.0}]}], "spans": [{"offset": 791, "length": 72}], "confidence": 0.987}, "VendorAddressRecipient": {"value_type": "string", "value": "GD US India", "content": "GD US India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 115.0, "y": 570.0}, {"x": 164.0, "y": 570.0}, {"x": 164.0, "y": 580.0}, {"x": 115.0, "y": 580.0}]}], "spans": [{"offset": 779, "length": 11}], "confidence": 0.582}, "VendorName": {"value_type": "string", "value": "GoDaddy", "content": "GoDaddy", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 6.0}, {"x": 510.0, "y": 6.0}, {"x": 510.0, "y": 20.0}, {"x": 452.0, "y": 19.0}]}], "spans": [{"offset": 22, "length": 7}], "confidence": 0.246}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/176_jpg.rf.205f6e52476563db97ffcd9e14837de5.json b/Data/train/176_jpg.rf.205f6e52476563db97ffcd9e14837de5.json new file mode 100644 index 0000000000000000000000000000000000000000..8c86dee936d748c63adb1e1cfad50a8a94ce09b9 --- /dev/null +++ b/Data/train/176_jpg.rf.205f6e52476563db97ffcd9e14837de5.json @@ -0,0 +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": 741}], "fields": {"AmountDue": {"value_type": "currency", "value": null, "content": "\u00a3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 546.0, "y": 465.0}, {"x": 553.0, "y": 465.0}, {"x": 553.0, "y": 477.0}, {"x": 546.0, "y": 477.0}]}], "spans": [{"offset": 546, "length": 1}], "confidence": null}, "BillingAddressRecipient": {"value_type": "string", "value": "John Smith", "content": "John Smith", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 49.0, "y": 118.0}, {"x": 93.0, "y": 118.0}, {"x": 93.0, "y": 129.0}, {"x": 49.0, "y": 129.0}]}], "spans": [{"offset": 90, "length": 10}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "John Smith", "content": "John Smith", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 49.0, "y": 118.0}, {"x": 93.0, "y": 118.0}, {"x": 93.0, "y": 129.0}, {"x": 49.0, "y": 129.0}]}], "spans": [{"offset": 90, "length": 10}], "confidence": null}, "DueDate": {"value_type": "date", "value": null, "content": "6 Jan 2029", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 318.0, "y": 298.0}, {"x": 357.0, "y": 298.0}, {"x": 357.0, "y": 308.0}, {"x": 318.0, "y": 308.0}]}], "spans": [{"offset": 299, "length": 10}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "2019-12-30", "content": "30 Dec 2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 319.0, "y": 280.0}, {"x": 365.0, "y": 280.0}, {"x": 365.0, "y": 291.0}, {"x": 319.0, "y": 291.0}]}], "spans": [{"offset": 278, "length": 11}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "10005", "content": "10005", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 20.0}, {"x": 144.0, "y": 20.0}, {"x": 143.0, "y": 38.0}, {"x": 97.0, "y": 38.0}]}], "spans": [{"offset": 8, "length": 5}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 35.98, "symbol": "\u00a3"}, "content": "\u00a3 35.98", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 539.0, "y": 396.0}, {"x": 581.0, "y": 396.0}, {"x": 581.0, "y": 408.0}, {"x": 539.0, "y": 408.0}]}], "spans": [{"offset": 484, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 24.99, "symbol": "\u00a3"}, "content": "\u00a324.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 552.0, "y": 338.0}, {"x": 581.0, "y": 338.0}, {"x": 581.0, "y": 347.0}, {"x": 553.0, "y": 347.0}]}], "spans": [{"offset": 387, "length": 6}], "confidence": null}, "Date": {"value_type": "date", "value": "2019-12-30", "content": "30 Dec 2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 54.0, "y": 338.0}, {"x": 101.0, "y": 338.0}, {"x": 101.0, "y": 347.0}, {"x": 54.0, "y": 347.0}]}], "spans": [{"offset": 342, "length": 11}], "confidence": null}, "Description": {"value_type": "string", "value": "Pilot knee board", "content": "Pilot knee board", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 338.0}, {"x": 171.0, "y": 338.0}, {"x": 171.0, "y": 348.0}, {"x": 112.0, "y": 348.0}]}], "spans": [{"offset": 354, "length": 16}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "5", "content": "5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 487.0, "y": 338.0}, {"x": 491.0, "y": 338.0}, {"x": 491.0, "y": 346.0}, {"x": 487.0, "y": 346.0}]}], "spans": [{"offset": 379, "length": 1}], "confidence": null}, "Tax": {"value_type": "currency", "value": {"amount": 4.16, "symbol": null}, "content": "E4.16", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 518.0, "y": 338.0}, {"x": 541.0, "y": 338.0}, {"x": 541.0, "y": 347.0}, {"x": 518.0, "y": 346.0}]}], "spans": [{"offset": 381, "length": 5}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 24.99, "symbol": null}, "content": "24.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 338.0}, {"x": 476.0, "y": 338.0}, {"x": 476.0, "y": 346.0}, {"x": 455.0, "y": 346.0}]}], "spans": [{"offset": 373, "length": 5}], "confidence": null}}, "content": "30 Dec 2019\nPilot knee board\n1\n24.99\n5\nE4.16\n\u00a324.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 54.0, "y": 338.0}, {"x": 581.0, "y": 338.0}, {"x": 581.0, "y": 348.0}, {"x": 54.0, "y": 348.0}]}], "spans": [{"offset": 342, "length": 51}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.99, "symbol": null}, "content": "& 10.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 553.0, "y": 355.0}, {"x": 580.0, "y": 355.0}, {"x": 580.0, "y": 364.0}, {"x": 553.0, "y": 364.0}]}], "spans": [{"offset": 435, "length": 7}], "confidence": null}, "Date": {"value_type": "date", "value": "2019-12-30", "content": "30 Dec 2019", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 55.0, "y": 354.0}, {"x": 101.0, "y": 354.0}, {"x": 101.0, "y": 364.0}, {"x": 55.0, "y": 364.0}]}], "spans": [{"offset": 394, "length": 11}], "confidence": null}, "Description": {"value_type": "string", "value": "Hiot logbook", "content": "Hiot logbook", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 354.0}, {"x": 160.0, "y": 354.0}, {"x": 160.0, "y": 364.0}, {"x": 112.0, "y": 364.0}]}], "spans": [{"offset": 406, "length": 12}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "-", "content": "-", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 491.0, "y": 357.0}, {"x": 491.0, "y": 360.0}, {"x": 485.0, "y": 360.0}, {"x": 485.0, "y": 357.0}]}], "spans": [{"offset": 427, "length": 1}], "confidence": null}, "Tax": {"value_type": "currency", "value": {"amount": 1.83, "symbol": null}, "content": "E1.83", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 518.0, "y": 355.0}, {"x": 541.0, "y": 355.0}, {"x": 541.0, "y": 363.0}, {"x": 518.0, "y": 364.0}]}], "spans": [{"offset": 429, "length": 5}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.99, "symbol": null}, "content": "10.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 355.0}, {"x": 476.0, "y": 355.0}, {"x": 476.0, "y": 363.0}, {"x": 455.0, "y": 362.0}]}], "spans": [{"offset": 421, "length": 5}], "confidence": null}}, "content": "30 Dec 2019\nHiot logbook\n1\n10.99\n-\nE1.83 & 10.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 55.0, "y": 354.0}, {"x": 580.0, "y": 354.0}, {"x": 580.0, "y": 364.0}, {"x": 55.0, "y": 364.0}]}], "spans": [{"offset": 394, "length": 48}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 5.99, "symbol": null}, "content": "[ 5.99", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 558.0, "y": 378.0}, {"x": 581.0, "y": 378.0}, {"x": 581.0, "y": 387.0}, {"x": 558.0, "y": 387.0}]}], "spans": [{"offset": 462, "length": 6}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "My Flying Clb", "content": "My Flying Clb", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 488.0, "y": 125.0}, {"x": 546.0, "y": 125.0}, {"x": 546.0, "y": 137.0}, {"x": 488.0, "y": 137.0}]}], "spans": [{"offset": 159, "length": 13}], "confidence": null}, "VendorName": {"value_type": "string", "value": "Acme Flying Club", "content": "Acme Flying Club", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 281.0, "y": 588.0}, {"x": 355.0, "y": 588.0}, {"x": 355.0, "y": 600.0}, {"x": 281.0, "y": 600.0}]}], "spans": [{"offset": 649, "length": 16}], "confidence": null}, "VendorTaxId": {"value_type": "string", "value": "123 4567 89", "content": "123 4567 89", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 430.0, "y": 601.0}, {"x": 478.0, "y": 601.0}, {"x": 478.0, "y": 612.0}, {"x": 430.0, "y": 612.0}]}], "spans": [{"offset": 730, "length": 11}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/177120202100020_-_Tax_Invoice-1_jpg.rf.d2a776ae09e3a4ee7af167f9397f5483.json b/Data/train/177120202100020_-_Tax_Invoice-1_jpg.rf.d2a776ae09e3a4ee7af167f9397f5483.json new file mode 100644 index 0000000000000000000000000000000000000000..10eb17f8af5cda3e2f1daea749f77598196bb927 --- /dev/null +++ b/Data/train/177120202100020_-_Tax_Invoice-1_jpg.rf.d2a776ae09e3a4ee7af167f9397f5483.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1582.0, "y": 0.0}, {"x": 1582.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 2010}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 13865.0, "symbol": "INR"}, "content": "INR 13,865.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1221.0, "y": 1383.0}, {"x": 1488.0, "y": 1383.0}, {"x": 1488.0, "y": 1425.0}, {"x": 1221.0, "y": 1425.0}]}], "spans": [{"offset": 1137, "length": 13}], "confidence": 0.567}, "BillingAddress": {"value_type": "address", "value": {"house_number": "Suite\nNo.95227th", "po_box": null, "road": "Main, 13th\nCrossHSR Layout, Sector 1", "city": "Bangalore", "state": null, "postal_code": null, "country_region": null, "street_address": "Suite\nNo.95227th Main, 13th\nCrossHSR Layout, Sector 1 #677"}, "content": "#677, 1st Floor, Suite\nNo.95227th Main, 13th\nCrossHSR Layout, Sector 1,\nBangalore, Karnataka India\nState Code: 29", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 89.0, "y": 644.0}, {"x": 424.0, "y": 644.0}, {"x": 424.0, "y": 817.0}, {"x": 89.0, "y": 817.0}]}], "spans": [{"offset": 396, "length": 22}, {"offset": 442, "length": 21}, {"offset": 486, "length": 26}, {"offset": 540, "length": 26}, {"offset": 594, "length": 14}], "confidence": 0.312}, "BillingAddressRecipient": {"value_type": "string", "value": "Hanatech Solutions Private\nLimited", "content": "Hanatech Solutions Private\nLimited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 573.0}, {"x": 407.0, "y": 573.0}, {"x": 407.0, "y": 639.0}, {"x": 90.0, "y": 639.0}]}], "spans": [{"offset": 326, "length": 26}, {"offset": 380, "length": 7}], "confidence": 0.808}, "CustomerName": {"value_type": "string", "value": "Hanatech Solutions Private\nLimited", "content": "Hanatech Solutions Private\nLimited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 90.0, "y": 573.0}, {"x": 407.0, "y": 573.0}, {"x": 407.0, "y": 639.0}, {"x": 90.0, "y": 639.0}]}], "spans": [{"offset": 326, "length": 26}, {"offset": 380, "length": 7}], "confidence": 0.808}, "CustomerTaxId": {"value_type": "string", "value": "29AAFCH1765F1ZI", "content": "29AAFCH1765F1ZI", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 186.0, "y": 822.0}, {"x": 415.0, "y": 822.0}, {"x": 416.0, "y": 852.0}, {"x": 185.0, "y": 853.0}]}], "spans": [{"offset": 631, "length": 15}], "confidence": 0.829}, "DueDate": {"value_type": "date", "value": "2020-02-04", "content": "02/04/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1314.0, "y": 632.0}, {"x": 1445.0, "y": 633.0}, {"x": 1445.0, "y": 659.0}, {"x": 1315.0, "y": 660.0}]}], "spans": [{"offset": 315, "length": 10}], "confidence": 0.949}, "InvoiceDate": {"value_type": "date", "value": "2020-02-04", "content": "02/04/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 838.0, "y": 631.0}, {"x": 968.0, "y": 631.0}, {"x": 968.0, "y": 660.0}, {"x": 838.0, "y": 660.0}]}], "spans": [{"offset": 270, "length": 10}], "confidence": 0.953}, "InvoiceId": {"value_type": "string", "value": "177120202100020", "content": "177120202100020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1141.0, "y": 268.0}, {"x": 1485.0, "y": 266.0}, {"x": 1485.0, "y": 312.0}, {"x": 1140.0, "y": 310.0}]}], "spans": [{"offset": 35, "length": 15}], "confidence": 0.945}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 13865.0, "symbol": null}, "content": "13,865.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1370.0, "y": 1303.0}, {"x": 1483.0, "y": 1301.0}, {"x": 1484.0, "y": 1330.0}, {"x": 1371.0, "y": 1329.0}]}], "spans": [{"offset": 1117, "length": 9}], "confidence": 0.838}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 11750.0, "symbol": null}, "content": "11,750.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1370.0, "y": 1104.0}, {"x": 1484.0, "y": 1104.0}, {"x": 1484.0, "y": 1133.0}, {"x": 1371.0, "y": 1132.0}]}], "spans": [{"offset": 850, "length": 9}], "confidence": 0.88}, "Description": {"value_type": "string", "value": "License - G Suite Basic\nDomain Name : hanatechpvt.com\nPeriod : 01-April-2020 to 31-Mar-2021\nRs.2350/-PUPY", "content": "License - G Suite Basic Domain Name : hanatechpvt.com Period : 01-April-2020 to 31-Mar-2021 Rs.2350/-PUPY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 306.0, "y": 1103.0}, {"x": 744.0, "y": 1103.0}, {"x": 744.0, "y": 1210.0}, {"x": 306.0, "y": 1210.0}]}], "spans": [{"offset": 722, "length": 105}], "confidence": 0.713}, "ProductCode": {"value_type": "string", "value": "998319", "content": "998319", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 197.0, "y": 1104.0}, {"x": 284.0, "y": 1103.0}, {"x": 284.0, "y": 1132.0}, {"x": 197.0, "y": 1132.0}]}], "spans": [{"offset": 715, "length": 6}], "confidence": 0.868}, "Quantity": {"value_type": "float", "value": 5.0, "content": "5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 984.0, "y": 1104.0}, {"x": 999.0, "y": 1104.0}, {"x": 999.0, "y": 1132.0}, {"x": 984.0, "y": 1132.0}]}], "spans": [{"offset": 828, "length": 1}], "confidence": 0.879}, "TaxRate": {"value_type": "string", "value": "18.0%", "content": "18.0%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1180.0, "y": 1105.0}, {"x": 1255.0, "y": 1105.0}, {"x": 1255.0, "y": 1131.0}, {"x": 1181.0, "y": 1130.0}]}], "spans": [{"offset": 839, "length": 5}], "confidence": 0.876}, "UnitPrice": {"value_type": "currency", "value": {"amount": 2350.0, "symbol": null}, "content": "2,350.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1019.0, "y": 1104.0}, {"x": 1119.0, "y": 1104.0}, {"x": 1119.0, "y": 1132.0}, {"x": 1019.0, "y": 1132.0}]}], "spans": [{"offset": 830, "length": 8}], "confidence": 0.88}}, "content": "998319 License - G Suite Basic Domain Name : hanatechpvt.com Period : 01-April-2020 to 31-Mar-2021 Rs.2350/-PUPY\n5 2,350.00\n18.0% IGST\n11,750.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 197.0, "y": 1103.0}, {"x": 1484.0, "y": 1103.0}, {"x": 1484.0, "y": 1210.0}, {"x": 197.0, "y": 1210.0}]}], "spans": [{"offset": 715, "length": 144}], "confidence": 0.797}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"SWIFT": {"value_type": "string", "value": "CITIINBX", "content": "CITIINBX", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 240.0, "y": 1617.0}, {"x": 351.0, "y": 1617.0}, {"x": 351.0, "y": 1647.0}, {"x": 240.0, "y": 1647.0}]}], "spans": [{"offset": 1358, "length": 8}], "confidence": 0.948}}, "content": null, "bounding_regions": [], "spans": [], "confidence": 0.995}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Searce Cosourcing Services Private Limited", "content": "Searce Cosourcing Services Private Limited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 183.0, "y": 1440.0}, {"x": 690.0, "y": 1437.0}, {"x": 690.0, "y": 1470.0}, {"x": 183.0, "y": 1473.0}]}], "spans": [{"offset": 1189, "length": 42}], "confidence": 0.656}, "ServiceEndDate": {"value_type": "date", "value": "2021-03-31", "content": "31-Mar-2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 597.0, "y": 1156.0}, {"x": 744.0, "y": 1156.0}, {"x": 744.0, "y": 1183.0}, {"x": 597.0, "y": 1183.0}]}], "spans": [{"offset": 802, "length": 11}], "confidence": 0.709}, "ServiceStartDate": {"value_type": "date", "value": "2020-04-01", "content": "01-April-2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 405.0, "y": 1156.0}, {"x": 560.0, "y": 1157.0}, {"x": 560.0, "y": 1183.0}, {"x": 405.0, "y": 1184.0}]}], "spans": [{"offset": 785, "length": 13}], "confidence": 0.71}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "Suite\nNo.95227th", "po_box": null, "road": "Main, 13th\nCrossHSR Layout, Sector 1", "city": "Bangalore", "state": null, "postal_code": null, "country_region": null, "street_address": "Suite\nNo.95227th Main, 13th\nCrossHSR Layout, Sector 1 #677"}, "content": "#677, 1st Floor, Suite\nNo.95227th Main, 13th\nCrossHSR Layout, Sector 1,\nBangalore, Karnataka India\nState Code: 29", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 442.0, "y": 646.0}, {"x": 770.0, "y": 646.0}, {"x": 770.0, "y": 817.0}, {"x": 442.0, "y": 817.0}]}], "spans": [{"offset": 419, "length": 22}, {"offset": 464, "length": 21}, {"offset": 513, "length": 26}, {"offset": 567, "length": 26}, {"offset": 609, "length": 14}], "confidence": 0.422}, "ShippingAddressRecipient": {"value_type": "string", "value": "Hanatech Solutions Private\nLimited", "content": "Hanatech Solutions Private\nLimited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 573.0}, {"x": 758.0, "y": 573.0}, {"x": 758.0, "y": 637.0}, {"x": 441.0, "y": 637.0}]}], "spans": [{"offset": 353, "length": 26}, {"offset": 388, "length": 7}], "confidence": 0.894}, "SubTotal": {"value_type": "currency", "value": {"amount": 11750.0, "symbol": null}, "content": "11,750.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1370.0, "y": 1232.0}, {"x": 1483.0, "y": 1231.0}, {"x": 1483.0, "y": 1258.0}, {"x": 1370.0, "y": 1257.0}]}], "spans": [{"offset": 1069, "length": 9}], "confidence": 0.95}, "TotalTax": {"value_type": "currency", "value": {"amount": 2115.0, "symbol": null}, "content": "2,115.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1384.0, "y": 1267.0}, {"x": 1483.0, "y": 1266.0}, {"x": 1484.0, "y": 1294.0}, {"x": 1385.0, "y": 1293.0}]}], "spans": [{"offset": 1102, "length": 8}], "confidence": 0.943}, "VendorAddress": {"value_type": "address", "value": {"house_number": "31", "po_box": null, "road": "Arham, Subhash Road, Moti Tanki", "city": "Rajkot", "state": "Gujarat", "postal_code": "360001", "country_region": "IN", "street_address": "31 Arham, Subhash Road, Moti Tanki"}, "content": "31 Arham, Subhash Road, Moti Tanki, Rajkot, Gujarat 360001 IN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 371.0, "y": 242.0}, {"x": 814.0, "y": 242.0}, {"x": 814.0, "y": 312.0}, {"x": 371.0, "y": 312.0}]}], "spans": [{"offset": 116, "length": 61}], "confidence": 0.868}, "VendorAddressRecipient": {"value_type": "string", "value": "Searce Cosourcing Services Private Limited", "content": "Searce Cosourcing Services Private Limited", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 373.0, "y": 206.0}, {"x": 881.0, "y": 206.0}, {"x": 881.0, "y": 240.0}, {"x": 373.0, "y": 240.0}]}], "spans": [{"offset": 73, "length": 42}], "confidence": 0.895}, "VendorName": {"value_type": "string", "value": "searce", "content": "searce", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 273.0}, {"x": 315.0, "y": 272.0}, {"x": 315.0, "y": 312.0}, {"x": 161.0, "y": 311.0}]}], "spans": [{"offset": 62, "length": 6}], "confidence": 0.95}, "VendorTaxId": {"value_type": "string", "value": "24AAICS2159P1ZV", "content": "24AAICS2159P1ZV", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 318.0}, {"x": 695.0, "y": 319.0}, {"x": 694.0, "y": 346.0}, {"x": 467.0, "y": 347.0}]}], "spans": [{"offset": 185, "length": 15}], "confidence": 0.787}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/178_jpg.rf.5fd9f9092be126b5b3c6924c97777eaa.json b/Data/train/178_jpg.rf.5fd9f9092be126b5b3c6924c97777eaa.json new file mode 100644 index 0000000000000000000000000000000000000000..9ef19987b8333d9f31741ef2c3238e06c41d7fb0 --- /dev/null +++ b/Data/train/178_jpg.rf.5fd9f9092be126b5b3c6924c97777eaa.json @@ -0,0 +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": 1274}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 95524.0, "symbol": "Rs"}, "content": "Rs. 95,524.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 466.0}, {"x": 553.0, "y": 466.0}, {"x": 553.0, "y": 476.0}, {"x": 498.0, "y": 476.0}]}], "spans": [{"offset": 902, "length": 13}], "confidence": 0.596}, "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": 86.0, "y": 155.0}, {"x": 179.0, "y": 155.0}, {"x": 179.0, "y": 179.0}, {"x": 86.0, "y": 179.0}]}], "spans": [{"offset": 131, "length": 37}], "confidence": 0.936}, "BillingAddressRecipient": {"value_type": "string", "value": "TechGuruPlus", "content": "TechGuruPlus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 143.0}, {"x": 147.0, "y": 143.0}, {"x": 147.0, "y": 153.0}, {"x": 87.0, "y": 153.0}]}], "spans": [{"offset": 118, "length": 12}], "confidence": 0.956}, "CustomerName": {"value_type": "string", "value": "TechGuruPlus", "content": "TechGuruPlus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 143.0}, {"x": 147.0, "y": 143.0}, {"x": 147.0, "y": 153.0}, {"x": 87.0, "y": 153.0}]}], "spans": [{"offset": 118, "length": 12}], "confidence": 0.956}, "CustomerTaxId": {"value_type": "string", "value": "6969696969696969", "content": "6969696969696969", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 278.0, "y": 194.0}, {"x": 358.0, "y": 195.0}, {"x": 358.0, "y": 204.0}, {"x": 279.0, "y": 204.0}]}], "spans": [{"offset": 299, "length": 16}], "confidence": 0.842}, "DueDate": {"value_type": "date", "value": "2021-03-17", "content": "17-03-2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 471.0, "y": 103.0}, {"x": 520.0, "y": 103.0}, {"x": 521.0, "y": 114.0}, {"x": 471.0, "y": 114.0}]}], "spans": [{"offset": 415, "length": 10}], "confidence": 0.955}, "InvoiceDate": {"value_type": "date", "value": "2021-03-03", "content": "03-03-2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 469.0, "y": 64.0}, {"x": 519.0, "y": 65.0}, {"x": 519.0, "y": 76.0}, {"x": 469.0, "y": 76.0}]}], "spans": [{"offset": 341, "length": 10}], "confidence": 0.956}, "InvoiceId": {"value_type": "string", "value": "SLT21-22/0001", "content": "SLT21-22/0001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 470.0, "y": 77.0}, {"x": 537.0, "y": 77.0}, {"x": 537.0, "y": 89.0}, {"x": 470.0, "y": 89.0}]}], "spans": [{"offset": 367, "length": 13}], "confidence": 0.954}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 95524.0, "symbol": "Rs"}, "content": "Rs. 95,524.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 466.0}, {"x": 553.0, "y": 466.0}, {"x": 553.0, "y": 476.0}, {"x": 498.0, "y": 476.0}]}], "spans": [{"offset": 902, "length": 13}], "confidence": 0.596}, "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": 503.0, "y": 234.0}, {"x": 553.0, "y": 234.0}, {"x": 553.0, "y": 244.0}, {"x": 503.0, "y": 244.0}]}], "spans": [{"offset": 519, "length": 12}], "confidence": 0.093}, "Description": {"value_type": "string", "value": "ITEM NAME 1\nItem Description 1", "content": "ITEM NAME 1 Item Description 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 233.0}, {"x": 260.0, "y": 233.0}, {"x": 260.0, "y": 253.0}, {"x": 191.0, "y": 253.0}]}], "spans": [{"offset": 469, "length": 30}], "confidence": 0.149}, "ProductCode": {"value_type": "string", "value": "2516", "content": "2516", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 234.0}, {"x": 360.0, "y": 234.0}, {"x": 360.0, "y": 243.0}, {"x": 341.0, "y": 243.0}]}], "spans": [{"offset": 500, "length": 4}], "confidence": 0.021}, "Quantity": {"value_type": "float", "value": 15.0, "content": "15", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 386.0, "y": 234.0}, {"x": 397.0, "y": 234.0}, {"x": 396.0, "y": 243.0}, {"x": 386.0, "y": 242.0}]}], "spans": [{"offset": 505, "length": 2}], "confidence": 0.103}, "UnitPrice": {"value_type": "currency", "value": {"amount": 125.0, "symbol": "Rs"}, "content": "Rs. 125.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 425.0, "y": 234.0}, {"x": 467.0, "y": 234.0}, {"x": 467.0, "y": 243.0}, {"x": 425.0, "y": 243.0}]}], "spans": [{"offset": 508, "length": 10}], "confidence": 0.09}}, "content": "1\nITEM NAME 1 Item Description 1\n2516\n15\nRs. 125.00\nRs. 1,875.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 233.0}, {"x": 553.0, "y": 233.0}, {"x": 553.0, "y": 253.0}, {"x": 104.0, "y": 253.0}]}], "spans": [{"offset": 467, "length": 64}], "confidence": 0.398}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 6123.52, "symbol": "Rs"}, "content": "Rs. 6,123.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 503.0, "y": 255.0}, {"x": 554.0, "y": 257.0}, {"x": 554.0, "y": 269.0}, {"x": 503.0, "y": 267.0}]}], "spans": [{"offset": 584, "length": 12}], "confidence": 0.092}, "Description": {"value_type": "string", "value": "ITEM NAME 2\nItem Description 2", "content": "ITEM NAME 2 Item Description 2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 256.0}, {"x": 259.0, "y": 256.0}, {"x": 259.0, "y": 280.0}, {"x": 191.0, "y": 280.0}]}], "spans": [{"offset": 534, "length": 30}], "confidence": 0.152}, "ProductCode": {"value_type": "string", "value": "2541", "content": "2541", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 340.0, "y": 256.0}, {"x": 359.0, "y": 256.0}, {"x": 359.0, "y": 264.0}, {"x": 341.0, "y": 265.0}]}], "spans": [{"offset": 565, "length": 4}], "confidence": 0.021}, "Quantity": {"value_type": "float", "value": 26.0, "content": "26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 386.0, "y": 256.0}, {"x": 396.0, "y": 256.0}, {"x": 396.0, "y": 265.0}, {"x": 387.0, "y": 265.0}]}], "spans": [{"offset": 570, "length": 2}], "confidence": 0.103}, "UnitPrice": {"value_type": "currency", "value": {"amount": 235.52, "symbol": "Rs"}, "content": "Rs. 235.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 424.0, "y": 257.0}, {"x": 467.0, "y": 257.0}, {"x": 467.0, "y": 266.0}, {"x": 424.0, "y": 266.0}]}], "spans": [{"offset": 573, "length": 10}], "confidence": 0.093}}, "content": "2\nITEM NAME 2 Item Description 2\n2541\n26\nRs. 235.52\nRs. 6,123.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 105.0, "y": 256.0}, {"x": 554.0, "y": 256.0}, {"x": 554.0, "y": 280.0}, {"x": 105.0, "y": 280.0}]}], "spans": [{"offset": 532, "length": 64}], "confidence": 0.396}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 35532.0, "symbol": "Rs"}, "content": "Rs. 35,532.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 282.0}, {"x": 553.0, "y": 283.0}, {"x": 553.0, "y": 293.0}, {"x": 498.0, "y": 292.0}]}], "spans": [{"offset": 649, "length": 13}], "confidence": 0.092}, "Description": {"value_type": "string", "value": "ITEM NAME 3\nItem Description 3", "content": "ITEM NAME 3 Item Description 3", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 192.0, "y": 282.0}, {"x": 259.0, "y": 282.0}, {"x": 259.0, "y": 306.0}, {"x": 192.0, "y": 306.0}]}], "spans": [{"offset": 599, "length": 30}], "confidence": 0.153}, "ProductCode": {"value_type": "string", "value": "4944", "content": "4944", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 340.0, "y": 283.0}, {"x": 360.0, "y": 283.0}, {"x": 360.0, "y": 292.0}, {"x": 340.0, "y": 291.0}]}], "spans": [{"offset": 630, "length": 4}], "confidence": 0.018}, "Quantity": {"value_type": "float", "value": 54.0, "content": "54", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 386.0, "y": 283.0}, {"x": 396.0, "y": 283.0}, {"x": 396.0, "y": 291.0}, {"x": 386.0, "y": 291.0}]}], "spans": [{"offset": 635, "length": 2}], "confidence": 0.103}, "UnitPrice": {"value_type": "currency", "value": {"amount": 658.0, "symbol": "Rs"}, "content": "Rs. 658.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 424.0, "y": 283.0}, {"x": 466.0, "y": 284.0}, {"x": 466.0, "y": 293.0}, {"x": 424.0, "y": 292.0}]}], "spans": [{"offset": 638, "length": 10}], "confidence": 0.093}}, "content": "3\nITEM NAME 3 Item Description 3\n4944\n54\nRs. 658.00\nRs. 35,532.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 282.0}, {"x": 553.0, "y": 282.0}, {"x": 553.0, "y": 306.0}, {"x": 104.0, "y": 306.0}]}], "spans": [{"offset": 597, "length": 65}], "confidence": 0.396}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 28130.0, "symbol": "Rs"}, "content": "Rs. 28,130.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 310.0}, {"x": 552.0, "y": 310.0}, {"x": 552.0, "y": 319.0}, {"x": 498.0, "y": 319.0}]}], "spans": [{"offset": 715, "length": 13}], "confidence": 0.094}, "Description": {"value_type": "string", "value": "ITEM NAME 4\nItem Description 4", "content": "ITEM NAME 4 Item Description 4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 192.0, "y": 309.0}, {"x": 260.0, "y": 309.0}, {"x": 260.0, "y": 333.0}, {"x": 192.0, "y": 333.0}]}], "spans": [{"offset": 665, "length": 30}], "confidence": 0.155}, "ProductCode": {"value_type": "string", "value": "2546", "content": "2546", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 310.0}, {"x": 360.0, "y": 310.0}, {"x": 360.0, "y": 318.0}, {"x": 341.0, "y": 318.0}]}], "spans": [{"offset": 696, "length": 4}], "confidence": 0.019}, "Quantity": {"value_type": "float", "value": 58.0, "content": "58", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 387.0, "y": 310.0}, {"x": 396.0, "y": 310.0}, {"x": 396.0, "y": 318.0}, {"x": 387.0, "y": 318.0}]}], "spans": [{"offset": 701, "length": 2}], "confidence": 0.103}, "UnitPrice": {"value_type": "currency", "value": {"amount": 485.0, "symbol": "Rs"}, "content": "Rs. 485.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 424.0, "y": 310.0}, {"x": 466.0, "y": 310.0}, {"x": 466.0, "y": 319.0}, {"x": 424.0, "y": 319.0}]}], "spans": [{"offset": 704, "length": 10}], "confidence": 0.093}}, "content": "4\nITEM NAME 4 Item Description 4\n2546\n58\nRs. 485.00\nRs. 28,130.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 309.0}, {"x": 552.0, "y": 309.0}, {"x": 552.0, "y": 333.0}, {"x": 104.0, "y": 333.0}]}], "spans": [{"offset": 663, "length": 65}], "confidence": 0.397}, {"value_type": "dictionary", "value": {}, "content": "5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 336.0}, {"x": 109.0, "y": 336.0}, {"x": 109.0, "y": 345.0}, {"x": 104.0, "y": 345.0}]}], "spans": [{"offset": 729, "length": 1}], "confidence": 0.325}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5375.0, "symbol": "Rs"}, "content": "Rs. 5,375.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 503.0, "y": 336.0}, {"x": 552.0, "y": 336.0}, {"x": 552.0, "y": 345.0}, {"x": 503.0, "y": 345.0}]}], "spans": [{"offset": 783, "length": 12}], "confidence": 0.092}, "Description": {"value_type": "string", "value": "ITEM NAME 5\nItem Description 5", "content": "ITEM NAME 5 Item Description 5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 191.0, "y": 336.0}, {"x": 260.0, "y": 336.0}, {"x": 260.0, "y": 359.0}, {"x": 191.0, "y": 359.0}]}], "spans": [{"offset": 733, "length": 30}], "confidence": 0.169}, "ProductCode": {"value_type": "string", "value": "8151", "content": "8151", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 336.0}, {"x": 360.0, "y": 336.0}, {"x": 360.0, "y": 345.0}, {"x": 340.0, "y": 345.0}]}], "spans": [{"offset": 764, "length": 4}], "confidence": 0.021}, "Quantity": {"value_type": "float", "value": 25.0, "content": "25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 387.0, "y": 336.0}, {"x": 396.0, "y": 336.0}, {"x": 395.0, "y": 345.0}, {"x": 387.0, "y": 344.0}]}], "spans": [{"offset": 769, "length": 2}], "confidence": 0.103}, "UnitPrice": {"value_type": "currency", "value": {"amount": 215.0, "symbol": "Rs"}, "content": "Rs. 215.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 424.0, "y": 335.0}, {"x": 467.0, "y": 336.0}, {"x": 467.0, "y": 346.0}, {"x": 424.0, "y": 345.0}]}], "spans": [{"offset": 772, "length": 10}], "confidence": 0.094}}, "content": "6\nITEM NAME 5 Item Description 5\n8151\n25\nRs. 215.00\nRs. 5,375.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 336.0}, {"x": 552.0, "y": 336.0}, {"x": 552.0, "y": 359.0}, {"x": 104.0, "y": 359.0}]}], "spans": [{"offset": 731, "length": 64}], "confidence": 0.794}], "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.\nUttar Pradesh", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 244.0, "y": 154.0}, {"x": 336.0, "y": 154.0}, {"x": 336.0, "y": 180.0}, {"x": 244.0, "y": 180.0}]}], "spans": [{"offset": 234, "length": 37}], "confidence": 0.928}, "ShippingAddressRecipient": {"value_type": "string", "value": "TechGuruPlus", "content": "TechGuruPlus", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 244.0, "y": 143.0}, {"x": 305.0, "y": 143.0}, {"x": 305.0, "y": 154.0}, {"x": 245.0, "y": 153.0}]}], "spans": [{"offset": 221, "length": 12}], "confidence": 0.955}, "SubTotal": {"value_type": "currency", "value": {"amount": 77035.52, "symbol": "Rs"}, "content": "Rs. 77,035.52", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 415.0}, {"x": 553.0, "y": 415.0}, {"x": 553.0, "y": 424.0}, {"x": 498.0, "y": 424.0}]}], "spans": [{"offset": 802, "length": 13}], "confidence": 0.936}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9244.26, "symbol": "Rs"}, "content": "Rs. 9,244.26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 503.0, "y": 427.0}, {"x": 553.0, "y": 427.0}, {"x": 553.0, "y": 437.0}, {"x": 503.0, "y": 437.0}]}], "spans": [{"offset": 827, "length": 12}], "confidence": 0.084}, "Rate": {"value_type": "string", "value": "12%", "content": "12%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 407.0, "y": 427.0}, {"x": 425.0, "y": 427.0}, {"x": 425.0, "y": 437.0}, {"x": 407.0, "y": 438.0}]}], "spans": [{"offset": 823, "length": 3}], "confidence": 0.052}}, "content": "SGST @ 12%\nRs. 9,244.26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 370.0, "y": 427.0}, {"x": 553.0, "y": 427.0}, {"x": 553.0, "y": 438.0}, {"x": 370.0, "y": 438.0}]}], "spans": [{"offset": 816, "length": 23}], "confidence": 0.934}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9244.26, "symbol": "Rs"}, "content": "Rs. 9,244.26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 503.0, "y": 440.0}, {"x": 552.0, "y": 441.0}, {"x": 552.0, "y": 451.0}, {"x": 503.0, "y": 450.0}]}], "spans": [{"offset": 851, "length": 12}], "confidence": 0.085}, "Rate": {"value_type": "string", "value": "12%", "content": "12%", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 407.0, "y": 440.0}, {"x": 426.0, "y": 440.0}, {"x": 426.0, "y": 451.0}, {"x": 407.0, "y": 450.0}]}], "spans": [{"offset": 847, "length": 3}], "confidence": 0.05}}, "content": "CGST @ 12%\nRs. 9,244.26", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 371.0, "y": 440.0}, {"x": 552.0, "y": 440.0}, {"x": 552.0, "y": 451.0}, {"x": 371.0, "y": 451.0}]}], "spans": [{"offset": 840, "length": 23}], "confidence": 0.934}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TotalDiscount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "Rs"}, "content": "Rs. 0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 520.0, "y": 453.0}, {"x": 553.0, "y": 453.0}, {"x": 553.0, "y": 463.0}, {"x": 520.0, "y": 463.0}]}], "spans": [{"offset": 878, "length": 8}], "confidence": 0.934}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Okhla Industrial Area.\nNew Delhi-110020", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "Okhla Industrial Area.\nNew Delhi-110020"}, "content": "Okhla Industrial Area. New Delhi-110020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 85.0, "y": 65.0}, {"x": 176.0, "y": 65.0}, {"x": 176.0, "y": 89.0}, {"x": 85.0, "y": 89.0}]}], "spans": [{"offset": 30, "length": 39}], "confidence": 0.929}, "VendorAddressRecipient": {"value_type": "string", "value": "Traders", "content": "Traders", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 161.0, "y": 33.0}, {"x": 224.0, "y": 34.0}, {"x": 224.0, "y": 56.0}, {"x": 160.0, "y": 55.0}]}], "spans": [{"offset": 22, "length": 7}], "confidence": 0.422}, "VendorName": {"value_type": "string", "value": "Traders", "content": "Traders", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 161.0, "y": 33.0}, {"x": 224.0, "y": 34.0}, {"x": 224.0, "y": 56.0}, {"x": 160.0, "y": 55.0}]}], "spans": [{"offset": 22, "length": 7}], "confidence": 0.422}, "VendorTaxId": {"value_type": "string", "value": "896989898989", "content": "896989898989", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 104.0}, {"x": 178.0, "y": 104.0}, {"x": 178.0, "y": 113.0}, {"x": 118.0, "y": 113.0}]}], "spans": [{"offset": 97, "length": 12}], "confidence": 0.846}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/17_png.rf.791abcca71390a17bb5d31f53af4a918.json b/Data/train/17_png.rf.791abcca71390a17bb5d31f53af4a918.json new file mode 100644 index 0000000000000000000000000000000000000000..bcf8da1866be1f15e7d92cd6c92388cbd4082938 --- /dev/null +++ b/Data/train/17_png.rf.791abcca71390a17bb5d31f53af4a918.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1000.0, "y": 0.0}, {"x": 1000.0, "y": 1414.0}, {"x": 0.0, "y": 1414.0}]}], "spans": [{"offset": 0, "length": 706}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": null, "postal_code": "49628-7978", "country_region": "United States", "street_address": ""}, "content": "49628-7978\nUnited States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 279.0, "y": 578.0}, {"x": 560.0, "y": 578.0}, {"x": 560.0, "y": 627.0}, {"x": 279.0, "y": 627.0}]}], "spans": [{"offset": 299, "length": 24}], "confidence": 0.294}, "BillingAddressRecipient": {"value_type": "string", "value": "Veronica Costello", "content": "Veronica Costello", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 84.0, "y": 523.0}, {"x": 246.0, "y": 523.0}, {"x": 246.0, "y": 546.0}, {"x": 84.0, "y": 546.0}]}], "spans": [{"offset": 220, "length": 17}], "confidence": 0.287}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "6146", "po_box": null, "road": "Honey Bluff Parkway", "city": "Calder", "state": "Michigan", "postal_code": null, "country_region": null, "street_address": "6146 Honey Bluff Parkway"}, "content": "6146 Honey Bluff Parkway\nCalder, Michigan,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 279.0, "y": 551.0}, {"x": 526.0, "y": 551.0}, {"x": 526.0, "y": 601.0}, {"x": 279.0, "y": 601.0}]}], "spans": [{"offset": 256, "length": 42}], "confidence": 0.303}, "CustomerAddressRecipient": {"value_type": "string", "value": "Veronica Costello", "content": "Veronica Costello", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 279.0, "y": 522.0}, {"x": 442.0, "y": 523.0}, {"x": 442.0, "y": 546.0}, {"x": 279.0, "y": 545.0}]}], "spans": [{"offset": 238, "length": 17}], "confidence": 0.314}, "CustomerName": {"value_type": "string", "value": "Veronica Costello", "content": "Veronica Costello", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 279.0, "y": 522.0}, {"x": 442.0, "y": 523.0}, {"x": 442.0, "y": 546.0}, {"x": 279.0, "y": 545.0}]}], "spans": [{"offset": 238, "length": 17}], "confidence": 0.314}, "InvoiceDate": {"value_type": "date", "value": "2020-12-14", "content": "Dec 14, 2020,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 754.0, "y": 320.0}, {"x": 862.0, "y": 320.0}, {"x": 862.0, "y": 339.0}, {"x": 754.0, "y": 339.0}]}], "spans": [{"offset": 163, "length": 13}], "confidence": 0.705}, "InvoiceId": {"value_type": "string", "value": "#6000000001", "content": "#6000000001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 815.0, "y": 274.0}, {"x": 925.0, "y": 274.0}, {"x": 925.0, "y": 291.0}, {"x": 816.0, "y": 290.0}]}], "spans": [{"offset": 122, "length": 11}], "confidence": 0.966}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 110.67, "symbol": "$"}, "content": "$110.67", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 830.0, "y": 1040.0}, {"x": 915.0, "y": 1038.0}, {"x": 915.0, "y": 1060.0}, {"x": 831.0, "y": 1060.0}]}], "spans": [{"offset": 592, "length": 7}], "confidence": 0.96}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 43.0, "symbol": "$"}, "content": "$43.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 849.0, "y": 765.0}, {"x": 915.0, "y": 765.0}, {"x": 914.0, "y": 788.0}, {"x": 849.0, "y": 787.0}]}], "spans": [{"offset": 482, "length": 6}], "confidence": 0.918}, "Description": {"value_type": "string", "value": "Luma Analog Watch\nSKU: 24-WG09", "content": "Luma Analog Watch SKU: 24-WG09", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 83.0, "y": 756.0}, {"x": 289.0, "y": 756.0}, {"x": 289.0, "y": 799.0}, {"x": 83.0, "y": 799.0}]}], "spans": [{"offset": 449, "length": 30}], "confidence": 0.905}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 508.0, "y": 767.0}, {"x": 518.0, "y": 767.0}, {"x": 519.0, "y": 785.0}, {"x": 509.0, "y": 785.0}]}], "spans": [{"offset": 480, "length": 1}], "confidence": 0.905}}, "content": "Luma Analog Watch SKU: 24-WG09\n1\n$43.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 83.0, "y": 756.0}, {"x": 915.0, "y": 756.0}, {"x": 915.0, "y": 799.0}, {"x": 83.0, "y": 799.0}]}], "spans": [{"offset": 449, "length": 39}], "confidence": 0.914}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 850.0, "y": 838.0}, {"x": 914.0, "y": 837.0}, {"x": 915.0, "y": 858.0}, {"x": 850.0, "y": 858.0}]}], "spans": [{"offset": 520, "length": 6}], "confidence": 0.92}, "Description": {"value_type": "string", "value": "Fusion Backpack\nSKU: 24-MB02", "content": "Fusion Backpack SKU: 24-MB02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 83.0, "y": 826.0}, {"x": 257.0, "y": 826.0}, {"x": 257.0, "y": 868.0}, {"x": 83.0, "y": 868.0}]}], "spans": [{"offset": 489, "length": 28}], "confidence": 0.905}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 509.0, "y": 838.0}, {"x": 518.0, "y": 838.0}, {"x": 518.0, "y": 855.0}, {"x": 509.0, "y": 855.0}]}], "spans": [{"offset": 518, "length": 1}], "confidence": 0.905}}, "content": "Fusion Backpack SKU: 24-MB02\n1\n$50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 83.0, "y": 826.0}, {"x": 915.0, "y": 826.0}, {"x": 915.0, "y": 868.0}, {"x": 83.0, "y": 868.0}]}], "spans": [{"offset": 489, "length": 37}], "confidence": 0.911}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 93.0, "symbol": "$"}, "content": "$93.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 849.0, "y": 897.0}, {"x": 915.0, "y": 896.0}, {"x": 916.0, "y": 919.0}, {"x": 849.0, "y": 920.0}]}], "spans": [{"offset": 536, "length": 6}], "confidence": 0.96}, "TotalTax": {"value_type": "currency", "value": {"amount": 7.67, "symbol": "$"}, "content": "$7.67", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 861.0, "y": 991.0}, {"x": 914.0, "y": 991.0}, {"x": 914.0, "y": 1012.0}, {"x": 861.0, "y": 1012.0}]}], "spans": [{"offset": 574, "length": 5}], "confidence": 0.971}, "VendorAddress": {"value_type": "address", "value": {"house_number": "6146", "po_box": null, "road": "Honey Bluff Parkway", "city": "Calder", "state": "Michigan", "postal_code": "49628-7978", "country_region": "United States", "street_address": "6146 Honey Bluff Parkway"}, "content": "6146 Honey Bluff Parkway Calder, Michigan, 49628-7978 United States", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 70.0, "y": 300.0}, {"x": 351.0, "y": 300.0}, {"x": 351.0, "y": 377.0}, {"x": 70.0, "y": 377.0}]}], "spans": [{"offset": 39, "length": 67}], "confidence": 0.301}, "VendorAddressRecipient": {"value_type": "string", "value": "LuxuryStore", "content": "LuxuryStore", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 70.0, "y": 273.0}, {"x": 199.0, "y": 273.0}, {"x": 199.0, "y": 295.0}, {"x": 70.0, "y": 295.0}]}], "spans": [{"offset": 27, "length": 11}], "confidence": 0.379}, "VendorName": {"value_type": "string", "value": "ARGENTO NEUE", "content": "ARGENTO NEUE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 131.0, "y": 85.0}, {"x": 439.0, "y": 85.0}, {"x": 439.0, "y": 115.0}, {"x": 131.0, "y": 115.0}]}], "spans": [{"offset": 0, "length": 12}], "confidence": 0.789}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/180_jpg.rf.9ba8bb113222f317841dbf2b4f1bfff8.json b/Data/train/180_jpg.rf.9ba8bb113222f317841dbf2b4f1bfff8.json new file mode 100644 index 0000000000000000000000000000000000000000..6ad706933b300217a7c9eda92a0247ed7245d115 --- /dev/null +++ b/Data/train/180_jpg.rf.9ba8bb113222f317841dbf2b4f1bfff8.json @@ -0,0 +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": 358}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "123", "po_box": null, "road": "Main Street", "city": "Los Angeles", "state": null, "postal_code": "90095", "country_region": "U.S.A", "street_address": "123 Main Street"}, "content": "123 Main Street\nLos Angeles\n90095\nU.S.A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 153.0}, {"x": 493.0, "y": 153.0}, {"x": 493.0, "y": 198.0}, {"x": 433.0, "y": 198.0}]}], "spans": [{"offset": 176, "length": 39}], "confidence": 0.989}, "CustomerAddressRecipient": {"value_type": "string", "value": "Purvi Panjvani", "content": "Purvi Panjvani", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 136.0}, {"x": 516.0, "y": 137.0}, {"x": 516.0, "y": 152.0}, {"x": 433.0, "y": 150.0}]}], "spans": [{"offset": 161, "length": 14}], "confidence": 0.815}, "CustomerName": {"value_type": "string", "value": "Purvi Panjvani", "content": "Purvi Panjvani", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 433.0, "y": 136.0}, {"x": 516.0, "y": 137.0}, {"x": 516.0, "y": 152.0}, {"x": 433.0, "y": 150.0}]}], "spans": [{"offset": 161, "length": 14}], "confidence": 0.815}, "InvoiceDate": {"value_type": "date", "value": "2017-01-01", "content": "01/01/2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 485.0, "y": 63.0}, {"x": 526.0, "y": 62.0}, {"x": 526.0, "y": 73.0}, {"x": 485.0, "y": 74.0}]}], "spans": [{"offset": 146, "length": 10}], "confidence": 0.966}, "InvoiceId": {"value_type": "string", "value": "INV-100001", "content": "INV-100001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 50.0}, {"x": 526.0, "y": 50.0}, {"x": 526.0, "y": 60.0}, {"x": 482.0, "y": 60.0}]}], "spans": [{"offset": 135, "length": 10}], "confidence": 0.956}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 418.0, "symbol": null}, "content": "418.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 495.0, "y": 456.0}, {"x": 522.0, "y": 456.0}, {"x": 522.0, "y": 466.0}, {"x": 495.0, "y": 465.0}]}], "spans": [{"offset": 352, "length": 6}], "confidence": 0.974}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 190.0, "symbol": null}, "content": "190.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 324.0}, {"x": 525.0, "y": 324.0}, {"x": 525.0, "y": 332.0}, {"x": 501.0, "y": 332.0}]}], "spans": [{"offset": 276, "length": 6}], "confidence": 0.983}, "Description": {"value_type": "string", "value": "Web Design", "content": "Web Design", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 311.0}, {"x": 165.0, "y": 314.0}, {"x": 164.0, "y": 325.0}, {"x": 117.0, "y": 322.0}]}], "spans": [{"offset": 253, "length": 10}], "confidence": 0.983}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 324.0}, {"x": 348.0, "y": 324.0}, {"x": 348.0, "y": 332.0}, {"x": 341.0, "y": 332.0}]}], "spans": [{"offset": 264, "length": 2}], "confidence": 0.984}, "UnitPrice": {"value_type": "currency", "value": {"amount": 20.0, "symbol": null}, "content": "20.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 382.0, "y": 324.0}, {"x": 401.0, "y": 324.0}, {"x": 401.0, "y": 333.0}, {"x": 381.0, "y": 333.0}]}], "spans": [{"offset": 267, "length": 5}], "confidence": 0.983}}, "content": "Web Design\n10\n20.00\n5%\n190.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 313.0}, {"x": 525.0, "y": 313.0}, {"x": 525.0, "y": 333.0}, {"x": 118.0, "y": 333.0}]}], "spans": [{"offset": 253, "length": 29}], "confidence": 0.949}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 190.0, "symbol": null}, "content": "190.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 368.0}, {"x": 524.0, "y": 369.0}, {"x": 524.0, "y": 377.0}, {"x": 501.0, "y": 377.0}]}], "spans": [{"offset": 307, "length": 6}], "confidence": 0.983}, "Description": {"value_type": "string", "value": "Logo Design", "content": "Logo Design", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 357.0}, {"x": 164.0, "y": 358.0}, {"x": 164.0, "y": 368.0}, {"x": 117.0, "y": 366.0}]}], "spans": [{"offset": 283, "length": 11}], "confidence": 0.983}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 341.0, "y": 368.0}, {"x": 349.0, "y": 368.0}, {"x": 349.0, "y": 376.0}, {"x": 341.0, "y": 376.0}]}], "spans": [{"offset": 295, "length": 2}], "confidence": 0.983}, "UnitPrice": {"value_type": "currency", "value": {"amount": 20.0, "symbol": null}, "content": "20.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 382.0, "y": 368.0}, {"x": 402.0, "y": 368.0}, {"x": 401.0, "y": 377.0}, {"x": 382.0, "y": 377.0}]}], "spans": [{"offset": 298, "length": 5}], "confidence": 0.983}}, "content": "Logo Design\n10\n20.00\n5%\n190.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 357.0}, {"x": 524.0, "y": 366.0}, {"x": 524.0, "y": 380.0}, {"x": 117.0, "y": 371.0}]}], "spans": [{"offset": 283, "length": 30}], "confidence": 0.962}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 380.0, "symbol": null}, "content": "380.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 410.0}, {"x": 523.0, "y": 410.0}, {"x": 523.0, "y": 420.0}, {"x": 493.0, "y": 419.0}]}], "spans": [{"offset": 323, "length": 6}], "confidence": 0.977}, "TotalTax": {"value_type": "currency", "value": {"amount": 38.0, "symbol": null}, "content": "38.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 499.0, "y": 426.0}, {"x": 524.0, "y": 426.0}, {"x": 524.0, "y": 436.0}, {"x": 499.0, "y": 436.0}]}], "spans": [{"offset": 340, "length": 5}], "confidence": 0.971}, "VendorAddress": {"value_type": "address", "value": {"house_number": "F-8", "po_box": null, "road": "Above TBZ\nSahkan Hart, Krishna complex\nBhavnagar", "city": "Gujrat", "state": null, "postal_code": "364001", "country_region": "India", "street_address": "F-8 Above TBZ\nSahkan Hart, Krishna complex\nBhavnagar"}, "content": "F-8, Above TBZ\nSahkan Hart, Krishna complex\nBhavnagar, Gujrat 364001\nIndia", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 139.0}, {"x": 229.0, "y": 139.0}, {"x": 229.0, "y": 183.0}, {"x": 112.0, "y": 183.0}]}], "spans": [{"offset": 14, "length": 74}], "confidence": 0.99}, "VendorAddressRecipient": {"value_type": "string", "value": "Crater", "content": "Crater", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 113.0, "y": 121.0}, {"x": 155.0, "y": 121.0}, {"x": 155.0, "y": 132.0}, {"x": 113.0, "y": 132.0}]}], "spans": [{"offset": 7, "length": 6}], "confidence": 0.854}, "VendorName": {"value_type": "string", "value": "crater", "content": "crater", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 27.0}, {"x": 291.0, "y": 25.0}, {"x": 292.0, "y": 72.0}, {"x": 111.0, "y": 72.0}]}], "spans": [{"offset": 0, "length": 6}], "confidence": 0.973}, "VendorTaxId": {"value_type": "string", "value": "24DOF7682FHVC56", "content": "24DOF7682FHVC56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 198.0}, {"x": 212.0, "y": 197.0}, {"x": 211.0, "y": 208.0}, {"x": 139.0, "y": 207.0}]}], "spans": [{"offset": 111, "length": 15}], "confidence": 0.569}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/184_jpg.rf.c9a282576c32f10749406eff3e63e5de.json b/Data/train/184_jpg.rf.c9a282576c32f10749406eff3e63e5de.json new file mode 100644 index 0000000000000000000000000000000000000000..54bdf7490c49d9a4d8ec880a32476b2b10345f47 --- /dev/null +++ b/Data/train/184_jpg.rf.c9a282576c32f10749406eff3e63e5de.json @@ -0,0 +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": 451}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Stamford", "state": "CT", "postal_code": "06904", "country_region": null, "street_address": ""}, "content": "Six Stamford Forum Stamford, CT 06904", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 132.0, "y": 144.0}, {"x": 232.0, "y": 144.0}, {"x": 232.0, "y": 164.0}, {"x": 132.0, "y": 164.0}]}], "spans": [{"offset": 108, "length": 37}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "The American Tobacco Company\nAttn: Mr. Robert Spight", "content": "The American Tobacco Company\nAttn: Mr. Robert Spight", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 132.0, "y": 135.0}, {"x": 286.0, "y": 135.0}, {"x": 286.0, "y": 182.0}, {"x": 132.0, "y": 182.0}]}], "spans": [{"offset": 79, "length": 28}, {"offset": 146, "length": 23}], "confidence": null}, "CustomerId": {"value_type": "string", "value": "10000755210212250041", "content": "10000755210212250041", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 328.0, "y": 451.0}, {"x": 441.0, "y": 449.0}, {"x": 441.0, "y": 462.0}, {"x": 329.0, "y": 461.0}]}], "spans": [{"offset": 431, "length": 20}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "The American Tobacco Company\nAttn: Mr. Robert Spight", "content": "The American Tobacco Company\nAttn: Mr. Robert Spight", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 132.0, "y": 135.0}, {"x": 286.0, "y": 135.0}, {"x": 286.0, "y": 182.0}, {"x": 132.0, "y": 182.0}]}], "spans": [{"offset": 79, "length": 28}, {"offset": 146, "length": 23}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1992-07-30", "content": "July 30, 1992", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 403.0, "y": 161.0}, {"x": 474.0, "y": 161.0}, {"x": 474.0, "y": 171.0}, {"x": 403.0, "y": 171.0}]}], "spans": [{"offset": 220, "length": 13}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "7031AK/A", "content": "7031AK/A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 152.0}, {"x": 447.0, "y": 152.0}, {"x": 447.0, "y": 162.0}, {"x": 404.0, "y": 161.0}]}], "spans": [{"offset": 206, "length": 8}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 6375.0, "symbol": "$"}, "content": "$ 6,375.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 260.0}, {"x": 458.0, "y": 260.0}, {"x": 458.0, "y": 270.0}, {"x": 404.0, "y": 270.0}]}], "spans": [{"offset": 361, "length": 10}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 6375.0, "symbol": "$"}, "content": "$ 6,375.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 260.0}, {"x": 458.0, "y": 260.0}, {"x": 458.0, "y": 270.0}, {"x": 404.0, "y": 270.0}]}], "spans": [{"offset": 361, "length": 10}], "confidence": null}, "Description": {"value_type": "string", "value": "Creative Development, Pees\nand Art thru Mechanical.", "content": "Creative Development, Pees and Art thru Mechanical.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 252.0}, {"x": 296.0, "y": 252.0}, {"x": 296.0, "y": 272.0}, {"x": 154.0, "y": 272.0}]}], "spans": [{"offset": 309, "length": 51}], "confidence": null}}, "content": "Creative Development, Pees and Art thru Mechanical.\n$ 6,375.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 154.0, "y": 252.0}, {"x": 458.0, "y": 252.0}, {"x": 458.0, "y": 272.0}, {"x": 154.0, "y": 272.0}]}], "spans": [{"offset": 309, "length": 62}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "470", "po_box": null, "road": "Wat Street", "city": "Princeton", "state": "NJ", "postal_code": "08549", "country_region": null, "street_address": "470 Wat Street"}, "content": "470 Wat Street Princeton, NJ 08549", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 348.0, "y": 55.0}, {"x": 409.0, "y": 55.0}, {"x": 409.0, "y": 70.0}, {"x": 348.0, "y": 70.0}]}], "spans": [{"offset": 22, "length": 34}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "QUM Anodisva inc.", "content": "QUM Anodisva inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 349.0, "y": 41.0}, {"x": 415.0, "y": 40.0}, {"x": 415.0, "y": 49.0}, {"x": 349.0, "y": 50.0}]}], "spans": [{"offset": 4, "length": 17}], "confidence": null}, "VendorName": {"value_type": "string", "value": "QLM", "content": "QLM", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 116.0, "y": 41.0}, {"x": 150.0, "y": 41.0}, {"x": 150.0, "y": 60.0}, {"x": 116.0, "y": 60.0}]}], "spans": [{"offset": 0, "length": 3}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/189_jpg.rf.3e30008c1a0436379819507006782abb.json b/Data/train/189_jpg.rf.3e30008c1a0436379819507006782abb.json new file mode 100644 index 0000000000000000000000000000000000000000..5945fd0887889bd956aa931d678dffb561bce84f --- /dev/null +++ b/Data/train/189_jpg.rf.3e30008c1a0436379819507006782abb.json @@ -0,0 +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": 1549}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "757166", "po_box": null, "road": "Rajasthan", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "757166 Rajasthan"}, "content": "Rajasthan - 757166", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 187.0}, {"x": 205.0, "y": 187.0}, {"x": 205.0, "y": 200.0}, {"x": 111.0, "y": 200.0}]}], "spans": [{"offset": 182, "length": 18}], "confidence": 0.652}, "BillingAddressRecipient": {"value_type": "string", "value": "Cipla Ltd", "content": "Cipla Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 176.0}, {"x": 128.0, "y": 176.0}, {"x": 128.0, "y": 189.0}, {"x": 80.0, "y": 189.0}]}], "spans": [{"offset": 165, "length": 9}], "confidence": 0.841}, "CustomerName": {"value_type": "string", "value": "Cipla Ltd", "content": "Cipla Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 176.0}, {"x": 128.0, "y": 176.0}, {"x": 128.0, "y": 189.0}, {"x": 80.0, "y": 189.0}]}], "spans": [{"offset": 165, "length": 9}], "confidence": 0.841}, "CustomerTaxId": {"value_type": "string", "value": "08AKOCX6349P1ZL", "content": "08AKOCX6349P1ZL", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 209.0}, {"x": 223.0, "y": 210.0}, {"x": 223.0, "y": 221.0}, {"x": 118.0, "y": 222.0}]}], "spans": [{"offset": 228, "length": 15}], "confidence": 0.847}, "InvoiceDate": {"value_type": "date", "value": "2017-07-26", "content": "July 26, 2017", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 385.0, "y": 127.0}, {"x": 456.0, "y": 127.0}, {"x": 456.0, "y": 139.0}, {"x": 385.0, "y": 139.0}]}], "spans": [{"offset": 341, "length": 13}], "confidence": 0.936}, "InvoiceId": {"value_type": "string", "value": "17-18/JH/97", "content": "17-18/JH/97", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 404.0, "y": 116.0}, {"x": 467.0, "y": 116.0}, {"x": 467.0, "y": 128.0}, {"x": 404.0, "y": 128.0}]}], "spans": [{"offset": 315, "length": 11}], "confidence": 0.954}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 47924.68, "symbol": null}, "content": "47,924.68", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 513.0, "y": 410.0}, {"x": 553.0, "y": 410.0}, {"x": 554.0, "y": 419.0}, {"x": 514.0, "y": 419.0}]}], "spans": [{"offset": 1141, "length": 9}], "confidence": 0.726}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 14273.28, "symbol": null}, "content": "14,273.28", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 267.0}, {"x": 554.0, "y": 267.0}, {"x": 554.0, "y": 276.0}, {"x": 518.0, "y": 276.0}]}], "spans": [{"offset": 666, "length": 9}], "confidence": 0.484}, "Description": {"value_type": "string", "value": "OTHR BLCHD WOVN FBRCS WGHNG >200 G/M2\n521222", "content": "OTHR BLCHD WOVN FBRCS WGHNG >200 G/M2\n521222", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 266.0}, {"x": 284.0, "y": 266.0}, {"x": 284.0, "y": 290.0}, {"x": 95.0, "y": 290.0}]}], "spans": [{"offset": 603, "length": 37}, {"offset": 676, "length": 6}], "confidence": 0.292}, "Tax": {"value_type": "currency", "value": {"amount": 2177.28, "symbol": null}, "content": "2,177.28", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 452.0, "y": 267.0}, {"x": 485.0, "y": 267.0}, {"x": 485.0, "y": 276.0}, {"x": 453.0, "y": 276.0}]}], "spans": [{"offset": 657, "length": 8}], "confidence": 0.426}, "TaxRate": {"value_type": "string", "value": "18.00", "content": "18.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 420.0, "y": 267.0}, {"x": 439.0, "y": 267.0}, {"x": 439.0, "y": 275.0}, {"x": 420.0, "y": 275.0}]}], "spans": [{"offset": 651, "length": 5}], "confidence": 0.421}}, "content": "OTHR BLCHD WOVN FBRCS WGHNG >200 G/M2\n12,096.00\n18.00\n2,177.28\n14,273.28\n521222\n9.00 GMS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 266.0}, {"x": 554.0, "y": 266.0}, {"x": 554.0, "y": 290.0}, {"x": 95.0, "y": 290.0}]}], "spans": [{"offset": 603, "length": 88}], "confidence": 0.523}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9135.56, "symbol": null}, "content": "9,135.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 521.0, "y": 294.0}, {"x": 554.0, "y": 294.0}, {"x": 554.0, "y": 303.0}, {"x": 521.0, "y": 303.0}]}], "spans": [{"offset": 749, "length": 8}], "confidence": 0.462}, "Description": {"value_type": "string", "value": "OTER BEANS DRIED & SHLD\n071339", "content": "OTER BEANS DRIED & SHLD\n071339", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 293.0}, {"x": 206.0, "y": 293.0}, {"x": 206.0, "y": 316.0}, {"x": 95.0, "y": 316.0}]}], "spans": [{"offset": 701, "length": 23}, {"offset": 758, "length": 6}], "confidence": 0.263}, "Tax": {"value_type": "currency", "value": {"amount": 1393.56, "symbol": null}, "content": "1,393.56", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 294.0}, {"x": 485.0, "y": 295.0}, {"x": 485.0, "y": 303.0}, {"x": 453.0, "y": 302.0}]}], "spans": [{"offset": 740, "length": 8}], "confidence": 0.476}, "TaxRate": {"value_type": "string", "value": "18.00", "content": "18.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 420.0, "y": 294.0}, {"x": 440.0, "y": 294.0}, {"x": 440.0, "y": 302.0}, {"x": 420.0, "y": 302.0}]}], "spans": [{"offset": 734, "length": 5}], "confidence": 0.424}}, "content": "OTER BEANS DRIED & SHLD\n7,742.00\n18.00\n1,393.56\n9,135.56\n071339\n7.00 UNT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 293.0}, {"x": 554.0, "y": 293.0}, {"x": 554.0, "y": 317.0}, {"x": 95.0, "y": 317.0}]}], "spans": [{"offset": 701, "length": 72}], "confidence": 0.6}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 11961.6, "symbol": null}, "content": "11,961.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 321.0}, {"x": 554.0, "y": 321.0}, {"x": 554.0, "y": 330.0}, {"x": 517.0, "y": 329.0}]}], "spans": [{"offset": 893, "length": 9}], "confidence": 0.46}, "Description": {"value_type": "string", "value": "GLAZIERS & GRAFTING PUTY, RESIN ELEMNTS NON\nRFRCTRY SRFCNG PRPN FR FLOORS, WALL ETC\n321490", "content": "GLAZIERS & GRAFTING PUTY, RESIN ELEMNTS NON\nRFRCTRY SRFCNG PRPN FR FLOORS, WALL ETC\n321490", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 94.0, "y": 320.0}, {"x": 299.0, "y": 320.0}, {"x": 299.0, "y": 352.0}, {"x": 94.0, "y": 352.0}]}], "spans": [{"offset": 785, "length": 83}, {"offset": 903, "length": 6}], "confidence": 0.321}, "Tax": {"value_type": "currency", "value": {"amount": 2616.6, "symbol": null}, "content": "2,616.60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 321.0}, {"x": 485.0, "y": 322.0}, {"x": 485.0, "y": 329.0}, {"x": 453.0, "y": 330.0}]}], "spans": [{"offset": 884, "length": 8}], "confidence": 0.426}, "TaxRate": {"value_type": "string", "value": "28.00", "content": "28.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 419.0, "y": 321.0}, {"x": 440.0, "y": 321.0}, {"x": 440.0, "y": 329.0}, {"x": 419.0, "y": 329.0}]}], "spans": [{"offset": 878, "length": 5}], "confidence": 0.425}}, "content": "3 GLAZIERS & GRAFTING PUTY, RESIN ELEMNTS NON\nRFRCTRY SRFCNG PRPN FR FLOORS, WALL ETC\n9,345.00\n28.00\n2,616.60\n11,961.60\n321490\n7.00 CCM", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 83.0, "y": 319.0}, {"x": 554.0, "y": 319.0}, {"x": 554.0, "y": 353.0}, {"x": 83.0, "y": 353.0}]}], "spans": [{"offset": 783, "length": 135}], "confidence": 0.598}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9685.76, "symbol": null}, "content": "9,685.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 522.0, "y": 357.0}, {"x": 554.0, "y": 357.0}, {"x": 554.0, "y": 365.0}, {"x": 522.0, "y": 364.0}]}], "spans": [{"offset": 976, "length": 8}], "confidence": 0.454}, "Description": {"value_type": "string", "value": "OTHER, FRESH OR CHILLED\n020735", "content": "OTHER, FRESH OR CHILLED\n020735", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 356.0}, {"x": 206.0, "y": 356.0}, {"x": 206.0, "y": 379.0}, {"x": 95.0, "y": 379.0}]}], "spans": [{"offset": 928, "length": 23}, {"offset": 985, "length": 6}], "confidence": 0.215}, "Tax": {"value_type": "currency", "value": {"amount": 2118.76, "symbol": null}, "content": "2,118.76", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 453.0, "y": 357.0}, {"x": 485.0, "y": 357.0}, {"x": 485.0, "y": 365.0}, {"x": 453.0, "y": 365.0}]}], "spans": [{"offset": 967, "length": 8}], "confidence": 0.42}, "TaxRate": {"value_type": "string", "value": "28.00", "content": "28.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 419.0, "y": 356.0}, {"x": 440.0, "y": 356.0}, {"x": 440.0, "y": 363.0}, {"x": 419.0, "y": 364.0}]}], "spans": [{"offset": 961, "length": 5}], "confidence": 0.424}}, "content": "OTHER, FRESH OR CHILLED\n7,567.00\n28.00\n2,118.76\n9,685.76\n020735", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 356.0}, {"x": 554.0, "y": 356.0}, {"x": 554.0, "y": 379.0}, {"x": 95.0, "y": 379.0}]}], "spans": [{"offset": 928, "length": 63}], "confidence": 0.781}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2868.48, "symbol": null}, "content": "2,868.48", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 522.0, "y": 384.0}, {"x": 554.0, "y": 384.0}, {"x": 554.0, "y": 392.0}, {"x": 522.0, "y": 392.0}]}], "spans": [{"offset": 1068, "length": 8}], "confidence": 0.464}, "Description": {"value_type": "string", "value": "OTHER COSMETIC & TOILT PRPN N E S\n33079090", "content": "OTHER COSMETIC & TOILT PRPN N E S\n33079090", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 383.0}, {"x": 249.0, "y": 383.0}, {"x": 249.0, "y": 406.0}, {"x": 95.0, "y": 406.0}]}], "spans": [{"offset": 1012, "length": 33}, {"offset": 1077, "length": 8}], "confidence": 0.197}, "Tax": {"value_type": "currency", "value": {"amount": 627.48, "symbol": null}, "content": "627.48", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 384.0}, {"x": 485.0, "y": 384.0}, {"x": 485.0, "y": 392.0}, {"x": 459.0, "y": 392.0}]}], "spans": [{"offset": 1061, "length": 6}], "confidence": 0.42}, "TaxRate": {"value_type": "string", "value": "28.00", "content": "28.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 419.0, "y": 383.0}, {"x": 440.0, "y": 383.0}, {"x": 440.0, "y": 392.0}, {"x": 419.0, "y": 392.0}]}], "spans": [{"offset": 1055, "length": 5}], "confidence": 0.45}}, "content": "5\nOTHER COSMETIC & TOILT PRPN N E S\n2,241.00\n28.00\n627.48\n2,868.48\n33079090", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 83.0, "y": 382.0}, {"x": 554.0, "y": 382.0}, {"x": 554.0, "y": 406.0}, {"x": 83.0, "y": 406.0}]}], "spans": [{"offset": 1010, "length": 75}], "confidence": 0.631}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "757166", "po_box": null, "road": "Rajasthan", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "757166 Rajasthan"}, "content": "Rajasthan - 757166\nRJ - 08", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 350.0, "y": 187.0}, {"x": 444.0, "y": 187.0}, {"x": 444.0, "y": 210.0}, {"x": 350.0, "y": 210.0}]}], "spans": [{"offset": 467, "length": 18}, {"offset": 498, "length": 7}], "confidence": 0.491}, "ShippingAddressRecipient": {"value_type": "string", "value": "Cipla Ltd", "content": "Cipla Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 319.0, "y": 176.0}, {"x": 367.0, "y": 176.0}, {"x": 367.0, "y": 188.0}, {"x": 319.0, "y": 188.0}]}], "spans": [{"offset": 450, "length": 9}], "confidence": 0.936}, "SubTotal": {"value_type": "currency", "value": {"amount": 38991.0, "symbol": null}, "content": "38,991.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 367.0, "y": 410.0}, {"x": 407.0, "y": 411.0}, {"x": 407.0, "y": 419.0}, {"x": 368.0, "y": 419.0}]}], "spans": [{"offset": 1122, "length": 9}], "confidence": 0.682}, "TotalTax": {"value_type": "currency", "value": {"amount": 8933.68, "symbol": null}, "content": "8,933.68", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 449.0, "y": 411.0}, {"x": 484.0, "y": 411.0}, {"x": 484.0, "y": 419.0}, {"x": 450.0, "y": 418.0}]}], "spans": [{"offset": 1132, "length": 8}], "confidence": 0.598}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": ""}, "content": "Jharkhand\nJH - 20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 127.0}, {"x": 172.0, "y": 127.0}, {"x": 172.0, "y": 150.0}, {"x": 110.0, "y": 150.0}]}], "spans": [{"offset": 84, "length": 9}, {"offset": 106, "length": 7}], "confidence": 0.312}, "VendorAddressRecipient": {"value_type": "string", "value": "CloudZen Software Labs Pvt. Ltd.", "content": "CloudZen Software Labs Pvt. Ltd.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 80.0, "y": 115.0}, {"x": 258.0, "y": 115.0}, {"x": 258.0, "y": 128.0}, {"x": 80.0, "y": 128.0}]}], "spans": [{"offset": 44, "length": 32}], "confidence": 0.416}, "VendorName": {"value_type": "string", "value": "Es\ngstzen", "content": "Es gstzen", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 82.0, "y": 46.0}, {"x": 236.0, "y": 46.0}, {"x": 236.0, "y": 80.0}, {"x": 82.0, "y": 80.0}]}], "spans": [{"offset": 0, "length": 9}], "confidence": 0.829}, "VendorTaxId": {"value_type": "string", "value": "20QXOCC9424D1Z5", "content": "20QXOCC9424D1Z5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 149.0}, {"x": 224.0, "y": 148.0}, {"x": 224.0, "y": 161.0}, {"x": 118.0, "y": 162.0}]}], "spans": [{"offset": 121, "length": 15}], "confidence": 0.842}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/18_jpg.rf.98e3f46e2d3ec0ead0ed5854997cbb61.json b/Data/train/18_jpg.rf.98e3f46e2d3ec0ead0ed5854997cbb61.json new file mode 100644 index 0000000000000000000000000000000000000000..729f32cbf46d92e6d0bf11d56b1fac47839223ce --- /dev/null +++ b/Data/train/18_jpg.rf.98e3f46e2d3ec0ead0ed5854997cbb61.json @@ -0,0 +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": 817}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 662.75, "symbol": "$"}, "content": "$ 662.75", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 476.0, "y": 447.0}, {"x": 514.0, "y": 447.0}, {"x": 514.0, "y": 458.0}, {"x": 476.0, "y": 458.0}]}], "spans": [{"offset": 695, "length": 8}], "confidence": 0.941}, "DueDate": {"value_type": "date", "value": "2020-08-02", "content": "08/02/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 488.0, "y": 152.0}, {"x": 531.0, "y": 152.0}, {"x": 531.0, "y": 162.0}, {"x": 489.0, "y": 163.0}]}], "spans": [{"offset": 176, "length": 10}], "confidence": 0.961}, "InvoiceDate": {"value_type": "date", "value": "2020-08-02", "content": "08/02/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 488.0, "y": 111.0}, {"x": 531.0, "y": 110.0}, {"x": 531.0, "y": 121.0}, {"x": 488.0, "y": 120.0}]}], "spans": [{"offset": 122, "length": 10}], "confidence": 0.961}, "InvoiceId": {"value_type": "string", "value": "INV-17", "content": "INV-17", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 507.0, "y": 96.0}, {"x": 532.0, "y": 96.0}, {"x": 532.0, "y": 105.0}, {"x": 507.0, "y": 105.0}]}], "spans": [{"offset": 102, "length": 6}], "confidence": 0.957}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 662.75, "symbol": "$"}, "content": "$ 662.75", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 485.0, "y": 428.0}, {"x": 515.0, "y": 429.0}, {"x": 515.0, "y": 438.0}, {"x": 485.0, "y": 437.0}]}], "spans": [{"offset": 674, "length": 8}], "confidence": 0.94}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 300.0, "symbol": null}, "content": "300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 223.0}, {"x": 517.0, "y": 223.0}, {"x": 517.0, "y": 233.0}, {"x": 492.0, "y": 232.0}]}], "spans": [{"offset": 288, "length": 6}], "confidence": 0.348}, "Description": {"value_type": "string", "value": "Brochure Design", "content": "Brochure Design", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 222.0}, {"x": 228.0, "y": 223.0}, {"x": 228.0, "y": 234.0}, {"x": 166.0, "y": 233.0}]}], "spans": [{"offset": 267, "length": 15}], "confidence": 0.304}}, "content": "1\nBrochure Design\n0.00\n300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 142.0, "y": 223.0}, {"x": 517.0, "y": 223.0}, {"x": 517.0, "y": 234.0}, {"x": 142.0, "y": 234.0}]}], "spans": [{"offset": 265, "length": 29}], "confidence": 0.565}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 300.0, "symbol": null}, "content": "300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 235.0}, {"x": 516.0, "y": 234.0}, {"x": 516.0, "y": 243.0}, {"x": 492.0, "y": 243.0}]}], "spans": [{"offset": 337, "length": 6}], "confidence": 0.182}, "Description": {"value_type": "string", "value": "Brochure Design Single Sided Color", "content": "Brochure Design Single Sided Color", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 233.0}, {"x": 297.0, "y": 233.0}, {"x": 297.0, "y": 244.0}, {"x": 166.0, "y": 244.0}]}], "spans": [{"offset": 295, "length": 34}], "confidence": 0.186}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 461.0, "y": 234.0}, {"x": 475.0, "y": 234.0}, {"x": 475.0, "y": 243.0}, {"x": 461.0, "y": 242.0}]}], "spans": [{"offset": 330, "length": 4}], "confidence": 0.056}}, "content": "Brochure Design Single Sided Color\n1.00 x 300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 233.0}, {"x": 516.0, "y": 233.0}, {"x": 516.0, "y": 244.0}, {"x": 166.0, "y": 244.0}]}], "spans": [{"offset": 295, "length": 48}], "confidence": 0.89}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 250.0, "symbol": null}, "content": "250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 492.0, "y": 268.0}, {"x": 516.0, "y": 268.0}, {"x": 516.0, "y": 277.0}, {"x": 493.0, "y": 277.0}]}], "spans": [{"offset": 435, "length": 6}], "confidence": 0.338}, "Description": {"value_type": "string", "value": "Web Design Packages(Template) - Basic", "content": "Web Design Packages(Template) - Basic", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 267.0}, {"x": 312.0, "y": 267.0}, {"x": 312.0, "y": 278.0}, {"x": 166.0, "y": 278.0}]}], "spans": [{"offset": 346, "length": 37}], "confidence": 0.191}}, "content": "2\nWeb Design Packages(Template) - Basic\n0.00\n250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 141.0, "y": 267.0}, {"x": 516.0, "y": 267.0}, {"x": 516.0, "y": 278.0}, {"x": 141.0, "y": 278.0}]}], "spans": [{"offset": 344, "length": 39}, {"offset": 430, "length": 11}], "confidence": 0.889}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 250.0, "symbol": null}, "content": "250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 279.0}, {"x": 517.0, "y": 279.0}, {"x": 517.0, "y": 288.0}, {"x": 493.0, "y": 288.0}]}], "spans": [{"offset": 491, "length": 6}], "confidence": 0.055}, "Description": {"value_type": "string", "value": "Custom Theres for your business. Inclusive of\n10 hours of marketing and annual training", "content": "Custom Theres for your business. Inclusive of\n10 hours of marketing and annual training", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 278.0}, {"x": 338.0, "y": 278.0}, {"x": 338.0, "y": 300.0}, {"x": 166.0, "y": 300.0}]}], "spans": [{"offset": 384, "length": 45}, {"offset": 442, "length": 41}], "confidence": 0.482}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 461.0, "y": 279.0}, {"x": 475.0, "y": 279.0}, {"x": 475.0, "y": 288.0}, {"x": 460.0, "y": 288.0}]}], "spans": [{"offset": 484, "length": 4}], "confidence": 0.058}}, "content": "Custom Theres for your business. Inclusive of\n10 hours of marketing and annual training\n1.00 x 250.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 278.0}, {"x": 517.0, "y": 278.0}, {"x": 517.0, "y": 300.0}, {"x": 166.0, "y": 300.0}]}], "spans": [{"offset": 384, "length": 45}, {"offset": 442, "length": 55}], "confidence": 0.802}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 80.0, "symbol": null}, "content": "80.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 497.0, "y": 323.0}, {"x": 517.0, "y": 323.0}, {"x": 517.0, "y": 330.0}, {"x": 497.0, "y": 331.0}]}], "spans": [{"offset": 530, "length": 5}], "confidence": 0.319}, "Description": {"value_type": "string", "value": "Print Ad - Basic - Color", "content": "Print Ad - Basic - Color", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 322.0}, {"x": 248.0, "y": 322.0}, {"x": 248.0, "y": 333.0}, {"x": 166.0, "y": 333.0}]}], "spans": [{"offset": 500, "length": 24}], "confidence": 0.182}}, "content": "3\nPrint Ad - Basic - Color\n0,00\n80.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 140.0, "y": 322.0}, {"x": 517.0, "y": 322.0}, {"x": 517.0, "y": 333.0}, {"x": 140.0, "y": 333.0}]}], "spans": [{"offset": 498, "length": 37}], "confidence": 0.875}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 80.0, "symbol": null}, "content": "1.00 x 80.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 465.0, "y": 334.0}, {"x": 517.0, "y": 334.0}, {"x": 517.0, "y": 343.0}, {"x": 465.0, "y": 343.0}]}], "spans": [{"offset": 560, "length": 12}], "confidence": 0.23}, "Description": {"value_type": "string", "value": "Print Ad 1/8 size Color", "content": "Print Ad 1/8 size Color", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 332.0}, {"x": 249.0, "y": 332.0}, {"x": 249.0, "y": 344.0}, {"x": 166.0, "y": 344.0}]}], "spans": [{"offset": 536, "length": 23}], "confidence": 0.189}}, "content": "Print Ad 1/8 size Color\n1.00 x 80.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 332.0}, {"x": 517.0, "y": 332.0}, {"x": 517.0, "y": 344.0}, {"x": 166.0, "y": 344.0}]}], "spans": [{"offset": 536, "length": 36}], "confidence": 0.89}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Due On Receipt", "content": "Due On Receipt", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 473.0, "y": 138.0}, {"x": 532.0, "y": 138.0}, {"x": 532.0, "y": 149.0}, {"x": 473.0, "y": 149.0}]}], "spans": [{"offset": 152, "length": 14}], "confidence": 0.936}, "PurchaseOrder": {"value_type": "string", "value": "321014", "content": "321014", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 504.0, "y": 124.0}, {"x": 531.0, "y": 124.0}, {"x": 531.0, "y": 134.0}, {"x": 504.0, "y": 134.0}]}], "spans": [{"offset": 139, "length": 6}], "confidence": 0.956}, "SubTotal": {"value_type": "currency", "value": {"amount": 630.0, "symbol": null}, "content": "630.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 491.0, "y": 365.0}, {"x": 514.0, "y": 364.0}, {"x": 514.0, "y": 373.0}, {"x": 492.0, "y": 373.0}]}], "spans": [{"offset": 609, "length": 6}], "confidence": 0.957}, "VendorAddress": {"value_type": "address", "value": {"house_number": "4779", "po_box": null, "road": "Highland View Drive", "city": "Sacramento", "state": "CA", "postal_code": "95815", "country_region": null, "street_address": "4779 Highland View Drive"}, "content": "4779 Highland View Drive Sacramento, CA 95815", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 113.0}, {"x": 214.0, "y": 113.0}, {"x": 214.0, "y": 144.0}, {"x": 120.0, "y": 144.0}]}], "spans": [{"offset": 47, "length": 45}], "confidence": 0.894}, "VendorAddressRecipient": {"value_type": "string", "value": "Jeff J. Ritchie", "content": "Jeff J. Ritchie", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 95.0}, {"x": 189.0, "y": 95.0}, {"x": 189.0, "y": 109.0}, {"x": 120.0, "y": 109.0}]}], "spans": [{"offset": 31, "length": 15}], "confidence": 0.231}, "VendorName": {"value_type": "string", "value": "Jeff J. Ritchie", "content": "Jeff J. Ritchie", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 120.0, "y": 95.0}, {"x": 189.0, "y": 95.0}, {"x": 189.0, "y": 109.0}, {"x": 120.0, "y": 109.0}]}], "spans": [{"offset": 31, "length": 15}], "confidence": 0.231}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/191_jpg.rf.15c5e989eebb0eba3fa6759f0082977e.json b/Data/train/191_jpg.rf.15c5e989eebb0eba3fa6759f0082977e.json new file mode 100644 index 0000000000000000000000000000000000000000..f3cf9a0243a884fc7393df01129448bf9b2994fe --- /dev/null +++ b/Data/train/191_jpg.rf.15c5e989eebb0eba3fa6759f0082977e.json @@ -0,0 +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": 782}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "PO BOX 38247", "road": null, "city": "ATLANTA", "state": "GA", "postal_code": "30334-0247", "country_region": null, "street_address": "PO BOX 38247"}, "content": "PO BOX 38247 ATLANTA, GA 30334-0247", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 318.0, "y": 115.0}, {"x": 443.0, "y": 115.0}, {"x": 443.0, "y": 135.0}, {"x": 318.0, "y": 135.0}]}], "spans": [{"offset": 228, "length": 35}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "GEORGIA LEADERSHIP FORUM", "content": "GEORGIA LEADERSHIP FORUM", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 318.0, "y": 105.0}, {"x": 452.0, "y": 105.0}, {"x": 452.0, "y": 116.0}, {"x": 318.0, "y": 116.0}]}], "spans": [{"offset": 203, "length": 24}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "GEORGIA LEADERSHIP FORUM", "content": "GEORGIA LEADERSHIP FORUM", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 318.0, "y": 105.0}, {"x": 452.0, "y": 105.0}, {"x": 452.0, "y": 116.0}, {"x": 318.0, "y": 116.0}]}], "spans": [{"offset": 203, "length": 24}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1996-11-15", "content": "11-15-96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 180.0, "y": 137.0}, {"x": 224.0, "y": 136.0}, {"x": 224.0, "y": 145.0}, {"x": 181.0, "y": 145.0}]}], "spans": [{"offset": 119, "length": 8}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "5A 0102787296", "content": "5A 0102787296", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 185.0, "y": 125.0}, {"x": 258.0, "y": 125.0}, {"x": 258.0, "y": 136.0}, {"x": 185.0, "y": 136.0}]}], "spans": [{"offset": 93, "length": 13}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 600.0, "symbol": null}, "content": "2,600.0", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 516.0, "y": 396.0}, {"x": 544.0, "y": 395.0}, {"x": 544.0, "y": 404.0}, {"x": 516.0, "y": 404.0}]}], "spans": [{"offset": 406, "length": 7}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 2500.0, "symbol": null}, "content": "2,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 232.0, "y": 210.0}, {"x": 265.0, "y": 209.0}, {"x": 265.0, "y": 218.0}, {"x": 233.0, "y": 218.0}]}], "spans": [{"offset": 332, "length": 8}], "confidence": null}, "ProductCode": {"value_type": "string", "value": "250000", "content": "250000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 211.0}, {"x": 122.0, "y": 211.0}, {"x": 122.0, "y": 219.0}, {"x": 98.0, "y": 218.0}]}], "spans": [{"offset": 316, "length": 6}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 2500.0, "symbol": null}, "content": "2,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 175.0, "y": 211.0}, {"x": 208.0, "y": 210.0}, {"x": 208.0, "y": 218.0}, {"x": 175.0, "y": 218.0}]}], "spans": [{"offset": 323, "length": 8}], "confidence": null}}, "content": "250000\n2,500.00\n2,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 211.0}, {"x": 265.0, "y": 208.0}, {"x": 265.0, "y": 218.0}, {"x": 98.0, "y": 221.0}]}], "spans": [{"offset": 316, "length": 24}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "2955", "po_box": null, "road": "winston stleet north carelins", "city": null, "state": null, "postal_code": "27122", "country_region": null, "street_address": "2955 winston stleet north carelins"}, "content": "P. D. BOK 2955 Winston- Stleet, North Carelins 27122", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 113.0, "y": 44.0}, {"x": 219.0, "y": 41.0}, {"x": 219.0, "y": 59.0}, {"x": 113.0, "y": 61.0}]}], "spans": [{"offset": 26, "length": 52}], "confidence": 0.985}, "VendorName": {"value_type": "string", "value": "Ry Reynolds\nTubos Company", "content": "Ry Reynolds Tubos Company", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 9.0}, {"x": 225.0, "y": 11.0}, {"x": 224.0, "y": 46.0}, {"x": 116.0, "y": 44.0}]}], "spans": [{"offset": 0, "length": 25}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/192_jpg.rf.5f319d905784db45311008c7f1163479.json b/Data/train/192_jpg.rf.5f319d905784db45311008c7f1163479.json new file mode 100644 index 0000000000000000000000000000000000000000..e466bc7cb823ab709d59f1c36a0f8b858652f562 --- /dev/null +++ b/Data/train/192_jpg.rf.5f319d905784db45311008c7f1163479.json @@ -0,0 +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": 971}], "fields": {"CustomerName": {"value_type": "string", "value": "Bapak Hakim\nJakarta", "content": "Bapak Hakim Jakarta", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 472.0, "y": 73.0}, {"x": 547.0, "y": 73.0}, {"x": 547.0, "y": 102.0}, {"x": 472.0, "y": 102.0}]}], "spans": [{"offset": 213, "length": 19}], "confidence": 0.802}, "InvoiceDate": {"value_type": "date", "value": "2013-07-02", "content": "02 Juli.'13", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 470.0, "y": 133.0}, {"x": 514.0, "y": 133.0}, {"x": 514.0, "y": 146.0}, {"x": 470.0, "y": 146.0}]}], "spans": [{"offset": 270, "length": 11}], "confidence": 0.764}, "InvoiceId": {"value_type": "string", "value": "PHI 00026", "content": "PHI 00026", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 470.0, "y": 120.0}, {"x": 514.0, "y": 120.0}, {"x": 514.0, "y": 132.0}, {"x": 470.0, "y": 132.0}]}], "spans": [{"offset": 246, "length": 9}], "confidence": 0.894}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 350.0, "symbol": "Rp"}, "content": "Rp\n350.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 471.0, "y": 399.0}, {"x": 543.0, "y": 400.0}, {"x": 543.0, "y": 414.0}, {"x": 471.0, "y": 413.0}]}], "spans": [{"offset": 659, "length": 10}], "confidence": 0.713}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 350.0, "symbol": "Rp"}, "content": "Rp 350.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 470.0, "y": 229.0}, {"x": 543.0, "y": 232.0}, {"x": 543.0, "y": 246.0}, {"x": 470.0, "y": 244.0}]}], "spans": [{"offset": 430, "length": 10}], "confidence": 0.743}, "Date": {"value_type": "date", "value": "2013-07-02", "content": "02 Juli.'13", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 204.0}, {"x": 178.0, "y": 204.0}, {"x": 178.0, "y": 216.0}, {"x": 129.0, "y": 216.0}]}], "spans": [{"offset": 343, "length": 11}], "confidence": 0.794}, "Description": {"value_type": "string", "value": ": Rental mobil Toyota Avanza\nPaket harian\nHarga\nRp.350.000,- x 1hr", "content": ": Rental mobil Toyota Avanza\nPaket harian\nHarga Rp.350.000,- x 1hr", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 217.0, "y": 204.0}, {"x": 424.0, "y": 204.0}, {"x": 424.0, "y": 245.0}, {"x": 217.0, "y": 245.0}]}], "spans": [{"offset": 363, "length": 66}], "confidence": 0.244}}, "content": "1\n02 Juli.'13\nLayanan : Rental mobil Toyota Avanza\nPaket harian\nHarga Rp.350.000,- x 1hr\nRp 350.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 204.0}, {"x": 543.0, "y": 204.0}, {"x": 543.0, "y": 245.0}, {"x": 104.0, "y": 245.0}]}], "spans": [{"offset": 341, "length": 99}], "confidence": 0.804}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": ""}, "content": "JI Adinegoro,Komp.Lestan Padova No. 12 Lubuk Buaya PDG", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 76.0}, {"x": 357.0, "y": 76.0}, {"x": 357.0, "y": 89.0}, {"x": 97.0, "y": 89.0}]}], "spans": [{"offset": 48, "length": 54}], "confidence": 0.845}, "VendorAddressRecipient": {"value_type": "string", "value": "PT.PELANGI SUMBARINDO WISATA", "content": "PT.PELANGI SUMBARINDO WISATA", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 97.0, "y": 56.0}, {"x": 299.0, "y": 56.0}, {"x": 299.0, "y": 71.0}, {"x": 97.0, "y": 71.0}]}], "spans": [{"offset": 19, "length": 28}], "confidence": 0.889}, "VendorName": {"value_type": "string", "value": "PH\nPELANGI HOLIDAY", "content": "PH\nPELANGI HOLIDAY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 9.0}, {"x": 204.0, "y": 7.0}, {"x": 205.0, "y": 55.0}, {"x": 97.0, "y": 57.0}]}], "spans": [{"offset": 0, "length": 18}], "confidence": 0.44}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/193_jpg.rf.7cdd27a5b9111a98fe2e256109b9afa8.json b/Data/train/193_jpg.rf.7cdd27a5b9111a98fe2e256109b9afa8.json new file mode 100644 index 0000000000000000000000000000000000000000..ae522e987b933b96f8082e49822d93b4ee732527 --- /dev/null +++ b/Data/train/193_jpg.rf.7cdd27a5b9111a98fe2e256109b9afa8.json @@ -0,0 +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": 450}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": "9130", "po_box": null, "road": "South Dadeland Boulevard", "city": "Miami", "state": "FL", "postal_code": "33156", "country_region": null, "street_address": "9130 South Dadeland Boulevard"}, "content": "9130 South Dadeland Boulevard Miami, FL 33156", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 236.0}, {"x": 279.0, "y": 236.0}, {"x": 279.0, "y": 255.0}, {"x": 166.0, "y": 255.0}]}], "spans": [{"offset": 180, "length": 45}], "confidence": 0.06}, "CustomerAddressRecipient": {"value_type": "string", "value": "Humberto Gomez, Jr.\nNational Field Manager\nR.J. Reynolds Tobacco Co.", "content": "Humberto Gomez, Jr. National Field Manager R.J. Reynolds Tobacco Co.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 209.0}, {"x": 262.0, "y": 209.0}, {"x": 262.0, "y": 237.0}, {"x": 166.0, "y": 237.0}]}], "spans": [{"offset": 111, "length": 68}], "confidence": 0.005}, "CustomerName": {"value_type": "string", "value": "Humberto Gomez, Jr.\nNational Field Manager\nR.J. Reynolds Tobacco Co.", "content": "Humberto Gomez, Jr. National Field Manager R.J. Reynolds Tobacco Co.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 209.0}, {"x": 262.0, "y": 209.0}, {"x": 262.0, "y": 237.0}, {"x": 166.0, "y": 237.0}]}], "spans": [{"offset": 111, "length": 68}], "confidence": 0.005}, "InvoiceDate": {"value_type": "date", "value": "1996-11-18", "content": "November 18, 1996", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 166.0, "y": 173.0}, {"x": 236.0, "y": 173.0}, {"x": 236.0, "y": 184.0}, {"x": 166.0, "y": 184.0}]}], "spans": [{"offset": 93, "length": 17}], "confidence": 0.094}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 2.0, "symbol": "$"}, "content": "$2.000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 384.0, "y": 347.0}, {"x": 407.0, "y": 347.0}, {"x": 406.0, "y": 356.0}, {"x": 384.0, "y": 355.0}]}], "spans": [{"offset": 266, "length": 6}], "confidence": 0.041}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Description": {"value_type": "string", "value": "sponsorship for 1997.", "content": "sponsorship for 1997.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 257.0, "y": 317.0}, {"x": 333.0, "y": 317.0}, {"x": 333.0, "y": 329.0}, {"x": 257.0, "y": 329.0}]}], "spans": [{"offset": 244, "length": 21}], "confidence": null}}, "content": "sponsorship for 1997.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 257.0, "y": 317.0}, {"x": 333.0, "y": 317.0}, {"x": 333.0, "y": 329.0}, {"x": 257.0, "y": 329.0}]}], "spans": [{"offset": 244, "length": 21}], "confidence": 0.991}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "67", "po_box": null, "road": "Broad Street", "city": "Boston", "state": "Massachusetts", "postal_code": "02109", "country_region": null, "street_address": "67 Broad Street"}, "content": "67 Broad Street . Boston, Massachusetts 02109", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 238.0, "y": 606.0}, {"x": 403.0, "y": 606.0}, {"x": 403.0, "y": 617.0}, {"x": 238.0, "y": 617.0}]}], "spans": [{"offset": 337, "length": 45}], "confidence": 0.053}, "VendorName": {"value_type": "string", "value": "HISPANIC-AMERICAN\nCHAMBER OF COMMERCE", "content": "HISPANIC-AMERICAN CHAMBER OF COMMERCE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 252.0, "y": 97.0}, {"x": 400.0, "y": 98.0}, {"x": 400.0, "y": 128.0}, {"x": 252.0, "y": 127.0}]}], "spans": [{"offset": 55, "length": 37}], "confidence": 0.932}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/194_jpg.rf.722798a018fbf55fd094219c7f789ef1.json b/Data/train/194_jpg.rf.722798a018fbf55fd094219c7f789ef1.json new file mode 100644 index 0000000000000000000000000000000000000000..6a219e5b5e55ed73c2657d7d09188da1c5eb924a --- /dev/null +++ b/Data/train/194_jpg.rf.722798a018fbf55fd094219c7f789ef1.json @@ -0,0 +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": 1109}], "fields": {"CustomerId": {"value_type": "string", "value": "#536808", "content": "#536808", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 284.0, "y": 119.0}, {"x": 323.0, "y": 119.0}, {"x": 323.0, "y": 131.0}, {"x": 285.0, "y": 130.0}]}], "spans": [{"offset": 80, "length": 7}], "confidence": 0.366}, "CustomerName": {"value_type": "string", "value": "M. BERNSTEIN", "content": "M. BERNSTEIN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 203.0, "y": 118.0}, {"x": 277.0, "y": 118.0}, {"x": 277.0, "y": 130.0}, {"x": 203.0, "y": 130.0}]}], "spans": [{"offset": 67, "length": 12}], "confidence": 0.596}, "DueDate": {"value_type": "date", "value": null, "content": "20,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 240.0, "y": 464.0}, {"x": 250.0, "y": 464.0}, {"x": 250.0, "y": 477.0}, {"x": 240.0, "y": 476.0}]}], "spans": [{"offset": 498, "length": 3}], "confidence": 0.425}, "InvoiceDate": {"value_type": "date", "value": "1996-12-09", "content": "12/9/96", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 381.0, "y": 290.0}, {"x": 414.0, "y": 290.0}, {"x": 414.0, "y": 301.0}, {"x": 382.0, "y": 300.0}]}], "spans": [{"offset": 227, "length": 7}], "confidence": 0.574}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1911.0, "symbol": "$"}, "content": "$1,911.00*", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 361.0, "y": 456.0}, {"x": 430.0, "y": 456.0}, {"x": 430.0, "y": 473.0}, {"x": 361.0, "y": 473.0}]}], "spans": [{"offset": 809, "length": 10}], "confidence": 0.492}, "VendorName": {"value_type": "string", "value": "R. J. Reynolds Tobacco Company", "content": "R. J. Reynolds Tobacco Company", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 249.0, "y": 87.0}, {"x": 371.0, "y": 87.0}, {"x": 371.0, "y": 99.0}, {"x": 249.0, "y": 99.0}]}], "spans": [{"offset": 0, "length": 30}], "confidence": 0.725}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/198_jpg.rf.f3445a4c9c2cfcc1e06abc9afefc41ae.json b/Data/train/198_jpg.rf.f3445a4c9c2cfcc1e06abc9afefc41ae.json new file mode 100644 index 0000000000000000000000000000000000000000..92fabdd1c5b524eca143467e462e9a9f79d048a6 --- /dev/null +++ b/Data/train/198_jpg.rf.f3445a4c9c2cfcc1e06abc9afefc41ae.json @@ -0,0 +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": 580}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "PO BOX 1100", "road": null, "city": "CHESTER", "state": "VA", "postal_code": "23031", "country_region": null, "street_address": "PO BOX 1100"}, "content": "PO BOX 1100\nCHESTER, VA 23031", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 147.0}, {"x": 230.0, "y": 149.0}, {"x": 230.0, "y": 169.0}, {"x": 138.0, "y": 167.0}]}], "spans": [{"offset": 266, "length": 29}], "confidence": null}, "CustomerAddressRecipient": {"value_type": "string", "value": "AMERICAN TOBACCO CO\nGENERAL ACCT OFFICE", "content": "AMERICAN TOBACCO CO\nGENERAL ACCT OFFICE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 139.0, "y": 126.0}, {"x": 242.0, "y": 131.0}, {"x": 242.0, "y": 152.0}, {"x": 138.0, "y": 147.0}]}], "spans": [{"offset": 226, "length": 39}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "AMERICAN TOBACCO CO\nGENERAL ACCT OFFICE", "content": "AMERICAN TOBACCO CO\nGENERAL ACCT OFFICE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 139.0, "y": 126.0}, {"x": 242.0, "y": 131.0}, {"x": 242.0, "y": 152.0}, {"x": 138.0, "y": 147.0}]}], "spans": [{"offset": 226, "length": 39}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 237.0, "symbol": null}, "content": "237 :9,50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 383.0}, {"x": 521.0, "y": 384.0}, {"x": 521.0, "y": 393.0}, {"x": 478.0, "y": 392.0}]}], "spans": [{"offset": 562, "length": 9}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Description": {"value_type": "string", "value": "BLEED 30-SHEETS \"GREAT LOW PRICE\"\nDESIGN", "content": "BLEED 30-SHEETS \"GREAT LOW PRICE\" DESIGN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 237.0}, {"x": 368.0, "y": 243.0}, {"x": 368.0, "y": 261.0}, {"x": 188.0, "y": 256.0}]}], "spans": [{"offset": 485, "length": 40}], "confidence": null}, "Quantity": {"value_type": "float", "value": 500.0, "content": "500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 115.0, "y": 236.0}, {"x": 131.0, "y": 236.0}, {"x": 131.0, "y": 246.0}, {"x": 115.0, "y": 246.0}]}], "spans": [{"offset": 481, "length": 3}], "confidence": null}, "Unit": {"value_type": "string", "value": "25.10", "content": "25.10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 247.0}, {"x": 463.0, "y": 247.0}, {"x": 463.0, "y": 256.0}, {"x": 438.0, "y": 256.0}]}], "spans": [{"offset": 534, "length": 5}], "confidence": null}}, "content": "500\nBLEED 30-SHEETS \"GREAT LOW PRICE\" DESIGN\n25.10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 115.0, "y": 236.0}, {"x": 463.0, "y": 243.0}, {"x": 463.0, "y": 262.0}, {"x": 115.0, "y": 255.0}]}], "spans": [{"offset": 481, "length": 44}, {"offset": 534, "length": 5}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 29.0, "symbol": null}, "content": "1.29.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 486.0, "y": 266.0}, {"x": 524.0, "y": 266.0}, {"x": 524.0, "y": 275.0}, {"x": 486.0, "y": 276.0}]}], "spans": [{"offset": 543, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "OVERRUN", "content": "OVERRUN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 189.0, "y": 256.0}, {"x": 226.0, "y": 257.0}, {"x": 226.0, "y": 266.0}, {"x": 189.0, "y": 265.0}]}], "spans": [{"offset": 526, "length": 7}], "confidence": null}, "Quantity": {"value_type": "float", "value": 45.0, "content": "45", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 254.0}, {"x": 129.0, "y": 254.0}, {"x": 129.0, "y": 262.0}, {"x": 119.0, "y": 262.0}]}], "spans": [{"offset": 540, "length": 2}], "confidence": null}}, "content": "OVERRUN\n45\n1.29.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 119.0, "y": 254.0}, {"x": 524.0, "y": 254.0}, {"x": 524.0, "y": 276.0}, {"x": 119.0, "y": 276.0}]}], "spans": [{"offset": 526, "length": 7}, {"offset": 540, "length": 10}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "17CLO DOVE", "content": "17CLO DOVE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 408.0, "y": 164.0}, {"x": 467.0, "y": 166.0}, {"x": 467.0, "y": 176.0}, {"x": 408.0, "y": 175.0}]}], "spans": [{"offset": 372, "length": 10}], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. BOX 344", "road": null, "city": "FAIR LAWN", "state": "NEW JERSEY", "postal_code": "07410", "country_region": null, "street_address": "P.O. BOX 344"}, "content": "P.O. BOX 344, FAIR LAWN, NEW JERSEY 07410", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 172.0, "y": 88.0}, {"x": 333.0, "y": 92.0}, {"x": 333.0, "y": 104.0}, {"x": 172.0, "y": 100.0}]}], "spans": [{"offset": 181, "length": 41}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Maple Avenue", "city": "Fair Lawn", "state": "New Jersey", "postal_code": "07410", "country_region": null, "street_address": "Maple Avenue"}, "content": "Twenty-Ten Maple Avenue, Fair Lawn, New Jersey 07410", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 44.0}, {"x": 399.0, "y": 50.0}, {"x": 399.0, "y": 63.0}, {"x": 194.0, "y": 57.0}]}], "spans": [{"offset": 79, "length": 52}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "A division of MacNaughton Lithograph Company,", "content": "A division of MacNaughton Lithograph Company,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 194.0, "y": 35.0}, {"x": 360.0, "y": 40.0}, {"x": 360.0, "y": 52.0}, {"x": 194.0, "y": 47.0}]}], "spans": [{"offset": 28, "length": 45}], "confidence": null}, "VendorName": {"value_type": "string", "value": "MACNAUGHTON EINSON GRAPHICS\nInc.", "content": "MACNAUGHTON EINSON GRAPHICS\nInc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 193.0, "y": 23.0}, {"x": 378.0, "y": 28.0}, {"x": 377.0, "y": 52.0}, {"x": 193.0, "y": 47.0}]}], "spans": [{"offset": 0, "length": 27}, {"offset": 74, "length": 4}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/199_jpg.rf.483e04cdf5190ed64e1a999af0bef3d5.json b/Data/train/199_jpg.rf.483e04cdf5190ed64e1a999af0bef3d5.json new file mode 100644 index 0000000000000000000000000000000000000000..199e669454b1defc2ef15b573b5a90fb9850642a --- /dev/null +++ b/Data/train/199_jpg.rf.483e04cdf5190ed64e1a999af0bef3d5.json @@ -0,0 +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": 863}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Riverside Drive", "city": "Panama City", "state": "FL", "postal_code": "32404", "country_region": null, "street_address": "Riverside Drive"}, "content": "@176 Riverside Drive\nPanama City, FL 32404", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 201.0, "y": 157.0}, {"x": 279.0, "y": 157.0}, {"x": 279.0, "y": 176.0}, {"x": 201.0, "y": 176.0}]}], "spans": [{"offset": 241, "length": 42}], "confidence": 0.927}, "CustomerAddressRecipient": {"value_type": "string", "value": "Acme Industries", "content": "Acme Industries", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 202.0, "y": 144.0}, {"x": 256.0, "y": 145.0}, {"x": 256.0, "y": 154.0}, {"x": 202.0, "y": 152.0}]}], "spans": [{"offset": 216, "length": 15}], "confidence": 0.731}, "CustomerName": {"value_type": "string", "value": "Acme Industries", "content": "Acme Industries", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 202.0, "y": 144.0}, {"x": 256.0, "y": 145.0}, {"x": 256.0, "y": 154.0}, {"x": 202.0, "y": 152.0}]}], "spans": [{"offset": 216, "length": 15}], "confidence": 0.731}, "InvoiceDate": {"value_type": "date", "value": "2020-11-05", "content": "11/05/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 335.0, "y": 101.0}, {"x": 370.0, "y": 100.0}, {"x": 370.0, "y": 107.0}, {"x": 335.0, "y": 108.0}]}], "spans": [{"offset": 93, "length": 10}], "confidence": 0.024}, "InvoiceId": {"value_type": "string", "value": "000582", "content": "000582", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 242.0, "y": 101.0}, {"x": 267.0, "y": 101.0}, {"x": 267.0, "y": 108.0}, {"x": 243.0, "y": 108.0}]}], "spans": [{"offset": 54, "length": 6}], "confidence": 0.015}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 12512.0, "symbol": "$"}, "content": "$12,512.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 434.0, "y": 446.0}, {"x": 508.0, "y": 446.0}, {"x": 508.0, "y": 461.0}, {"x": 434.0, "y": 461.0}]}], "spans": [{"offset": 781, "length": 10}], "confidence": 0.011}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 9500.0, "symbol": "$"}, "content": "$9,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 290.0}, {"x": 508.0, "y": 290.0}, {"x": 508.0, "y": 300.0}, {"x": 468.0, "y": 299.0}]}], "spans": [{"offset": 635, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Laser Mouse", "content": "Laser Mouse", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 291.0}, {"x": 173.0, "y": 291.0}, {"x": 173.0, "y": 300.0}, {"x": 125.0, "y": 300.0}]}], "spans": [{"offset": 612, "length": 11}], "confidence": null}, "Quantity": {"value_type": "float", "value": 10.0, "content": "10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 307.0, "y": 290.0}, {"x": 315.0, "y": 290.0}, {"x": 315.0, "y": 299.0}, {"x": 307.0, "y": 299.0}]}], "spans": [{"offset": 624, "length": 2}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 950.0, "symbol": "$"}, "content": "$950.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 392.0, "y": 291.0}, {"x": 422.0, "y": 291.0}, {"x": 422.0, "y": 300.0}, {"x": 392.0, "y": 299.0}]}], "spans": [{"offset": 627, "length": 7}], "confidence": null}}, "content": "Laser Mouse\n10\n$950.00\n$9,500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 290.0}, {"x": 508.0, "y": 290.0}, {"x": 508.0, "y": 300.0}, {"x": 125.0, "y": 300.0}]}], "spans": [{"offset": 612, "length": 32}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 3000.0, "symbol": "$"}, "content": "$3,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 467.0, "y": 318.0}, {"x": 508.0, "y": 317.0}, {"x": 508.0, "y": 327.0}, {"x": 468.0, "y": 327.0}]}], "spans": [{"offset": 673, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Dual XL Monitors", "content": "Dual XL Monitors", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 319.0}, {"x": 189.0, "y": 319.0}, {"x": 189.0, "y": 328.0}, {"x": 125.0, "y": 328.0}]}], "spans": [{"offset": 645, "length": 16}], "confidence": null}, "Quantity": {"value_type": "float", "value": 20.0, "content": "20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 306.0, "y": 318.0}, {"x": 315.0, "y": 318.0}, {"x": 315.0, "y": 326.0}, {"x": 306.0, "y": 326.0}]}], "spans": [{"offset": 662, "length": 2}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 150.0, "symbol": "$"}, "content": "$150.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 394.0, "y": 319.0}, {"x": 422.0, "y": 319.0}, {"x": 422.0, "y": 327.0}, {"x": 394.0, "y": 327.0}]}], "spans": [{"offset": 665, "length": 7}], "confidence": null}}, "content": "Dual XL Monitors\n20\n$150.00\n$3,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 317.0}, {"x": 508.0, "y": 317.0}, {"x": 508.0, "y": 328.0}, {"x": 125.0, "y": 328.0}]}], "spans": [{"offset": 645, "length": 37}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 300.0, "symbol": "$"}, "content": "$300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 475.0, "y": 346.0}, {"x": 508.0, "y": 346.0}, {"x": 508.0, "y": 355.0}, {"x": 475.0, "y": 355.0}]}], "spans": [{"offset": 712, "length": 7}], "confidence": null}, "Description": {"value_type": "string", "value": "Multi-jet Printer", "content": "Multi-jet Printer", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 346.0}, {"x": 186.0, "y": 346.0}, {"x": 186.0, "y": 355.0}, {"x": 124.0, "y": 355.0}]}], "spans": [{"offset": 683, "length": 17}], "confidence": null}, "Quantity": {"value_type": "float", "value": 2.0, "content": "02", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 306.0, "y": 347.0}, {"x": 316.0, "y": 347.0}, {"x": 315.0, "y": 354.0}, {"x": 306.0, "y": 353.0}]}], "spans": [{"offset": 701, "length": 2}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 150.0, "symbol": "$"}, "content": "$150.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 393.0, "y": 347.0}, {"x": 422.0, "y": 346.0}, {"x": 422.0, "y": 355.0}, {"x": 393.0, "y": 355.0}]}], "spans": [{"offset": 704, "length": 7}], "confidence": null}}, "content": "Multi-jet Printer\n02\n$150.00\n$300.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 124.0, "y": 346.0}, {"x": 508.0, "y": 346.0}, {"x": 508.0, "y": 355.0}, {"x": 124.0, "y": 355.0}]}], "spans": [{"offset": 683, "length": 36}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "DOU", "content": "DOU", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 553.0}, {"x": 141.0, "y": 552.0}, {"x": 142.0, "y": 561.0}, {"x": 126.0, "y": 562.0}]}], "spans": [{"offset": 826, "length": 3}], "confidence": 0.053}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "52", "po_box": null, "road": "indian Summer Lane", "city": "Austin", "state": "MN", "postal_code": "55912", "country_region": null, "street_address": "52 indian Summer Lane"}, "content": "52 indian Summer Lane\nAustin, MN 55912", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 422.0, "y": 157.0}, {"x": 500.0, "y": 157.0}, {"x": 500.0, "y": 175.0}, {"x": 422.0, "y": 175.0}]}], "spans": [{"offset": 433, "length": 38}], "confidence": 0.725}, "ShippingAddressRecipient": {"value_type": "string", "value": "Cala Foods", "content": "Cala Foods", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 422.0, "y": 145.0}, {"x": 459.0, "y": 145.0}, {"x": 459.0, "y": 153.0}, {"x": 422.0, "y": 153.0}]}], "spans": [{"offset": 414, "length": 10}], "confidence": 0.027}, "SubTotal": {"value_type": "currency", "value": {"amount": 12800.0, "symbol": "$"}, "content": "$12,800.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 462.0, "y": 376.0}, {"x": 507.0, "y": 375.0}, {"x": 508.0, "y": 385.0}, {"x": 462.0, "y": 385.0}]}], "spans": [{"offset": 730, "length": 10}], "confidence": 0.014}, "TotalTax": {"value_type": "currency", "value": {"amount": 12.0, "symbol": "$"}, "content": "$12.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 479.0, "y": 421.0}, {"x": 508.0, "y": 421.0}, {"x": 508.0, "y": 430.0}, {"x": 480.0, "y": 430.0}]}], "spans": [{"offset": 762, "length": 6}], "confidence": 0.005}, "VendorAddress": {"value_type": "address", "value": {"house_number": "582", "po_box": null, "road": "Grand Drive", "city": "Lithonia", "state": "GA", "postal_code": "30038", "country_region": null, "street_address": "582 Grand Drive"}, "content": "582 Grand Drive Lithonia, GA 30038", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 441.0, "y": 45.0}, {"x": 513.0, "y": 45.0}, {"x": 513.0, "y": 64.0}, {"x": 441.0, "y": 64.0}]}], "spans": [{"offset": 123, "length": 34}], "confidence": 0.434}, "VendorAddressRecipient": {"value_type": "string", "value": "Globex Corporation", "content": "Globex Corporation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 409.0, "y": 29.0}, {"x": 511.0, "y": 30.0}, {"x": 511.0, "y": 44.0}, {"x": 409.0, "y": 42.0}]}], "spans": [{"offset": 104, "length": 18}], "confidence": 0.001}, "VendorName": {"value_type": "string", "value": "Globex Corporation", "content": "Globex Corporation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 409.0, "y": 29.0}, {"x": 511.0, "y": 30.0}, {"x": 511.0, "y": 44.0}, {"x": 409.0, "y": 42.0}]}], "spans": [{"offset": 104, "length": 18}], "confidence": 0.001}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/1_jpg.rf.5c753e5f91b98e6db120755b74687180.json b/Data/train/1_jpg.rf.5c753e5f91b98e6db120755b74687180.json new file mode 100644 index 0000000000000000000000000000000000000000..a203505dc8a1f3675d548e0f27790c2cd6c1c192 --- /dev/null +++ b/Data/train/1_jpg.rf.5c753e5f91b98e6db120755b74687180.json @@ -0,0 +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": 445}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Dhaka", "state": null, "postal_code": null, "country_region": "Bangladesh", "street_address": ""}, "content": "Dhaka\nBarguna\nBangladesh", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 11.0, "y": 316.0}, {"x": 73.0, "y": 316.0}, {"x": 73.0, "y": 365.0}, {"x": 11.0, "y": 364.0}]}], "spans": [{"offset": 63, "length": 24}], "confidence": 0.797}, "InvoiceDate": {"value_type": "date", "value": "2016-02-09", "content": "February 9, 2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 488.0, "y": 283.0}, {"x": 580.0, "y": 282.0}, {"x": 580.0, "y": 299.0}, {"x": 488.0, "y": 300.0}]}], "spans": [{"offset": 256, "length": 16}], "confidence": 0.935}, "InvoiceId": {"value_type": "string", "value": "556", "content": "556", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 263.0}, {"x": 509.0, "y": 263.0}, {"x": 509.0, "y": 276.0}, {"x": 490.0, "y": 276.0}]}], "spans": [{"offset": 238, "length": 3}], "confidence": 0.984}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 15.0, "symbol": "$"}, "content": "$15.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 570.0}, {"x": 547.0, "y": 570.0}, {"x": 547.0, "y": 582.0}, {"x": 512.0, "y": 582.0}]}], "spans": [{"offset": 439, "length": 6}], "confidence": 0.982}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5.0, "symbol": "$"}, "content": "$5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 512.0, "y": 470.0}, {"x": 539.0, "y": 470.0}, {"x": 539.0, "y": 483.0}, {"x": 511.0, "y": 482.0}]}], "spans": [{"offset": 394, "length": 5}], "confidence": 0.928}, "Description": {"value_type": "string", "value": "A Cup of Tea", "content": "A Cup of Tea", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 13.0, "y": 470.0}, {"x": 84.0, "y": 470.0}, {"x": 84.0, "y": 485.0}, {"x": 13.0, "y": 485.0}]}], "spans": [{"offset": 379, "length": 12}], "confidence": 0.928}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 387.0, "y": 472.0}, {"x": 393.0, "y": 472.0}, {"x": 393.0, "y": 482.0}, {"x": 388.0, "y": 483.0}]}], "spans": [{"offset": 392, "length": 1}], "confidence": 0.929}}, "content": "A Cup of Tea\n1\n$5.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 13.0, "y": 470.0}, {"x": 539.0, "y": 470.0}, {"x": 539.0, "y": 485.0}, {"x": 13.0, "y": 485.0}]}], "spans": [{"offset": 379, "length": 20}], "confidence": 0.927}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 498.0}, {"x": 547.0, "y": 497.0}, {"x": 547.0, "y": 511.0}, {"x": 511.0, "y": 510.0}]}], "spans": [{"offset": 410, "length": 6}], "confidence": 0.929}, "Description": {"value_type": "string", "value": "Tablets", "content": "Tablets", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 14.0, "y": 497.0}, {"x": 55.0, "y": 498.0}, {"x": 55.0, "y": 511.0}, {"x": 15.0, "y": 510.0}]}], "spans": [{"offset": 400, "length": 7}], "confidence": 0.928}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 388.0, "y": 499.0}, {"x": 394.0, "y": 499.0}, {"x": 394.0, "y": 511.0}, {"x": 388.0, "y": 511.0}]}], "spans": [{"offset": 408, "length": 1}], "confidence": 0.929}}, "content": "Tablets\n1\n$10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 14.0, "y": 497.0}, {"x": 547.0, "y": 497.0}, {"x": 547.0, "y": 511.0}, {"x": 14.0, "y": 511.0}]}], "spans": [{"offset": 400, "length": 16}], "confidence": 0.883}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Direct Bank Transfer", "content": "Direct Bank Transfer", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 489.0, "y": 341.0}, {"x": 601.0, "y": 341.0}, {"x": 601.0, "y": 356.0}, {"x": 489.0, "y": 356.0}]}], "spans": [{"offset": 335, "length": 20}], "confidence": 0.443}, "PurchaseOrder": {"value_type": "string", "value": "98", "content": "98", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 302.0}, {"x": 503.0, "y": 302.0}, {"x": 503.0, "y": 315.0}, {"x": 490.0, "y": 315.0}]}], "spans": [{"offset": 287, "length": 2}], "confidence": 0.419}, "SubTotal": {"value_type": "currency", "value": {"amount": 15.0, "symbol": "$"}, "content": "$15.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 543.0}, {"x": 547.0, "y": 543.0}, {"x": 547.0, "y": 555.0}, {"x": 512.0, "y": 554.0}]}], "spans": [{"offset": 426, "length": 6}], "confidence": 0.983}, "VendorAddress": {"value_type": "address", "value": {"house_number": "#58", "po_box": null, "road": "2nd floor), Sonargaon Road,\nDhanmondi", "city": "Dhaka", "state": null, "postal_code": "1207", "country_region": null, "street_address": "#58 2nd floor), Sonargaon Road,\nDhanmondi"}, "content": "#58 (2nd floor), Sonargaon Road, Dhanmondi, Dhaka, 1207", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 382.0, "y": 80.0}, {"x": 564.0, "y": 80.0}, {"x": 564.0, "y": 113.0}, {"x": 382.0, "y": 113.0}]}], "spans": [{"offset": 133, "length": 55}], "confidence": 0.887}, "VendorAddressRecipient": {"value_type": "string", "value": "Only Music", "content": "Only Music", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 383.0, "y": 51.0}, {"x": 449.0, "y": 51.0}, {"x": 449.0, "y": 66.0}, {"x": 383.0, "y": 66.0}]}], "spans": [{"offset": 122, "length": 10}], "confidence": 0.942}, "VendorName": {"value_type": "string", "value": "ONLY\nMUSIC", "content": "ONLY MUSIC", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 44.0, "y": 98.0}, {"x": 98.0, "y": 98.0}, {"x": 98.0, "y": 133.0}, {"x": 44.0, "y": 133.0}]}], "spans": [{"offset": 0, "length": 10}], "confidence": 0.941}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/1_jpg.rf.bf0a65dd67daaf550ee2dd8e419e2dcd.json b/Data/train/1_jpg.rf.bf0a65dd67daaf550ee2dd8e419e2dcd.json new file mode 100644 index 0000000000000000000000000000000000000000..9838c1b35c1c9bdbeeb2406bbef84f3aec4d450a --- /dev/null +++ b/Data/train/1_jpg.rf.bf0a65dd67daaf550ee2dd8e419e2dcd.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1391.0, "y": 0.0}, {"x": 1391.0, "y": 1800.0}, {"x": 0.0, "y": 1800.0}]}], "spans": [{"offset": 0, "length": 2190}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 13.93, "symbol": "$"}, "content": "$13.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1225.0, "y": 327.0}, {"x": 1297.0, "y": 327.0}, {"x": 1297.0, "y": 351.0}, {"x": 1226.0, "y": 350.0}]}], "spans": [{"offset": 342, "length": 6}], "confidence": 0.935}, "BillingAddress": {"value_type": "address", "value": {"house_number": "Managua\nManagua", "po_box": null, "road": "Managua", "city": null, "state": null, "postal_code": "505", "country_region": "NI", "street_address": "Managua\nManagua Managua"}, "content": "Managua Managua , Managua , 505 , NI", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 77.0, "y": 367.0}, {"x": 384.0, "y": 367.0}, {"x": 384.0, "y": 420.0}, {"x": 77.0, "y": 420.0}]}], "spans": [{"offset": 89, "length": 36}], "confidence": 0.596}, "BillingAddressRecipient": {"value_type": "string", "value": "ATTN: Osman Gutierrez", "content": "ATTN: Osman Gutierrez", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 335.0}, {"x": 318.0, "y": 337.0}, {"x": 318.0, "y": 365.0}, {"x": 79.0, "y": 363.0}]}], "spans": [{"offset": 67, "length": 21}], "confidence": 0.894}, "CustomerId": {"value_type": "string", "value": "024577297981", "content": "024577297981", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 240.0}, {"x": 319.0, "y": 238.0}, {"x": 319.0, "y": 271.0}, {"x": 80.0, "y": 270.0}]}], "spans": [{"offset": 37, "length": 12}], "confidence": 0.942}, "CustomerName": {"value_type": "string", "value": "ATTN: Osman Gutierrez", "content": "ATTN: Osman Gutierrez", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 79.0, "y": 335.0}, {"x": 318.0, "y": 337.0}, {"x": 318.0, "y": 365.0}, {"x": 79.0, "y": 363.0}]}], "spans": [{"offset": 67, "length": 21}], "confidence": 0.894}, "DueDate": {"value_type": "date", "value": "2016-03-04", "content": "March 4, 2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 855.0, "y": 325.0}, {"x": 1013.0, "y": 325.0}, {"x": 1013.0, "y": 352.0}, {"x": 855.0, "y": 352.0}]}], "spans": [{"offset": 328, "length": 13}], "confidence": 0.893}, "InvoiceDate": {"value_type": "date", "value": "2016-03-04", "content": "March 4, 2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1177.0, "y": 287.0}, {"x": 1300.0, "y": 287.0}, {"x": 1300.0, "y": 315.0}, {"x": 1177.0, "y": 315.0}]}], "spans": [{"offset": 294, "length": 13}], "confidence": 0.9}, "InvoiceId": {"value_type": "string", "value": "68583510", "content": "68583510", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1216.0, "y": 267.0}, {"x": 1296.0, "y": 266.0}, {"x": 1296.0, "y": 285.0}, {"x": 1216.0, "y": 284.0}]}], "spans": [{"offset": 271, "length": 8}], "confidence": 0.942}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 13.93, "symbol": "$"}, "content": "$13.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1229.0, "y": 814.0}, {"x": 1300.0, "y": 814.0}, {"x": 1300.0, "y": 837.0}, {"x": 1230.0, "y": 838.0}]}], "spans": [{"offset": 788, "length": 6}], "confidence": 0.809}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 13.93, "symbol": "$"}, "content": "$13.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1230.0, "y": 671.0}, {"x": 1300.0, "y": 671.0}, {"x": 1300.0, "y": 694.0}, {"x": 1231.0, "y": 694.0}]}], "spans": [{"offset": 717, "length": 6}], "confidence": 0.644}, "Description": {"value_type": "string", "value": "AWS Service Charges", "content": "AWS Service Charges", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 670.0}, {"x": 335.0, "y": 671.0}, {"x": 335.0, "y": 697.0}, {"x": 111.0, "y": 696.0}]}], "spans": [{"offset": 697, "length": 19}], "confidence": 0.564}}, "content": "AWS Service Charges\n$13.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 663.0}, {"x": 1300.0, "y": 671.0}, {"x": 1300.0, "y": 704.0}, {"x": 111.0, "y": 696.0}]}], "spans": [{"offset": 697, "length": 26}], "confidence": 0.562}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 13.93, "symbol": "$"}, "content": "$13.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1243.0, "y": 711.0}, {"x": 1300.0, "y": 710.0}, {"x": 1301.0, "y": 729.0}, {"x": 1243.0, "y": 729.0}]}], "spans": [{"offset": 732, "length": 6}], "confidence": 0.643}, "Description": {"value_type": "string", "value": "Charges", "content": "Charges", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 710.0}, {"x": 203.0, "y": 711.0}, {"x": 202.0, "y": 731.0}, {"x": 135.0, "y": 730.0}]}], "spans": [{"offset": 724, "length": 7}], "confidence": 0.728}}, "content": "Charges\n$13.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 693.0}, {"x": 1301.0, "y": 710.0}, {"x": 1301.0, "y": 747.0}, {"x": 134.0, "y": 730.0}]}], "spans": [{"offset": 724, "length": 14}], "confidence": 0.454}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1253.0, "y": 740.0}, {"x": 1302.0, "y": 740.0}, {"x": 1302.0, "y": 766.0}, {"x": 1253.0, "y": 766.0}]}], "spans": [{"offset": 747, "length": 5}], "confidence": 0.736}, "Description": {"value_type": "string", "value": "Credits", "content": "Credits", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 745.0}, {"x": 194.0, "y": 746.0}, {"x": 193.0, "y": 763.0}, {"x": 134.0, "y": 763.0}]}], "spans": [{"offset": 739, "length": 7}], "confidence": 0.743}}, "content": "Credits\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 730.0}, {"x": 1302.0, "y": 740.0}, {"x": 1302.0, "y": 773.0}, {"x": 134.0, "y": 763.0}]}], "spans": [{"offset": 739, "length": 13}], "confidence": 0.489}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1253.0, "y": 778.0}, {"x": 1300.0, "y": 778.0}, {"x": 1300.0, "y": 797.0}, {"x": 1253.0, "y": 797.0}]}], "spans": [{"offset": 759, "length": 5}], "confidence": 0.644}, "Description": {"value_type": "string", "value": "Tax *", "content": "Tax *", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 779.0}, {"x": 173.0, "y": 779.0}, {"x": 173.0, "y": 796.0}, {"x": 136.0, "y": 796.0}]}], "spans": [{"offset": 753, "length": 5}], "confidence": 0.66}}, "content": "Tax *\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 778.0}, {"x": 1300.0, "y": 778.0}, {"x": 1300.0, "y": 797.0}, {"x": 136.0, "y": 797.0}]}], "spans": [{"offset": 753, "length": 11}], "confidence": 0.424}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1243.0, "y": 944.0}, {"x": 1299.0, "y": 944.0}, {"x": 1299.0, "y": 966.0}, {"x": 1243.0, "y": 966.0}]}], "spans": [{"offset": 820, "length": 5}], "confidence": 0.643}, "Description": {"value_type": "string", "value": "AWS Data Transfer", "content": "AWS Data Transfer", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 943.0}, {"x": 306.0, "y": 943.0}, {"x": 306.0, "y": 970.0}, {"x": 111.0, "y": 970.0}]}], "spans": [{"offset": 802, "length": 17}], "confidence": 0.64}}, "content": "AWS Data Transfer\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 943.0}, {"x": 1299.0, "y": 943.0}, {"x": 1299.0, "y": 970.0}, {"x": 111.0, "y": 970.0}]}], "spans": [{"offset": 802, "length": 23}], "confidence": 0.507}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1254.0, "y": 983.0}, {"x": 1300.0, "y": 983.0}, {"x": 1301.0, "y": 1002.0}, {"x": 1254.0, "y": 1002.0}]}], "spans": [{"offset": 834, "length": 5}], "confidence": 0.736}, "Description": {"value_type": "string", "value": "Charges", "content": "Charges", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 984.0}, {"x": 202.0, "y": 985.0}, {"x": 202.0, "y": 1004.0}, {"x": 134.0, "y": 1003.0}]}], "spans": [{"offset": 826, "length": 7}], "confidence": 0.862}}, "content": "Charges\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 966.0}, {"x": 1301.0, "y": 983.0}, {"x": 1301.0, "y": 1020.0}, {"x": 134.0, "y": 1003.0}]}], "spans": [{"offset": 826, "length": 13}], "confidence": 0.564}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1253.0, "y": 1018.0}, {"x": 1299.0, "y": 1018.0}, {"x": 1300.0, "y": 1037.0}, {"x": 1253.0, "y": 1037.0}]}], "spans": [{"offset": 844, "length": 5}], "confidence": 0.644}, "Description": {"value_type": "string", "value": "VAT", "content": "VAT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 132.0, "y": 1014.0}, {"x": 168.0, "y": 1014.0}, {"x": 169.0, "y": 1040.0}, {"x": 132.0, "y": 1040.0}]}], "spans": [{"offset": 840, "length": 3}], "confidence": 0.74}}, "content": "VAT\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 132.0, "y": 1014.0}, {"x": 1300.0, "y": 1014.0}, {"x": 1300.0, "y": 1040.0}, {"x": 132.0, "y": 1040.0}]}], "spans": [{"offset": 840, "length": 9}], "confidence": 0.456}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 13.93, "symbol": "$"}, "content": "$13.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1230.0, "y": 1055.0}, {"x": 1300.0, "y": 1054.0}, {"x": 1300.0, "y": 1077.0}, {"x": 1231.0, "y": 1077.0}]}], "spans": [{"offset": 879, "length": 6}], "confidence": 0.48}, "Description": {"value_type": "string", "value": "Amazon Elastic Compute Cloud", "content": "Amazon Elastic Compute Cloud", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 1052.0}, {"x": 434.0, "y": 1054.0}, {"x": 434.0, "y": 1080.0}, {"x": 112.0, "y": 1078.0}]}], "spans": [{"offset": 850, "length": 28}], "confidence": 0.435}}, "content": "Amazon Elastic Compute Cloud\n$13.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 112.0, "y": 1054.0}, {"x": 1300.0, "y": 1054.0}, {"x": 1300.0, "y": 1079.0}, {"x": 112.0, "y": 1079.0}]}], "spans": [{"offset": 850, "length": 35}], "confidence": 0.373}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 13.93, "symbol": "$"}, "content": "$13.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1243.0, "y": 1094.0}, {"x": 1301.0, "y": 1094.0}, {"x": 1301.0, "y": 1113.0}, {"x": 1244.0, "y": 1113.0}]}], "spans": [{"offset": 894, "length": 6}], "confidence": 0.738}, "Description": {"value_type": "string", "value": "Charges", "content": "Charges", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 1094.0}, {"x": 203.0, "y": 1094.0}, {"x": 202.0, "y": 1115.0}, {"x": 134.0, "y": 1114.0}]}], "spans": [{"offset": 886, "length": 7}], "confidence": 0.743}}, "content": "Charges\n$13.93", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 1085.0}, {"x": 1301.0, "y": 1094.0}, {"x": 1301.0, "y": 1123.0}, {"x": 134.0, "y": 1115.0}]}], "spans": [{"offset": 886, "length": 14}], "confidence": 0.49}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1254.0, "y": 1128.0}, {"x": 1300.0, "y": 1128.0}, {"x": 1300.0, "y": 1146.0}, {"x": 1254.0, "y": 1145.0}]}], "spans": [{"offset": 908, "length": 5}], "confidence": 0.693}, "Description": {"value_type": "string", "value": "VAT **", "content": "VAT **", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 1129.0}, {"x": 185.0, "y": 1127.0}, {"x": 186.0, "y": 1144.0}, {"x": 134.0, "y": 1146.0}]}], "spans": [{"offset": 901, "length": 6}], "confidence": 0.719}}, "content": "VAT **\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 1129.0}, {"x": 1299.0, "y": 1091.0}, {"x": 1301.0, "y": 1146.0}, {"x": 135.0, "y": 1184.0}]}], "spans": [{"offset": 901, "length": 12}], "confidence": 0.454}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1242.0, "y": 1164.0}, {"x": 1299.0, "y": 1164.0}, {"x": 1299.0, "y": 1186.0}, {"x": 1242.0, "y": 1186.0}]}], "spans": [{"offset": 941, "length": 5}], "confidence": 0.642}, "Description": {"value_type": "string", "value": "AWS Key Management Service", "content": "AWS Key Management Service", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 1163.0}, {"x": 429.0, "y": 1163.0}, {"x": 429.0, "y": 1191.0}, {"x": 111.0, "y": 1191.0}]}], "spans": [{"offset": 914, "length": 26}], "confidence": 0.475}}, "content": "AWS Key Management Service\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 1163.0}, {"x": 1299.0, "y": 1163.0}, {"x": 1299.0, "y": 1191.0}, {"x": 111.0, "y": 1191.0}]}], "spans": [{"offset": 914, "length": 32}], "confidence": 0.51}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1254.0, "y": 1203.0}, {"x": 1300.0, "y": 1203.0}, {"x": 1301.0, "y": 1220.0}, {"x": 1254.0, "y": 1221.0}]}], "spans": [{"offset": 955, "length": 5}], "confidence": 0.857}, "Description": {"value_type": "string", "value": "Charges", "content": "Charges", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 1203.0}, {"x": 203.0, "y": 1204.0}, {"x": 203.0, "y": 1224.0}, {"x": 135.0, "y": 1223.0}]}], "spans": [{"offset": 947, "length": 7}], "confidence": 0.745}}, "content": "Charges\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 1186.0}, {"x": 1301.0, "y": 1203.0}, {"x": 1301.0, "y": 1240.0}, {"x": 134.0, "y": 1223.0}]}], "spans": [{"offset": 947, "length": 13}], "confidence": 0.567}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1254.0, "y": 1237.0}, {"x": 1299.0, "y": 1237.0}, {"x": 1300.0, "y": 1256.0}, {"x": 1254.0, "y": 1256.0}]}], "spans": [{"offset": 968, "length": 5}], "confidence": 0.644}, "Description": {"value_type": "string", "value": "VAT **", "content": "VAT **", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 1239.0}, {"x": 185.0, "y": 1237.0}, {"x": 186.0, "y": 1254.0}, {"x": 135.0, "y": 1256.0}]}], "spans": [{"offset": 961, "length": 6}], "confidence": 0.665}}, "content": "VAT **\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 1239.0}, {"x": 1298.0, "y": 1203.0}, {"x": 1300.0, "y": 1256.0}, {"x": 136.0, "y": 1292.0}]}], "spans": [{"offset": 961, "length": 12}], "confidence": 0.505}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1242.0, "y": 1272.0}, {"x": 1298.0, "y": 1272.0}, {"x": 1298.0, "y": 1295.0}, {"x": 1242.0, "y": 1295.0}]}], "spans": [{"offset": 1009, "length": 5}], "confidence": 0.649}, "Description": {"value_type": "string", "value": "Amazon Simple Notification Service", "content": "Amazon Simple Notification Service", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 1272.0}, {"x": 475.0, "y": 1272.0}, {"x": 475.0, "y": 1299.0}, {"x": 111.0, "y": 1299.0}]}], "spans": [{"offset": 974, "length": 34}], "confidence": 0.541}}, "content": "Amazon Simple Notification Service\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 1272.0}, {"x": 1298.0, "y": 1272.0}, {"x": 1298.0, "y": 1299.0}, {"x": 111.0, "y": 1299.0}]}], "spans": [{"offset": 974, "length": 40}], "confidence": 0.439}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1253.0, "y": 1312.0}, {"x": 1300.0, "y": 1312.0}, {"x": 1300.0, "y": 1331.0}, {"x": 1253.0, "y": 1331.0}]}], "spans": [{"offset": 1023, "length": 5}], "confidence": 0.733}, "Description": {"value_type": "string", "value": "Charges", "content": "Charges", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 1313.0}, {"x": 203.0, "y": 1313.0}, {"x": 202.0, "y": 1334.0}, {"x": 134.0, "y": 1333.0}]}], "spans": [{"offset": 1015, "length": 7}], "confidence": 0.743}}, "content": "Charges\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 134.0, "y": 1303.0}, {"x": 1300.0, "y": 1312.0}, {"x": 1300.0, "y": 1342.0}, {"x": 134.0, "y": 1334.0}]}], "spans": [{"offset": 1015, "length": 13}], "confidence": 0.488}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1253.0, "y": 1347.0}, {"x": 1300.0, "y": 1347.0}, {"x": 1300.0, "y": 1365.0}, {"x": 1253.0, "y": 1365.0}]}], "spans": [{"offset": 1036, "length": 5}], "confidence": 0.645}, "Description": {"value_type": "string", "value": "VAT **", "content": "VAT **", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 1348.0}, {"x": 185.0, "y": 1346.0}, {"x": 186.0, "y": 1364.0}, {"x": 134.0, "y": 1365.0}]}], "spans": [{"offset": 1029, "length": 6}], "confidence": 0.665}}, "content": "VAT **\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 1348.0}, {"x": 1299.0, "y": 1311.0}, {"x": 1301.0, "y": 1365.0}, {"x": 135.0, "y": 1402.0}]}], "spans": [{"offset": 1029, "length": 12}], "confidence": 0.504}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ServiceEndDate": {"value_type": "date", "value": "2016-02-29", "content": "February 29, 2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 665.0, "y": 510.0}, {"x": 898.0, "y": 508.0}, {"x": 898.0, "y": 540.0}, {"x": 665.0, "y": 542.0}]}], "spans": [{"offset": 401, "length": 17}], "confidence": 0.907}, "ServiceStartDate": {"value_type": "date", "value": "2016-02-01", "content": "February 1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 509.0, "y": 510.0}, {"x": 642.0, "y": 510.0}, {"x": 642.0, "y": 541.0}, {"x": 509.0, "y": 541.0}]}], "spans": [{"offset": 388, "length": 10}], "confidence": 0.926}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1253.0, "y": 778.0}, {"x": 1300.0, "y": 778.0}, {"x": 1300.0, "y": 797.0}, {"x": 1253.0, "y": 797.0}]}], "spans": [{"offset": 759, "length": 5}], "confidence": 0.494}, "VendorAddress": {"value_type": "address", "value": {"house_number": "410", "po_box": null, "road": "Terry Ave North", "city": "Seattle", "state": "WA", "postal_code": "98109-5210", "country_region": "US", "street_address": "410 Terry Ave North"}, "content": "410 Terry Ave North Seattle , WA 98109-5210 , US", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 836.0, "y": 1542.0}, {"x": 1058.0, "y": 1542.0}, {"x": 1058.0, "y": 1582.0}, {"x": 836.0, "y": 1582.0}]}], "spans": [{"offset": 2140, "length": 48}], "confidence": 0.214}, "VendorAddressRecipient": {"value_type": "string", "value": "Amazon Web Services, Inc.", "content": "Amazon Web Services, Inc.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 836.0, "y": 1524.0}, {"x": 1031.0, "y": 1524.0}, {"x": 1031.0, "y": 1543.0}, {"x": 836.0, "y": 1543.0}]}], "spans": [{"offset": 2114, "length": 25}], "confidence": 0.487}, "VendorName": {"value_type": "string", "value": "amazon\nAmazon Web Services\nweb services\u2122\nAWS", "content": "amazon web services\u2122\nAmazon Web Services\nAWS", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 185.0, "y": 121.0}, {"x": 949.0, "y": 121.0}, {"x": 949.0, "y": 214.0}, {"x": 185.0, "y": 214.0}]}], "spans": [{"offset": 0, "length": 20}, {"offset": 126, "length": 19}, {"offset": 185, "length": 3}], "confidence": 0.652}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/1_page-0001_jpg.rf.1a35870bb398e64d5aa390b9d2ee2163.json b/Data/train/1_page-0001_jpg.rf.1a35870bb398e64d5aa390b9d2ee2163.json new file mode 100644 index 0000000000000000000000000000000000000000..e4b7fac934297029c239b1f8bfa9afdefcbd7f3d --- /dev/null +++ b/Data/train/1_page-0001_jpg.rf.1a35870bb398e64d5aa390b9d2ee2163.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1240.0, "y": 0.0}, {"x": 1240.0, "y": 1755.0}, {"x": 0.0, "y": 1755.0}]}], "spans": [{"offset": 0, "length": 649}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "123", "po_box": null, "road": "Your Street", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "123 Your Street"}, "content": "123 Your Street", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 111.0, "y": 428.0}, {"x": 259.0, "y": 428.0}, {"x": 259.0, "y": 449.0}, {"x": 111.0, "y": 449.0}]}], "spans": [{"offset": 160, "length": 15}], "confidence": 0.549}, "InvoiceId": {"value_type": "string", "value": "MM/DD/YYYY", "content": "MM/DD/YYYY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 109.0, "y": 768.0}, {"x": 242.0, "y": 768.0}, {"x": 242.0, "y": 790.0}, {"x": 109.0, "y": 790.0}]}], "spans": [{"offset": 236, "length": 10}], "confidence": 0.671}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1024.0, "y": 1447.0}, {"x": 1108.0, "y": 1446.0}, {"x": 1108.0, "y": 1479.0}, {"x": 1025.0, "y": 1480.0}]}], "spans": [{"offset": 606, "length": 5}], "confidence": 0.95}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1060.0, "y": 736.0}, {"x": 1110.0, "y": 735.0}, {"x": 1111.0, "y": 754.0}, {"x": 1060.0, "y": 755.0}]}], "spans": [{"offset": 332, "length": 5}], "confidence": 0.902}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 735.0}, {"x": 504.0, "y": 735.0}, {"x": 504.0, "y": 756.0}, {"x": 358.0, "y": 756.0}]}], "spans": [{"offset": 309, "length": 14}], "confidence": 0.898}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 737.0}, {"x": 975.0, "y": 737.0}, {"x": 975.0, "y": 753.0}, {"x": 967.0, "y": 753.0}]}], "spans": [{"offset": 330, "length": 1}], "confidence": 0.894}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 771.0, "y": 735.0}, {"x": 821.0, "y": 734.0}, {"x": 822.0, "y": 754.0}, {"x": 771.0, "y": 755.0}]}], "spans": [{"offset": 324, "length": 5}], "confidence": 0.902}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 734.0}, {"x": 1111.0, "y": 734.0}, {"x": 1111.0, "y": 756.0}, {"x": 358.0, "y": 756.0}]}], "spans": [{"offset": 309, "length": 28}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1060.0, "y": 789.0}, {"x": 1110.0, "y": 789.0}, {"x": 1111.0, "y": 808.0}, {"x": 1060.0, "y": 808.0}]}], "spans": [{"offset": 361, "length": 5}], "confidence": 0.902}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 789.0}, {"x": 505.0, "y": 789.0}, {"x": 505.0, "y": 810.0}, {"x": 358.0, "y": 810.0}]}], "spans": [{"offset": 338, "length": 14}], "confidence": 0.898}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 966.0, "y": 790.0}, {"x": 974.0, "y": 790.0}, {"x": 973.0, "y": 807.0}, {"x": 965.0, "y": 806.0}]}], "spans": [{"offset": 359, "length": 1}], "confidence": 0.896}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 770.0, "y": 789.0}, {"x": 822.0, "y": 789.0}, {"x": 822.0, "y": 809.0}, {"x": 770.0, "y": 808.0}]}], "spans": [{"offset": 353, "length": 5}], "confidence": 0.902}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 782.0}, {"x": 1111.0, "y": 789.0}, {"x": 1111.0, "y": 817.0}, {"x": 358.0, "y": 810.0}]}], "spans": [{"offset": 338, "length": 28}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1059.0, "y": 843.0}, {"x": 1111.0, "y": 843.0}, {"x": 1111.0, "y": 863.0}, {"x": 1059.0, "y": 863.0}]}], "spans": [{"offset": 390, "length": 5}], "confidence": 0.902}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 843.0}, {"x": 504.0, "y": 841.0}, {"x": 504.0, "y": 864.0}, {"x": 358.0, "y": 866.0}]}], "spans": [{"offset": 367, "length": 14}], "confidence": 0.899}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 844.0}, {"x": 974.0, "y": 844.0}, {"x": 974.0, "y": 861.0}, {"x": 967.0, "y": 861.0}]}], "spans": [{"offset": 388, "length": 1}], "confidence": 0.894}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 770.0, "y": 839.0}, {"x": 824.0, "y": 839.0}, {"x": 824.0, "y": 866.0}, {"x": 770.0, "y": 866.0}]}], "spans": [{"offset": 382, "length": 5}], "confidence": 0.902}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 839.0}, {"x": 1111.0, "y": 839.0}, {"x": 1111.0, "y": 866.0}, {"x": 358.0, "y": 866.0}]}], "spans": [{"offset": 367, "length": 28}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1060.0, "y": 898.0}, {"x": 1112.0, "y": 898.0}, {"x": 1112.0, "y": 918.0}, {"x": 1060.0, "y": 917.0}]}], "spans": [{"offset": 419, "length": 5}], "confidence": 0.903}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 897.0}, {"x": 504.0, "y": 897.0}, {"x": 504.0, "y": 920.0}, {"x": 358.0, "y": 920.0}]}], "spans": [{"offset": 396, "length": 14}], "confidence": 0.898}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 899.0}, {"x": 976.0, "y": 899.0}, {"x": 975.0, "y": 917.0}, {"x": 967.0, "y": 917.0}]}], "spans": [{"offset": 417, "length": 1}], "confidence": 0.895}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 771.0, "y": 898.0}, {"x": 823.0, "y": 897.0}, {"x": 823.0, "y": 918.0}, {"x": 771.0, "y": 919.0}]}], "spans": [{"offset": 411, "length": 5}], "confidence": 0.902}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 897.0}, {"x": 1112.0, "y": 897.0}, {"x": 1112.0, "y": 920.0}, {"x": 358.0, "y": 920.0}]}], "spans": [{"offset": 396, "length": 28}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1059.0, "y": 952.0}, {"x": 1110.0, "y": 952.0}, {"x": 1110.0, "y": 972.0}, {"x": 1059.0, "y": 972.0}]}], "spans": [{"offset": 448, "length": 5}], "confidence": 0.902}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 952.0}, {"x": 504.0, "y": 954.0}, {"x": 504.0, "y": 976.0}, {"x": 358.0, "y": 974.0}]}], "spans": [{"offset": 425, "length": 14}], "confidence": 0.898}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 953.0}, {"x": 976.0, "y": 953.0}, {"x": 975.0, "y": 971.0}, {"x": 966.0, "y": 971.0}]}], "spans": [{"offset": 446, "length": 1}], "confidence": 0.894}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 771.0, "y": 953.0}, {"x": 821.0, "y": 953.0}, {"x": 821.0, "y": 973.0}, {"x": 771.0, "y": 973.0}]}], "spans": [{"offset": 440, "length": 5}], "confidence": 0.902}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 952.0}, {"x": 1110.0, "y": 952.0}, {"x": 1110.0, "y": 975.0}, {"x": 358.0, "y": 975.0}]}], "spans": [{"offset": 425, "length": 28}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1059.0, "y": 1005.0}, {"x": 1109.0, "y": 1005.0}, {"x": 1109.0, "y": 1025.0}, {"x": 1059.0, "y": 1025.0}]}], "spans": [{"offset": 477, "length": 5}], "confidence": 0.903}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 359.0, "y": 1006.0}, {"x": 505.0, "y": 1006.0}, {"x": 505.0, "y": 1028.0}, {"x": 359.0, "y": 1028.0}]}], "spans": [{"offset": 454, "length": 14}], "confidence": 0.899}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 1007.0}, {"x": 975.0, "y": 1007.0}, {"x": 975.0, "y": 1023.0}, {"x": 967.0, "y": 1023.0}]}], "spans": [{"offset": 475, "length": 1}], "confidence": 0.894}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 771.0, "y": 1005.0}, {"x": 823.0, "y": 1005.0}, {"x": 823.0, "y": 1026.0}, {"x": 771.0, "y": 1026.0}]}], "spans": [{"offset": 469, "length": 5}], "confidence": 0.903}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 359.0, "y": 1005.0}, {"x": 1109.0, "y": 1005.0}, {"x": 1109.0, "y": 1028.0}, {"x": 359.0, "y": 1028.0}]}], "spans": [{"offset": 454, "length": 28}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1060.0, "y": 1060.0}, {"x": 1110.0, "y": 1060.0}, {"x": 1111.0, "y": 1079.0}, {"x": 1060.0, "y": 1080.0}]}], "spans": [{"offset": 506, "length": 5}], "confidence": 0.903}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 1059.0}, {"x": 504.0, "y": 1059.0}, {"x": 504.0, "y": 1082.0}, {"x": 358.0, "y": 1082.0}]}], "spans": [{"offset": 483, "length": 14}], "confidence": 0.899}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 1061.0}, {"x": 975.0, "y": 1061.0}, {"x": 975.0, "y": 1078.0}, {"x": 967.0, "y": 1078.0}]}], "spans": [{"offset": 504, "length": 1}], "confidence": 0.894}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 771.0, "y": 1059.0}, {"x": 823.0, "y": 1059.0}, {"x": 823.0, "y": 1080.0}, {"x": 771.0, "y": 1080.0}]}], "spans": [{"offset": 498, "length": 5}], "confidence": 0.902}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 1059.0}, {"x": 1111.0, "y": 1059.0}, {"x": 1111.0, "y": 1082.0}, {"x": 358.0, "y": 1082.0}]}], "spans": [{"offset": 483, "length": 28}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1058.0, "y": 1113.0}, {"x": 1111.0, "y": 1113.0}, {"x": 1111.0, "y": 1134.0}, {"x": 1058.0, "y": 1134.0}]}], "spans": [{"offset": 535, "length": 5}], "confidence": 0.903}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 1114.0}, {"x": 505.0, "y": 1115.0}, {"x": 505.0, "y": 1139.0}, {"x": 358.0, "y": 1138.0}]}], "spans": [{"offset": 512, "length": 14}], "confidence": 0.899}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 967.0, "y": 1114.0}, {"x": 976.0, "y": 1114.0}, {"x": 976.0, "y": 1132.0}, {"x": 967.0, "y": 1132.0}]}], "spans": [{"offset": 533, "length": 1}], "confidence": 0.892}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 770.0, "y": 1114.0}, {"x": 823.0, "y": 1114.0}, {"x": 823.0, "y": 1136.0}, {"x": 770.0, "y": 1135.0}]}], "spans": [{"offset": 527, "length": 5}], "confidence": 0.902}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 358.0, "y": 1106.0}, {"x": 1111.0, "y": 1113.0}, {"x": 1111.0, "y": 1145.0}, {"x": 358.0, "y": 1138.0}]}], "spans": [{"offset": 512, "length": 28}], "confidence": 0.905}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1055.0, "y": 1198.0}, {"x": 1109.0, "y": 1198.0}, {"x": 1109.0, "y": 1224.0}, {"x": 1055.0, "y": 1224.0}]}], "spans": [{"offset": 550, "length": 5}], "confidence": 0.968}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1054.0, "y": 1334.0}, {"x": 1108.0, "y": 1333.0}, {"x": 1109.0, "y": 1358.0}, {"x": 1055.0, "y": 1359.0}]}], "spans": [{"offset": 586, "length": 5}], "confidence": 0.942}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/200_jpg.rf.1d918e164ac997983d5bcca7fe4de777.json b/Data/train/200_jpg.rf.1d918e164ac997983d5bcca7fe4de777.json new file mode 100644 index 0000000000000000000000000000000000000000..4d9890c56360a0e174b17afb71028b07686d8b10 --- /dev/null +++ b/Data/train/200_jpg.rf.1d918e164ac997983d5bcca7fe4de777.json @@ -0,0 +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": 1654}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 424.83, "symbol": "\u20ac"}, "content": "\u20ac424.83", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 509.0, "y": 454.0}, {"x": 554.0, "y": 453.0}, {"x": 554.0, "y": 467.0}, {"x": 510.0, "y": 467.0}]}], "spans": [{"offset": 1039, "length": 7}], "confidence": 0.939}, "BillingAddress": {"value_type": "address", "value": {"house_number": "5", "po_box": null, "road": "Karl-Liebknecht-Str.", "city": "Berlin", "state": null, "postal_code": "10178", "country_region": "Germany", "street_address": "5 Karl-Liebknecht-Str."}, "content": "Karl-Liebknecht-Str. 5\nBerlin, 10178\nGermany", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 175.0}, {"x": 167.0, "y": 175.0}, {"x": 167.0, "y": 205.0}, {"x": 86.0, "y": 205.0}]}], "spans": [{"offset": 131, "length": 44}], "confidence": 0.9}, "BillingAddressRecipient": {"value_type": "string", "value": "Jane Doe\nOpenProject GmbH", "content": "Jane Doe\nOpenProject GmbH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 85.0, "y": 155.0}, {"x": 158.0, "y": 155.0}, {"x": 158.0, "y": 175.0}, {"x": 85.0, "y": 175.0}]}], "spans": [{"offset": 105, "length": 25}], "confidence": 0.787}, "CustomerName": {"value_type": "string", "value": "Jane Doe\nOpenProject GmbH", "content": "Jane Doe\nOpenProject GmbH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 85.0, "y": 155.0}, {"x": 158.0, "y": 155.0}, {"x": 158.0, "y": 175.0}, {"x": 85.0, "y": 175.0}]}], "spans": [{"offset": 105, "length": 25}], "confidence": 0.787}, "CustomerTaxId": {"value_type": "string", "value": "DE211309779", "content": "DE211309779", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 114.0, "y": 206.0}, {"x": 167.0, "y": 205.0}, {"x": 167.0, "y": 216.0}, {"x": 114.0, "y": 216.0}]}], "spans": [{"offset": 184, "length": 11}], "confidence": 0.554}, "InvoiceDate": {"value_type": "date", "value": "2021-09-02", "content": "Sep 02, 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 432.0, "y": 69.0}, {"x": 481.0, "y": 69.0}, {"x": 481.0, "y": 81.0}, {"x": 432.0, "y": 81.0}]}], "spans": [{"offset": 241, "length": 12}], "confidence": 0.932}, "InvoiceId": {"value_type": "string", "value": "OP09202112010", "content": "OP09202112010", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 420.0, "y": 55.0}, {"x": 483.0, "y": 55.0}, {"x": 483.0, "y": 66.0}, {"x": 421.0, "y": 66.0}]}], "spans": [{"offset": 214, "length": 13}], "confidence": 0.949}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 424.83, "symbol": "\u20ac"}, "content": "\u20ac424.83", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 425.0}, {"x": 554.0, "y": 425.0}, {"x": 554.0, "y": 436.0}, {"x": 519.0, "y": 436.0}]}], "spans": [{"offset": 1014, "length": 7}], "confidence": 0.936}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 357.0, "symbol": "\u20ac"}, "content": "\u20ac357.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 272.0}, {"x": 553.0, "y": 272.0}, {"x": 553.0, "y": 282.0}, {"x": 519.0, "y": 282.0}]}], "spans": [{"offset": 502, "length": 7}], "confidence": 0.072}, "Description": {"value_type": "string", "value": "Enterprise Cloud - 1-Year", "content": "Enterprise Cloud - 1-Year", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 271.0}, {"x": 199.0, "y": 271.0}, {"x": 199.0, "y": 283.0}, {"x": 86.0, "y": 283.0}]}], "spans": [{"offset": 469, "length": 25}], "confidence": 0.092}, "TaxRate": {"value_type": "string", "value": "19 %", "content": "19 %", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 481.0, "y": 272.0}, {"x": 502.0, "y": 272.0}, {"x": 502.0, "y": 281.0}, {"x": 481.0, "y": 281.0}]}], "spans": [{"offset": 497, "length": 4}], "confidence": 0.002}, "Unit": {"value_type": "string", "value": "5", "content": "5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 461.0, "y": 272.0}, {"x": 465.0, "y": 272.0}, {"x": 465.0, "y": 281.0}, {"x": 461.0, "y": 281.0}]}], "spans": [{"offset": 495, "length": 1}], "confidence": 0.072}}, "content": "Enterprise Cloud - 1-Year\n5\n19 %\n\u20ac357.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 271.0}, {"x": 553.0, "y": 271.0}, {"x": 553.0, "y": 283.0}, {"x": 86.0, "y": 283.0}]}], "spans": [{"offset": 469, "length": 40}], "confidence": 0.911}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"IBAN": {"value_type": "string", "value": "DE24 4607 0024 0431 5073 01", "content": "DE24 4607 0024 0431 5073 01", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 438.0, "y": 621.0}, {"x": 552.0, "y": 621.0}, {"x": 552.0, "y": 631.0}, {"x": 438.0, "y": 631.0}]}], "spans": [{"offset": 1599, "length": 27}], "confidence": 0.97}, "SWIFT": {"value_type": "string", "value": "DEUTDEDB460", "content": "DEUTDEDB460", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 482.0, "y": 632.0}, {"x": 538.0, "y": 631.0}, {"x": 539.0, "y": 639.0}, {"x": 482.0, "y": 639.0}]}], "spans": [{"offset": 1643, "length": 11}], "confidence": 0.972}}, "content": null, "bounding_regions": [], "spans": [], "confidence": 0.995}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "ServiceEndDate": {"value_type": "date", "value": "2022-09-01", "content": "Sep 01, 2022", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 496.0, "y": 165.0}, {"x": 545.0, "y": 165.0}, {"x": 545.0, "y": 177.0}, {"x": 496.0, "y": 177.0}]}], "spans": [{"offset": 353, "length": 12}], "confidence": 0.802}, "ServiceStartDate": {"value_type": "date", "value": "2021-09-02", "content": "Sep 02, 2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 435.0, "y": 165.0}, {"x": 482.0, "y": 165.0}, {"x": 482.0, "y": 177.0}, {"x": 435.0, "y": 177.0}]}], "spans": [{"offset": 337, "length": 12}], "confidence": 0.829}, "SubTotal": {"value_type": "currency", "value": {"amount": 357.0, "symbol": "\u20ac"}, "content": "\u20ac357.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 519.0, "y": 376.0}, {"x": 554.0, "y": 376.0}, {"x": 554.0, "y": 387.0}, {"x": 519.0, "y": 388.0}]}], "spans": [{"offset": 982, "length": 7}], "confidence": 0.943}, "TotalTax": {"value_type": "currency", "value": {"amount": 67.83, "symbol": "\u20ac"}, "content": "\u20ac67.83", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 524.0, "y": 396.0}, {"x": 553.0, "y": 396.0}, {"x": 553.0, "y": 407.0}, {"x": 525.0, "y": 406.0}]}], "spans": [{"offset": 1001, "length": 6}], "confidence": 0.946}, "VendorAddress": {"value_type": "address", "value": {"house_number": "5", "po_box": null, "road": "Karl-Liebknecht-Str.", "city": "Berlin", "state": null, "postal_code": "10178", "country_region": "Germany", "street_address": "5 Karl-Liebknecht-Str."}, "content": "Karl-Liebknecht-Str. 5 10178 Berlin Germany", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 79.0}, {"x": 167.0, "y": 79.0}, {"x": 167.0, "y": 111.0}, {"x": 86.0, "y": 111.0}]}], "spans": [{"offset": 32, "length": 43}], "confidence": 0.893}, "VendorAddressRecipient": {"value_type": "string", "value": "OpenProject GmbH", "content": "OpenProject GmbH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 86.0, "y": 69.0}, {"x": 158.0, "y": 69.0}, {"x": 158.0, "y": 80.0}, {"x": 86.0, "y": 80.0}]}], "spans": [{"offset": 15, "length": 16}], "confidence": 0.932}, "VendorName": {"value_type": "string", "value": "GP OpenProject", "content": "GP OpenProject", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 87.0, "y": 20.0}, {"x": 242.0, "y": 23.0}, {"x": 241.0, "y": 59.0}, {"x": 86.0, "y": 56.0}]}], "spans": [{"offset": 0, "length": 14}], "confidence": 0.803}, "VendorTaxId": {"value_type": "string", "value": "DE 211309779", "content": "DE 211309779", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 256.0, "y": 632.0}, {"x": 309.0, "y": 632.0}, {"x": 309.0, "y": 639.0}, {"x": 256.0, "y": 639.0}]}], "spans": [{"offset": 1545, "length": 12}], "confidence": 0.75}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/20180706_ALTASSIAN_InvoiceReceipt-58266211-0-JIRA-CRM-Purchased-1_jpg.rf.4c41fec2e3cbe2aca3f88dc9e9206eca.json b/Data/train/20180706_ALTASSIAN_InvoiceReceipt-58266211-0-JIRA-CRM-Purchased-1_jpg.rf.4c41fec2e3cbe2aca3f88dc9e9206eca.json new file mode 100644 index 0000000000000000000000000000000000000000..026bc9e3cd24a03aecd0cda9767646ad7bfcfa6d --- /dev/null +++ b/Data/train/20180706_ALTASSIAN_InvoiceReceipt-58266211-0-JIRA-CRM-Purchased-1_jpg.rf.4c41fec2e3cbe2aca3f88dc9e9206eca.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1447.0, "y": 0.0}, {"x": 1447.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 928}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 838.0, "y": 1382.0}, {"x": 898.0, "y": 1382.0}, {"x": 898.0, "y": 1407.0}, {"x": 838.0, "y": 1407.0}]}], "spans": [{"offset": 544, "length": 5}], "confidence": 0.812}, "BillingAddressRecipient": {"value_type": "string", "value": "Softverve Technologies Pvt Ltd", "content": "Softverve Technologies Pvt Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 769.0, "y": 436.0}, {"x": 1106.0, "y": 437.0}, {"x": 1106.0, "y": 466.0}, {"x": 769.0, "y": 465.0}]}], "spans": [{"offset": 258, "length": 30}], "confidence": 0.593}, "CustomerAddress": {"value_type": "address", "value": {"house_number": "323/1", "po_box": null, "road": "Manakunnel Joy Villa", "city": "kollam", "state": "KL", "postal_code": "691522", "country_region": "India", "street_address": "323/1 Manakunnel Joy Villa"}, "content": "323/1, Manakunnel Joy Villa 12 Muri Junction, Via Pattazhy kollam KL 691522 India", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 82.0, "y": 407.0}, {"x": 415.0, "y": 407.0}, {"x": 415.0, "y": 518.0}, {"x": 82.0, "y": 518.0}]}], "spans": [{"offset": 166, "length": 81}], "confidence": 0.727}, "CustomerAddressRecipient": {"value_type": "string", "value": "Softverve Technologies Pvt Ltd", "content": "Softverve Technologies Pvt Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 84.0, "y": 369.0}, {"x": 448.0, "y": 371.0}, {"x": 448.0, "y": 402.0}, {"x": 84.0, "y": 401.0}]}], "spans": [{"offset": 118, "length": 30}], "confidence": 0.894}, "CustomerName": {"value_type": "string", "value": "Softverve Technologies Pvt Ltd", "content": "Softverve Technologies Pvt Ltd", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 84.0, "y": 369.0}, {"x": 448.0, "y": 371.0}, {"x": 448.0, "y": 402.0}, {"x": 84.0, "y": 401.0}]}], "spans": [{"offset": 118, "length": 30}], "confidence": 0.894}, "InvoiceDate": {"value_type": "date", "value": "2018-07-06", "content": "06 Jul 2018", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 918.0, "y": 299.0}, {"x": 1047.0, "y": 297.0}, {"x": 1047.0, "y": 327.0}, {"x": 918.0, "y": 328.0}]}], "spans": [{"offset": 106, "length": 11}], "confidence": 0.928}, "InvoiceId": {"value_type": "string", "value": "AT-58266211", "content": "AT-58266211", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 975.0, "y": 225.0}, {"x": 1123.0, "y": 225.0}, {"x": 1123.0, "y": 254.0}, {"x": 975.0, "y": 254.0}]}], "spans": [{"offset": 81, "length": 11}], "confidence": 0.982}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 11.8, "symbol": "$"}, "content": "$11.80", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 822.0, "y": 1285.0}, {"x": 900.0, "y": 1285.0}, {"x": 900.0, "y": 1312.0}, {"x": 823.0, "y": 1311.0}]}], "spans": [{"offset": 495, "length": 6}], "confidence": 0.862}, "VendorAddress": {"value_type": "address", "value": {"house_number": "341", "po_box": null, "road": "George St", "city": null, "state": "NSW", "postal_code": "2000", "country_region": "Australia", "street_address": "341 George St"}, "content": "Level 6, 341 George St, Sydney NSW 2000, Australia", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 201.0, "y": 1819.0}, {"x": 665.0, "y": 1819.0}, {"x": 665.0, "y": 1845.0}, {"x": 201.0, "y": 1845.0}]}], "spans": [{"offset": 786, "length": 50}], "confidence": 0.877}, "VendorAddressRecipient": {"value_type": "string", "value": "Atlassian Pty Ltd,", "content": "Atlassian Pty Ltd,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 46.0, "y": 1820.0}, {"x": 196.0, "y": 1820.0}, {"x": 196.0, "y": 1844.0}, {"x": 46.0, "y": 1844.0}]}], "spans": [{"offset": 767, "length": 18}], "confidence": 0.927}, "VendorName": {"value_type": "string", "value": "ATLASSIAN", "content": "ATLASSIAN", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 135.0, "y": 89.0}, {"x": 519.0, "y": 90.0}, {"x": 521.0, "y": 150.0}, {"x": 133.0, "y": 150.0}]}], "spans": [{"offset": 2, "length": 9}], "confidence": 0.982}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/201_jpg.rf.29888cc756bb3ee69f63a1a7f67436b7.json b/Data/train/201_jpg.rf.29888cc756bb3ee69f63a1a7f67436b7.json new file mode 100644 index 0000000000000000000000000000000000000000..d2574f19b79240a38a4908862fcf4e069018b00f --- /dev/null +++ b/Data/train/201_jpg.rf.29888cc756bb3ee69f63a1a7f67436b7.json @@ -0,0 +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": 859}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 170.78, "symbol": "$"}, "content": "$170.78", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 518.0, "y": 595.0}, {"x": 548.0, "y": 594.0}, {"x": 548.0, "y": 604.0}, {"x": 518.0, "y": 604.0}]}], "spans": [{"offset": 822, "length": 7}], "confidence": 0.957}, "BillingAddress": {"value_type": "address", "value": {"house_number": "1234", "po_box": null, "road": "Main Street", "city": "Ashand", "state": "KY", "postal_code": "41101", "country_region": null, "street_address": "1234 Main Street"}, "content": "1234 Main Street\nAshand, KY 41101", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 150.0}, {"x": 176.0, "y": 150.0}, {"x": 176.0, "y": 171.0}, {"x": 103.0, "y": 171.0}]}], "spans": [{"offset": 91, "length": 33}], "confidence": 0.936}, "BillingAddressRecipient": {"value_type": "string", "value": "Test Customer", "content": "Test Customer", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 138.0}, {"x": 160.0, "y": 140.0}, {"x": 160.0, "y": 151.0}, {"x": 104.0, "y": 149.0}]}], "spans": [{"offset": 77, "length": 13}], "confidence": 0.943}, "CustomerId": {"value_type": "string", "value": "C1006", "content": "C1006", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 227.0}, {"x": 163.0, "y": 227.0}, {"x": 163.0, "y": 237.0}, {"x": 138.0, "y": 237.0}]}], "spans": [{"offset": 153, "length": 5}], "confidence": 0.957}, "CustomerName": {"value_type": "string", "value": "Test Customer", "content": "Test Customer", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 138.0}, {"x": 160.0, "y": 140.0}, {"x": 160.0, "y": 151.0}, {"x": 104.0, "y": 149.0}]}], "spans": [{"offset": 77, "length": 13}], "confidence": 0.943}, "DueDate": {"value_type": "date", "value": "2008-08-31", "content": "08-31-2008", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 244.0, "y": 227.0}, {"x": 286.0, "y": 227.0}, {"x": 287.0, "y": 237.0}, {"x": 245.0, "y": 237.0}]}], "spans": [{"offset": 368, "length": 10}], "confidence": 0.957}, "InvoiceDate": {"value_type": "date", "value": "2008-08-14", "content": "08-14-2008", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 245.0, "y": 216.0}, {"x": 287.0, "y": 216.0}, {"x": 288.0, "y": 227.0}, {"x": 245.0, "y": 227.0}]}], "spans": [{"offset": 350, "length": 10}], "confidence": 0.957}, "InvoiceId": {"value_type": "string", "value": "11083", "content": "11083", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 136.0, "y": 216.0}, {"x": 158.0, "y": 216.0}, {"x": 158.0, "y": 226.0}, {"x": 137.0, "y": 227.0}]}], "spans": [{"offset": 137, "length": 5}], "confidence": 0.958}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 170.78, "symbol": "$"}, "content": "$170.78", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 565.0}, {"x": 547.0, "y": 565.0}, {"x": 548.0, "y": 575.0}, {"x": 518.0, "y": 574.0}]}], "spans": [{"offset": 783, "length": 7}], "confidence": 0.957}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 528.0, "y": 265.0}, {"x": 555.0, "y": 265.0}, {"x": 554.0, "y": 276.0}, {"x": 528.0, "y": 275.0}]}], "spans": [{"offset": 523, "length": 6}], "confidence": 0.003}, "Description": {"value_type": "string", "value": "Test Import Name - Description Goes Here", "content": "Test Import Name - Description Goes Here", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 147.0, "y": 265.0}, {"x": 305.0, "y": 265.0}, {"x": 305.0, "y": 277.0}, {"x": 147.0, "y": 277.0}]}], "spans": [{"offset": 473, "length": 40}], "confidence": 0.003}, "ProductCode": {"value_type": "string", "value": "SKU1222", "content": "SKU1222", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 266.0}, {"x": 135.0, "y": 265.0}, {"x": 135.0, "y": 277.0}, {"x": 98.0, "y": 276.0}]}], "spans": [{"offset": 465, "length": 7}], "confidence": 0.003}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 396.0, "y": 266.0}, {"x": 401.0, "y": 266.0}, {"x": 401.0, "y": 276.0}, {"x": 396.0, "y": 276.0}]}], "spans": [{"offset": 514, "length": 1}], "confidence": 0.003}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 265.0}, {"x": 479.0, "y": 265.0}, {"x": 479.0, "y": 276.0}, {"x": 454.0, "y": 275.0}]}], "spans": [{"offset": 516, "length": 6}], "confidence": 0.003}}, "content": "SKU1222\nTest Import Name - Description Goes Here\n1\n$10.00\n$10.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 98.0, "y": 265.0}, {"x": 555.0, "y": 265.0}, {"x": 555.0, "y": 277.0}, {"x": 98.0, "y": 277.0}]}], "spans": [{"offset": 465, "length": 64}], "confidence": 0.021}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 150.0, "symbol": "$"}, "content": "$150.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 523.0, "y": 283.0}, {"x": 553.0, "y": 283.0}, {"x": 554.0, "y": 292.0}, {"x": 523.0, "y": 292.0}]}], "spans": [{"offset": 659, "length": 7}], "confidence": 0.003}, "Description": {"value_type": "string", "value": "Labor - Example tabor item. Quantity is number of hours\nspert. price is hourly rate Quantity accepts decimal values.", "content": "Labor - Example tabor item. Quantity is number of hours spert. price is hourly rate Quantity accepts decimal values.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 147.0, "y": 282.0}, {"x": 368.0, "y": 282.0}, {"x": 368.0, "y": 304.0}, {"x": 147.0, "y": 304.0}]}], "spans": [{"offset": 530, "length": 116}], "confidence": 0.083}, "Quantity": {"value_type": "float", "value": 1.5, "content": "1.5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 393.0, "y": 282.0}, {"x": 404.0, "y": 282.0}, {"x": 404.0, "y": 291.0}, {"x": 394.0, "y": 291.0}]}], "spans": [{"offset": 647, "length": 3}], "confidence": 0.003}, "UnitPrice": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "$"}, "content": "$100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 449.0, "y": 283.0}, {"x": 479.0, "y": 283.0}, {"x": 479.0, "y": 292.0}, {"x": 449.0, "y": 292.0}]}], "spans": [{"offset": 651, "length": 7}], "confidence": 0.003}}, "content": "Labor - Example tabor item. Quantity is number of hours spert. price is hourly rate Quantity accepts decimal values.\n1.5\n$100.00\n$150.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 147.0, "y": 282.0}, {"x": 554.0, "y": 282.0}, {"x": 554.0, "y": 304.0}, {"x": 147.0, "y": 304.0}]}], "spans": [{"offset": 530, "length": 136}], "confidence": 0.017}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "None", "content": "None", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 336.0, "y": 227.0}, {"x": 356.0, "y": 227.0}, {"x": 356.0, "y": 237.0}, {"x": 336.0, "y": 237.0}]}], "spans": [{"offset": 385, "length": 4}], "confidence": 0.957}, "PurchaseOrder": {"value_type": "string", "value": "PO1234", "content": "PO1234", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 439.0, "y": 216.0}, {"x": 471.0, "y": 216.0}, {"x": 471.0, "y": 227.0}, {"x": 439.0, "y": 227.0}]}], "spans": [{"offset": 397, "length": 6}], "confidence": 0.954}, "ShippingAddress": {"value_type": "address", "value": {"house_number": "1234", "po_box": null, "road": "Main Street", "city": "Ashland", "state": null, "postal_code": "41101", "country_region": null, "street_address": "1234 Main Street"}, "content": "1234 Main Street\nAshland, 41101", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 150.0}, {"x": 398.0, "y": 150.0}, {"x": 398.0, "y": 171.0}, {"x": 332.0, "y": 171.0}]}], "spans": [{"offset": 313, "length": 31}], "confidence": 0.933}, "ShippingAddressRecipient": {"value_type": "string", "value": "Test Customer", "content": "Test Customer", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 333.0, "y": 140.0}, {"x": 387.0, "y": 140.0}, {"x": 387.0, "y": 150.0}, {"x": 333.0, "y": 150.0}]}], "spans": [{"offset": 299, "length": 13}], "confidence": 0.943}, "SubTotal": {"value_type": "currency", "value": {"amount": 160.0, "symbol": "$"}, "content": "$160.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 517.0, "y": 551.0}, {"x": 547.0, "y": 551.0}, {"x": 547.0, "y": 561.0}, {"x": 518.0, "y": 560.0}]}], "spans": [{"offset": 769, "length": 7}], "confidence": 0.956}, "VendorAddress": {"value_type": "address", "value": {"house_number": "1234", "po_box": null, "road": "Main Street", "city": "Ashland", "state": "KY", "postal_code": "41102", "country_region": null, "street_address": "1234 Main Street"}, "content": "1234 Main Street\nAshland, KY 41102", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 103.0, "y": 66.0}, {"x": 183.0, "y": 66.0}, {"x": 183.0, "y": 89.0}, {"x": 103.0, "y": 89.0}]}], "spans": [{"offset": 34, "length": 34}], "confidence": 0.919}, "VendorAddressRecipient": {"value_type": "string", "value": "Demo Company", "content": "Demo Company", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 104.0, "y": 55.0}, {"x": 173.0, "y": 56.0}, {"x": 173.0, "y": 68.0}, {"x": 104.0, "y": 67.0}]}], "spans": [{"offset": 21, "length": 12}], "confidence": 0.937}, "VendorName": {"value_type": "string", "value": "software", "content": "software", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 421.0, "y": 38.0}, {"x": 516.0, "y": 38.0}, {"x": 516.0, "y": 62.0}, {"x": 421.0, "y": 62.0}]}], "spans": [{"offset": 159, "length": 8}], "confidence": 0.952}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/2020-03-06-XSAYARSA-VS-VS-Invoice-162427-1_jpg.rf.366f846bf97a504fccac2e3585a838e2.json b/Data/train/2020-03-06-XSAYARSA-VS-VS-Invoice-162427-1_jpg.rf.366f846bf97a504fccac2e3585a838e2.json new file mode 100644 index 0000000000000000000000000000000000000000..c7be2d38aa1a40de8c9ccf18906f8cfb81e62609 --- /dev/null +++ b/Data/train/2020-03-06-XSAYARSA-VS-VS-Invoice-162427-1_jpg.rf.366f846bf97a504fccac2e3585a838e2.json @@ -0,0 +1 @@ +{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 1447.0, "y": 0.0}, {"x": 1447.0, "y": 2048.0}, {"x": 0.0, "y": 2048.0}]}], "spans": [{"offset": 0, "length": 1183}], "fields": {"CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": "Vadodara", "state": null, "postal_code": null, "country_region": null, "street_address": ""}, "content": "Vadodara, Gujarat, Vadodara", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 153.0, "y": 447.0}, {"x": 298.0, "y": 447.0}, {"x": 298.0, "y": 491.0}, {"x": 153.0, "y": 491.0}]}], "spans": [{"offset": 375, "length": 27}], "confidence": 0.898}, "CustomerAddressRecipient": {"value_type": "string", "value": "XSAYARSA VENTURES PRIVATE LIMITED", "content": "XSAYARSA VENTURES PRIVATE LIMITED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 153.0, "y": 421.0}, {"x": 473.0, "y": 421.0}, {"x": 473.0, "y": 442.0}, {"x": 153.0, "y": 442.0}]}], "spans": [{"offset": 341, "length": 33}], "confidence": 0.802}, "CustomerName": {"value_type": "string", "value": "XSAYARSA VENTURES PRIVATE LIMITED", "content": "XSAYARSA VENTURES PRIVATE LIMITED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 153.0, "y": 421.0}, {"x": 473.0, "y": 421.0}, {"x": 473.0, "y": 442.0}, {"x": 153.0, "y": 442.0}]}], "spans": [{"offset": 341, "length": 33}], "confidence": 0.802}, "CustomerTaxId": {"value_type": "string", "value": "24AAACX2473P1ZX", "content": "24AAACX2473P1ZX", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1150.0, "y": 459.0}, {"x": 1307.0, "y": 459.0}, {"x": 1307.0, "y": 478.0}, {"x": 1150.0, "y": 479.0}]}], "spans": [{"offset": 466, "length": 15}], "confidence": 0.846}, "InvoiceDate": {"value_type": "date", "value": "2020-03-06", "content": "06, March 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1185.0, "y": 291.0}, {"x": 1306.0, "y": 291.0}, {"x": 1306.0, "y": 311.0}, {"x": 1185.0, "y": 311.0}]}], "spans": [{"offset": 225, "length": 14}], "confidence": 0.926}, "InvoiceId": {"value_type": "string", "value": "VS/20-21/162427", "content": "VS/20-21/162427", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1168.0, "y": 223.0}, {"x": 1308.0, "y": 222.0}, {"x": 1308.0, "y": 242.0}, {"x": 1168.0, "y": 242.0}]}], "spans": [{"offset": 196, "length": 15}], "confidence": 0.973}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 22140.0, "symbol": "\u20b9"}, "content": "\u20b922,140", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1213.0, "y": 1475.0}, {"x": 1297.0, "y": 1475.0}, {"x": 1297.0, "y": 1499.0}, {"x": 1213.0, "y": 1498.0}]}], "spans": [{"offset": 1022, "length": 7}], "confidence": 0.971}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 5000.0, "symbol": "\u20b9"}, "content": "\u20b95,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1245.0, "y": 681.0}, {"x": 1298.0, "y": 680.0}, {"x": 1298.0, "y": 698.0}, {"x": 1245.0, "y": 697.0}]}], "spans": [{"offset": 609, "length": 6}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "Professional Fees", "content": "Professional Fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 678.0}, {"x": 302.0, "y": 679.0}, {"x": 302.0, "y": 699.0}, {"x": 159.0, "y": 698.0}]}], "spans": [{"offset": 582, "length": 17}], "confidence": 0.905}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 707.0, "y": 679.0}, {"x": 714.0, "y": 679.0}, {"x": 715.0, "y": 696.0}, {"x": 708.0, "y": 696.0}]}], "spans": [{"offset": 600, "length": 1}], "confidence": 0.905}, "UnitPrice": {"value_type": "currency", "value": {"amount": 5000.0, "symbol": "\u20b9"}, "content": "\u20b95,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 950.0, "y": 680.0}, {"x": 1004.0, "y": 680.0}, {"x": 1004.0, "y": 698.0}, {"x": 950.0, "y": 697.0}]}], "spans": [{"offset": 602, "length": 6}], "confidence": 0.905}}, "content": "Professional Fees\n1\n\u20b95,000\n\u20b95,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 679.0}, {"x": 1298.0, "y": 679.0}, {"x": 1298.0, "y": 699.0}, {"x": 159.0, "y": 699.0}]}], "spans": [{"offset": 582, "length": 33}], "confidence": 0.898}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 900.0, "symbol": "\u20b9"}, "content": "\u20b9900", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1258.0, "y": 730.0}, {"x": 1297.0, "y": 731.0}, {"x": 1297.0, "y": 748.0}, {"x": 1257.0, "y": 747.0}]}], "spans": [{"offset": 627, "length": 4}], "confidence": 0.741}, "Description": {"value_type": "string", "value": "IGST (18%)", "content": "IGST (18%)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 729.0}, {"x": 249.0, "y": 730.0}, {"x": 249.0, "y": 752.0}, {"x": 159.0, "y": 751.0}]}], "spans": [{"offset": 616, "length": 10}], "confidence": 0.222}}, "content": "IGST (18%)\n\u20b9900", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 718.0}, {"x": 1297.0, "y": 730.0}, {"x": 1297.0, "y": 763.0}, {"x": 159.0, "y": 751.0}]}], "spans": [{"offset": 616, "length": 15}], "confidence": 0.635}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 6000.0, "symbol": "\u20b9"}, "content": "\u20b96,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1246.0, "y": 976.0}, {"x": 1299.0, "y": 976.0}, {"x": 1299.0, "y": 994.0}, {"x": 1246.0, "y": 992.0}]}], "spans": [{"offset": 790, "length": 6}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "Professional Fees", "content": "Professional Fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 975.0}, {"x": 301.0, "y": 975.0}, {"x": 301.0, "y": 994.0}, {"x": 160.0, "y": 994.0}]}], "spans": [{"offset": 763, "length": 17}], "confidence": 0.905}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 709.0, "y": 975.0}, {"x": 717.0, "y": 975.0}, {"x": 717.0, "y": 991.0}, {"x": 709.0, "y": 991.0}]}], "spans": [{"offset": 781, "length": 1}], "confidence": 0.905}, "UnitPrice": {"value_type": "currency", "value": {"amount": 6000.0, "symbol": "\u20b9"}, "content": "\u20b96,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 950.0, "y": 976.0}, {"x": 1004.0, "y": 976.0}, {"x": 1004.0, "y": 995.0}, {"x": 950.0, "y": 994.0}]}], "spans": [{"offset": 783, "length": 6}], "confidence": 0.905}}, "content": "Professional Fees\n1\n\u20b96,000\n\u20b96,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 975.0}, {"x": 1299.0, "y": 975.0}, {"x": 1299.0, "y": 995.0}, {"x": 160.0, "y": 995.0}]}], "spans": [{"offset": 763, "length": 33}], "confidence": 0.898}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 900.0, "symbol": "\u20b9"}, "content": "\u20b9900", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1258.0, "y": 1026.0}, {"x": 1299.0, "y": 1026.0}, {"x": 1298.0, "y": 1043.0}, {"x": 1258.0, "y": 1042.0}]}], "spans": [{"offset": 815, "length": 4}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "Govt. Fees", "content": "Govt. Fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 1025.0}, {"x": 244.0, "y": 1026.0}, {"x": 244.0, "y": 1045.0}, {"x": 160.0, "y": 1044.0}]}], "spans": [{"offset": 797, "length": 10}], "confidence": 0.905}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 709.0, "y": 1026.0}, {"x": 716.0, "y": 1026.0}, {"x": 716.0, "y": 1042.0}, {"x": 709.0, "y": 1042.0}]}], "spans": [{"offset": 808, "length": 1}], "confidence": 0.905}, "UnitPrice": {"value_type": "currency", "value": {"amount": 900.0, "symbol": "\u20b9"}, "content": "\u20b9900", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 963.0, "y": 1026.0}, {"x": 1003.0, "y": 1026.0}, {"x": 1002.0, "y": 1043.0}, {"x": 963.0, "y": 1042.0}]}], "spans": [{"offset": 810, "length": 4}], "confidence": 0.905}}, "content": "Govt. Fees\n1\n\u20b9900\n\u20b9900", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 1012.0}, {"x": 1299.0, "y": 1026.0}, {"x": 1299.0, "y": 1058.0}, {"x": 160.0, "y": 1044.0}]}], "spans": [{"offset": 797, "length": 22}], "confidence": 0.898}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1080.0, "symbol": "\u20b9"}, "content": "\u20b91,080", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1245.0, "y": 1078.0}, {"x": 1298.0, "y": 1077.0}, {"x": 1298.0, "y": 1095.0}, {"x": 1246.0, "y": 1094.0}]}], "spans": [{"offset": 831, "length": 6}], "confidence": 0.742}, "Description": {"value_type": "string", "value": "IGST (18%)", "content": "IGST (18%)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 1075.0}, {"x": 249.0, "y": 1075.0}, {"x": 249.0, "y": 1098.0}, {"x": 160.0, "y": 1098.0}]}], "spans": [{"offset": 820, "length": 10}], "confidence": 0.194}}, "content": "IGST (18%)\n\u20b91,080", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 1075.0}, {"x": 1298.0, "y": 1075.0}, {"x": 1298.0, "y": 1098.0}, {"x": 160.0, "y": 1098.0}]}], "spans": [{"offset": 820, "length": 17}], "confidence": 0.634}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 7000.0, "symbol": "\u20b9"}, "content": "\u20b97,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1244.0, "y": 1322.0}, {"x": 1297.0, "y": 1321.0}, {"x": 1297.0, "y": 1339.0}, {"x": 1244.0, "y": 1338.0}]}], "spans": [{"offset": 972, "length": 6}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "Professional Fees", "content": "Professional Fees", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 1320.0}, {"x": 301.0, "y": 1321.0}, {"x": 301.0, "y": 1340.0}, {"x": 160.0, "y": 1339.0}]}], "spans": [{"offset": 945, "length": 17}], "confidence": 0.905}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 708.0, "y": 1320.0}, {"x": 716.0, "y": 1320.0}, {"x": 715.0, "y": 1337.0}, {"x": 707.0, "y": 1336.0}]}], "spans": [{"offset": 963, "length": 1}], "confidence": 0.905}, "UnitPrice": {"value_type": "currency", "value": {"amount": 7000.0, "symbol": "\u20b9"}, "content": "\u20b97,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 950.0, "y": 1321.0}, {"x": 1003.0, "y": 1320.0}, {"x": 1003.0, "y": 1339.0}, {"x": 950.0, "y": 1338.0}]}], "spans": [{"offset": 965, "length": 6}], "confidence": 0.905}}, "content": "Professional Fees\n1\n\u20b97,000\n\u20b97,000", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 1320.0}, {"x": 1297.0, "y": 1320.0}, {"x": 1297.0, "y": 1340.0}, {"x": 160.0, "y": 1340.0}]}], "spans": [{"offset": 945, "length": 33}], "confidence": 0.898}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1260.0, "symbol": "\u20b9"}, "content": "\u20b91,260", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1244.0, "y": 1373.0}, {"x": 1298.0, "y": 1373.0}, {"x": 1298.0, "y": 1390.0}, {"x": 1244.0, "y": 1389.0}]}], "spans": [{"offset": 990, "length": 6}], "confidence": 0.747}, "Description": {"value_type": "string", "value": "IGST (18%)", "content": "IGST (18%)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 1369.0}, {"x": 248.0, "y": 1371.0}, {"x": 248.0, "y": 1393.0}, {"x": 159.0, "y": 1391.0}]}], "spans": [{"offset": 979, "length": 10}], "confidence": 0.211}}, "content": "IGST (18%)\n\u20b91,260", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 1362.0}, {"x": 1298.0, "y": 1373.0}, {"x": 1298.0, "y": 1403.0}, {"x": 159.0, "y": 1392.0}]}], "spans": [{"offset": 979, "length": 17}], "confidence": 0.573}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "TaxDetails": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 900.0, "symbol": "\u20b9"}, "content": "\u20b9900", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1258.0, "y": 730.0}, {"x": 1297.0, "y": 731.0}, {"x": 1297.0, "y": 748.0}, {"x": 1257.0, "y": 747.0}]}], "spans": [{"offset": 627, "length": 4}], "confidence": 0.758}, "Rate": {"value_type": "string", "value": "(18%)", "content": "(18%)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 202.0, "y": 730.0}, {"x": 249.0, "y": 730.0}, {"x": 249.0, "y": 752.0}, {"x": 202.0, "y": 751.0}]}], "spans": [{"offset": 621, "length": 5}], "confidence": 0.893}}, "content": "IGST (18%)\n\u20b9900", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 718.0}, {"x": 1297.0, "y": 730.0}, {"x": 1297.0, "y": 763.0}, {"x": 159.0, "y": 751.0}]}], "spans": [{"offset": 616, "length": 15}], "confidence": 0.8}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1080.0, "symbol": "\u20b9"}, "content": "\u20b91,080", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1245.0, "y": 1078.0}, {"x": 1298.0, "y": 1077.0}, {"x": 1298.0, "y": 1095.0}, {"x": 1246.0, "y": 1094.0}]}], "spans": [{"offset": 831, "length": 6}], "confidence": 0.88}, "Rate": {"value_type": "string", "value": "(18%)", "content": "(18%)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 201.0, "y": 1075.0}, {"x": 249.0, "y": 1075.0}, {"x": 249.0, "y": 1098.0}, {"x": 201.0, "y": 1098.0}]}], "spans": [{"offset": 825, "length": 5}], "confidence": 0.892}}, "content": "IGST (18%)\n\u20b91,080", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 160.0, "y": 1075.0}, {"x": 1298.0, "y": 1075.0}, {"x": 1298.0, "y": 1098.0}, {"x": 160.0, "y": 1098.0}]}], "spans": [{"offset": 820, "length": 17}], "confidence": 0.887}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 1260.0, "symbol": "\u20b9"}, "content": "\u20b91,260", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 1244.0, "y": 1373.0}, {"x": 1298.0, "y": 1373.0}, {"x": 1298.0, "y": 1390.0}, {"x": 1244.0, "y": 1389.0}]}], "spans": [{"offset": 990, "length": 6}], "confidence": 0.893}, "Rate": {"value_type": "string", "value": "(18%)", "content": "(18%)", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 201.0, "y": 1370.0}, {"x": 248.0, "y": 1371.0}, {"x": 248.0, "y": 1393.0}, {"x": 201.0, "y": 1392.0}]}], "spans": [{"offset": 984, "length": 5}], "confidence": 0.894}}, "content": "IGST (18%)\n\u20b91,260", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 1362.0}, {"x": 1298.0, "y": 1373.0}, {"x": 1298.0, "y": 1403.0}, {"x": 159.0, "y": 1392.0}]}], "spans": [{"offset": 979, "length": 17}], "confidence": 0.887}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": "81B", "po_box": null, "road": "2nd Main road, Block A", "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": "81B 2nd Main road, Block A"}, "content": "Prince Info Park, 81B, 2nd Main road, Block A, 5th Floor, Ambattur Industrial Estate, Ambattur, Chennai - 600 058.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 208.0}, {"x": 591.0, "y": 208.0}, {"x": 591.0, "y": 255.0}, {"x": 152.0, "y": 255.0}]}], "spans": [{"offset": 69, "length": 114}], "confidence": 0.789}, "VendorAddressRecipient": {"value_type": "string", "value": "UBER9 BUSINESS PROCESS SERVICES PRIVATE LIMITED", "content": "UBER9 BUSINESS PROCESS SERVICES PRIVATE LIMITED", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 151.0, "y": 182.0}, {"x": 596.0, "y": 182.0}, {"x": 596.0, "y": 205.0}, {"x": 151.0, "y": 205.0}]}], "spans": [{"offset": 21, "length": 47}], "confidence": 0.893}, "VendorName": {"value_type": "string", "value": "VAKIL SEARCH", "content": "VAKIL SEARCH", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 159.0, "y": 122.0}, {"x": 341.0, "y": 123.0}, {"x": 341.0, "y": 149.0}, {"x": 159.0, "y": 148.0}]}], "spans": [{"offset": 0, "length": 12}], "confidence": 0.832}, "VendorTaxId": {"value_type": "string", "value": "33AABCU7650C1ZM,", "content": "33AABCU7650C1ZM,", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 230.0, "y": 325.0}, {"x": 396.0, "y": 325.0}, {"x": 396.0, "y": 346.0}, {"x": 230.0, "y": 346.0}]}], "spans": [{"offset": 295, "length": 16}], "confidence": 0.677}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/202_jpg.rf.cb7fab045a4505754428e358c9dc2fb6.json b/Data/train/202_jpg.rf.cb7fab045a4505754428e358c9dc2fb6.json new file mode 100644 index 0000000000000000000000000000000000000000..dee8f01c0f4bcd97580ff21cdbaec643e98a6635 --- /dev/null +++ b/Data/train/202_jpg.rf.cb7fab045a4505754428e358c9dc2fb6.json @@ -0,0 +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": 1013}], "fields": {"BillingAddress": {"value_type": "address", "value": {"house_number": "29", "po_box": null, "road": "Brooklyn Avenue\n29 Brooklyn Avenue\nNY, US.", "city": null, "state": "NY", "postal_code": "11216", "country_region": "US", "street_address": "29 Brooklyn Avenue\n29 Brooklyn Avenue\nNY, US."}, "content": "29 Brooklyn Avenue\n29 Brooklyn Avenue NY, US. 11216\nNY, US, 11216", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 110.0, "y": 234.0}, {"x": 309.0, "y": 234.0}, {"x": 309.0, "y": 257.0}, {"x": 110.0, "y": 257.0}]}], "spans": [{"offset": 205, "length": 51}, {"offset": 273, "length": 13}], "confidence": 0.726}, "BillingAddressRecipient": {"value_type": "string", "value": "Jane Doe\nJane Doe", "content": "Jane Doe\nJane Doe", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 222.0}, {"x": 288.0, "y": 222.0}, {"x": 288.0, "y": 232.0}, {"x": 129.0, "y": 232.0}]}], "spans": [{"offset": 176, "length": 17}], "confidence": 0.652}, "CustomerName": {"value_type": "string", "value": "Jane Doe\nJane Doe", "content": "Jane Doe\nJane Doe", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 129.0, "y": 222.0}, {"x": 288.0, "y": 222.0}, {"x": 288.0, "y": 232.0}, {"x": 129.0, "y": 232.0}]}], "spans": [{"offset": 176, "length": 17}], "confidence": 0.652}, "DueDate": {"value_type": "date", "value": "2020-08-30", "content": "30-08-2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 356.0, "y": 222.0}, {"x": 397.0, "y": 222.0}, {"x": 397.0, "y": 231.0}, {"x": 356.0, "y": 231.0}]}], "spans": [{"offset": 194, "length": 10}], "confidence": 0.694}, "InvoiceDate": {"value_type": "date", "value": "2020-07-31", "content": "31-07-2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 180.0}, {"x": 517.0, "y": 179.0}, {"x": 517.0, "y": 192.0}, {"x": 459.0, "y": 192.0}]}], "spans": [{"offset": 146, "length": 10}], "confidence": 0.932}, "InvoiceId": {"value_type": "string", "value": "0000001", "content": "0000001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 155.0, "y": 180.0}, {"x": 200.0, "y": 179.0}, {"x": 200.0, "y": 192.0}, {"x": 155.0, "y": 192.0}]}], "spans": [{"offset": 131, "length": 7}], "confidence": 0.859}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 103.44, "symbol": "USD"}, "content": "USD 103.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 497.0, "y": 509.0}, {"x": 540.0, "y": 509.0}, {"x": 540.0, "y": 519.0}, {"x": 497.0, "y": 519.0}]}], "spans": [{"offset": 856, "length": 10}], "confidence": 0.843}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 12.66, "symbol": "USD"}, "content": "USD 12.66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 309.0}, {"x": 540.0, "y": 309.0}, {"x": 540.0, "y": 320.0}, {"x": 501.0, "y": 320.0}]}], "spans": [{"offset": 543, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "4 teacups and\nsaucers made of\nporcelain", "content": "4 teacups and saucers made of porcelain", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 169.0, "y": 310.0}, {"x": 232.0, "y": 310.0}, {"x": 232.0, "y": 341.0}, {"x": 169.0, "y": 341.0}]}], "spans": [{"offset": 476, "length": 39}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 267.0, "y": 310.0}, {"x": 271.0, "y": 310.0}, {"x": 271.0, "y": 318.0}, {"x": 267.0, "y": 318.0}]}], "spans": [{"offset": 516, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 30.0, "symbol": "USD"}, "content": "USD 30.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 318.0, "y": 310.0}, {"x": 355.0, "y": 310.0}, {"x": 355.0, "y": 320.0}, {"x": 318.0, "y": 320.0}]}], "spans": [{"offset": 518, "length": 9}], "confidence": null}}, "content": "Blue Porcelain Tea Set\n4 teacups and saucers made of porcelain\n1\nUSD 30.00\nUSD 0\nUSD 2.66\nUSD 12.66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 309.0}, {"x": 540.0, "y": 309.0}, {"x": 540.0, "y": 341.0}, {"x": 95.0, "y": 341.0}]}], "spans": [{"offset": 453, "length": 99}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 16.34, "symbol": "USD"}, "content": "USD 16.34", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 500.0, "y": 350.0}, {"x": 540.0, "y": 350.0}, {"x": 540.0, "y": 359.0}, {"x": 500.0, "y": 359.0}]}], "spans": [{"offset": 616, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "\"Jane D.\"", "content": "\"Jane D.\"", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 171.0, "y": 349.0}, {"x": 203.0, "y": 348.0}, {"x": 203.0, "y": 359.0}, {"x": 171.0, "y": 360.0}]}], "spans": [{"offset": 579, "length": 9}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 267.0, "y": 350.0}, {"x": 271.0, "y": 350.0}, {"x": 271.0, "y": 358.0}, {"x": 267.0, "y": 358.0}]}], "spans": [{"offset": 589, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 15.0, "symbol": "USD"}, "content": "USD 15.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 317.0, "y": 350.0}, {"x": 355.0, "y": 350.0}, {"x": 355.0, "y": 359.0}, {"x": 317.0, "y": 359.0}]}], "spans": [{"offset": 591, "length": 9}], "confidence": null}}, "content": "Tea Cup Engraving Service\n\"Jane D.\"\n1\nUSD 15.00\nUSD 0\nUSD 1.34\nUSD 16.34", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 96.0, "y": 349.0}, {"x": 540.0, "y": 349.0}, {"x": 540.0, "y": 371.0}, {"x": 96.0, "y": 371.0}]}], "spans": [{"offset": 553, "length": 72}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 32.66, "symbol": "USD"}, "content": "USD 32.66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 379.0}, {"x": 539.0, "y": 379.0}, {"x": 539.0, "y": 389.0}, {"x": 501.0, "y": 389.0}]}], "spans": [{"offset": 698, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Loose Leaf\nVariation", "content": "Loose Leaf Variation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 170.0, "y": 378.0}, {"x": 212.0, "y": 379.0}, {"x": 212.0, "y": 400.0}, {"x": 170.0, "y": 399.0}]}], "spans": [{"offset": 650, "length": 20}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 266.0, "y": 379.0}, {"x": 271.0, "y": 379.0}, {"x": 271.0, "y": 388.0}, {"x": 266.0, "y": 388.0}]}], "spans": [{"offset": 671, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 30.0, "symbol": "USD"}, "content": "USD 30.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 318.0, "y": 378.0}, {"x": 356.0, "y": 380.0}, {"x": 355.0, "y": 391.0}, {"x": 318.0, "y": 389.0}]}], "spans": [{"offset": 673, "length": 9}], "confidence": null}}, "content": "Oolong Tea Leaves (1KG)\nLoose Leaf Variation\n1\nUSD 30.00\nUSD 0\nUSD 2.66\nUSD 32.66", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 379.0}, {"x": 539.0, "y": 379.0}, {"x": 539.0, "y": 401.0}, {"x": 95.0, "y": 401.0}]}], "spans": [{"offset": 626, "length": 81}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 21.78, "symbol": "USD"}, "content": "USD 21.78", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 501.0, "y": 408.0}, {"x": 539.0, "y": 409.0}, {"x": 539.0, "y": 419.0}, {"x": 501.0, "y": 418.0}]}], "spans": [{"offset": 782, "length": 9}], "confidence": null}, "Description": {"value_type": "string", "value": "Loose Leaf\nVariation", "content": "Loose Leaf Variation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 169.0, "y": 408.0}, {"x": 212.0, "y": 408.0}, {"x": 212.0, "y": 429.0}, {"x": 169.0, "y": 429.0}]}], "spans": [{"offset": 731, "length": 20}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 266.0, "y": 408.0}, {"x": 271.0, "y": 408.0}, {"x": 271.0, "y": 417.0}, {"x": 266.0, "y": 417.0}]}], "spans": [{"offset": 752, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 25.0, "symbol": "USD"}, "content": "USD 25.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 317.0, "y": 408.0}, {"x": 355.0, "y": 408.0}, {"x": 355.0, "y": 418.0}, {"x": 317.0, "y": 418.0}]}], "spans": [{"offset": 754, "length": 9}], "confidence": null}}, "content": "Pu Er Tea Leaves (1KG)\nLoose Leaf Variation\n1\nUSD 25.00\nUSD 5.00\nUSD 1.78\nUSD 21.78", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 408.0}, {"x": 539.0, "y": 408.0}, {"x": 539.0, "y": 429.0}, {"x": 95.0, "y": 429.0}]}], "spans": [{"offset": 708, "length": 83}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 100.0, "symbol": "USD"}, "content": "USD 100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 497.0, "y": 449.0}, {"x": 540.0, "y": 449.0}, {"x": 540.0, "y": 458.0}, {"x": 497.0, "y": 458.0}]}], "spans": [{"offset": 804, "length": 10}], "confidence": 0.846}, "TotalTax": {"value_type": "currency", "value": {"amount": 8.44, "symbol": "USD"}, "content": "USD 8.44", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 506.0, "y": 489.0}, {"x": 540.0, "y": 490.0}, {"x": 540.0, "y": 499.0}, {"x": 506.0, "y": 498.0}]}], "spans": [{"offset": 834, "length": 8}], "confidence": 0.542}, "VendorAddress": {"value_type": "address", "value": {"house_number": "19", "po_box": null, "road": "Cherry Lane, #11-123", "city": "New York", "state": "New York", "postal_code": "15212", "country_region": "US", "street_address": "19 Cherry Lane, #11-123"}, "content": "19 Cherry Lane, #11-123, New York, New York\nUS 15212", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 56.0}, {"x": 301.0, "y": 56.0}, {"x": 301.0, "y": 89.0}, {"x": 95.0, "y": 89.0}]}], "spans": [{"offset": 18, "length": 52}], "confidence": 0.936}, "VendorAddressRecipient": {"value_type": "string", "value": "ABC Corporation", "content": "ABC Corporation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 36.0}, {"x": 170.0, "y": 36.0}, {"x": 170.0, "y": 49.0}, {"x": 95.0, "y": 49.0}]}], "spans": [{"offset": 2, "length": 15}], "confidence": 0.916}, "VendorName": {"value_type": "string", "value": "ABC Corporation", "content": "ABC Corporation", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 95.0, "y": 36.0}, {"x": 170.0, "y": 36.0}, {"x": 170.0, "y": 49.0}, {"x": 95.0, "y": 49.0}]}], "spans": [{"offset": 2, "length": 15}], "confidence": 0.916}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/205_jpg.rf.03bab19847a93bcd06f8880668028ae2.json b/Data/train/205_jpg.rf.03bab19847a93bcd06f8880668028ae2.json new file mode 100644 index 0000000000000000000000000000000000000000..2f8680457dbd9b167a9873a992c169cadb707138 --- /dev/null +++ b/Data/train/205_jpg.rf.03bab19847a93bcd06f8880668028ae2.json @@ -0,0 +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": 716}], "fields": {"InvoiceDate": {"value_type": "date", "value": null, "content": "mm/dd/yyyy", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 215.0, "y": 123.0}, {"x": 259.0, "y": 123.0}, {"x": 259.0, "y": 132.0}, {"x": 215.0, "y": 131.0}]}], "spans": [{"offset": 43, "length": 10}], "confidence": null}, "InvoiceId": {"value_type": "string", "value": "00001", "content": "00001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 117.0, "y": 122.0}, {"x": 139.0, "y": 122.0}, {"x": 138.0, "y": 131.0}, {"x": 117.0, "y": 130.0}]}], "spans": [{"offset": 23, "length": 5}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 50.0, "symbol": null}, "content": "50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 489.0, "y": 484.0}, {"x": 509.0, "y": 484.0}, {"x": 509.0, "y": 493.0}, {"x": 490.0, "y": 493.0}]}], "spans": [{"offset": 634, "length": 5}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 269.0}, {"x": 509.0, "y": 269.0}, {"x": 509.0, "y": 277.0}, {"x": 490.0, "y": 277.0}]}], "spans": [{"offset": 305, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 267.0}, {"x": 173.0, "y": 269.0}, {"x": 173.0, "y": 278.0}, {"x": 118.0, "y": 277.0}]}], "spans": [{"offset": 284, "length": 14}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 269.0}, {"x": 350.0, "y": 269.0}, {"x": 350.0, "y": 277.0}, {"x": 331.0, "y": 277.0}]}], "spans": [{"offset": 299, "length": 5}], "confidence": null}}, "content": "Your item name\n$0.00\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 268.0}, {"x": 509.0, "y": 268.0}, {"x": 509.0, "y": 277.0}, {"x": 118.0, "y": 277.0}]}], "spans": [{"offset": 284, "length": 26}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": null}, "content": "50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 288.0}, {"x": 509.0, "y": 288.0}, {"x": 509.0, "y": 297.0}, {"x": 490.0, "y": 297.0}]}], "spans": [{"offset": 334, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 287.0}, {"x": 173.0, "y": 287.0}, {"x": 173.0, "y": 297.0}, {"x": 118.0, "y": 297.0}]}], "spans": [{"offset": 311, "length": 14}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 423.0, "y": 288.0}, {"x": 427.0, "y": 288.0}, {"x": 427.0, "y": 295.0}, {"x": 423.0, "y": 295.0}]}], "spans": [{"offset": 332, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 288.0}, {"x": 350.0, "y": 288.0}, {"x": 350.0, "y": 297.0}, {"x": 331.0, "y": 297.0}]}], "spans": [{"offset": 326, "length": 5}], "confidence": null}}, "content": "Your item name\n$0.00\n1\n50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 287.0}, {"x": 509.0, "y": 287.0}, {"x": 509.0, "y": 297.0}, {"x": 118.0, "y": 297.0}]}], "spans": [{"offset": 311, "length": 28}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 307.0}, {"x": 509.0, "y": 307.0}, {"x": 509.0, "y": 316.0}, {"x": 490.0, "y": 316.0}]}], "spans": [{"offset": 363, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 307.0}, {"x": 173.0, "y": 307.0}, {"x": 173.0, "y": 316.0}, {"x": 118.0, "y": 316.0}]}], "spans": [{"offset": 340, "length": 14}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 423.0, "y": 307.0}, {"x": 426.0, "y": 307.0}, {"x": 426.0, "y": 314.0}, {"x": 422.0, "y": 314.0}]}], "spans": [{"offset": 361, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 307.0}, {"x": 350.0, "y": 307.0}, {"x": 350.0, "y": 316.0}, {"x": 331.0, "y": 316.0}]}], "spans": [{"offset": 355, "length": 5}], "confidence": null}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 307.0}, {"x": 509.0, "y": 307.0}, {"x": 509.0, "y": 316.0}, {"x": 118.0, "y": 316.0}]}], "spans": [{"offset": 340, "length": 28}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 326.0}, {"x": 509.0, "y": 326.0}, {"x": 509.0, "y": 334.0}, {"x": 490.0, "y": 335.0}]}], "spans": [{"offset": 392, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 326.0}, {"x": 173.0, "y": 326.0}, {"x": 173.0, "y": 335.0}, {"x": 118.0, "y": 335.0}]}], "spans": [{"offset": 369, "length": 14}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 423.0, "y": 327.0}, {"x": 426.0, "y": 327.0}, {"x": 426.0, "y": 334.0}, {"x": 423.0, "y": 334.0}]}], "spans": [{"offset": 390, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 327.0}, {"x": 350.0, "y": 327.0}, {"x": 350.0, "y": 336.0}, {"x": 331.0, "y": 335.0}]}], "spans": [{"offset": 384, "length": 5}], "confidence": null}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 326.0}, {"x": 509.0, "y": 326.0}, {"x": 509.0, "y": 336.0}, {"x": 118.0, "y": 336.0}]}], "spans": [{"offset": 369, "length": 28}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 489.0, "y": 345.0}, {"x": 509.0, "y": 345.0}, {"x": 509.0, "y": 356.0}, {"x": 489.0, "y": 356.0}]}], "spans": [{"offset": 421, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 345.0}, {"x": 173.0, "y": 345.0}, {"x": 173.0, "y": 355.0}, {"x": 118.0, "y": 355.0}]}], "spans": [{"offset": 398, "length": 14}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 423.0, "y": 346.0}, {"x": 426.0, "y": 346.0}, {"x": 426.0, "y": 353.0}, {"x": 423.0, "y": 353.0}]}], "spans": [{"offset": 419, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 346.0}, {"x": 350.0, "y": 346.0}, {"x": 350.0, "y": 355.0}, {"x": 331.0, "y": 355.0}]}], "spans": [{"offset": 413, "length": 5}], "confidence": null}}, "content": "Your item name\n$0.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 345.0}, {"x": 509.0, "y": 345.0}, {"x": 509.0, "y": 356.0}, {"x": 118.0, "y": 356.0}]}], "spans": [{"offset": 398, "length": 28}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 365.0}, {"x": 510.0, "y": 365.0}, {"x": 510.0, "y": 374.0}, {"x": 490.0, "y": 374.0}]}], "spans": [{"offset": 448, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 364.0}, {"x": 173.0, "y": 364.0}, {"x": 173.0, "y": 374.0}, {"x": 118.0, "y": 374.0}]}], "spans": [{"offset": 427, "length": 14}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 332.0, "y": 366.0}, {"x": 350.0, "y": 366.0}, {"x": 350.0, "y": 374.0}, {"x": 331.0, "y": 373.0}]}], "spans": [{"offset": 442, "length": 5}], "confidence": null}}, "content": "Your item name\n$0.00\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 364.0}, {"x": 510.0, "y": 364.0}, {"x": 510.0, "y": 374.0}, {"x": 118.0, "y": 374.0}]}], "spans": [{"offset": 427, "length": 26}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": null}, "content": "50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 384.0}, {"x": 510.0, "y": 384.0}, {"x": 510.0, "y": 393.0}, {"x": 490.0, "y": 392.0}]}], "spans": [{"offset": 477, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Your Item name", "content": "Your Item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 384.0}, {"x": 173.0, "y": 384.0}, {"x": 173.0, "y": 393.0}, {"x": 118.0, "y": 393.0}]}], "spans": [{"offset": 454, "length": 14}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 423.0, "y": 384.0}, {"x": 426.0, "y": 384.0}, {"x": 426.0, "y": 391.0}, {"x": 423.0, "y": 391.0}]}], "spans": [{"offset": 475, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 330.0, "y": 384.0}, {"x": 351.0, "y": 384.0}, {"x": 351.0, "y": 393.0}, {"x": 330.0, "y": 394.0}]}], "spans": [{"offset": 469, "length": 5}], "confidence": null}}, "content": "Your Item name\n$0.00\n1\n50.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 384.0}, {"x": 510.0, "y": 384.0}, {"x": 510.0, "y": 394.0}, {"x": 118.0, "y": 394.0}]}], "spans": [{"offset": 454, "length": 28}], "confidence": null}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 404.0}, {"x": 510.0, "y": 404.0}, {"x": 509.0, "y": 413.0}, {"x": 490.0, "y": 412.0}]}], "spans": [{"offset": 506, "length": 5}], "confidence": null}, "Description": {"value_type": "string", "value": "Your item name", "content": "Your item name", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 402.0}, {"x": 174.0, "y": 402.0}, {"x": 174.0, "y": 414.0}, {"x": 118.0, "y": 414.0}]}], "spans": [{"offset": 483, "length": 14}], "confidence": null}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 423.0, "y": 404.0}, {"x": 426.0, "y": 404.0}, {"x": 426.0, "y": 411.0}, {"x": 423.0, "y": 411.0}]}], "spans": [{"offset": 504, "length": 1}], "confidence": null}, "UnitPrice": {"value_type": "currency", "value": {"amount": 30.0, "symbol": null}, "content": "30.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 331.0, "y": 404.0}, {"x": 350.0, "y": 404.0}, {"x": 350.0, "y": 413.0}, {"x": 331.0, "y": 413.0}]}], "spans": [{"offset": 498, "length": 5}], "confidence": null}}, "content": "Your item name\n30.00\n1\n$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 402.0}, {"x": 510.0, "y": 402.0}, {"x": 510.0, "y": 414.0}, {"x": 118.0, "y": 414.0}]}], "spans": [{"offset": 483, "length": 28}], "confidence": null}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Please pay invoice", "content": "Please pay invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 133.0, "y": 535.0}, {"x": 201.0, "y": 535.0}, {"x": 201.0, "y": 546.0}, {"x": 133.0, "y": 546.0}]}], "spans": [{"offset": 543, "length": 18}], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 429.0}, {"x": 510.0, "y": 429.0}, {"x": 510.0, "y": 438.0}, {"x": 490.0, "y": 437.0}]}], "spans": [{"offset": 585, "length": 5}], "confidence": null}, "TotalTax": {"value_type": "currency", "value": {"amount": 0.0, "symbol": "$"}, "content": "$0.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 490.0, "y": 471.0}, {"x": 510.0, "y": 471.0}, {"x": 510.0, "y": 480.0}, {"x": 490.0, "y": 479.0}]}], "spans": [{"offset": 622, "length": 5}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/206_jpg.rf.4426510ce4e89e505e626e8e57c14ba5.json b/Data/train/206_jpg.rf.4426510ce4e89e505e626e8e57c14ba5.json new file mode 100644 index 0000000000000000000000000000000000000000..e85391eec23dd5399122c63d2ef6dfd890d3f257 --- /dev/null +++ b/Data/train/206_jpg.rf.4426510ce4e89e505e626e8e57c14ba5.json @@ -0,0 +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": 846}], "fields": {"CustomerId": {"value_type": "string", "value": "10-315", "content": "10-315", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 430.0, "y": 511.0}, {"x": 454.0, "y": 510.0}, {"x": 455.0, "y": 519.0}, {"x": 431.0, "y": 519.0}]}], "spans": [{"offset": 794, "length": 6}], "confidence": null}, "InvoiceDate": {"value_type": "date", "value": "1991-09-10", "content": "09/10/91", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 423.0, "y": 89.0}, {"x": 467.0, "y": 89.0}, {"x": 467.0, "y": 99.0}, {"x": 423.0, "y": 98.0}]}], "spans": [{"offset": 226, "length": 8}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 138000.0, "symbol": "$"}, "content": "S\n138,000.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 360.0, "y": 384.0}, {"x": 439.0, "y": 384.0}, {"x": 439.0, "y": 395.0}, {"x": 360.0, "y": 395.0}]}], "spans": [{"offset": 637, "length": 12}], "confidence": null}, "ServiceEndDate": {"value_type": "date", "value": "1991-12-01", "content": "12/91", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 380.0, "y": 206.0}, {"x": 407.0, "y": 205.0}, {"x": 407.0, "y": 215.0}, {"x": 380.0, "y": 215.0}]}], "spans": [{"offset": 299, "length": 5}], "confidence": null}, "ServiceStartDate": {"value_type": "date", "value": "1991-10-01", "content": "10/91", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 252.0, "y": 205.0}, {"x": 278.0, "y": 205.0}, {"x": 278.0, "y": 214.0}, {"x": 252.0, "y": 214.0}]}], "spans": [{"offset": 288, "length": 5}], "confidence": null}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": null, "city": null, "state": null, "postal_code": null, "country_region": null, "street_address": ""}, "content": "FORUM\nCONNECTICUT", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 224.0, "y": 23.0}, {"x": 264.0, "y": 23.0}, {"x": 264.0, "y": 43.0}, {"x": 224.0, "y": 43.0}]}], "spans": [{"offset": 42, "length": 5}, {"offset": 57, "length": 11}], "confidence": null}, "VendorAddressRecipient": {"value_type": "string", "value": "SIX STAMFORD", "content": "SIX STAMFORD", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 192.0, "y": 23.0}, {"x": 232.0, "y": 23.0}, {"x": 232.0, "y": 30.0}, {"x": 192.0, "y": 30.0}]}], "spans": [{"offset": 29, "length": 12}], "confidence": null}, "VendorName": {"value_type": "string", "value": "THE\nAMERICAN\nTOBACCO\nCOMPANY", "content": "THE AMERICAN TOBACCO COMPANY", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 123.0, "y": 23.0}, {"x": 175.0, "y": 23.0}, {"x": 175.0, "y": 60.0}, {"x": 123.0, "y": 60.0}]}], "spans": [{"offset": 0, "length": 28}], "confidence": null}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/207_jpg.rf.dfe586de1384de9f54cb9edfd87a8611.json b/Data/train/207_jpg.rf.dfe586de1384de9f54cb9edfd87a8611.json new file mode 100644 index 0000000000000000000000000000000000000000..822c98a106291675739fd7df3fd9029a94d3727f --- /dev/null +++ b/Data/train/207_jpg.rf.dfe586de1384de9f54cb9edfd87a8611.json @@ -0,0 +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": 544}], "fields": {"CustomerName": {"value_type": "string", "value": "Matthew Gibson", "content": "Matthew Gibson", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 488.0, "y": 119.0}, {"x": 580.0, "y": 120.0}, {"x": 580.0, "y": 136.0}, {"x": 488.0, "y": 135.0}]}], "spans": [{"offset": 88, "length": 14}], "confidence": 0.51}, "InvoiceDate": {"value_type": "date", "value": "2020-01-23", "content": "January 23, 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 47.0, "y": 149.0}, {"x": 144.0, "y": 149.0}, {"x": 144.0, "y": 165.0}, {"x": 47.0, "y": 165.0}]}], "spans": [{"offset": 56, "length": 16}], "confidence": 0.932}, "InvoiceId": {"value_type": "string", "value": "14", "content": "14", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 118.0, "y": 120.0}, {"x": 132.0, "y": 120.0}, {"x": 132.0, "y": 135.0}, {"x": 118.0, "y": 135.0}]}], "spans": [{"offset": 47, "length": 2}], "confidence": 0.975}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 1375.0, "symbol": "$"}, "content": "$1,375.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 473.0}, {"x": 572.0, "y": 471.0}, {"x": 571.0, "y": 487.0}, {"x": 516.0, "y": 486.0}]}], "spans": [{"offset": 409, "length": 9}], "confidence": 0.844}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 600.0, "symbol": "$"}, "content": "$600.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 516.0, "y": 314.0}, {"x": 561.0, "y": 314.0}, {"x": 561.0, "y": 328.0}, {"x": 516.0, "y": 328.0}]}], "spans": [{"offset": 276, "length": 7}], "confidence": 0.927}, "Description": {"value_type": "string", "value": "Trip to Virginia (Price 1) ( Adult )", "content": "Trip to Virginia (Price 1) ( Adult )", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 21.0, "y": 312.0}, {"x": 206.0, "y": 312.0}, {"x": 206.0, "y": 330.0}, {"x": 21.0, "y": 330.0}]}], "spans": [{"offset": 220, "length": 36}], "confidence": 0.907}, "UnitPrice": {"value_type": "currency", "value": {"amount": 600.0, "symbol": "$"}, "content": "$600.00 / person", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 260.0, "y": 314.0}, {"x": 353.0, "y": 314.0}, {"x": 353.0, "y": 329.0}, {"x": 260.0, "y": 329.0}]}], "spans": [{"offset": 257, "length": 16}], "confidence": 0.909}}, "content": "Trip to Virginia (Price 1) ( Adult )\n$600.00 / person\n1\n$600.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 21.0, "y": 312.0}, {"x": 561.0, "y": 312.0}, {"x": 561.0, "y": 330.0}, {"x": 21.0, "y": 330.0}]}], "spans": [{"offset": 220, "length": 63}], "confidence": 0.886}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "$"}, "content": "$500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 516.0, "y": 346.0}, {"x": 561.0, "y": 346.0}, {"x": 561.0, "y": 359.0}, {"x": 516.0, "y": 360.0}]}], "spans": [{"offset": 340, "length": 7}], "confidence": 0.923}, "Description": {"value_type": "string", "value": "Trip to Virginia (Price 1) ( Child )", "content": "Trip to Virginia (Price 1) ( Child )", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 20.0, "y": 344.0}, {"x": 206.0, "y": 344.0}, {"x": 206.0, "y": 361.0}, {"x": 20.0, "y": 361.0}]}], "spans": [{"offset": 284, "length": 36}], "confidence": 0.905}, "UnitPrice": {"value_type": "currency", "value": {"amount": 500.0, "symbol": "$"}, "content": "$500.00 / person", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 259.0, "y": 345.0}, {"x": 353.0, "y": 345.0}, {"x": 353.0, "y": 361.0}, {"x": 259.0, "y": 361.0}]}], "spans": [{"offset": 321, "length": 16}], "confidence": 0.907}}, "content": "Trip to Virginia (Price 1) ( Child )\n$500.00 / person\n1\n$500.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 20.0, "y": 344.0}, {"x": 561.0, "y": 344.0}, {"x": 561.0, "y": 361.0}, {"x": 20.0, "y": 361.0}]}], "spans": [{"offset": 284, "length": 63}], "confidence": 0.884}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "SubTotal": {"value_type": "currency", "value": {"amount": 1100.0, "symbol": "$"}, "content": "$1,100.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 515.0, "y": 377.0}, {"x": 571.0, "y": 377.0}, {"x": 571.0, "y": 391.0}, {"x": 515.0, "y": 391.0}]}], "spans": [{"offset": 360, "length": 9}], "confidence": 0.725}, "TotalTax": {"value_type": "currency", "value": {"amount": 275.0, "symbol": "$"}, "content": "$275.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 516.0, "y": 441.0}, {"x": 561.0, "y": 441.0}, {"x": 561.0, "y": 455.0}, {"x": 516.0, "y": 454.0}]}], "spans": [{"offset": 391, "length": 7}], "confidence": 0.955}}, "confidence": 1.0} \ No newline at end of file diff --git a/Data/train/208_jpg.rf.0e95dd0e65f8779d10945950dc9dcebb.json b/Data/train/208_jpg.rf.0e95dd0e65f8779d10945950dc9dcebb.json new file mode 100644 index 0000000000000000000000000000000000000000..7c11135e08cc4438ba7b372f294ed98410c81504 --- /dev/null +++ b/Data/train/208_jpg.rf.0e95dd0e65f8779d10945950dc9dcebb.json @@ -0,0 +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": 456}], "fields": {"CustomerId": {"value_type": "string", "value": "344527866861762", "content": "344527866861762", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 326.0, "y": 538.0}, {"x": 417.0, "y": 538.0}, {"x": 417.0, "y": 550.0}, {"x": 327.0, "y": 550.0}]}], "spans": [{"offset": 388, "length": 15}], "confidence": 0.803}, "InvoiceDate": {"value_type": "date", "value": "2020-07-03", "content": "July 3rd, 2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 436.0, "y": 145.0}, {"x": 515.0, "y": 145.0}, {"x": 515.0, "y": 160.0}, {"x": 436.0, "y": 160.0}]}], "spans": [{"offset": 112, "length": 14}], "confidence": 0.932}, "InvoiceId": {"value_type": "string", "value": "345/2020", "content": "345/2020", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 459.0, "y": 109.0}, {"x": 514.0, "y": 109.0}, {"x": 514.0, "y": 123.0}, {"x": 460.0, "y": 122.0}]}], "spans": [{"offset": 93, "length": 8}], "confidence": 0.978}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 410.0, "symbol": "$"}, "content": "$410", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 462.0}, {"x": 480.0, "y": 462.0}, {"x": 480.0, "y": 475.0}, {"x": 455.0, "y": 475.0}]}], "spans": [{"offset": 332, "length": 4}], "confidence": 0.981}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 60.0, "symbol": "$"}, "content": "$ 60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 287.0}, {"x": 478.0, "y": 287.0}, {"x": 478.0, "y": 300.0}, {"x": 455.0, "y": 300.0}]}], "spans": [{"offset": 179, "length": 4}], "confidence": 0.906}, "Description": {"value_type": "string", "value": "Half-Day Package", "content": "Half-Day Package", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 291.0}, {"x": 243.0, "y": 293.0}, {"x": 243.0, "y": 306.0}, {"x": 137.0, "y": 304.0}]}], "spans": [{"offset": 155, "length": 16}], "confidence": 0.907}, "Quantity": {"value_type": "float", "value": 4.0, "content": "4", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 366.0, "y": 294.0}, {"x": 371.0, "y": 294.0}, {"x": 371.0, "y": 303.0}, {"x": 366.0, "y": 303.0}]}], "spans": [{"offset": 177, "length": 1}], "confidence": 0.904}, "UnitPrice": {"value_type": "currency", "value": {"amount": 15.0, "symbol": "$"}, "content": "$ 15", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 285.0, "y": 291.0}, {"x": 306.0, "y": 291.0}, {"x": 306.0, "y": 304.0}, {"x": 285.0, "y": 304.0}]}], "spans": [{"offset": 172, "length": 4}], "confidence": 0.911}}, "content": "Half-Day Package\n$ 15\n4\n$ 60", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 287.0}, {"x": 478.0, "y": 287.0}, {"x": 478.0, "y": 306.0}, {"x": 137.0, "y": 306.0}]}], "spans": [{"offset": 155, "length": 28}], "confidence": 0.908}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 160.0, "symbol": "$"}, "content": "$160", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 313.0}, {"x": 482.0, "y": 313.0}, {"x": 482.0, "y": 326.0}, {"x": 455.0, "y": 326.0}]}], "spans": [{"offset": 209, "length": 4}], "confidence": 0.927}, "Description": {"value_type": "string", "value": "Full-Day Package", "content": "Full-Day Package", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 316.0}, {"x": 240.0, "y": 317.0}, {"x": 240.0, "y": 331.0}, {"x": 138.0, "y": 330.0}]}], "spans": [{"offset": 184, "length": 16}], "confidence": 0.907}, "Quantity": {"value_type": "float", "value": 16.0, "content": "16", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 365.0, "y": 318.0}, {"x": 375.0, "y": 318.0}, {"x": 375.0, "y": 329.0}, {"x": 365.0, "y": 329.0}]}], "spans": [{"offset": 206, "length": 2}], "confidence": 0.903}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$ 10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 286.0, "y": 318.0}, {"x": 306.0, "y": 318.0}, {"x": 306.0, "y": 330.0}, {"x": 286.0, "y": 330.0}]}], "spans": [{"offset": 201, "length": 4}], "confidence": 0.909}}, "content": "Full-Day Package\n$ 10\n16\n$160", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 313.0}, {"x": 482.0, "y": 313.0}, {"x": 482.0, "y": 331.0}, {"x": 138.0, "y": 331.0}]}], "spans": [{"offset": 184, "length": 29}], "confidence": 0.902}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 50.0, "symbol": "$"}, "content": "$ 50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 337.0}, {"x": 478.0, "y": 337.0}, {"x": 478.0, "y": 350.0}, {"x": 455.0, "y": 350.0}]}], "spans": [{"offset": 240, "length": 4}], "confidence": 0.905}, "Description": {"value_type": "string", "value": "Mount a TV Package", "content": "Mount a TV Package", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 342.0}, {"x": 258.0, "y": 342.0}, {"x": 258.0, "y": 356.0}, {"x": 137.0, "y": 356.0}]}], "spans": [{"offset": 214, "length": 18}], "confidence": 0.904}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 366.0, "y": 342.0}, {"x": 372.0, "y": 342.0}, {"x": 372.0, "y": 354.0}, {"x": 365.0, "y": 354.0}]}], "spans": [{"offset": 238, "length": 1}], "confidence": 0.902}, "UnitPrice": {"value_type": "currency", "value": {"amount": 25.0, "symbol": "$"}, "content": "$ 25", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 286.0, "y": 342.0}, {"x": 308.0, "y": 342.0}, {"x": 308.0, "y": 354.0}, {"x": 286.0, "y": 354.0}]}], "spans": [{"offset": 233, "length": 4}], "confidence": 0.908}}, "content": "Mount a TV Package\n$ 25\n2\n$ 50", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 137.0, "y": 337.0}, {"x": 478.0, "y": 337.0}, {"x": 478.0, "y": 356.0}, {"x": 137.0, "y": 356.0}]}], "spans": [{"offset": 214, "length": 30}], "confidence": 0.908}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 75.0, "symbol": "$"}, "content": "$ 75", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 363.0}, {"x": 477.0, "y": 363.0}, {"x": 477.0, "y": 376.0}, {"x": 454.0, "y": 376.0}]}], "spans": [{"offset": 270, "length": 4}], "confidence": 0.906}, "Description": {"value_type": "string", "value": "Departure support", "content": "Departure support", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 366.0}, {"x": 251.0, "y": 367.0}, {"x": 251.0, "y": 381.0}, {"x": 138.0, "y": 380.0}]}], "spans": [{"offset": 245, "length": 17}], "confidence": 0.906}, "Quantity": {"value_type": "float", "value": 5.0, "content": "5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 365.0, "y": 368.0}, {"x": 372.0, "y": 368.0}, {"x": 371.0, "y": 380.0}, {"x": 365.0, "y": 379.0}]}], "spans": [{"offset": 268, "length": 1}], "confidence": 0.906}, "UnitPrice": {"value_type": "currency", "value": {"amount": 15.0, "symbol": "$"}, "content": "$ 15", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 285.0, "y": 366.0}, {"x": 306.0, "y": 368.0}, {"x": 305.0, "y": 382.0}, {"x": 284.0, "y": 380.0}]}], "spans": [{"offset": 263, "length": 4}], "confidence": 0.91}}, "content": "Departure support\n$ 15\n5\n$ 75", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 363.0}, {"x": 477.0, "y": 363.0}, {"x": 477.0, "y": 381.0}, {"x": 138.0, "y": 381.0}]}], "spans": [{"offset": 245, "length": 29}], "confidence": 0.905}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 20.0, "symbol": "$"}, "content": "$20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 454.0, "y": 387.0}, {"x": 478.0, "y": 387.0}, {"x": 478.0, "y": 400.0}, {"x": 454.0, "y": 400.0}]}], "spans": [{"offset": 299, "length": 3}], "confidence": 0.928}, "Description": {"value_type": "string", "value": "Pet Door Package", "content": "Pet Door Package", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 392.0}, {"x": 244.0, "y": 393.0}, {"x": 244.0, "y": 407.0}, {"x": 138.0, "y": 406.0}]}], "spans": [{"offset": 275, "length": 16}], "confidence": 0.905}, "Quantity": {"value_type": "float", "value": 2.0, "content": "2", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 365.0, "y": 393.0}, {"x": 371.0, "y": 393.0}, {"x": 371.0, "y": 404.0}, {"x": 365.0, "y": 404.0}]}], "spans": [{"offset": 297, "length": 1}], "confidence": 0.903}, "UnitPrice": {"value_type": "currency", "value": {"amount": 10.0, "symbol": "$"}, "content": "$ 10", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 285.0, "y": 392.0}, {"x": 307.0, "y": 392.0}, {"x": 307.0, "y": 406.0}, {"x": 285.0, "y": 406.0}]}], "spans": [{"offset": 292, "length": 4}], "confidence": 0.908}}, "content": "Pet Door Package\n$ 10\n2\n$20", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 138.0, "y": 387.0}, {"x": 478.0, "y": 387.0}, {"x": 478.0, "y": 407.0}, {"x": 138.0, "y": 407.0}]}], "spans": [{"offset": 275, "length": 27}], "confidence": 0.903}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": "9376", "po_box": null, "road": "Marvon St.", "city": "Tracy", "state": "CA", "postal_code": "95376", "country_region": null, "street_address": "9376 Marvon St."}, "content": "9376 Marvon St. Tracy, CA 95376", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 285.0, "y": 591.0}, {"x": 372.0, "y": 591.0}, {"x": 372.0, "y": 615.0}, {"x": 285.0, "y": 615.0}]}], "spans": [{"offset": 425, "length": 31}], "confidence": 0.751}, "RemittanceAddressRecipient": {"value_type": "string", "value": "Capital One", "content": "Capital One", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 286.0, "y": 550.0}, {"x": 345.0, "y": 551.0}, {"x": 345.0, "y": 564.0}, {"x": 286.0, "y": 563.0}]}], "spans": [{"offset": 404, "length": 11}], "confidence": 0.277}, "SubTotal": {"value_type": "currency", "value": {"amount": 365.0, "symbol": "$"}, "content": "$365", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 456.0, "y": 430.0}, {"x": 480.0, "y": 430.0}, {"x": 480.0, "y": 441.0}, {"x": 456.0, "y": 441.0}]}], "spans": [{"offset": 313, "length": 4}], "confidence": 0.982}, "TotalTax": {"value_type": "currency", "value": {"amount": 45.0, "symbol": "$"}, "content": "$45", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 455.0, "y": 445.0}, {"x": 475.0, "y": 445.0}, {"x": 475.0, "y": 457.0}, {"x": 455.0, "y": 457.0}]}], "spans": [{"offset": 322, "length": 3}], "confidence": 0.982}, "VendorName": {"value_type": "string", "value": "Mr. HandyMan\nServices", "content": "Mr. HandyMan Services", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 125.0, "y": 61.0}, {"x": 215.0, "y": 61.0}, {"x": 215.0, "y": 89.0}, {"x": 125.0, "y": 89.0}]}], "spans": [{"offset": 0, "length": 21}], "confidence": 0.688}}, "confidence": 1.0} \ No newline at end of file