# Text Similarity Image

## API TEXT SIMILARITY IMAGE

<mark style="color:green;">`POST`</mark> `https://bigvision.id/upload/text-similarity`

Upload file to server.

#### Headers

| Name           | Type   | Description                                                    |
| -------------- | ------ | -------------------------------------------------------------- |
| Authentication | string | Authentication token to track down who is emptying our stocks. |

#### Request Body

| Name            | Type    | Description                                                                                             |
| --------------- | ------- | ------------------------------------------------------------------------------------------------------- |
| image           | string  |                                                                                                         |
| list\_of\_words | string  | split by \| symbol. example: telkom\|indonesia. It will check similarity 2 words (telkom and indonesia) |
| threshold       | integer |                                                                                                         |

{% tabs %}
{% tab title="200 File processed." %}
```
{
    "message": "file processed",
    "success": true,
    "transaction_id": "TRANSACTION_ID"
}
```
{% endtab %}

{% tab title="401 Need to get access token." %}
```
Jwt is expired
```
{% endtab %}
{% endtabs %}

{% hint style="success" %}
Split words by `|` symbol. ex: you can check more than words alphanumerics like `telkom indonesia|nusantara` it will check 2 word (telkom indonesia & nusantara)
{% endhint %}

## Webhook Result

```
{
  "filename": "TRANSACTION_ID",
  "ocrResult": [
    {
      "confidence_level": float,
      "name": str,
      "target": str
    },
    ...
  ],
  "type": str
}
```
