Skip to content

Commit

Permalink
Merge pull request #36 from Praneet9/sample_train_dataset
Browse files Browse the repository at this point in the history
Sample train dataset
  • Loading branch information
Praneet9 authored Nov 26, 2022
2 parents 659f288 + aad563e commit b268463
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions sample_dataset/candidates/sample_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invoice_no": [{"text": "3801", "x1": 782, "y1": 514, "x2": 920, "y2": 566}, {"text": "87107", "x1": 1381, "y1": 597, "x2": 1563, "y2": 648}, {"text": "600", "x1": 572, "y1": 1305, "x2": 668, "y2": 1352}, {"text": "306", "x1": 738, "y1": 1378, "x2": 833, "y2": 1425}, {"text": "21286", "x1": 968, "y1": 1452, "x2": 1134, "y2": 1499}, {"text": "A7N", "x1": 1160, "y1": 3146, "x2": 1265, "y2": 3188}, {"text": "A7N", "x1": 1082, "y1": 3449, "x2": 1186, "y2": 3491}, {"text": "-1-----", "x1": 928, "y1": 4561, "x2": 1148, "y2": 4603}, {"text": "334", "x1": 2738, "y1": 852, "x2": 2826, "y2": 893}, {"text": "1021", "x1": 2731, "y1": 2056, "x2": 2838, "y2": 2098}, {"text": "7-9a", "x1": 1727, "y1": 2542, "x2": 1831, "y2": 2583}, {"text": ":30", "x1": 2598, "y1": 2538, "x2": 2666, "y2": 2580}, {"text": "1105-1135p", "x1": 1730, "y1": 2842, "x2": 2013, "y2": 2894}, {"text": ":30", "x1": 2598, "y1": 2838, "x2": 2666, "y2": 2881}, {"text": "6-9a", "x1": 1723, "y1": 3144, "x2": 1828, "y2": 3186}, {"text": ":30", "x1": 2596, "y1": 3140, "x2": 2664, "y2": 3182}, {"text": "6-630p", "x1": 1722, "y1": 3447, "x2": 1891, "y2": 3499}, {"text": ":30", "x1": 2595, "y1": 3443, "x2": 2664, "y2": 3484}, {"text": "7-10p", "x1": 1723, "y1": 3748, "x2": 1858, "y2": 3800}, {"text": ":30", "x1": 2595, "y1": 3743, "x2": 2663, "y2": 3786}, {"text": "9-10a", "x1": 1720, "y1": 4051, "x2": 1856, "y2": 4093}, {"text": ":30", "x1": 2594, "y1": 4046, "x2": 2662, "y2": 4088}, {"text": "7-9a", "x1": 1720, "y1": 4353, "x2": 1825, "y2": 4394}, {"text": ":30", "x1": 2593, "y1": 4347, "x2": 2661, "y2": 4389}, {"text": "1105-1135p", "x1": 1723, "y1": 4651, "x2": 2008, "y2": 4703}, {"text": ":30", "x1": 2593, "y1": 4647, "x2": 2661, "y2": 4689}], "invoice_date": [{"text": "08/17/12 08/17/12", "x1": 432, "y1": 2543, "x2": 928, "y2": 2585}, {"text": "08/13/12", "x1": 297, "y1": 2750, "x2": 507, "y2": 2793}, {"text": "08/19/12", "x1": 618, "y1": 2751, "x2": 827, "y2": 2793}, {"text": "08/17/12 08/17/12", "x1": 430, "y1": 2844, "x2": 926, "y2": 2887}, {"text": "08/13/12", "x1": 295, "y1": 3053, "x2": 505, "y2": 3095}, {"text": "08/19/12", "x1": 617, "y1": 3053, "x2": 825, "y2": 3095}, {"text": "08/18/12 08/18/12", "x1": 427, "y1": 3146, "x2": 925, "y2": 3189}, {"text": "08/13/12", "x1": 292, "y1": 3355, "x2": 503, "y2": 3398}, {"text": "08/19/12", "x1": 615, "y1": 3355, "x2": 823, "y2": 3398}, {"text": "08/18/12 08/18/12", "x1": 425, "y1": 3449, "x2": 923, "y2": 3492}, {"text": "08/13/12", "x1": 289, "y1": 3658, "x2": 500, "y2": 3700}, {"text": "08/19/12", "x1": 612, "y1": 3658, "x2": 821, "y2": 3699}, {"text": "08/18/12 08/18/12", "x1": 422, "y1": 3750, "x2": 921, "y2": 3793}, {"text": "08/13/12", "x1": 287, "y1": 3959, "x2": 497, "y2": 4002}, {"text": "08/19/12", "x1": 610, "y1": 3959, "x2": 819, "y2": 4001}, {"text": "08/19/12 08/19/12 This Week", "x1": 420, "y1": 4053, "x2": 1258, "y2": 4096}, {"text": "08/13/12", "x1": 284, "y1": 4263, "x2": 495, "y2": 4305}, {"text": "08/18/12", "x1": 607, "y1": 4262, "x2": 818, "y2": 4305}, {"text": "08/21/12 08/21/12", "x1": 418, "y1": 4356, "x2": 918, "y2": 4398}, {"text": "Weekdays", "x1": 923, "y1": 4500, "x2": 1180, "y2": 4553}, {"text": "08/20/12", "x1": 282, "y1": 4563, "x2": 493, "y2": 4604}, {"text": "08/26/12", "x1": 607, "y1": 4563, "x2": 816, "y2": 4604}, {"text": "08/20/12", "x1": 417, "y1": 4656, "x2": 625, "y2": 4699}, {"text": "08/23/12", "x1": 705, "y1": 4656, "x2": 918, "y2": 4699}, {"text": "08/09/12", "x1": 3198, "y1": 170, "x2": 3405, "y2": 214}, {"text": "08/23/12", "x1": 2327, "y1": 853, "x2": 2536, "y2": 896}, {"text": "Future", "x1": 2333, "y1": 1025, "x2": 2499, "y2": 1067}, {"text": "08/09/12", "x1": 3311, "y1": 1017, "x2": 3516, "y2": 1061}, {"text": "08/09/12", "x1": 3676, "y1": 1014, "x2": 3878, "y2": 1058}, {"text": "1021", "x1": 2731, "y1": 2056, "x2": 2838, "y2": 2098}], "total": [{"text": "$850.00", "x1": 3799, "y1": 2530, "x2": 4001, "y2": 2578}, {"text": "$850.00", "x1": 1816, "y1": 2747, "x2": 2011, "y2": 2796}, {"text": "$350.00", "x1": 3798, "y1": 2832, "x2": 3999, "y2": 2879}, {"text": "$350.00", "x1": 1815, "y1": 3050, "x2": 2009, "y2": 3097}, {"text": "$625.00", "x1": 3799, "y1": 3133, "x2": 3999, "y2": 3180}, {"text": "$625.00", "x1": 1815, "y1": 3351, "x2": 2008, "y2": 3399}, {"text": "$300.00", "x1": 3799, "y1": 3435, "x2": 3999, "y2": 3482}, {"text": "$300.00", "x1": 1813, "y1": 3653, "x2": 2006, "y2": 3700}, {"text": "$450.00", "x1": 3799, "y1": 3736, "x2": 3997, "y2": 3783}, {"text": "$450.00", "x1": 1811, "y1": 3955, "x2": 2006, "y2": 4003}, {"text": "$650.00", "x1": 3798, "y1": 4038, "x2": 3996, "y2": 4086}, {"text": "$650.00", "x1": 1810, "y1": 4258, "x2": 2005, "y2": 4305}, {"text": "$850.00", "x1": 3798, "y1": 4339, "x2": 3994, "y2": 4387}, {"text": "$850.00", "x1": 1810, "y1": 4557, "x2": 2004, "y2": 4605}, {"text": "$1,400.00", "x1": 3751, "y1": 4640, "x2": 3994, "y2": 4691}]}
Binary file added sample_dataset/images/sample_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions sample_dataset/split/train.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sample_1
1 change: 1 addition & 0 deletions sample_dataset/split/val.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sample_1
1 change: 1 addition & 0 deletions sample_dataset/tesseract_results/sample_1.json

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions sample_dataset/xmls/sample_1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<annotation>
<folder>me</folder>
<filename>sample_1.jpg</filename>
<path>/sample_dataset/images/sample_1.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>4250</width>
<height>5500</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>invoice_no</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>2804</xmin>
<ymin>491</ymin>
<xmax>2989</xmax>
<ymax>550</ymax>
</bndbox>
</object>
<object>
<name>invoice_date</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>3305</xmin>
<ymin>1011</ymin>
<xmax>3535</xmax>
<ymax>1072</ymax>
</bndbox>
</object>
</annotation>

0 comments on commit b268463

Please sign in to comment.