LINE Receipt OCR

LINE Receipt OCR


This plugin uses OCR to read receipt images.

·        Main Features.

Reads receipt images, analyzes the information, and outputs the information.

Output

o   JSON

o   String ('Store Name', 'Items Name', 'Items Price'......)

---JSON String ('Store Name', 'Items Name', 'Items Price' )


Need help?

Technical contact to tech@argos-labs.com


May you search all operations,

Table of Contents



1. Parameter setting

  • Basic Settings

    • API Key : Enter the API Key. API Key is required to use the plugin.
    • Receipt Image : Enter the Receipt Image

Select a receipt image or enter the path.


  • Advanced Settings

    • Language :

Select the language in which receipts are written.

*Currently only 'ja' (Japanese) is available.

    • Output Key :

Select the output item.

Normally, Return Value is returned in JSON, but if you make a selection, only the value (text) of the selected item will be returned.

      • Keys

"Store Name": Store name

Store Branch Name

Store Telephone

Items List": List of items The items list includes product name, product unit price, number of items, and product price. If there is no item unit price, only the item name and price will be listed.

Subtotal": subtotal

Total Price": Total price

Tax": Consumption tax

Payment Date

Payment Time

Payment Method

Payment Price: Amount of payment

If there are multiple "Items", they will be output in a new line.  The order of output does not change, so the items are output in order from the top.


2. Return Value

  • Result Type 1. String : JSON / String
  • Result Type 2. CSV: String / Only product list supports CSV output (No header)
  • File : JSON / String

3. Example

  • ---CSV : String / Only product list is supported for CSV output (No header)
    • Reading a receipt image

Read image

Return Value:

{
  "result": {
    "storeInfo": {
      "name": {
        "text": "サイゼリヤ"
      },
      "branch": {
        "text": "我孫子新田"
      },
      "tel": {
        "text": "04-7181-0350",
        "formatted": {
          "value": "0471810350"
        }
      }
    },
    "items": [
      {
        "name": {
          "text": "チョリソー"
        },
        "num": {
          "text": "02613"
        },
        "priceInfo": {
          "price": {
            "text": "¥400",
            "formatted": {
              "value": "400"
            }
          }
        }
      },
      {
        "name": {
          "text": "アスパラガスの温サラダ"
        },
        "num": {
          "text": "04144"
        },
        "priceInfo": {
          "price": {
            "text": "¥300",
            "formatted": {
              "value": "300"
            }
          }
        }
      },
      {
        "name": {
          "text": "ラム肉のラグースパゲッティ"
        },
        "num": {
          "text": "04147"
        },
        "priceInfo": {
          "price": {
            "text": "¥600",
            "formatted": {
              "value": "600"
            }
          }
        }
      },
      {
        "name": {
          "text": "バッファローモッツアレラのピサ"
        },
        "num": {
          "text": "02645"
        },
        "priceInfo": {
          "price": {
            "text": "¥500",
            "formatted": {
              "value": "500"
            }
          }
        }
      }
    ],
    "subTotal": {
      "price": [
        {
          "text": "¥1,800",
          "formatted": {
            "value": "1800"
          }
        }
      ]
    },
    "totalPrice": {
      "price": {
        "text": "¥1,800",
        "formatted": {
          "value": "1800"
        }
      },
      "tax": {
        "text": "¥163",
        "formatted": {
          "value": "163"
        }
      }
    },
    "paymentInfo": {
      "date": {
        "text": "2021/03/27(土)",
        "formatted": {
          "year": "2021",
          "month": "03",
          "day": "27"
        }
      },
      "time": {
        "text": "12: 09",
        "formatted": {
          "hour": "12",
          "minute": "09",
          "second": "00"
        }
      },
      "payment": [
        {
          "method": {
            "text": "交通系IC"
          },
          "price": {
            "text": "¥1,800",
            "formatted": {
              "value": "1800"
            }
          }
        }
      ]
    }
  },
  "meta": {}
}



(*Formatted for clarity.)


Plugins

Need help?

Technical contact to tech@argos-labs.com

Sales contact to info@argos-labs.com


May you search all over,