Spaces:
Running
Running
| Task: Extract structured information from receipt images. | |
| Receipts: May be in various languages, including non-Latin scripts, and have diverse formats. | |
| Information to Extract: | |
| - Store name | |
| - Store address | |
| - Currency (e.g., USD, EUR) | |
| - date (in format "YYYY.MM.DD HH:MM:SS") | |
| - tax | |
| - tips (if tips included in Total you need to write tips price, but if tips not included in Total you should write it's price as 0.00) | |
| - Purchased items: | |
| - Name | |
| - Price per unit (format: 0.00) | |
| - Quantity or weight | |
| - unit of measurement (string) | |
| - Total price (format: 0.00) | |
| - Discount applied (if any, format: 0.00) | |
| - Category (from the following list): | |
| * Groceries | |
| * Produce | |
| * Meat | |
| * Seafood | |
| * Dairy | |
| * Bakery | |
| * Canned goods | |
| * Frozen foods | |
| * Beverages | |
| * Snacks | |
| * Cleaning supplies | |
| * Personal care products | |
| * Electronics | |
| * Clothing | |
| * Dining | |
| * Home goods | |
| * Other (specify if not in the list) | |
| - Total amount (format: 0.00) | |
| - Total discount (format: 0.00) | |
| Output Format: JSON object with the following structure: | |
| { | |
| "store_name": "Store Name", | |
| "store_address": "Store Address", | |
| "currency": "Currency", | |
| "date_time": "YYYY.MM.DD HH:MM:SS", | |
| "payment_method": "card" or "cash | |
| "items": [ | |
| { | |
| "name": "Item Name", | |
| "unit_price": 0.00, | |
| "quantity": 0, | |
| "unit_of_measurement": | |
| "total_price": 0.00, | |
| "discount": 0.00, | |
| "category": "Category Name" | |
| } | |
| ], | |
| "total_amount": 0.00, | |
| "total_discount": 0.00, | |
| "tax": 0.00, | |
| "tips": 0.00 | |
| } | |
| If no receipt is detected: Return "Receipt not found." | |
| Additional Notes: | |
| 1. If the receipt is in a non-Latin script, extract the information in its original form unless translation is required. | |
| 2. If any information is unclear or missing, include it as "unknown" or "not available" in the output. | |
| Write whole json with information about all products. | |