liuylhf commited on
Commit
471bb69
1 Parent(s): 107bb07

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. cord.py +103 -0
  2. data/test.jsonl +100 -0
  3. data/test/test.tar.gz +3 -0
  4. data/train.jsonl +0 -0
  5. data/train/train.tar.gz +3 -0
cord.py ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import datasets
3
+ import os
4
+
5
+ logger = datasets.logging.get_logger(__name__)
6
+
7
+
8
+ class Dataset(datasets.GeneratorBasedBuilder):
9
+ def _info(self):
10
+ return datasets.DatasetInfo(
11
+ features=datasets.Features({
12
+ "images": datasets.Sequence(datasets.Image()),
13
+ "id": datasets.Value("int32"),
14
+ "conversations": datasets.Sequence(datasets.Features({
15
+ "from": datasets.Value("string"),
16
+ "value": datasets.Value("string")
17
+ }))
18
+ })
19
+ )
20
+
21
+ def _split_generators(self, dl_manager: datasets.DownloadManager):
22
+ dl_manager.download_config.token = True
23
+ dl_manager.download_config.num_proc = 10
24
+
25
+ base_url = "https://huggingface.co/datasets/empower-dev-staging/cord/resolve/main/data"
26
+ train_image_files = dl_manager.download_and_extract(
27
+ f"{base_url}/train/train.tar.gz"
28
+ )
29
+ test_image_files = dl_manager.download_and_extract(
30
+ f"{base_url}/test/test.tar.gz"
31
+ )
32
+ image_files = train_image_files + test_image_files
33
+
34
+ image_file_to_full_path_mapping = dict([
35
+ ('images/' + '/'.join(image_file.split('/')[-2:]), image_file) for image_file in dl_manager.iter_files(image_files)
36
+ ])
37
+
38
+ return [
39
+ datasets.SplitGenerator(
40
+ name=datasets.Split.TRAIN,
41
+ gen_kwargs={
42
+ "filepath": dl_manager.download_and_extract(
43
+ f"{base_url}/train.jsonl"),
44
+ "image_file_to_full_path_mapping": image_file_to_full_path_mapping
45
+ },
46
+ ),
47
+ datasets.SplitGenerator(
48
+ name=datasets.Split.TEST,
49
+ gen_kwargs={
50
+ "filepath": dl_manager.download_and_extract(
51
+ f"{base_url}/test.jsonl"),
52
+ "image_file_to_full_path_mapping": image_file_to_full_path_mapping
53
+ },
54
+ ),
55
+ ]
56
+
57
+ def _get_step_info(self, item):
58
+ first_image_path = item['images'][0]
59
+ folder = '/'.join(first_image_path.split('/')[-2:-1])
60
+
61
+ task = folder.split('-')[0]
62
+ step = folder.split('-')[1].split('_')
63
+
64
+ step_number = step[0]
65
+ retry_index = int(step[1])
66
+
67
+ return {
68
+ "task_name": task,
69
+ "step_name": f"{task}-{step_number}",
70
+ "retry_index": retry_index
71
+ }
72
+
73
+ def _generate_examples(self, filepath, image_file_to_full_path_mapping):
74
+ with open(filepath, "r") as f:
75
+ lines = f.readlines()
76
+
77
+ items = []
78
+ step_name_to_retry_count = {}
79
+ for id, line in enumerate(lines):
80
+ item = json.loads(line)
81
+ if len(json.loads(item["conversations"][1]["value"])["actions"]) == 0:
82
+ continue
83
+
84
+ items.append(item)
85
+ step_name = self._get_step_info(item)["step_name"]
86
+ if step_name not in step_name_to_retry_count:
87
+ step_name_to_retry_count[step_name] = 0
88
+ step_name_to_retry_count[step_name] += 1
89
+
90
+ for id, item in enumerate(items):
91
+ step_info = self._get_step_info(item)
92
+ yield id, {
93
+ "images": [
94
+ image_file_to_full_path_mapping[image] for image in item["images"]
95
+ ],
96
+ "conversations": item["conversations"],
97
+ "length": item["length"],
98
+ "task_name": step_info["task_name"],
99
+ "step_name": step_info["step_name"],
100
+ "has_retry": step_name_to_retry_count[step_info['step_name']] > 1,
101
+ "retry_index": step_info["retry_index"],
102
+ "total_retries": step_name_to_retry_count[step_info['step_name']]
103
+ }
data/test.jsonl ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"id": 0, "image": "data/ocr/test/0.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"-TICKET CP\",\n \"num\": \"901016\",\n \"cnt\": \"2\",\n \"price\": \"60.000\",\n \"itemsubtotal\": \"60.000\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"60.000\",\n \"discount_price\": \"-60.000\",\n \"tax_price\": \"5.455\"\n },\n \"total\": {\n \"total_price\": \"60.000\",\n \"creditcardprice\": \"60.000\",\n \"menuqty_cnt\": \"2.00\"\n }\n}"}]}
2
+ {"id": 1, "image": "data/ocr/test/1.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"J.STB PROMO\",\n \"price\": \"17500\"\n },\n {\n \"nm\": \"Y.B.BAT\",\n \"price\": \"46000\"\n },\n {\n \"nm\": \"Y.BASO PROM\",\n \"price\": \"27500\"\n }\n ],\n \"total\": {\n \"total_price\": \"91000\",\n \"cashprice\": \"91000\"\n }\n}"}]}
3
+ {"id": 2, "image": "data/ocr/test/2.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"JASMINE MT ( L )\",\n \"cnt\": \"1\",\n \"price\": \"24,000\",\n \"sub\": {\n \"nm\": \"COCONUT JELLY ( L )\",\n \"price\": \"4,000\"\n }\n },\n \"sub_total\": {\n \"subtotal_price\": \"28,000\"\n },\n \"total\": {\n \"total_price\": \"28,000\",\n \"cashprice\": \"100,000\",\n \"changeprice\": \"72,000\",\n \"menuqty_cnt\": \"1\"\n }\n}"}]}
4
+ {"id": 3, "image": "data/ocr/test/3.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"DONAT GULA\",\n \"unitprice\": \"@11000\",\n \"cnt\": \"1X\",\n \"price\": \"11,000\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"11,000\"\n },\n \"total\": {\n \"total_price\": \"11,000\",\n \"cashprice\": \"11,000\",\n \"menuqty_cnt\": \"1.00xITEMs\"\n }\n}"}]}
5
+ {"id": 4, "image": "data/ocr/test/4.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"ICE BLACKCOFFE\",\n \"cnt\": \"2\",\n \"price\": \"82,000\"\n },\n {\n \"nm\": \"AVOCADO COFFEE\",\n \"cnt\": \"1\",\n \"price\": \"61,000\"\n },\n {\n \"nm\": \"CHIKEN KATSU FF\",\n \"cnt\": \"1\",\n \"price\": \"51,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"194,000\",\n \"discount_price\": \"19,400\"\n },\n \"total\": {\n \"total_price\": \"174,600\",\n \"cashprice\": \"200,000\",\n \"changeprice\": \"25,400\"\n }\n}"}]}
6
+ {"id": 5, "image": "data/ocr/test/5.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"TRAD KY TOAST CARTE\",\n \"price\": \"28.182\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"28.182\",\n \"tax_price\": \"2.818\"\n },\n \"total\": {\n \"total_price\": \"31.000\",\n \"cashprice\": \"31.000\",\n \"menuqty_cnt\": \"1.00\"\n }\n}"}]}
7
+ {"id": 6, "image": "data/ocr/test/6.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"EGG TART\",\n \"cnt\": \"1\",\n \"price\": \"13,000\"\n },\n {\n \"nm\": \"CHOCO CUS ARD PASTRY\",\n \"cnt\": \"2\",\n \"price\": \"24,000\"\n },\n {\n \"nm\": \"REDBEAN BREAD\",\n \"cnt\": \"1\",\n \"price\": \"9,000\"\n }\n ],\n \"total\": {\n \"total_price\": \"46,000\",\n \"cashprice\": \"50,000\",\n \"changeprice\": \"4,000\"\n }\n}"}]}
8
+ {"id": 7, "image": "data/ocr/test/7.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Kupon 15\",\n \"price\": \"100,000\",\n \"sub\": {\n \"nm\": \"ADD CHICKEN BOX\",\n \"price\": \"909\"\n }\n },\n \"sub_total\": {\n \"subtotal_price\": \"100,909\",\n \"tax_price\": \"10,091\"\n },\n \"total\": {\n \"total_price\": \"111,000\",\n \"cashprice\": \"Rp. 111,000\"\n }\n}"}]}
9
+ {"id": 8, "image": "data/ocr/test/8.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"[REG] BLACK SAKURA\",\n \"cnt\": \"1\",\n \"price\": \"45,455\",\n \"sub\": [\n {\n \"nm\": \"COOKIE DOH SAUCES\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n },\n {\n \"nm\": \"NATA DE COCO\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n }\n ]\n },\n \"sub_total\": {\n \"subtotal_price\": \"45,455\",\n \"tax_price\": \"4,545\",\n \"etc\": \"0\"\n },\n \"total\": {\n \"total_price\": \"50,000\",\n \"creditcardprice\": \"50,000\"\n }\n}"}]}
10
+ {"id": 9, "image": "data/ocr/test/9.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Bumbu Kaldu Ayam 1\",\n \"unitprice\": \"36000\",\n \"price\": \"36000\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"36000\"\n },\n \"total\": {\n \"cashprice\": \"50000\",\n \"changeprice\": \"14000\"\n }\n}"}]}
11
+ {"id": 10, "image": "data/ocr/test/10.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"CINNAMON SUGAR\",\n \"unitprice\": \"17,000\",\n \"cnt\": \"1 x\",\n \"price\": \"17,000\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"17,000\"\n },\n \"total\": {\n \"total_price\": \"17,000\",\n \"cashprice\": \"20,000\",\n \"changeprice\": \"3,000\"\n }\n}"}]}
12
+ {"id": 11, "image": "data/ocr/test/11.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"BANABERRY FRESH CREAM CAK\",\n \"cnt\": \"1\",\n \"price\": \"230,000\"\n },\n \"total\": {\n \"total_price\": \"230,000\",\n \"cashprice\": \"230,000\",\n \"changeprice\": \"0\"\n }\n}"}]}
13
+ {"id": 12, "image": "data/ocr/test/12.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"BLUS WANITA\",\n \"num\": \"0571-1854\",\n \"unitprice\": \"@120,000\",\n \"cnt\": \"1\",\n \"discountprice\": \"0%\",\n \"itemsubtotal\": \"120,000\"\n },\n {\n \"nm\": \"SHOPPING BAG\",\n \"num\": \"1002-0060\",\n \"unitprice\": \"@880\",\n \"cnt\": \"1\",\n \"discountprice\": \"100%\",\n \"itemsubtotal\": \"0\"\n }\n ],\n \"total\": {\n \"total_price\": \"120,000\",\n \"changeprice\": \"0\",\n \"creditcardprice\": \"120,000\",\n \"menuqty_cnt\": \"(2\"\n }\n}"}]}
14
+ {"id": 13, "image": "data/ocr/test/13.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"BASO KUAH\",\n \"unitprice\": \"43.636\",\n \"cnt\": \"1\",\n \"price\": \"43.636\"\n },\n {\n \"nm\": \"A.MINERAL GELAS\",\n \"unitprice\": \"3,000\",\n \"cnt\": \"1\",\n \"price\": \"3,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": [\n \"46.636\",\n \"46.636\"\n ],\n \"tax_price\": \"4.664\"\n },\n \"total\": {\n \"total_price\": \"51.300\",\n \"cashprice\": \"52.000\",\n \"changeprice\": \"700\"\n }\n}"}]}
15
+ {"id": 14, "image": "data/ocr/test/14.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"RedVelvet Cheese Slc\",\n \"cnt\": \"1\",\n \"price\": \"38,000\"\n },\n {\n \"nm\": \"Chicken Baked Rice\",\n \"cnt\": \"1\",\n \"price\": \"55,000\"\n },\n {\n \"nm\": \"Fish n Chips\",\n \"cnt\": \"1\",\n \"price\": \"65,000\"\n },\n {\n \"nm\": \"Mushroom Soup\",\n \"cnt\": \"1\",\n \"price\": \"35,000\"\n },\n {\n \"nm\": \"Chamomile\",\n \"cnt\": \"1\",\n \"price\": \"25,000\"\n },\n {\n \"nm\": \"Iced Tea\",\n \"cnt\": \"1\",\n \"price\": \"20,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"238,000\",\n \"service_price\": \"17,850\",\n \"tax_price\": \"25,585\"\n },\n \"total\": {\n \"total_price\": \"281,435\",\n \"total_etc\": \"100,000\",\n \"cashprice\": \"200,000\",\n \"changeprice\": \"18,565\"\n }\n}"}]}
16
+ {"id": 15, "image": "data/ocr/test/15.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Lemon Tea (L)\",\n \"cnt\": \"1\",\n \"price\": \"25.000\"\n },\n {\n \"nm\": \"Caramel Small\",\n \"cnt\": \"1\",\n \"price\": \"38.000\"\n }\n ],\n \"total\": {\n \"total_price\": \"63.000\",\n \"cashprice\": \"70.000\",\n \"changeprice\": \"7.000\"\n }\n}"}]}
17
+ {"id": 16, "image": "data/ocr/test/16.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"[LG] BLACK SAKURA\",\n \"cnt\": \"1\",\n \"price\": \"59,091\",\n \"sub\": [\n {\n \"nm\": \"LONGAN\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n },\n {\n \"nm\": \"ROASTED ALMOND\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n },\n {\n \"nm\": \"IVANGGO\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n }\n ]\n },\n {\n \"nm\": \"IVINERAL WATER (bundling) 5k\",\n \"cnt\": \"1\",\n \"price\": \"4,545\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"63,636\",\n \"tax_price\": \"6,364\",\n \"etc\": \"0\"\n },\n \"total\": {\n \"total_price\": \"70,000\",\n \"cashprice\": \"100,000\",\n \"changeprice\": \"30,000\"\n }\n}"}]}
18
+ {"id": 17, "image": "data/ocr/test/17.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Goblin's Mace\",\n \"cnt\": \"1\",\n \"price\": \"25,000\"\n },\n {\n \"nm\": \"Mozarella Hot Dog\",\n \"cnt\": \"2\",\n \"price\": \"38,000\"\n },\n {\n \"nm\": \"Chili Pepper Croquette\",\n \"cnt\": \"1\",\n \"price\": \"14,000\"\n },\n {\n \"nm\": \"Cheese Croquette\",\n \"cnt\": \"1\",\n \"price\": \"14,000\"\n },\n {\n \"nm\": \"Plastik Amook\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n },\n {\n \"nm\": \"Plastik Putih Take Away\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"91,000\",\n \"discount_price\": \"(0)\"\n },\n \"total\": {\n \"total_price\": \"Rp. 91,000\",\n \"creditcardprice\": \"91,000\"\n }\n}"}]}
19
+ {"id": 18, "image": "data/ocr/test/18.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Propolis Cair\",\n \"unitprice\": \"156000\",\n \"cnt\": \"1\",\n \"price\": \"156000\"\n },\n \"total\": {\n \"total_price\": \"156000\",\n \"cashprice\": \"156000\",\n \"changeprice\": \"Rp. 0\"\n }\n}"}]}
20
+ {"id": 19, "image": "data/ocr/test/19.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"AMBUSH DBL CHS\",\n \"cnt\": \"4\",\n \"price\": \"60000\"\n },\n {\n \"nm\": \"AMBUSH CHS BUR\",\n \"cnt\": \"10\",\n \"price\": \"100000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"160000\",\n \"tax_price\": \"16000\"\n },\n \"total\": {\n \"total_price\": \"176000\"\n }\n}"}]}
21
+ {"id": 20, "image": "data/ocr/test/20.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"cashew nuts chkn\",\n \"cnt\": \"1\",\n \"price\": \"64,500\"\n },\n {\n \"nm\": \"garlic pepper beef\",\n \"cnt\": \"1\",\n \"price\": \"79,500\"\n },\n {\n \"nm\": \"red curry beef\",\n \"cnt\": \"1\",\n \"price\": \"69,500\"\n },\n {\n \"nm\": \"phad thai\",\n \"cnt\": \"1\",\n \"price\": \"64,500\"\n },\n {\n \"nm\": \"steamed rice\",\n \"cnt\": \"4\",\n \"price\": \"47,600\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"325,600\",\n \"service_price\": \"17,908\",\n \"tax_price\": \"34,351\"\n },\n \"total\": {\n \"total_price\": \"377,859\"\n }\n}"}]}
22
+ {"id": 21, "image": "data/ocr/test/21.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"NASI GOR SFD TLR\",\n \"unitprice\": \"35.000\",\n \"cnt\": \"1\",\n \"price\": \"Rp 35.000\"\n },\n {\n \"nm\": \"ES TEH TAWAR\",\n \"unitprice\": \"3.000\",\n \"cnt\": \"1\",\n \"price\": \"Rp 3.000\"\n }\n ],\n \"total\": {\n \"total_price\": \"Rp 38.000\",\n \"cashprice\": \"Rp 50.000\",\n \"changeprice\": \"Rp 12.000\"\n }\n}"}]}
23
+ {"id": 22, "image": "data/ocr/test/22.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"[MD] SOFT STEAMED CHEESEC\",\n \"cnt\": \"2\",\n \"price\": \"20,000\"\n },\n {\n \"nm\": \"[MD] SOFT STEAMED CHOCOCA\",\n \"cnt\": \"2\",\n \"price\": \"20,000\"\n }\n ],\n \"total\": {\n \"total_price\": \"40,000\",\n \"cashprice\": \"100,000\",\n \"changeprice\": \"60,000\"\n }\n}"}]}
24
+ {"id": 23, "image": "data/ocr/test/23.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"TWIST DONUT\",\n \"cnt\": \"6\",\n \"price\": \"54,000\"\n },\n {\n \"nm\": \"REDBEAN BREAD\",\n \"cnt\": \"1\",\n \"price\": \"9,000\"\n }\n ],\n \"total\": {\n \"total_price\": \"63,000\",\n \"cashprice\": \"70,000\",\n \"changeprice\": \"7,000\"\n }\n}"}]}
25
+ {"id": 24, "image": "data/ocr/test/24.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"5001-Corn Flakes Cookies\",\n \"unitprice\": \"Rp.56.000\",\n \"cnt\": \"x1\",\n \"price\": \"Rp.56.000\"\n },\n {\n \"nm\": \"5003-Chokoreto Cookies\",\n \"unitprice\": \"Rp.62.000\",\n \"cnt\": \"x1\",\n \"price\": \"Rp.62.000\"\n },\n {\n \"nm\": \"6002-Plastic Bag Medium\",\n \"unitprice\": \"Rp.0\",\n \"cnt\": \"x1\",\n \"price\": \"Rp.0\"\n }\n ],\n \"total\": {\n \"total_price\": \"Rp.118.000\",\n \"creditcardprice\": \"118.000\",\n \"menuqty_cnt\": \"3\"\n }\n}"}]}
26
+ {"id": 25, "image": "data/ocr/test/25.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"TWIST STRAWBERRY DONUT\",\n \"cnt\": \"1\",\n \"price\": \"10,000\"\n },\n {\n \"nm\": \"TLJ CROQUETTE\",\n \"cnt\": \"1\",\n \"price\": \"17,000\"\n },\n {\n \"nm\": \"POTATO PEPPER BAGEL\",\n \"cnt\": \"1\",\n \"price\": \"16,000\"\n }\n ],\n \"total\": {\n \"total_price\": \"43,000\",\n \"cashprice\": \"50,000\",\n \"changeprice\": \"7,000\"\n }\n}"}]}
27
+ {"id": 26, "image": "data/ocr/test/26.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Nasi Cap Cay Porsi B esar\",\n \"unitprice\": \"65.000\",\n \"cnt\": \"1\",\n \"price\": \"65.000\",\n \"etc\": \"Cap Cay\"\n },\n {\n \"nm\": \"Teh Tawar\",\n \"unitprice\": \"4.000\",\n \"cnt\": \"2\",\n \"etc\": \"Minuman\"\n },\n {\n \"nm\": \"Fu Yung Hai\",\n \"unitprice\": \"65.000\",\n \"cnt\": \"1\",\n \"price\": \"65.000\",\n \"etc\": \"Lain-lain\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"Rp 138.000\"\n },\n \"total\": {\n \"total_price\": \"Rp 138.000\",\n \"cashprice\": \"Rp 138.000\",\n \"changeprice\": \"Rp 0\"\n }\n}"}]}
28
+ {"id": 27, "image": "data/ocr/test/27.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"PKT AYAM\",\n \"price\": \"33,000\"\n },\n {\n \"nm\": \"GULAI OTAK\",\n \"price\": \"23,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"56,000\",\n \"tax_price\": \"5,600\"\n },\n \"total\": {\n \"total_price\": \"61,600\",\n \"cashprice\": \"61,600\",\n \"menuqty_cnt\": \"2.00\"\n }\n}"}]}
29
+ {"id": 28, "image": "data/ocr/test/28.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"SAMGYOPSAL\",\n \"cnt\": \"2\",\n \"price\": \"194,000\"\n },\n {\n \"nm\": \"SUL LUNG TANG\",\n \"cnt\": \"1\",\n \"price\": \"75,000\"\n },\n {\n \"nm\": \"MAKOLI\",\n \"cnt\": \"1\",\n \"price\": \"100,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"369,000\",\n \"discount_price\": \"0\",\n \"service_price\": \"18,450\",\n \"tax_price\": \"38,745\"\n },\n \"total\": {\n \"total_price\": \"426,195\"\n }\n}"}]}
30
+ {"id": 29, "image": "data/ocr/test/29.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"COLD OCHA\",\n \"cnt\": \"1\",\n \"price\": \"10,909\"\n },\n {\n \"nm\": \"BCA PROMO\",\n \"cnt\": \"1\",\n \"price\": \"54,455\",\n \"sub\": [\n {\n \"nm\": \"ABURA UDON SPICY\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n },\n {\n \"nm\": \":-KAKE UDON\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n }\n ]\n },\n {\n \"nm\": \"SKEWERED SHUMAI\",\n \"cnt\": \"1\",\n \"price\": \"12,727\"\n },\n {\n \"nm\": \"SKEWERED TOFU ROLL\",\n \"cnt\": \"1\",\n \"price\": \"12,727\"\n },\n {\n \"nm\": \"EBI TEMPURA\",\n \"cnt\": \"1\",\n \"price\": \"13,636\"\n },\n {\n \"nm\": \"KITSUNE UDON (KIDS)\",\n \"cnt\": \"1\",\n \"price\": \"28,182\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"132,636\",\n \"tax_price\": \"13,264\"\n },\n \"total\": {\n \"total_price\": \"145,900\",\n \"creditcardprice\": \"[145,900]\"\n }\n}"}]}
31
+ {"id": 30, "image": "data/ocr/test/30.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Kupon 3\",\n \"price\": \"28,636\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"28,636\",\n \"tax_price\": \"2,864\"\n },\n \"total\": {\n \"total_price\": \"31,500\",\n \"cashprice\": \"50,000\",\n \"changeprice\": \"18,500\"\n }\n}"}]}
32
+ {"id": 31, "image": "data/ocr/test/31.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"SALMON PESTO\",\n \"cnt\": \"1\",\n \"price\": \"85,500\"\n },\n {\n \"nm\": \"SALMON PESTO\",\n \"cnt\": \"1\",\n \"discountprice\": \"-85,500\",\n \"price\": \"85,500\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"85,500\",\n \"service_price\": \"10,260\",\n \"tax_price\": \"18,126\"\n },\n \"total\": {\n \"total_price\": \"113,886\"\n }\n}"}]}
33
+ {"id": 32, "image": "data/ocr/test/32.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"THAI ICED GREEN TEA\",\n \"unitprice\": \"@24.000\",\n \"cnt\": \"1\",\n \"price\": \"24.000\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"24.000\"\n },\n \"total\": {\n \"total_price\": \"24.000\",\n \"cashprice\": \"50.000\",\n \"changeprice\": \"26.000\"\n }\n}"}]}
34
+ {"id": 33, "image": "data/ocr/test/33.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"GRILLED BABY POTATO (R\",\n \"cnt\": \"1\",\n \"price\": \"50,500\"\n },\n {\n \"nm\": \"HOT TUNA\",\n \"cnt\": \"1\",\n \"price\": \"67,000\"\n },\n {\n \"nm\": \"HOT TUNA\",\n \"cnt\": \"1\",\n \"discountprice\": \"-67,000\",\n \"price\": \"67,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"117,500\",\n \"service_price\": \"11,070\",\n \"tax_price\": \"19,557\"\n },\n \"total\": {\n \"total_price\": \"148,127\"\n }\n}"}]}
35
+ {"id": 34, "image": "data/ocr/test/34.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Ash Chick Sambal Matah\",\n \"cnt\": \"5\",\n \"price\": \"75.000\"\n },\n {\n \"nm\": \"Jamur Goreng\",\n \"cnt\": \"2\",\n \"price\": \"10.000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"85.000\",\n \"tax_price\": \"8.500\"\n },\n \"total\": {\n \"total_price\": \"93.500\",\n \"cashprice\": \"100.000\",\n \"changeprice\": \"6.500\"\n }\n}"}]}
36
+ {"id": 35, "image": "data/ocr/test/35.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"TWIST DONUT\",\n \"cnt\": \"2\",\n \"price\": \"18,000\"\n },\n {\n \"nm\": \"BANANA DONUT\",\n \"cnt\": \"1\",\n \"price\": \"11,000\"\n },\n {\n \"nm\": \"CREAMCHEESE BREAD\",\n \"cnt\": \"1\",\n \"price\": \"13,000\"\n },\n {\n \"nm\": \"FRANKFRUT SAUSAGE ROLL\",\n \"cnt\": \"1\",\n \"price\": \"12,000\"\n }\n ],\n \"total\": {\n \"total_price\": \"54,000\",\n \"cashprice\": \"104,000\",\n \"changeprice\": \"50,000\"\n }\n}"}]}
37
+ {"id": 36, "image": "data/ocr/test/36.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"XXL Crispy Chicken\",\n \"cnt\": \"1\",\n \"price\": \"40,000\",\n \"sub\": {\n \"nm\": \"- Sedang\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n }\n },\n \"sub_total\": {\n \"subtotal_price\": \"40,000\"\n },\n \"total\": {\n \"total_price\": \"40,000\",\n \"cashprice\": \"100,000\",\n \"changeprice\": \"60,000\",\n \"menuqty_cnt\": \"1\"\n }\n}"}]}
38
+ {"id": 37, "image": "data/ocr/test/37.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Popcorn Salt (S)\",\n \"cnt\": \"1\",\n \"price\": \"20.000\"\n },\n \"total\": {\n \"total_etc\": \"20.000\",\n \"cashprice\": \"50.000\",\n \"changeprice\": \"30.000\"\n }\n}"}]}
39
+ {"id": 38, "image": "data/ocr/test/38.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"XLB Org Pork 10x\",\n \"cnt\": \"1\",\n \"price\": \"78,000\"\n },\n {\n \"nm\": \"Sicito Babi\",\n \"cnt\": \"1\",\n \"price\": \"65,000\"\n },\n {\n \"nm\": \"Hotplate Tahu\",\n \"cnt\": \"1\",\n \"price\": \"58,000\"\n },\n {\n \"nm\": \"DF Fish Fillet Garlc\",\n \"cnt\": \"1\",\n \"price\": \"108,000\"\n },\n {\n \"nm\": \"LM Pork Belly\",\n \"cnt\": \"1\",\n \"price\": \"88,000\"\n },\n {\n \"nm\": \"Siew Mai\",\n \"cnt\": \"1\",\n \"price\": \"38,800\"\n },\n {\n \"nm\": \"Kwan Yin Cup\",\n \"cnt\": \"5\",\n \"price\": \"50,000\"\n },\n {\n \"nm\": \"Herbal Jelly\",\n \"cnt\": \"1\",\n \"price\": \"38,000\"\n },\n {\n \"nm\": \"Onde-Onde\",\n \"cnt\": \"1\",\n \"price\": \"38,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"561,800\",\n \"service_price\": \"42,135\",\n \"tax_price\": \"60,394\"\n },\n \"total\": {\n \"total_price\": \"664,329\",\n \"menuqty_cnt\": \"13\"\n }\n}"}]}
40
+ {"id": 39, "image": "data/ocr/test/39.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"LUNCH BOX 3P SET W/RED BAG & SP00 N.\",\n \"num\": \"HPL754DR\",\n \"unitprice\": \"243,000\",\n \"cnt\": \"8\",\n \"price\": \"1,944,000\",\n \"itemsubtotal\": \"1,555,200\"\n },\n {\n \"nm\": \"RICE CASE 7L W/CUP\",\n \"num\": \"HPL500\",\n \"unitprice\": \"195,000\",\n \"cnt\": \"5\",\n \"price\": \"975,000\",\n \"itemsubtotal\": \"780,000\"\n },\n {\n \"nm\": \"LUNCH BOX 3P SET W/BLACK BAG & SP OON\",\n \"num\": \"HPL754DB\",\n \"unitprice\": \"243,000\",\n \"cnt\": \"4\",\n \"price\": \"972,000\",\n \"itemsubtotal\": \"777,600\"\n }\n ],\n \"total\": {\n \"creditcardprice\": \"3,112,800\",\n \"menutype_cnt\": \"3\",\n \"menuqty_cnt\": \"17\"\n }\n}"}]}
41
+ {"id": 40, "image": "data/ocr/test/40.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Snack Lestari All\",\n \"unitprice\": \"27,000\",\n \"cnt\": \"2\",\n \"price\": \"54,000\"\n },\n {\n \"nm\": \"Bakery Aneka Sisir Banana,Pizza,yoko,Mar mer,Daging,abon,keju,cokelat,dll\",\n \"unitprice\": \"7,000\",\n \"cnt\": \"2\",\n \"price\": \"14,000\"\n }\n ],\n \"total\": {\n \"total_price\": \"68,000\",\n \"cashprice\": \"100,000\",\n \"changeprice\": \"32,000\"\n }\n}"}]}
42
+ {"id": 41, "image": "data/ocr/test/41.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Chicken Maryland\",\n \"price\": \"47619.00\"\n },\n {\n \"nm\": \"Cappucino (Hot/Iced)\",\n \"price\": \"30303.00\"\n },\n {\n \"nm\": \"Naga Lychee Juice\",\n \"price\": \"34632.00\"\n },\n {\n \"nm\": \"Cafe Latte\",\n \"price\": \"30303.00\"\n },\n {\n \"nm\": \"Hot Chocolate Marshmallo\",\n \"price\": \"30303.00\"\n },\n {\n \"nm\": \"Chicken Cesar Salad\",\n \"price\": \"43290.00\"\n },\n {\n \"nm\": \"Mineral Water\",\n \"price\": \"12987.00\"\n },\n {\n \"nm\": \"Mineral Water\",\n \"price\": \"12987.00\"\n },\n {\n \"nm\": \"Lychee/Peach/Lemon/Mango\",\n \"price\": \"25974.00\"\n },\n {\n \"nm\": \"Chicken Maryland\",\n \"price\": \"47619.00\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"316017.00\",\n \"service_price\": \"48982.68\"\n },\n \"total\": {\n \"total_price\": \"365000.00\"\n }\n}"}]}
43
+ {"id": 42, "image": "data/ocr/test/42.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Chicken HCC. 1Pcs\",\n \"cnt\": \"1\",\n \"price\": \"15.000\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"15,000\",\n \"tax_price\": \"1,500\"\n },\n \"total\": {\n \"total_price\": \"16,500\",\n \"cashprice\": \"50,000\",\n \"changeprice\": \"33,500\",\n \"menuqty_cnt\": \"1\"\n }\n}"}]}
44
+ {"id": 43, "image": "data/ocr/test/43.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Cheese Tart\",\n \"cnt\": \"6\",\n \"price\": \"165000.00\",\n \"sub\": [\n {\n \"nm\": \"Box of 6\"\n },\n {\n \"nm\": \"PP Carrier\"\n }\n ]\n },\n \"sub_total\": {\n \"subtotal_price\": \"Rp 165000.00\",\n \"tax_price\": \"Rp 15000.00\"\n },\n \"total\": {\n \"total_price\": \"Rp 165000.00\",\n \"cashprice\": \"Rp 200000.00\",\n \"changeprice\": \"Rp 35000.00\"\n }\n}"}]}
45
+ {"id": 44, "image": "data/ocr/test/44.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Combo 1\",\n \"cnt\": \"1\",\n \"price\": \"30.000\"\n },\n \"total\": {\n \"total_price\": \"30.000\",\n \"cashprice\": \"50.000\",\n \"changeprice\": \"20.000\"\n }\n}"}]}
46
+ {"id": 45, "image": "data/ocr/test/45.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Lemon Tea (L).\",\n \"cnt\": \"1\",\n \"price\": \"25.000\"\n },\n {\n \"nm\": \"Mike & Ike Original\",\n \"cnt\": \"1\",\n \"price\": \"28.000\"\n },\n {\n \"nm\": \"Mike & Berry\",\n \"cnt\": \"1\",\n \"price\": \"28.000\"\n },\n {\n \"nm\": \"Roti Keju Manis.\",\n \"cnt\": \"1\",\n \"price\": \"7.000\"\n }\n ],\n \"total\": {\n \"total_price\": \"88,000\",\n \"cashprice\": \"88.000\",\n \"changeprice\": \"0\"\n }\n}"}]}
47
+ {"id": 46, "image": "data/ocr/test/46.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"S-Bubble Milk Tea\",\n \"unitprice\": \"@20,000\",\n \"cnt\": \"1X\",\n \"price\": \"20,000\",\n \"sub\": {\n \"nm\": \"100%\"\n }\n },\n {\n \"nm\": \"S-Caramel Milk Tea\",\n \"unitprice\": \"@20,000\",\n \"cnt\": \"1X\",\n \"price\": \"20,000\",\n \"sub\": {\n \"nm\": \"100%\"\n }\n }\n ],\n \"total\": {\n \"total_price\": \"40,000\",\n \"cashprice\": \"40,000\",\n \"changeprice\": \"0\"\n }\n}"}]}
48
+ {"id": 47, "image": "data/ocr/test/47.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"COPIA 1 /GB\",\n \"num\": \"2100252000358\",\n \"unitprice\": \"45,000.00\",\n \"cnt\": \"1\",\n \"price\": \"45,000.00\"\n },\n {\n \"nm\": \"PLASTIC BAG RED CENTRAL SI\",\n \"num\": \"9100544260074\",\n \"unitprice\": \"0.00\",\n \"cnt\": \"1\",\n \"price\": \"0.00\"\n },\n {\n \"nm\": \"COPIA 1 /GB\",\n \"num\": \"2100252000358\",\n \"unitprice\": \"18,000.00\",\n \"cnt\": \"1\",\n \"price\": \"18,000.00\"\n }\n ],\n \"sub_total\": {\n \"discount_price\": \"0.00\"\n },\n \"total\": {\n \"total_price\": \"63,000.00\",\n \"creditcardprice\": \"63,000.00\",\n \"menuqty_cnt\": \"3\"\n }\n}"}]}
49
+ {"id": 48, "image": "data/ocr/test/48.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"S-Hazelnut KOI Cafe\",\n \"unitprice\": \"@25,000\",\n \"cnt\": \"1X\",\n \"price\": \"25,000\",\n \"sub\": [\n {\n \"nm\": \"25%\"\n },\n {\n \"nm\": \"Less Ice\"\n }\n ]\n },\n \"sub_total\": {\n \"subtotal_price\": \"22,728\",\n \"tax_price\": \"2,272\"\n },\n \"total\": {\n \"total_price\": \"25,000\",\n \"cashprice\": \"100,000\",\n \"changeprice\": \"75,000\"\n }\n}"}]}
50
+ {"id": 49, "image": "data/ocr/test/49.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Ptgs Eggtart\",\n \"cnt\": \"1\",\n \"price\": \"12,000\"\n },\n {\n \"nm\": \"Choco Melt\",\n \"cnt\": \"1\",\n \"price\": \"11,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"23,000\"\n },\n \"total\": {\n \"total_price\": \"23,000\",\n \"cashprice\": \"50,000\",\n \"changeprice\": \"27,000\",\n \"menutype_cnt\": \"2\",\n \"menuqty_cnt\": \"2\"\n }\n}"}]}
51
+ {"id": 50, "image": "data/ocr/test/50.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Superice Cauburry\",\n \"cnt\": \"1\",\n \"price\": \"17,727\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"17,727\",\n \"tax_price\": \"1,773\"\n },\n \"total\": {\n \"total_price\": \"19,500\",\n \"cashprice\": \"100,000\",\n \"changeprice\": \"80,500\"\n }\n}"}]}
52
+ {"id": 51, "image": "data/ocr/test/51.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"(TA) NASI GRG TERI MEDAN\",\n \"cnt\": \"4\",\n \"price\": \"165,460\"\n },\n {\n \"nm\": \"(TA) BIHUN GORENG SEAFOOD\",\n \"cnt\": \"1\",\n \"price\": \"40,456\"\n },\n {\n \"nm\": \"(TA) KWETIAW SEAFOOD SIRAM\",\n \"cnt\": \"1\",\n \"price\": \"42,274\"\n },\n {\n \"nm\": \"(TA) NASI GORENG\",\n \"cnt\": \"2\",\n \"price\": \"55,456\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"303,646\",\n \"tax_price\": \"30,365\",\n \"etc\": \"334,011\"\n },\n \"total\": {\n \"total_price\": \"334,000\",\n \"total_etc\": \"-11\",\n \"creditcardprice\": \"334,000\",\n \"menuqty_cnt\": \"8\"\n }\n}"}]}
53
+ {"id": 52, "image": "data/ocr/test/52.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"THAI ICED TEA\",\n \"unitprice\": \"@20.000\",\n \"cnt\": \"1\",\n \"price\": \"20.000\"\n },\n {\n \"nm\": \"THAI ICED TEA\",\n \"unitprice\": \"@20.000\",\n \"cnt\": \"1\",\n \"price\": \"20.000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"40.000\"\n },\n \"total\": {\n \"total_price\": \"40.000\",\n \"cashprice\": \"100.000\",\n \"changeprice\": \"60.000\"\n }\n}"}]}
54
+ {"id": 53, "image": "data/ocr/test/53.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Pecel Komplit + Nasi\",\n \"cnt\": \"1\",\n \"price\": \"42.000\"\n },\n {\n \"nm\": \"SOTO KUDUS\",\n \"cnt\": \"1\",\n \"price\": \"47.000\"\n },\n {\n \"nm\": \"Mineral Water\",\n \"cnt\": \"2\",\n \"price\": \"18.000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"107.000\",\n \"service_price\": \"5.350\",\n \"tax_price\": \"11.235\"\n },\n \"total\": {\n \"total_price\": \"123.585\",\n \"menuqty_cnt\": \"4\"\n }\n}"}]}
55
+ {"id": 54, "image": "data/ocr/test/54.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"KACANG MERAH\",\n \"price\": \"10,000\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"10,000\"\n },\n \"total\": {\n \"total_price\": \"10,000\",\n \"cashprice\": \"10,000\"\n }\n}"}]}
56
+ {"id": 55, "image": "data/ocr/test/55.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"APPLE CINNAMON PASTRY\",\n \"cnt\": \"1\",\n \"price\": \"22,000\"\n },\n {\n \"nm\": \"ROYAL CHEESE TART\",\n \"cnt\": \"2\",\n \"price\": \"32,000\"\n }\n ],\n \"total\": {\n \"total_price\": \"54,000\",\n \"creditcardprice\": \"54,000\"\n }\n}"}]}
57
+ {"id": 56, "image": "data/ocr/test/56.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"AIR MINERAL\",\n \"price\": \"8,181\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"8,181\",\n \"tax_price\": \"818\"\n },\n \"total\": {\n \"total_price\": \"8,999\",\n \"cashprice\": \"10,000\",\n \"changeprice\": \"1,001\"\n }\n}"}]}
58
+ {"id": 57, "image": "data/ocr/test/57.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"ICED TT\",\n \"price\": \"20,000\"\n },\n {\n \"nm\": \"ICED GT\",\n \"price\": \"22,000\"\n }\n ],\n \"total\": {\n \"cashprice\": \"42,000\"\n }\n}"}]}
59
+ {"id": 58, "image": "data/ocr/test/58.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"PHO BO TAI\",\n \"cnt\": \"1\",\n \"price\": \"55,000\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"55,000\",\n \"tax_price\": \"5,500\"\n },\n \"total\": {\n \"total_price\": \"60,500\",\n \"cashprice\": [\n \"100,000\",\n \"100,000\"\n ],\n \"changeprice\": \"39,500\"\n }\n}"}]}
60
+ {"id": 59, "image": "data/ocr/test/59.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Tahu Isi\",\n \"cnt\": \"2\",\n \"price\": \"78,000\"\n },\n {\n \"nm\": \"Tea\",\n \"cnt\": \"5\",\n \"price\": \"30,000\"\n },\n {\n \"nm\": \"Kepiting 7-8.4ons - Chilly 0.7 1\",\n \"cnt\": \"1\",\n \"price\": \"297,490\"\n },\n {\n \"nm\": \"Udang Telur Asin - Regular\",\n \"cnt\": \"1\",\n \"price\": \"47,500\"\n },\n {\n \"nm\": \"Kailan 2 Rasa\",\n \"cnt\": \"1\",\n \"price\": \"45,000\"\n },\n {\n \"nm\": \"Mantau - 2 pcs\",\n \"cnt\": \"1\",\n \"price\": \"25,000\"\n },\n {\n \"nm\": \"Sweet Tea\",\n \"cnt\": \"2\",\n \"price\": \"16,000\"\n },\n {\n \"nm\": \"Nasi Putih\",\n \"cnt\": \"7\",\n \"price\": \"42,000\"\n },\n {\n \"nm\": \"Mantau - 3 pcs\",\n \"cnt\": \"1\",\n \"price\": \"37,500\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"618,490\",\n \"tax_price\": \"61,849\"\n },\n \"total\": {\n \"total_price\": \"680,500\",\n \"menutype_cnt\": \"9\",\n \"menuqty_cnt\": \"21\"\n }\n}"}]}
61
+ {"id": 60, "image": "data/ocr/test/60.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Topping Milo Sparkle (untuk 1 Po rsi)\",\n \"unitprice\": \"1.250\",\n \"cnt\": \"1x\",\n \"price\": \"1.250\"\n },\n {\n \"nm\": \"Bola Ubi Mini Original (14 Pcs )\",\n \"unitprice\": \"12.500\",\n \"cnt\": \"2x\",\n \"price\": \"25.000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"26.250\",\n \"tax_price\": \"-\"\n },\n \"total\": {\n \"total_price\": \"26.250\"\n }\n}"}]}
62
+ {"id": 61, "image": "data/ocr/test/61.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"TALAM UNGU\",\n \"unitprice\": \"6500\",\n \"cnt\": \"1x\",\n \"discountprice\": \"-2 600\",\n \"price\": \"6,500\"\n },\n {\n \"nm\": \"AREM - AREM\",\n \"unitprice\": \"8000\",\n \"cnt\": \"1X\",\n \"discountprice\": \"-3,200\",\n \"price\": \"8,000\"\n },\n {\n \"nm\": \"LEMPER\",\n \"unitprice\": \"9000\",\n \"cnt\": \"2X\",\n \"discountprice\": \"-7.200\",\n \"price\": \"18,000\"\n },\n {\n \"nm\": \"MIKA SEDANG\",\n \"unitprice\": \"0\",\n \"cnt\": \"1X\",\n \"price\": \"0\"\n },\n {\n \"nm\": \"PLASTIK KECIL\",\n \"unitprice\": \"0\",\n \"cnt\": \"1X\",\n \"price\": \"0\"\n },\n {\n \"nm\": \"TEH KOTAK\",\n \"unitprice\": \"5000\",\n \"cnt\": \"1X\",\n \"price\": \"5,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"24,500\"\n },\n \"total\": {\n \"total_price\": \"24,500\",\n \"creditcardprice\": \"24,500\",\n \"menuqty_cnt\": \"7.00\"\n }\n}"}]}
63
+ {"id": 62, "image": "data/ocr/test/62.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"XXI Java Tea (M)\",\n \"cnt\": \"1\",\n \"price\": \"18.000\"\n },\n {\n \"nm\": \"Combo 2\",\n \"cnt\": \"1\",\n \"price\": \"30.000\"\n }\n ],\n \"total\": {\n \"total_price\": \"48.000\",\n \"cashprice\": \"50.000\",\n \"changeprice\": \"2,000\"\n }\n}"}]}
64
+ {"id": 63, "image": "data/ocr/test/63.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Kopi Susu Kampung.\",\n \"cnt\": \"x1\",\n \"price\": \"19.000\",\n \"sub\": [\n {\n \"nm\": \"Ice\"\n },\n {\n \"nm\": \"Kopi Susu Kampung Less Ice\",\n \"price\": \"0\"\n }\n ]\n },\n {\n \"nm\": \"Kopi Susu Kampung.\",\n \"cnt\": \"x2\",\n \"price\": \"38.000\",\n \"sub\": {\n \"nm\": \"Ice\"\n }\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"57.000\"\n },\n \"total\": {\n \"total_price\": \"57.000\",\n \"cashprice\": \"60.000\",\n \"changeprice\": \"3.000\"\n }\n}"}]}
65
+ {"id": 64, "image": "data/ocr/test/64.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"SINGLE SCOOP\",\n \"price\": \"16.000\"\n },\n \"total\": {\n \"total_price\": \"16.000\",\n \"cashprice\": \"50.000\",\n \"changeprice\": \"34.000\"\n }\n}"}]}
66
+ {"id": 65, "image": "data/ocr/test/65.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Bubur Polos + Telur\",\n \"unitprice\": \"13.000\",\n \"cnt\": \"1\",\n \"price\": \"13.000\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"13.000\",\n \"tax_price\": \"-\"\n },\n \"total\": {\n \"total_price\": \"13.000\"\n }\n}"}]}
67
+ {"id": 66, "image": "data/ocr/test/66.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"PILLOW DURIA\",\n \"price\": \"36,364\"\n },\n {\n \"nm\": \"PLASTIK 25\",\n \"price\": \"0\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"36,364\",\n \"tax_price\": \"3,636\"\n },\n \"total\": {\n \"total_price\": \"40,000\",\n \"cashprice\": \"50,000\",\n \"changeprice\": \"10,000\"\n }\n}"}]}
68
+ {"id": 67, "image": "data/ocr/test/67.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"CHEESE JOHN\",\n \"num\": \"2005-\",\n \"unitprice\": \"9.500,00\",\n \"cnt\": \"x1\",\n \"price\": \"9.500,00\"\n },\n \"total\": {\n \"total_price\": \"9.500,00\",\n \"cashprice\": \"9.500,00\",\n \"menuqty_cnt\": \"1\"\n }\n}"}]}
69
+ {"id": 68, "image": "data/ocr/test/68.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"ICED TT\",\n \"price\": \"20,000\"\n },\n \"total\": {\n \"total_price\": \"20,000\",\n \"cashprice\": \"50,000\",\n \"changeprice\": \"30,000\"\n }\n}"}]}
70
+ {"id": 69, "image": "data/ocr/test/69.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"[MD] SOFT MORNING ROLL\",\n \"cnt\": \"1\",\n \"price\": \"18,000\"\n },\n {\n \"nm\": \"REAL HONEY PANCAKE BREAD\",\n \"cnt\": \"2\",\n \"price\": \"20,000\"\n },\n {\n \"nm\": \"CUSTARD BRIOCHE\",\n \"cnt\": \"4\",\n \"price\": \"36,000\"\n }\n ],\n \"total\": {\n \"total_price\": \"74,000\",\n \"cashprice\": \"100,000\",\n \"changeprice\": \"26,000\"\n }\n}"}]}
71
+ {"id": 70, "image": "data/ocr/test/70.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"UDANG RE\",\n \"unitprice\": \"216,000\",\n \"cnt\": \"2\",\n \"price\": \"432,000\"\n },\n {\n \"nm\": \"=*LARGE*==\",\n \"cnt\": \"2\"\n },\n {\n \"nm\": \"AYM GR JUN NJAN\",\n \"cnt\": \"1\",\n \"price\": \"108,000\",\n \"sub\": {\n \"nm\": \"=*MEDIUM*=\"\n }\n },\n {\n \"nm\": \"SAPO TH SEAFOOD\",\n \"cnt\": \"1\",\n \"price\": \"172,000\",\n \"sub\": {\n \"nm\": \"=*LARGE*==\"\n }\n },\n {\n \"nm\": \"POCAI 3\",\n \"unitprice\": \"111,000\",\n \"cnt\": \"2\",\n \"price\": \"222.000\"\n },\n {\n \"nm\": \"=*MEDIUM*=\",\n \"cnt\": \"2\"\n },\n {\n \"nm\": \"GURAME FILLET M\",\n \"cnt\": \"1\",\n \"price\": \"163,000\",\n \"sub\": {\n \"nm\": \"ASAM MANIS\"\n }\n },\n {\n \"nm\": \"BIHUN GORENG JJ\",\n \"cnt\": \"1\",\n \"price\": \"116,000\",\n \"sub\": {\n \"nm\": \"=*LARGE*==\"\n }\n },\n {\n \"nm\": \"ICED TEA\",\n \"unitprice\": \"12,000\",\n \"cnt\": \"5\",\n \"price\": \"60,000\"\n },\n {\n \"nm\": \"NASI PUTIH\",\n \"unitprice\": \"10,000\",\n \"cnt\": \"7\",\n \"price\": \"70,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"1,343,000\",\n \"service_price\": \"80,580\",\n \"tax_price\": \"142,358\",\n \"etc\": [\n \"1,213,000\",\n \"60,000\",\n \"70,000\"\n ]\n },\n \"total\": {\n \"total_price\": \"1,565,938\"\n }\n}"}]}
72
+ {"id": 71, "image": "data/ocr/test/71.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Cuka Apel Tetes\",\n \"unitprice\": \"198000\",\n \"cnt\": \"1\",\n \"price\": \"198000\"\n },\n \"total\": {\n \"total_price\": \"198000\",\n \"cashprice\": \"200200\",\n \"changeprice\": \"22000\"\n }\n}"}]}
73
+ {"id": 72, "image": "data/ocr/test/72.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Choco Devil\",\n \"cnt\": \"1\",\n \"price\": \"15,909\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"15,909\",\n \"tax_price\": \"1,591\"\n },\n \"total\": {\n \"total_price\": \"17,500\",\n \"cashprice\": \"20,000\",\n \"changeprice\": \"2,500\"\n }\n}"}]}
74
+ {"id": 73, "image": "data/ocr/test/73.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"1001-Choco Bun\",\n \"unitprice\": \"22.000\",\n \"cnt\": \"x1\",\n \"price\": \"22.000\"\n },\n {\n \"nm\": \"6001-Plastic Bag Small\",\n \"unitprice\": \"0\",\n \"cnt\": \"x1\",\n \"price\": \"0\"\n }\n ],\n \"total\": {\n \"total_price\": \"22.000\",\n \"cashprice\": \"25.000\",\n \"changeprice\": \"3.000\",\n \"menuqty_cnt\": \"2\"\n }\n}"}]}
75
+ {"id": 74, "image": "data/ocr/test/74.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"BLACKCURRANT\",\n \"cnt\": \"1\",\n \"price\": \"32,000\"\n },\n {\n \"nm\": \"SPRITE\",\n \"cnt\": \"1\",\n \"price\": \"32,000\"\n },\n {\n \"nm\": \"GRILLED CALAMARI\",\n \"cnt\": \"1\",\n \"price\": \"85,000\"\n },\n {\n \"nm\": \"DINE FOR 2\",\n \"cnt\": \"1\",\n \"price\": \"129,000\",\n \"sub\": [\n {\n \"nm\": \"* DANISH FISH & CHIPS DF\"\n },\n {\n \"nm\": \"* NEW YORK FISH & CHIPS\"\n }\n ]\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"278,000\",\n \"service_price\": \"22,240\",\n \"tax_price\": \"30,024\",\n \"etc\": [\n \"64,000\",\n \"214,000\"\n ]\n },\n \"total\": {\n \"total_price\": \"330,264\"\n }\n}"}]}
76
+ {"id": 75, "image": "data/ocr/test/75.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"CHOCO PUFF\",\n \"cnt\": \"1\",\n \"price\": \"29,091\"\n },\n {\n \"nm\": \"CREAMY BEEF CLS FTC\",\n \"cnt\": \"1\",\n \"price\": \"42,727\"\n },\n {\n \"nm\": \"NEW ORIENTAL CHK RICE\",\n \"cnt\": \"1\",\n \"price\": \"34,545\"\n },\n {\n \"nm\": \"LIPTON PITCHER\",\n \"cnt\": \"1\",\n \"price\": \"54,545\"\n },\n {\n \"nm\": \"SC/P SUPER SUPREME\",\n \"cnt\": \"1\",\n \"price\": \"47,273\"\n },\n {\n \"nm\": \"CB/P BLACK PEPP BEEF\",\n \"cnt\": \"1\",\n \"price\": \"48,182\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"256,363\",\n \"tax_price\": \"25,637\"\n },\n \"total\": {\n \"total_price\": \"282,000\"\n }\n}"}]}
77
+ {"id": 76, "image": "data/ocr/test/76.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"BASO TAHU\",\n \"price\": \"*46000\"\n },\n {\n \"nm\": \"NASI PUTIH\",\n \"price\": \"*6000\"\n },\n {\n \"nm\": \"BASO TAHU\",\n \"price\": \"*46000\"\n },\n {\n \"nm\": \"NASI PUTIH\",\n \"unitprice\": \"6000\",\n \"cnt\": \"2x\",\n \"price\": \"*12000\"\n }\n ],\n \"total\": {\n \"cashprice\": \"*110000\",\n \"menutype_cnt\": \"50 -\"\n }\n}"}]}
78
+ {"id": 77, "image": "data/ocr/test/77.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"TRIPPLE CHEESE\",\n \"unitprice\": \"17,000\",\n \"cnt\": \"1 x\",\n \"price\": \"17,000\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"17,000\"\n },\n \"total\": {\n \"total_price\": \"17,000\",\n \"cashprice\": \"22,000\",\n \"changeprice\": \"5,000\"\n }\n}"}]}
79
+ {"id": 78, "image": "data/ocr/test/78.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Lemon Tea (L)\",\n \"cnt\": \"1\",\n \"price\": \"25.000\",\n \"sub\": {\n \"nm\": \"Extra Jelly Lychee\",\n \"cnt\": \"1\",\n \"price\": \"5.000\"\n }\n },\n \"total\": {\n \"total_price\": \"30.000\",\n \"cashprice\": \"30.000\",\n \"changeprice\": \"0\"\n }\n}"}]}
80
+ {"id": 79, "image": "data/ocr/test/79.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"1001-Choco Bun\",\n \"unitprice\": \"22.000\",\n \"cnt\": \"x1\",\n \"price\": \"22.000\"\n },\n {\n \"nm\": \"6001-Plastic Bag Small\",\n \"unitprice\": \"0\",\n \"cnt\": \"x1\",\n \"price\": \"0\"\n }\n ],\n \"total\": {\n \"total_price\": \"22.000\",\n \"cashprice\": \"22.000\",\n \"menuqty_cnt\": \"2\"\n }\n}"}]}
81
+ {"id": 80, "image": "data/ocr/test/80.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"Viet Milk Coffee\",\n \"cnt\": \"1\",\n \"price\": \"25,000\",\n \"sub\": [\n {\n \"nm\": \"+Ice\"\n },\n {\n \"nm\": \"+M\"\n }\n ]\n },\n \"sub_total\": {\n \"subtotal_price\": \"25.000\"\n },\n \"total\": {\n \"total_price\": \"25.000\",\n \"cashprice\": \"25.000\",\n \"changeprice\": \"0\"\n }\n}"}]}
82
+ {"id": 81, "image": "data/ocr/test/81.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"3002-Kyoto Choco Mochi\",\n \"unitprice\": \"14.000\",\n \"cnt\": \"x2\",\n \"price\": \"28.000\"\n },\n {\n \"nm\": \"1001-Choco Bun\",\n \"unitprice\": \"22.000\",\n \"cnt\": \"x1\",\n \"price\": \"22.000\"\n },\n {\n \"nm\": \"6001-Plastic Bag Small\",\n \"unitprice\": \"0\",\n \"cnt\": \"x1\",\n \"price\": \"0\"\n }\n ],\n \"total\": {\n \"total_price\": \"50.000\",\n \"menuqty_cnt\": \"4\"\n }\n}"}]}
83
+ {"id": 82, "image": "data/ocr/test/82.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Chocolate Log Cake\",\n \"unitprice\": \"115,000\",\n \"cnt\": \"1x\",\n \"price\": \"115,000\"\n },\n {\n \"nm\": \"Snowman Cake Chocolate\",\n \"unitprice\": \"60,000\",\n \"cnt\": \"1x\",\n \"price\": \"60,000\"\n },\n {\n \"nm\": \"Strawberry Log Cake\",\n \"unitprice\": \"105,000\",\n \"cnt\": \"2x\",\n \"price\": \"210,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"385,000\"\n },\n \"total\": {\n \"total_price\": \"385,000\",\n \"changeprice\": \"0\",\n \"creditcardprice\": \"385,000\"\n }\n}"}]}
84
+ {"id": 83, "image": "data/ocr/test/83.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"COOKIES AND CREAM\",\n \"cnt\": \"1\",\n \"price\": \"20,909\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"20,909\",\n \"tax_price\": \"2,091\"\n },\n \"total\": {\n \"total_price\": \"23,000\",\n \"cashprice\": \"25.000\",\n \"changeprice\": \"2.000\",\n \"menuqty_cnt\": \"1\"\n }\n}"}]}
85
+ {"id": 84, "image": "data/ocr/test/84.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Kroket\",\n \"unitprice\": \"@ 12.000\",\n \"cnt\": \"1x\",\n \"price\": \"12.000\"\n },\n {\n \"nm\": \"Arem Arem\",\n \"unitprice\": \"@ 12.000\",\n \"cnt\": \"2x\",\n \"price\": \"24.000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"Rp 36.000\",\n \"tax_price\": \"Rp 3.600\"\n },\n \"total\": {\n \"total_price\": \"Rp 39.600\",\n \"emoneyprice\": \"Rp 39.600\"\n }\n}"}]}
86
+ {"id": 85, "image": "data/ocr/test/85.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Nasi Putih\",\n \"cnt\": \"3\",\n \"price\": \"30.000\"\n },\n {\n \"nm\": \"Nasi Tambah\",\n \"cnt\": \"1\",\n \"price\": \"7.000\"\n },\n {\n \"nm\": \"Ayam Pop\",\n \"cnt\": \"2\",\n \"price\": \"40.000\"\n },\n {\n \"nm\": \"Samabal SP\",\n \"cnt\": \"1\",\n \"price\": \"11.000\"\n },\n {\n \"nm\": \"Sambal Gabus Asin Cb\",\n \"cnt\": \"1\",\n \"price\": \"18.000\"\n },\n {\n \"nm\": \"Kerupuk Kuah\",\n \"cnt\": \"1\",\n \"price\": \"15.000\"\n },\n {\n \"nm\": \"Ikan Bawal Besa\",\n \"cnt\": \"1\",\n \"price\": \"28.500\"\n },\n {\n \"nm\": \"Telur Dadar\",\n \"cnt\": \"1\",\n \"price\": \"10.000\"\n },\n {\n \"nm\": \"Teh Es\",\n \"cnt\": \"1\",\n \"price\": \"7.000\"\n },\n {\n \"nm\": \"Teh Manis\",\n \"cnt\": \"1\",\n \"price\": \"9.000\"\n },\n {\n \"nm\": \"Es Batu\",\n \"cnt\": \"1\",\n \"price\": \"4.000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"179.500\",\n \"tax_price\": \"17.950\",\n \"etc\": [\n \"159.500\",\n \"20.000\"\n ]\n },\n \"total\": {\n \"total_price\": \"197.450\",\n \"cashprice\": \"197.450\",\n \"menuqty_cnt\": \"14\"\n }\n}"}]}
87
+ {"id": 86, "image": "data/ocr/test/86.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"Cheezemania\",\n \"cnt\": \"1\",\n \"price\": \"9,500\"\n },\n {\n \"nm\": \"Mamamia\",\n \"cnt\": \"1\",\n \"price\": \"12,500\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"22,000\"\n },\n \"total\": {\n \"total_price\": \"22,000\",\n \"cashprice\": \"52,000\",\n \"changeprice\": \"30,000\",\n \"menutype_cnt\": \"2\",\n \"menuqty_cnt\": \"2\"\n }\n}"}]}
88
+ {"id": 87, "image": "data/ocr/test/87.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"PHOTAI CHIN\",\n \"cnt\": \"1\",\n \"price\": \"36,500\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"36,500\",\n \"tax_price\": \"3,650\"\n },\n \"total\": {\n \"total_price\": \"40,150\",\n \"creditcardprice\": \"40,150\"\n }\n}"}]}
89
+ {"id": 88, "image": "data/ocr/test/88.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"STIX ECLAIRS\",\n \"unitprice\": \"19,000\",\n \"cnt\": \"1 x\",\n \"price\": \"19,000\"\n },\n {\n \"nm\": \"ALMOND CREAM CHEESE\",\n \"unitprice\": \"28,000\",\n \"cnt\": \"1 x\",\n \"price\": \"28,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"47,000\"\n },\n \"total\": {\n \"total_price\": \"47,000\",\n \"changeprice\": \"0\",\n \"creditcardprice\": \"47,000\"\n }\n}"}]}
90
+ {"id": 89, "image": "data/ocr/test/89.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"XXL Crispy Chicken\",\n \"cnt\": \"1\",\n \"price\": \"40,000\",\n \"sub\": {\n \"nm\": \"Pedas sedikit\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n }\n },\n \"sub_total\": {\n \"subtotal_price\": \"40,000\"\n },\n \"total\": {\n \"total_price\": \"40,000\",\n \"cashprice\": \"50,000\",\n \"changeprice\": \"10,000\",\n \"menuqty_cnt\": \"1\"\n }\n}"}]}
91
+ {"id": 90, "image": "data/ocr/test/90.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"CIRENG PANDAWA\",\n \"cnt\": \"1\",\n \"price\": \"26,818\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"26,818\",\n \"tax_price\": \"2,681\"\n },\n \"total\": {\n \"total_price\": \"29,500\",\n \"cashprice\": \"29,500\",\n \"menutype_cnt\": \"1\",\n \"menuqty_cnt\": \"1\"\n }\n}"}]}
92
+ {"id": 91, "image": "data/ocr/test/91.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"BAKSO BNGKS\",\n \"cnt\": \"1\",\n \"price\": \"15.000\"\n },\n {\n \"nm\": \"GORENGAN\",\n \"cnt\": \"6\",\n \"price\": \"6.000\"\n }\n ],\n \"total\": {\n \"total_price\": \"21.000\",\n \"cashprice\": \"30.000\",\n \"changeprice\": \"9.000\"\n }\n}"}]}
93
+ {"id": 92, "image": "data/ocr/test/92.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"- TICKET CP\",\n \"num\": \"901016\",\n \"unitprice\": \"60.000\",\n \"cnt\": \"4\",\n \"price\": \"240,000\"\n },\n \"total\": {\n \"total_price\": \"240.000\",\n \"cashprice\": \"250.000\",\n \"changeprice\": \"10,000\",\n \"menuqty_cnt\": \"(Qty=4.00)\"\n }\n}"}]}
94
+ {"id": 93, "image": "data/ocr/test/93.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"THAI ICED TEA (L)\",\n \"unitprice\": \"16,363\",\n \"cnt\": \"1 X\",\n \"price\": \"16,363\"\n },\n \"sub_total\": {\n \"subtotal_price\": \"16,363\",\n \"tax_price\": \"1,636\"\n },\n \"total\": {\n \"total_price\": \"17,999\",\n \"menuqty_cnt\": \"1\"\n }\n}"}]}
95
+ {"id": 94, "image": "data/ocr/test/94.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"TAHU GORENG\",\n \"cnt\": \"1\",\n \"price\": \"28,000\"\n },\n {\n \"nm\": \"CAKWE\",\n \"cnt\": \"1\",\n \"price\": \"17,000\"\n },\n {\n \"nm\": \"PHO TAI CHIN(R)\",\n \"cnt\": \"1\",\n \"price\": \"63,000\"\n },\n {\n \"nm\": \"TEA\",\n \"cnt\": \"1\",\n \"price\": \"11,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"119,000\",\n \"service_price\": \"8,330\",\n \"tax_price\": \"12,733\"\n },\n \"total\": {\n \"total_price\": \"140,063\",\n \"creditcardprice\": \"140,063\"\n }\n}"}]}
96
+ {"id": 95, "image": "data/ocr/test/95.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"BASO TAHU\",\n \"unitprice\": \"43,181\",\n \"cnt\": \"1\",\n \"price\": \"43,181\"\n },\n {\n \"nm\": \"ES JERUK\",\n \"unitprice\": \"13,000\",\n \"cnt\": \"1\",\n \"price\": \"13,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"56,181\",\n \"tax_price\": \"5,618\"\n },\n \"total\": {\n \"total_price\": \"61,799\",\n \"cashprice\": [\n \"62,000\",\n \"201\"\n ]\n }\n}"}]}
97
+ {"id": 96, "image": "data/ocr/test/96.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"BBQ Chicken\",\n \"cnt\": \"1\",\n \"price\": \"41,000\",\n \"sub\": {\n \"nm\": \"- Tidak Pedas\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n }\n },\n \"sub_total\": {\n \"subtotal_price\": \"41,000\"\n },\n \"total\": {\n \"total_price\": \"41,000\",\n \"cashprice\": \"50,000\",\n \"changeprice\": \"9,000\",\n \"menutype_cnt\": \"1\"\n }\n}"}]}
98
+ {"id": 97, "image": "data/ocr/test/97.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"BUBUR GO\",\n \"unitprice\": \"20.000\",\n \"cnt\": \"2\",\n \"price\": \"40.000\"\n },\n {\n \"nm\": \"PUYUH GO\",\n \"price\": \"6.000\"\n },\n {\n \"nm\": \"SATE ATI GO\",\n \"unitprice\": \"3.000\",\n \"cnt\": \"3\",\n \"price\": \"9.000\"\n }\n ],\n \"total\": {\n \"total_price\": \"55.000\",\n \"cashprice\": \"55.000\",\n \"menuqty_cnt\": \"6.00xITEMS\"\n }\n}"}]}
99
+ {"id": 98, "image": "data/ocr/test/98.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": [\n {\n \"nm\": \"BLACK PAPPER MEATBALL PAS\",\n \"cnt\": \"1\",\n \"price\": \"79,000\"\n },\n {\n \"nm\": \"TRUFFLE CREAM\",\n \"cnt\": \"1\",\n \"price\": \"77,000\"\n },\n {\n \"nm\": \"EARL GREY MILK TEA\",\n \"cnt\": \"1\",\n \"price\": \"59,000\"\n }\n ],\n \"sub_total\": {\n \"subtotal_price\": \"215,000\",\n \"service_price\": \"12,900\",\n \"tax_price\": \"22,790\"\n },\n \"total\": {\n \"total_price\": \"250,690\"\n }\n}"}]}
100
+ {"id": 99, "image": "data/ocr/test/99.png", "conversations": [{"from": "human", "value": "<image>\nExtract JSON."}, {"from": "gpt", "value": "{\n \"menu\": {\n \"nm\": \"FL-Xmas 30 Off\",\n \"cnt\": \"1\",\n \"price\": \"68,180\",\n \"sub\": [\n {\n \"nm\": \"PAKET SLICES\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n },\n {\n \"nm\": \"FL Cake - French Vanilla SLC\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n },\n {\n \"nm\": \"PAKET SLICES\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n },\n {\n \"nm\": \"FL Cake - Green Tea SLC\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n },\n {\n \"nm\": \"PAKET SLICES\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n },\n {\n \"nm\": \"FL Cake - Belgium Choco SLC\",\n \"cnt\": \"1\",\n \"price\": \"0\"\n }\n ]\n },\n \"sub_total\": {\n \"subtotal_price\": \"68,180\",\n \"discount_price\": \"0\",\n \"tax_price\": [\n \"6,818\",\n \"0\"\n ],\n \"etc\": [\n \"0\",\n \"0\",\n \"2\"\n ]\n },\n \"total\": {\n \"total_price\": \"75,000\",\n \"cashprice\": \"0\",\n \"changeprice\": \"0\",\n \"creditcardprice\": \"75,000\"\n }\n}"}]}
data/test/test.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:913a5deee82c7b62c96149ad9697451697588b06f92dc7b6971ebb18ebcc0bcf
3
+ size 134
data/train.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/train/train.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02a271137f6f97b7084325766b31ff3b07247daebe9e35c6f93a2bebfb259279
3
+ size 135